/* Custom styles for Fatheads Brewery & Saloon */

:root {
    --burgundy-50: #fdf2f2;
    --burgundy-100: #fee6e6;
    --burgundy-200: #fdd1d1;
    --burgundy-300: #fba8a8;
    --burgundy-400: #f77575;
    --burgundy-500: #ef4444;
    --burgundy-600: #dc2626;
    --burgundy-700: #b91c1c;
    --burgundy-800: #991b1b;
    --burgundy-900: #7f1d1d;
    --blush-50: #fff1f2;
    --blush-100: #ffe4e6;
    --cream-50: #fefdfb;
    --cream-100: #fdf8f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', system-ui, sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream-50);
}
::-webkit-scrollbar-thumb {
    background: var(--burgundy-200);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy-400);
}

/* Navbar styles */
.nav-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(127, 29, 29, 0.08);
}

/* Hero image composition */
.hero-img-main {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-img-main:hover {
    transform: scale(1.02);
}

/* Floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card-delay {
    animation: float 4s ease-in-out infinite;
    animation-delay: 2s;
}

/* Section reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* Beer card hover */
.beer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(127, 29, 29, 0.12);
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 200px;
    height: 200px;
}

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    max-height: 400px;
}

/* Decorative dots pattern */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(127, 29, 29, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
    transform: scale(1.08);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--burgundy-600), var(--burgundy-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom selection color */
::selection {
    background: var(--burgundy-200);
    color: var(--burgundy-900);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal,
    .reveal-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .floating-card,
    .floating-card-delay {
        animation: none;
    }
    .img-zoom img {
        transition: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--burgundy-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading state for images */
img {
    background: linear-gradient(135deg, var(--cream-100), var(--blush-100));
}
