/* ═══════════════════════════════════════════════════════════
   Tahoe Motion Picture Rentals — Custom Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; }
img, svg { display: block; max-width: 100%; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 400; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5F0E8; }
::-webkit-scrollbar-thumb { background: #a7c7ae; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #72a57e; }

/* ── Selection ── */
::selection { background: #14432A; color: #F5F0E8; }

/* ── Navigation ── */
#site-header {
    background: transparent;
    border-bottom: 1px solid transparent;
}

#site-header.scrolled {
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(20, 67, 42, 0.08);
    box-shadow: 0 1px 0 rgba(20, 67, 42, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #14432A;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #14432A;
    transition: width 0.3s ease;
    margin: 0 auto;
}

.mobile-nav-link:hover::after {
    width: 60%;
}

/* ── Hero Stat Cards ── */
.stat-card {
    animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: -2s; }
.stat-card:nth-child(3) { animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 1;
    transform: none;
    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);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(28px);
    }

    .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; }
    .reveal:nth-child(5) { transition-delay: 0.32s; }
}

/* ── Button focus states ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #14432A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Form inputs ── */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 67, 42, 0.12);
}

/* ── Smooth image loading ── */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ── Print ── */
@media print {
    #site-header, #mobile-menu { display: none; }
    body { background: white; color: black; }
    a { color: black; text-decoration: underline; }
}
