/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    min-height: 100vh;
}

img, svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #064e3b;
}

/* ── Typography ───────────────────────────────────────── */
.section-label {
    display: block;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ── Navigation ───────────────────────────────────────── */
#nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#nav.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

.nav-logo {
    transition: color 0.3s ease;
}

#nav.scrolled .nav-logo {
    color: #064e3b;
}

/* ── Mobile Menu ──────────────────────────────────────── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s forwards;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

/* ── Hero ─────────────────────────────────────────────── */
.hero-subtitle {
    animation-fill-mode: both;
}

.hero-headline {
    animation-fill-mode: both;
}

.hero-desc {
    animation-fill-mode: both;
}

.hero-cta {
    animation-fill-mode: both;
}

.scroll-indicator {
    animation: fadeUp 0.7s 1.2s forwards;
    opacity: 0;
}

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

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

/* ── Service Cards ────────────────────────────────────── */
.service-card {
    transition: background-color 0.5s ease;
}

/* ── Buttons ──────────────────────────────────────────── */
a, button {
    cursor: pointer;
}

/* ── Animations ───────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── 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;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .hero-subtitle,
    .hero-headline,
    .hero-desc,
    .hero-cta,
    .scroll-indicator {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .section-title {
        font-size: 3.5rem;
    }
}
