/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }

/* ── Typography ──────────────────────────────────────── */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.1; }

/* ── Hero Gradient ───────────────────────────────────── */
.hero-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(11,61,46,0.9) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(45,131,82,0.8) 0%, transparent 55%),
        radial-gradient(ellipse 90% 70% at 50% 50%, rgba(26,107,63,0.6) 0%, transparent 70%),
        linear-gradient(160deg, #0B3D2E 0%, #1a6b3f 40%, #07261b 100%);
}

/* Subtle pattern overlay */
.hero-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(245,242,235,0.08) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(245,242,235,0.05) 1px, transparent 1px);
    background-size: 48px 48px, 32px 32px;
}

/* ── Hero Animations ─────────────────────────────────── */
.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}
.hero-headline {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}
.hero-sub {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}
.hero-ctas {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

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

/* Scroll indicator */
.hero-scroll-indicator { opacity: 0; animation: fadeIn 1s ease forwards 1.4s; }
.scroll-mouse {
    width: 26px; height: 40px; border: 2px solid rgba(245,242,235,0.5);
    border-radius: 13px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-wheel {
    width: 3px; height: 8px; background: rgba(245,242,235,0.7);
    border-radius: 2px; animation: scrollPulse 1.5s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50%       { opacity: 0.3; transform: translateY(6px); }
}
@keyframes fadeIn { to { opacity: 1; } }

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center;
    background: #F5F2EB; color: #0B3D2E;
    padding: 14px 32px; border-radius: 9999px;
    font-weight: 600; font-size: 0.95rem;
    text-decoration: none; border: none; cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-primary:hover { background: #E8E2D4; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }

.btn-secondary {
    display: inline-flex; align-items: center;
    background: transparent; color: #F5F2EB;
    padding: 14px 32px; border-radius: 9999px;
    font-weight: 600; font-size: 0.95rem;
    text-decoration: none; border: 2px solid rgba(245,242,235,0.5);
    cursor: pointer; transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.btn-secondary:hover { background: rgba(245,242,235,0.1); border-color: rgba(245,242,235,0.8); transform: translateY(-2px); }

/* ── Section Eyebrow ─────────────────────────────────── */
.section-eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: #1a6b3f;
}

/* ── Section Title ───────────────────────────────────── */
.section-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    color: #0B3D2E;
    line-height: 1.05;
}

/* ── Body Text ───────────────────────────────────────── */
.body-text {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #3d6b4f;
}

/* ── Divider ─────────────────────────────────────────── */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #a8cfb8, transparent);
}

/* ── Reveal Animations (below-fold only) ─────────────── */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1; /* visible by default for no-JS fallback */
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }

/* Progressive enhancement: hide initially via JS */
.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
}

/* If JS is unavailable, content is still visible (opacity:1 default) */

/* ── Service Cards ───────────────────────────────────── */
.service-card {
    border: 1px solid rgba(168,207,184,0.15);
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.service-card:hover { border-color: rgba(168,207,184,0.3); transform: translateY(-4px); }

/* ── Gallery ─────────────────────────────────────────── */
.gallery-item { cursor: default; }
.gallery-item img { transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94); }
.gallery-item:hover img { transform: scale(1.05); }

/* ── Navbar Scroll State ─────────────────────────────── */
#site-header.scrolled {
    background: rgba(253,252,250,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(11,61,46,0.08);
}
#site-header.scrolled #desktop-nav a { color: #0B3D2E; }
#site-header.scrolled #desktop-nav a:hover { color: #1a6b3f; }

/* ── Mobile Menu ─────────────────────────────────────── */
#mobile-menu {
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    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-up, .reveal-left, .reveal-right {
        transform: none;
        opacity: 1;
    }
}

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