/* ============================================
   Brewer's Outlet — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF9F6;
}
::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5e1f2a;
}

/* ---- Selection ---- */
::selection {
    background: #7B2D3B;
    color: #FDF9F6;
}

/* ---- Hero entrance animations ---- */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation-name: fade-in-up;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

/* ---- Scroll reveal (below the fold only) ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

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

/* ---- Navbar transition ---- */
#navbar.scrolled {
    background: rgba(253, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08), 0 4px 20px rgba(123, 45, 59, 0.06);
}

#navbar.scrolled .font-display {
    color: #7B2D3B !important;
}

/* ---- Mobile menu ---- */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ---- Button hover effects ---- */
a[href="#products"],
a[href="#visit"] {
    position: relative;
}

/* ---- Product card image hover ---- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ---- Focus styles ---- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.15;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    #about, #community {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
