/* ============================================
   Baker's Dozen — Custom Styles
   Premium Dark Luxury | Midnight + Mint + Gold
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #F0D48A;
}

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

::-webkit-scrollbar-track {
    background: #040B18;
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 39, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 162, 39, 0.5);
}

/* --- Scroll Indicator Animation --- */
@keyframes scrollIndicator {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* --- Reveal Animations (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* --- Navbar Scroll State --- */
.nav-scrolled {
    background: rgba(4, 11, 24, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

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

.menu-open .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:last-child {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* --- Gold Shimmer on Cards --- */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.card-shimmer:hover .card-shimmer-line {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(201, 162, 39, 0.4) 50%, 
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out;
}

/* --- Image Hover Parallax --- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(201, 162, 39, 0.6);
    outline-offset: 4px;
    border-radius: 2px;
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* --- Print Styles --- */
@media print {
    nav, #menuBtn, .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-midnight-950,
    .bg-midnight-900,
    .bg-midnight-800 {
        background: white !important;
    }
    
    .text-white,
    .text-white\/80,
    .text-white\/50,
    .text-white\/40,
    .text-white\/30,
    .text-white\/60 {
        color: black !important;
    }
}
