/* ── Custom Properties ── */
:root {
    --forest-dark:    #1a3c2a;
    --forest-mid:     #2d5a3f;
    --forest-medium:  #3d6b4f;
    --cream:          #f7f4ee;
    --off-white:      #faf8f4;
    --white:          #ffffff;
    --amber:          #c8a45e;
    --amber-light:    #d4b76a;
}

/* ── Base ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--off-white);
    color: var(--forest-dark);
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-lato {
    font-family: 'Lato', sans-serif;
}

/* ── Tailwind Custom Colors ── */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    .text-forest-dark   { color: var(--forest-dark); }
    .text-forest-medium { color: var(--forest-medium); }
    .text-forest-mid    { color: var(--forest-mid); }
    .bg-forest-dark     { background-color: var(--forest-dark); }
    .bg-forest-mid      { background-color: var(--forest-mid); }
    .bg-cream           { background-color: var(--cream); }
    .bg-off-white       { background-color: var(--off-white); }
    .text-amber         { color: var(--amber); }
}

/* ── Navigation ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(26, 60, 42, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.15);
}

.nav-link, .mobile-nav-link {
    position: relative;
}

.nav-link::after, .mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amber);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .mobile-nav-link:hover::after {
    width: 100%;
}

/* ── Hero ── */
.hero-gradient {
    background: linear-gradient(135deg, #1a3c2a 0%, #2d5a3f 40%, #3d6b4f 70%, #1a3c2a 100%);
}

.hero-headline {
    animation: heroFadeUp 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-subtitle {
    animation: heroFadeUp 1s ease forwards;
    animation-delay: 0.15s;
    opacity: 0;
}

.hero-tagline {
    animation: heroFadeUp 1s ease forwards;
    animation-delay: 0.45s;
    opacity: 0;
}

.hero-cta {
    animation: heroFadeUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Buttons ── */
.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: var(--amber);
    color: var(--forest-dark);
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--amber);
    border-radius: 2px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: var(--amber);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

/* ── Section Labels ── */
.section-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1rem;
}

.section-label-light {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-light);
    margin-bottom: 1rem;
}

/* ── Divider ── */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--forest-medium)/20, transparent);
    margin: 0;
}

/* ── Input Fields ── */
.input-field {
    background: var(--white);
    border: 1px solid rgba(26, 60, 42, 0.15);
    border-radius: 2px;
    padding: 14px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--forest-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.input-field::placeholder {
    color: rgba(26, 60, 42, 0.35);
}

.input-field:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(200, 164, 94, 0.15);
}

/* ── Product Cards ── */
.product-card {
    background: var(--white);
    border-radius: 2px;
    padding: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(26, 60, 42, 0.12);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Scroll Indicator ── */
.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.8; transform: translateX(-50%) translateY(6px); }
}

/* ── Mobile Menu Transition ── */
#mobile-menu {
    animation: mobileMenuSlide 0.3s ease forwards;
}

@keyframes mobileMenuSlide {
    from { opacity: 0; max-height: 0; }
    to   { opacity: 1; max-height: 400px; }
}

#mobile-menu.hidden {
    animation: mobileMenuHide 0.25s ease forwards;
}

@keyframes mobileMenuHide {
    from { opacity: 1; max-height: 400px; }
    to   { opacity: 0; max-height: 0; }
}

/* ── Focus Styles ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 3rem;
    }

    @media (min-width: 769px) {
        .hero-headline {
            font-size: 4rem;
        }
    }

    @media (min-width: 1024px) {
        .hero-headline {
            font-size: 5rem;
        }
    }
}
