/* ── Base & Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(196, 114, 90, 0.2);
    color: #5c3025;
}

/* ── Navbar ── */
#navbar {
    color: rgba(255, 255, 255, 0.85);
}

#navbar.scrolled {
    background: rgba(254, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #1c1917;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

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

#navbar.scrolled a[href="tel:13157381835"] {
    background: #C4725A;
    color: white;
}

#navbar.scrolled a[href="tel:13157381835"]:hover {
    background: #a85a44;
}

/* ── Reveal Animations (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:nth-child(1) { transition-delay: 0ms; }
    .reveal:nth-child(2) { transition-delay: 80ms; }
    .reveal:nth-child(3) { transition-delay: 160ms; }
    .reveal:nth-child(4) { transition-delay: 240ms; }
    .reveal:nth-child(5) { transition-delay: 320ms; }
    .reveal:nth-child(6) { transition-delay: 400ms; }
}

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

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

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

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

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

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

/* ── Utility ── */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}
