/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(232, 106, 74, 0.2);
    color: #1d1d1d;
}

/* ── Scroll Reveal (progressive enhancement — content visible by default) ── */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    /* Stagger children */
    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* ── FAQ Accordion ── */
.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-content.open {
    max-height: 300px;
}

.faq-icon {
    color: #e86a4a;
}

/* ── Navbar scroll state ── */
.nav-scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ── Mobile menu animation ── */
#mobile-menu {
    max-height: 0;
}

#mobile-menu.open {
    max-height: 320px;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f6f6f6;
}

::-webkit-scrollbar-thumb {
    background: #c8c8c8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a2a2a2;
}

/* ── Focus styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #e86a4a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}
