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

body {
    background-color: #fefdf8;
}

::selection {
    background-color: #065f46;
    color: #ecfdf5;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ── Navigation ── */
#site-header {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(6, 95, 70, 0.06);
}

#site-header.scrolled {
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.06), 0 4px 24px rgba(6, 95, 70, 0.04);
}

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

/* ── Service Cards ── */
.service-card {
    border: 1px solid rgba(6, 95, 70, 0.05);
}

/* ── Form Inputs ── */
input:focus,
textarea:focus {
    border-color: rgba(6, 95, 70, 0.35) !important;
    box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.06) !important;
}

/* ── Button Focus ── */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #065f46;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Subtle gradient on hero image area ── */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

#hero {
    position: relative;
}
