/* ===== BASE & RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Nunito', system-ui, sans-serif;
    color: #1c3b5e;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231c3b5e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }

/* Staggered initial states (progressive enhancement — JS adds .revealed) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HEADER ===== */
#site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(11, 31, 58, 0.06);
    box-shadow: 0 1px 0 rgba(11, 31, 58, 0.04);
}
#site-header.scrolled {
    box-shadow: 0 4px 24px rgba(11, 31, 58, 0.08);
}

/* ===== MOBILE MENU ===== */
.mobile-link { display: block; }

/* ===== SERVICE CARDS ===== */
.service-card { position: relative; }

/* ===== CTA PATTERN ===== */
#cta-pattern circle { fill: rgba(255,255,255,0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .font-serif { font-size: 1.75rem; }
    .font-serif:text-4xl { font-size: 2rem; }
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
    outline: 2px solid #3dbd7e;
    outline-offset: 2px;
    border-radius: 8px;
}

/* ===== SELECTION ===== */
::selection { background: #d4f5e5; color: #0b4527; }
