/* ===== BASE & UTILITIES ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ===== NAVBAR ===== */
#header { transition: box-shadow 0.3s ease; }
#header.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.08); }
.h-18 { height: 72px; }

/* ===== MOBILE MENU ===== */
body.nav-open { overflow: hidden; }
#mobileNav { box-shadow: none; }
body.nav-open #mobileNav { box-shadow: -10px 0 40px rgba(0,0,0,0.15); }

/* ===== FAQ ===== */
.faq-btn { cursor: pointer; }
.faq-icon svg { transition: transform 0.3s ease; }
.faq-item.active .faq-icon svg { transform: rotate(45deg); }
.faq-item.active .faq-icon { background-color: #E8604C; }
.faq-item.active .faq-icon svg { stroke: #fff; }
.faq-content { overflow: hidden; }
.faq-content-inner { padding-top: 0.5rem; }

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .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; }
}

/* ===== FORM VALIDATION ===== */
input:invalid:not(:placeholder-shown), textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}
input:focus:invalid:not(:placeholder-shown), textarea:focus:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    ring: 2px;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #E8604C;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f7f7f8; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1aa; }
