/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --forest-50: #f0f5ee;
    --forest-100: #d8e4d4;
    --forest-200: #b5ccaa;
    --forest-300: #89b07e;
    --forest-400: #639159;
    --forest-500: #44723f;
    --forest-600: #32572f;
    --forest-700: #274425;
    --forest-800: #1f361d;
    --forest-900: #182a16;
    --forest-950: #0c150b;
    --off-white: #f7f8f4;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--off-white);
    color: var(--forest-900);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== NAVIGATION ===== */
#nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#nav.scrolled {
    background: rgba(247, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(31, 54, 29, 0.08);
    padding-top: 0;
    padding-bottom: 0;
}

#nav.scrolled a.nav-link {
    color: var(--forest-800);
}

/* ===== HERO ANIMATIONS ===== */
.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-sub {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

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

/* ===== SECTION HEADLINES ===== */
.section-eyebrow {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-headline {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-eyebrow.visible,
.section-headline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SERVICE CARDS ===== */
.service-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ABOUT SECTION ===== */
.about-eyebrow {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-headline {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-image-wrapper {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-stat {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-eyebrow.visible,
.about-headline.visible,
.about-image-wrapper.visible,
.about-stat.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ===== GALLERY ===== */
.gallery-item {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== CONTACT ===== */
.contact-eyebrow {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-headline {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-eyebrow.visible,
.contact-headline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

#mobileMenu.open .menu-line-active {
    /* lines are handled by JS */
}

/* ===== BUTTON HOVER EFFECTS ===== */
a, button {
    transition: all 0.3s ease;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--forest-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forest-500);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .hero-eyebrow,
    .hero-headline,
    .hero-sub,
    .hero-cta {
        opacity: 1;
        animation: none;
    }
    .section-eyebrow,
    .section-headline,
    .service-card,
    .about-eyebrow,
    .about-headline,
    .about-image-wrapper,
    .about-stat,
    .gallery-item,
    .contact-eyebrow,
    .contact-headline {
        opacity: 1;
        transform: none;
    }
}

/* ===== MOBILE MENU LINES ===== */
.menu-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--forest-900);
    transition: all 0.3s ease;
    transform-origin: center;
}

#menuBtn.active .menu-line:first-child {
    transform: translateY(7px) rotate(45deg);
}

#menuBtn.active .menu-line:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE MENU FULLSCREEN ===== */
#mobileMenu {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: var(--off-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--forest-900);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--forest-600);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .section-headline {
        font-size: 2.25rem;
    }

    .about-headline,
    .contact-headline {
        font-size: 2.25rem;
    }

    .about-stat {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .mobile-link {
        font-size: 2.5rem;
    }
}
