/* ==========================================================================
   Tuinen Gheysens — Main Stylesheet (Base)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens (CSS Custom Properties) — HSL matching React source
   -------------------------------------------------------------------------- */
:root {
    /* Colors (HSL components — use as hsl(var(--name))) */
    --primary: 163 39% 17%;
    --primary-foreground: 0 0% 100%;
    --secondary: 140 18% 90%;
    --secondary-foreground: 163 39% 17%;
    --accent: 30 40% 59%;
    --accent-foreground: 0 0% 100%;
    --background: 50 20% 97%;
    --foreground: 0 0% 10%;
    --muted: 140 10% 94%;
    --muted-foreground: 160 10% 40%;
    --border: 140 15% 89%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 10%;
    --destructive: 0 84.2% 60.2%;
    --input: 140 15% 89%;
    --ring: 163 39% 17%;
    --radius: 0.75rem;

    /* Typography */
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Manrope', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-padding: 80px;
    --section-padding-mobile: 48px;
    --container-max: 1280px;
    --container-padding: 24px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: hsl(var(--border));
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

/* Focus styles */
:focus-visible {
    outline: 3px solid hsl(var(--accent));
    outline-offset: 3px;
}

/* Selection */
::selection {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: hsl(var(--muted)); }
::-webkit-scrollbar-thumb { background: hsl(var(--primary) / 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--primary) / 0.5); }

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 12px 24px;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: 9999px;
    z-index: 9999;
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: hsl(var(--foreground));
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

.eyebrow {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: hsl(var(--accent));
    margin-bottom: 12px;
}

.text-accent {
    color: hsl(var(--accent));
}

.font-heading {
    font-family: var(--font-display);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container--narrow {
    max-width: 820px;
}

.section {
    padding: var(--section-padding) 0;
}

.section--alt {
    background-color: hsl(var(--card));
}

.section__subtext {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
    color: hsl(var(--muted-foreground));
}

.section__action {
    text-align: center;
    margin-top: 48px;
}

.section__divider {
    border: none;
    border-top: 1px solid hsl(var(--border));
    margin: 48px 0;
}

/* Center text for section headers */
.section > .container > .eyebrow,
.section > .container > h2 {
    text-align: center;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.2;
}

.btn--primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.btn--primary:hover {
    background-color: hsl(var(--primary) / 0.8);
    border-color: hsl(var(--primary) / 0.8);
}

.btn--outline {
    background: transparent;
    color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.btn--outline:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn--outline-white {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.btn--outline-white:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.7);
}

.btn--white {
    background: #fff;
    color: hsl(var(--primary));
    border-color: #fff;
}

.btn--white:hover {
    background: hsl(var(--background));
    border-color: hsl(var(--background));
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* Lift effect for hero and CTA buttons */
.btn-lift {
    transition: all 0.3s ease;
}

.btn-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* --------------------------------------------------------------------------
   6. Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
    50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

@keyframes scrollPulse {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

.animate-fade-in-up {
    animation: fade-in-up 0.7s ease-out forwards;
}

.animate-bounce {
    animation: bounce 1s ease infinite;
}

/* Animation delay utilities */
.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }
.animate-delay-400 { animation-delay: 400ms; }
.animate-delay-500 { animation-delay: 500ms; }

/* --------------------------------------------------------------------------
   7. Scroll Animations
   -------------------------------------------------------------------------- */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
[data-animate-delay="0"] { transition-delay: 0s; }
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }
[data-animate-delay="6"] { transition-delay: 0.6s; }
[data-animate-delay="7"] { transition-delay: 0.7s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
