/* ── Base & Typography ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #ff6b35;
    color: white;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled #nav-logo-text {
    color: #1a1a1a;
}

#navbar.scrolled .nav-link {
    color: #515151;
}

#navbar.scrolled .nav-link:hover {
    color: #ff6b35;
}

/* ── Mobile Menu ── */
.menu-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 1.5px;
    background: #3d3d3d;
    transition: all 0.3s ease;
}

.menu-line.top { top: 9px; }
.menu-line.middle { top: 14px; }
.menu-line.bottom { top: 19px; }

#menu-btn.active .menu-line.top {
    top: 14px;
    transform: translateX(-50%) rotate(45deg);
}

#menu-btn.active .menu-line.middle {
    opacity: 0;
}

#menu-btn.active .menu-line.bottom {
    top: 14px;
    transform: translateX(-50%) rotate(-45deg);
}

#menu-btn.active {
    border-color: #ff6b35;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-size: 1.25rem;
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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:nth-child(2) { transition-delay: 0.08s; }
    .reveal:nth-child(3) { transition-delay: 0.16s; }
    .reveal:nth-child(4) { transition-delay: 0.24s; }
}

/* ── FAQ ── */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9e9e9e;
}
