/* ============================================
   The Fillinger Bakehouse — Custom Styles
   Premium Dark Luxury Theme
   Forest Green + Gold + Cream Palette
============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a140a;
}
::-webkit-scrollbar-thumb {
    background: #2d5a2d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c9a227;
}

/* --- Selection --- */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #faf8f5;
}

/* --- Focus --- */
:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 4px;
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-up {
        transform: translateY(30px);
    }
    .reveal-left {
        transform: translateX(-30px);
    }
    .reveal-right {
        transform: translateX(30px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Fallback: ensure content is visible even without JS */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1 !important;
    transform: none !important;
}

/* --- Navbar Scroll State --- */
#navbar.scrolled {
    background: rgba(10, 20, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

#navbar.scrolled a {
    color: #faf8f5;
}

/* --- Button Hover Effects --- */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* --- Image Loading --- */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* --- Link Underline Animation --- */
a:not([class]) {
    position: relative;
}

a:not([class])::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a227;
    transition: width 0.3s ease;
}

a:not([class]):hover::after {
    width: 100%;
}

/* --- Gold Accent Line --- */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.4), transparent);
}

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

/* --- Mobile Menu Transition --- */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* --- Image Placeholder Fallback --- */
img {
    background: linear-gradient(135deg, #152915 0%, #1c371c 100%);
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #mobile-menu,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}
