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

::selection {
    background: color-mix(in srgb, #B8542F 80%, white);
    color: white;
}

/* ── Navbar ── */
.nav-header {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav-header.scrolled {
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
    background: rgba(253,251,247,0.97) !important;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: #B8542F;
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* ── Hero Background ── */
.hero-bg {
    will-change: transform;
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* ── Smooth Scroll Offset for Fixed Nav ── */
section[id] {
    scroll-margin-top: 80px;
}

/* ── Form Focus Ring ── */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, #B8542F 25%, transparent);
}

/* ── Mobile Menu Transition ── */
#mobileMenu {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Print Styles ── */
@media print {
    .nav-header, #mobileMenu, .animate-bounce { display: none !important; }
    body { color: #111; background: white; }
    a { color: #111; }
}
