/* ============================================
   Farm Table Brewing Co. — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    background-color: #1E081C;
    color: #F3DDEF;
}

::selection {
    background-color: #A66314;
    color: #1E081C;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1E081C;
}
::-webkit-scrollbar-thumb {
    background: #4A1942;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6D2458;
}

/* --- Hero Image --- */
#hero .absolute.right-0 img {
    animation: heroImageShift 20s ease-in-out infinite alternate;
}

@keyframes heroImageShift {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* --- Scroll Reveal --- */
.scroll-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);
}

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

/* Stagger delays */
.scroll-reveal.delay-100 { transition-delay: 0.1s; }
.scroll-reveal.delay-200 { transition-delay: 0.2s; }
.scroll-reveal.delay-300 { transition-delay: 0.3s; }
.scroll-reveal.delay-400 { transition-delay: 0.4s; }

/* --- Story Section --- */
.story-img-wrap {
    position: relative;
}

.story-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #D4A84B, transparent);
    margin-top: 1.5rem;
}

/* --- Brew Cards --- */
.brew-card {
    position: relative;
    overflow: hidden;
}

.brew-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4A1942, #D4A84B, #4A1942);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.brew-card:hover::before {
    opacity: 1;
}

/* --- Visit Section --- */
.visit-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #D4A84B, transparent);
    margin-top: 1.5rem;
}

/* --- Contact Form --- */
.contact-form-wrap h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #D4A84B, transparent);
    margin-top: 1rem;
}

/* --- Navbar Scroll State --- */
.navbar-scrolled {
    background: rgba(30, 8, 28, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 25, 66, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* --- Decorative Elements --- */
.plum-gradient {
    background: linear-gradient(135deg, #1E081C 0%, #351030 50%, #4A1942 100%);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
    
    #hero .absolute.right-0 img {
        animation: none;
    }
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
    #hero {
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
    
    .brew-card {
        padding: 1.25rem;
    }
    
    .brew-card .h-48 {
        height: 160px;
    }
}

/* --- Print Styles --- */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .fixed, header, #navbar {
        position: static !important;
    }
}
