/* ─── Custom Properties ─── */
:root {
    --forest-950: #12190d;
    --forest-900: #24331c;
    --forest-800: #2c3e23;
    --forest-700: #364e2a;
    --forest-600: #446235;
    --forest-500: #5a7d47;
    --cream-50: #faf9f6;
    --cream-100: #f5f3ee;
    --cream-200: #ebe7de;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: var(--forest-600);
    color: var(--cream-50);
}

/* ─── Hero Gradient ─── */
.hero-gradient {
    background: linear-gradient(
        135deg,
        var(--forest-950) 0%,
        var(--forest-900) 25%,
        var(--forest-800) 50%,
        var(--forest-700) 75%,
        var(--forest-600) 100%
    );
}

/* ─── Hero Animations ─── */
.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.3s;
}

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

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

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

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

/* ─── CTA Buttons ─── */
.cta-primary {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cta-secondary {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-secondary:hover {
    transform: translateY(-2px);
}

/* ─── Section Eyebrow ─── */
.section-eyebrow {
    letter-spacing: 0.25em;
}

/* ─── Section Title ─── */
.section-title {
    letter-spacing: -0.02em;
}

/* ─── Service Cards ─── */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

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

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

/* Reduced motion: never hide content */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
    .hero-eyebrow,
    .hero-headline,
    .hero-sub,
    .hero-cta {
        opacity: 1;
        animation: none;
    }
    .service-card:hover {
        transform: none;
    }
    .cta-primary:hover,
    .cta-secondary:hover {
        transform: none;
    }
}

/* ─── Gallery ─── */
.gallery-item {
    overflow: hidden;
}

.gallery-img {
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

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

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(44, 62, 35, 0.08);
}

/* ─── Scroll Indicator ─── */
.scroll-indicator {
    transition: opacity 0.3s ease;
}

/* ─── Form ─── */
.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-submit:hover::after {
    opacity: 1;
}

/* ─── Testimonial Cards ─── */
.testimonial-card {
    transition: transform 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ─── Mobile Menu Transition ─── */
#mobile-menu {
    transition: height 0.3s ease, opacity 0.3s ease;
}

/* ─── Utility ─── */
.font-serif {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.font-sans {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
