/* ============================================
   Booth 34 Diecast — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #9c2336;
    color: #fefdfb;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
    background: #d4455e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9c2336;
}

/* --- Section Label --- */
.section-label {
    position: relative;
    display: inline-block;
}

/* --- Navbar Scroll State --- */
#navbar.scrolled {
    background-color: rgba(254, 253, 251, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(156, 35, 54, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-ink-950 {
    color: #1e1a17;
}

#navbar.scrolled .menu-line {
    background-color: #1e1a17;
}

/* --- Hero Animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: forwards;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-fade-in {
        animation: none;
        opacity: 1;
    }
    html {
        scroll-behavior: auto;
    }
}

/* --- Button Focus States --- */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d4455e;
    outline-offset: 2px;
}

/* --- Input Focus States --- */
input:focus,
textarea:focus {
    border-color: #9c2336 !important;
}

/* --- Mobile Menu Active State --- */
body.menu-open {
    overflow: hidden;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.active .mobile-link {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#mobile-menu.active .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { animation-delay: 0.25s; }

/* --- Mobile Menu Toggle Animation --- */
body.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
body.menu-open .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Image Placeholder Fallback --- */
img {
    background-color: #faddd6;
}

/* --- Print Styles --- */
@media print {
    #navbar, #contact, .reveal {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
