/**
 * Big D's Texas Pit - Design Stylesheet
 * Rustic but clean design with Texas BBQ theme
 * Color palette extracted from logo: black, white, yellow, orange, brown
 */

/* ============================================
   CSS Variables - Color Palette from Logo
   ============================================ */
:root {
    /* Primary Colors from Logo */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-yellow: #FFD700;        /* Bright yellow from logo */
    --color-orange: #FF8C00;        /* Orange from logo */
    --color-red-brown: #8B4513;     /* Saddle brown / reddish-brown */
    --color-dark-brown: #654321;    /* Dark brown */
    
    /* Derived Colors */
    --color-yellow-light: #FFE55C;
    --color-orange-light: #FFA500;
    --color-brown-light: #A0522D;
    --color-brown-dark: #3E2723;
    --color-gray-light: #F5F5F5;
    --color-gray-medium: #CCCCCC;
    --color-gray-dark: #666666;
    
    /* Typography */
    --font-display: 'Bebas Neue', 'Oswald', serif;  /* For "BIG D'S" style */
    --font-heading: 'Oswald', sans-serif;           /* For section titles */
    --font-body: 'Open Sans', sans-serif;            /* For body text */
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark-brown);
    /* background-color: var(--color-white); */
    background-image: 
        url('../images/vecteezy_vector-grunge-texture_128336.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ensure main and header are full width */
main,
header {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-section {
        animation: none !important;
    }
    
    .hero-section::before {
        animation: none !important;
    }
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark-brown);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3rem;
    font-family: var(--font-display);
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-red-brown);
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Small mobile devices (320px and below) */
@media (max-width: 320px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
    background-color: var(--color-dark-brown);
    background-image: 
        /* Dark ashy brown overlay - lighter than before but still ashy */
        linear-gradient(to bottom, rgba(80, 60, 50, 0.6), rgba(70, 50, 40, 0.65)),
        /* Additional ashy brown tint - muted, less saturated */
        linear-gradient(135deg, rgba(90, 70, 60, 0.5), rgba(80, 60, 50, 0.55)),
        /* Vecteezy weathered wood texture - black and white texture that will be colored by overlays */
        url('../images/vecteezy_vector-weathered-wood-texture-grunge-background_13462851.jpg');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    /* Use multiply to keep cracks dark, and overlay to apply ashy brown color with better visibility */
    background-blend-mode: multiply, overlay, normal;
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    margin: 0;
    left: 0;
    right: 0;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    /* Borders above and below for depth */
    border-top: 3px solid rgba(0, 0, 0, 0.4);
    border-bottom: 3px solid rgba(0, 0, 0, 0.5);
}

/* Add a subtle overlay for text readability without hiding the texture */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.15));
    pointer-events: none;
    z-index: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Ensure header container allows full width at small breakpoints */
.site-header .container {
    width: 100%;
    max-width: 100%;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 500px) {
    .site-header .container {
        padding: 0 var(--spacing-md);
    }
}

@media (min-width: 768px) {
    .site-header .container {
        max-width: var(--container-max-width);
        padding: 0 var(--spacing-lg);
    }
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 200px;
}

/* Small mobile devices (320px and below) */
@media (max-width: 320px) {
    .site-header {
        padding: var(--spacing-xs) 0;
    }
    
    .logo {
        height: 50px;
        max-width: 150px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
}

.main-nav {
    position: relative;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 4px;
    background-color: var(--color-white);
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.5);
}

.mobile-menu-toggle:hover span {
    background-color: var(--color-yellow);
    box-shadow: 
        0 0 6px rgba(255, 215, 0, 0.8),
        0 0 12px rgba(255, 215, 0, 0.5);
}

.nav-list {
    display: none;
    list-style: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-dark-brown);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    margin-top: var(--spacing-sm);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm) 0;
}

.nav-list.open {
    display: flex;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.5),
        1px 1px 2px rgba(0, 0, 0, 0.9);
    transition: background-color 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

/* Small mobile devices (320px and below) */
@media (max-width: 320px) {
    .nav-list {
        min-width: 180px;
        right: -10px;
    }
    
    .nav-list a {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }
}

.nav-list a:hover {
    background-color: rgba(139, 69, 19, 0.3);
    color: var(--color-yellow);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(255, 215, 0, 0.6),
        1px 1px 2px rgba(0, 0, 0, 1);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-list {
        display: flex;
        flex-direction: row;
        position: static;
        background: transparent;
        box-shadow: none;
        margin: 0;
        padding: 0;
        min-width: auto;
    }
    
    .nav-list a {
        padding: var(--spacing-sm) var(--spacing-md);
        margin-left: var(--spacing-sm);
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--color-white);
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.8),
            0 0 8px rgba(0, 0, 0, 0.5),
            1px 1px 2px rgba(0, 0, 0, 0.9);
    }
    
    .nav-list a:hover {
        background-color: rgba(139, 69, 19, 0.3);
        color: var(--color-yellow);
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.9),
            0 0 12px rgba(255, 215, 0, 0.6),
            1px 1px 2px rgba(0, 0, 0, 1);
    }
}

/* ============================================
   Hero Section / Overview
   ============================================ */
.hero-section {
    background: 
        /* Flame gradient layers */
        radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 80%, rgba(255, 140, 0, 0.9) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 215, 0, 0.7) 0%, transparent 40%),
        /* Base gradient */
        linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    animation: flameMorph 12s ease-in-out infinite;
    width: 100%;
    margin: 0;
    /* Box shadow at bottom for depth */
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

/* Ensure hero section container allows full width at small breakpoints */
.hero-section .container {
    width: 100%;
    max-width: 100%;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 500px) {
    .hero-section .container {
        padding: 0 var(--spacing-md);
    }
}

@media (min-width: 768px) {
    .hero-section .container {
        max-width: var(--container-max-width);
        padding: 0 var(--spacing-lg);
    }
}

/* Smooth morphing flame animation with many keyframes */
@keyframes flameMorph {
    0% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.8) 0%, transparent 50%),
            radial-gradient(ellipse at 30% 80%, rgba(255, 140, 0, 0.9) 0%, transparent 40%),
            radial-gradient(ellipse at 70% 80%, rgba(255, 215, 0, 0.7) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    5% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.82) 0%, transparent 50%),
            radial-gradient(ellipse at 31% 79%, rgba(255, 140, 0, 0.91) 0%, transparent 40%),
            radial-gradient(ellipse at 69% 79%, rgba(255, 215, 0, 0.72) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    10% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.85) 0%, transparent 50%),
            radial-gradient(ellipse at 32% 78%, rgba(255, 140, 0, 0.92) 0%, transparent 40%),
            radial-gradient(ellipse at 68% 78%, rgba(255, 215, 0, 0.75) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    15% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.88) 0%, transparent 50%),
            radial-gradient(ellipse at 33% 77%, rgba(255, 140, 0, 0.93) 0%, transparent 40%),
            radial-gradient(ellipse at 67% 77%, rgba(255, 215, 0, 0.78) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    20% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.9) 0%, transparent 50%),
            radial-gradient(ellipse at 34% 76%, rgba(255, 140, 0, 0.94) 0%, transparent 40%),
            radial-gradient(ellipse at 66% 76%, rgba(255, 215, 0, 0.8) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    25% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.88) 0%, transparent 50%),
            radial-gradient(ellipse at 35% 75%, rgba(255, 140, 0, 0.95) 0%, transparent 40%),
            radial-gradient(ellipse at 65% 75%, rgba(255, 215, 0, 0.82) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    30% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.85) 0%, transparent 50%),
            radial-gradient(ellipse at 34% 76%, rgba(255, 140, 0, 0.93) 0%, transparent 40%),
            radial-gradient(ellipse at 66% 76%, rgba(255, 215, 0, 0.8) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    35% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.82) 0%, transparent 50%),
            radial-gradient(ellipse at 33% 77%, rgba(255, 140, 0, 0.91) 0%, transparent 40%),
            radial-gradient(ellipse at 67% 77%, rgba(255, 215, 0, 0.78) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    40% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.8) 0%, transparent 50%),
            radial-gradient(ellipse at 32% 78%, rgba(255, 140, 0, 0.9) 0%, transparent 40%),
            radial-gradient(ellipse at 68% 78%, rgba(255, 215, 0, 0.75) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    45% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.78) 0%, transparent 50%),
            radial-gradient(ellipse at 31% 79%, rgba(255, 140, 0, 0.88) 0%, transparent 40%),
            radial-gradient(ellipse at 69% 79%, rgba(255, 215, 0, 0.73) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    50% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.75) 0%, transparent 50%),
            radial-gradient(ellipse at 30% 80%, rgba(255, 140, 0, 0.85) 0%, transparent 40%),
            radial-gradient(ellipse at 70% 80%, rgba(255, 215, 0, 0.7) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    55% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.78) 0%, transparent 50%),
            radial-gradient(ellipse at 29% 81%, rgba(255, 140, 0, 0.88) 0%, transparent 40%),
            radial-gradient(ellipse at 71% 81%, rgba(255, 215, 0, 0.73) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    60% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.82) 0%, transparent 50%),
            radial-gradient(ellipse at 28% 82%, rgba(255, 140, 0, 0.91) 0%, transparent 40%),
            radial-gradient(ellipse at 72% 82%, rgba(255, 215, 0, 0.76) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    65% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.85) 0%, transparent 50%),
            radial-gradient(ellipse at 27% 83%, rgba(255, 140, 0, 0.93) 0%, transparent 40%),
            radial-gradient(ellipse at 73% 83%, rgba(255, 215, 0, 0.79) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    70% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.88) 0%, transparent 50%),
            radial-gradient(ellipse at 26% 84%, rgba(255, 140, 0, 0.94) 0%, transparent 40%),
            radial-gradient(ellipse at 74% 84%, rgba(255, 215, 0, 0.82) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    75% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.9) 0%, transparent 50%),
            radial-gradient(ellipse at 25% 85%, rgba(255, 140, 0, 0.95) 0%, transparent 40%),
            radial-gradient(ellipse at 75% 85%, rgba(255, 215, 0, 0.85) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    80% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.88) 0%, transparent 50%),
            radial-gradient(ellipse at 26% 84%, rgba(255, 140, 0, 0.93) 0%, transparent 40%),
            radial-gradient(ellipse at 74% 84%, rgba(255, 215, 0, 0.82) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    85% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.85) 0%, transparent 50%),
            radial-gradient(ellipse at 27% 83%, rgba(255, 140, 0, 0.91) 0%, transparent 40%),
            radial-gradient(ellipse at 73% 83%, rgba(255, 215, 0, 0.79) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    90% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.82) 0%, transparent 50%),
            radial-gradient(ellipse at 28% 82%, rgba(255, 140, 0, 0.88) 0%, transparent 40%),
            radial-gradient(ellipse at 72% 82%, rgba(255, 215, 0, 0.76) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    95% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.8) 0%, transparent 50%),
            radial-gradient(ellipse at 29% 81%, rgba(255, 140, 0, 0.9) 0%, transparent 40%),
            radial-gradient(ellipse at 71% 81%, rgba(255, 215, 0, 0.73) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
    100% {
        background: 
            radial-gradient(ellipse at bottom, rgba(255, 69, 0, 0.8) 0%, transparent 50%),
            radial-gradient(ellipse at 30% 80%, rgba(255, 140, 0, 0.9) 0%, transparent 40%),
            radial-gradient(ellipse at 70% 80%, rgba(255, 215, 0, 0.7) 0%, transparent 40%),
            linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 30%, #FF4500 60%, var(--color-red-brown) 100%);
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Flame wisps */
        radial-gradient(ellipse 200px 300px at 20% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 150px 250px at 80% 100%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 180px 280px at 50% 100%, rgba(255, 200, 0, 0.15) 0%, transparent 50%);
    opacity: 0.6;
    pointer-events: none;
    animation: flameWisp 10s ease-in-out infinite;
}

/* Smooth flame wisp animation */
@keyframes flameWisp {
    0%, 100% {
        transform: translateX(0) scaleY(1);
        opacity: 0.6;
    }
    10% {
        transform: translateX(-3px) scaleY(1.01);
        opacity: 0.62;
    }
    20% {
        transform: translateX(-6px) scaleY(1.02);
        opacity: 0.65;
    }
    30% {
        transform: translateX(-8px) scaleY(1.03);
        opacity: 0.68;
    }
    40% {
        transform: translateX(-10px) scaleY(1.04);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-8px) scaleY(1.03);
        opacity: 0.68;
    }
    60% {
        transform: translateX(-4px) scaleY(1.01);
        opacity: 0.65;
    }
    70% {
        transform: translateX(2px) scaleY(0.99);
        opacity: 0.62;
    }
    80% {
        transform: translateX(6px) scaleY(0.98);
        opacity: 0.58;
    }
    90% {
        transform: translateX(8px) scaleY(0.97);
        opacity: 0.55;
    }
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Smoke/heat distortion effect */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.hero-logo {
    display: none; /* Hidden on small screens by default */
    max-width: 250px;
    width: 100%;
    height: auto;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
}

.hero-text {
    width: 100%;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-family: var(--font-display);
    color: var(--color-white);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    background-color: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: block;
}

.feature-item span:last-child {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Show logo next to text on larger screens */
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-xl);
        text-align: left;
    }
    
    .hero-logo {
        display: block;
        flex-shrink: 0;
    }
    
    .hero-text {
        text-align: left;
        flex: 1;
    }
    
    .hero-description {
        margin-left: 0;
    }
    
    .hero-features {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-logo {
        display: none; /* Ensure logo is hidden on small screens */
    }
}

/* Small mobile devices (320px and below) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0 var(--spacing-sm);
    }
    
    .hero-features {
        gap: var(--spacing-sm);
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        min-width: 100px;
        padding: var(--spacing-sm);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    text-align: center;
    color: var(--color-dark-brown);
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-yellow), var(--color-orange));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray-dark);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
}

/* Small mobile devices (320px and below) */
@media (max-width: 320px) {
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        padding-bottom: var(--spacing-sm);
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }
}

/* ============================================
   Menu Section
   ============================================ */
.menu-section {
    background-color: var(--color-gray-light);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.menu-category {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--color-gray-medium);
}

.category-title {
    color: var(--color-red-brown);
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--color-orange);
    padding-bottom: var(--spacing-sm);
}

/* Small mobile devices (320px and below) */
@media (max-width: 320px) {
    .menu-category {
        padding: var(--spacing-md);
    }
    
    .category-title {
        font-size: 1.25rem;
        letter-spacing: 0.5px;
    }
    
    .item-name {
        font-size: 1rem;
    }
    
    .item-price {
        font-size: 1rem;
    }
    
    .item-description {
        font-size: 0.85rem;
    }
}

.menu-items {
    list-style: none;
}

.menu-item {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-gray-medium);
}

.menu-item:last-child {
    border-bottom: none;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--spacing-xs);
}

.item-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-dark-brown);
    font-family: var(--font-heading);
}

.item-price {
    font-weight: 700;
    color: var(--color-orange);
    font-size: 1.1rem;
}

.item-description {
    font-size: 0.95rem;
    color: var(--color-gray-dark);
    line-height: 1.5;
    margin: 0;
}

.menu-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-gray-dark);
    font-style: italic;
    margin-top: var(--spacing-lg);
}

/* ============================================
   Events Section
   ============================================ */
.events-section {
    background-color: var(--color-white);
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.event-card {
    background-color: var(--color-gray-light);
    border: 2px solid var(--color-gray-medium);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Small mobile devices (320px and below) */
@media (max-width: 320px) {
    .event-card {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .event-date {
        min-width: 60px;
    }
    
    .date-day {
        font-size: 1.5rem;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .event-location,
    .event-time,
    .event-description {
        font-size: 0.85rem;
    }
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-orange);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    background: linear-gradient(135deg, var(--color-yellow), var(--color-orange));
    color: var(--color-white);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    font-weight: 700;
}

.date-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-day {
    font-size: 2rem;
    line-height: 1;
}

.event-details {
    flex: 1;
}

.event-title {
    color: var(--color-dark-brown);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.event-location,
.event-time {
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.event-description {
    color: var(--color-gray-dark);
    margin-top: var(--spacing-sm);
    line-height: 1.6;
}

.events-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-gray-dark);
    font-style: italic;
    margin-top: var(--spacing-lg);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    background-color: var(--color-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background-color: var(--color-gray-light);
    border: 2px solid var(--color-gray-medium);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-orange);
}

.faq-question {
    color: var(--color-red-brown);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.faq-answer {
    color: var(--color-gray-dark);
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 0;
}

.faq-answer a {
    color: var(--color-orange);
    font-weight: 600;
    text-decoration: underline;
}

.faq-answer a:hover {
    color: var(--color-red-brown);
}

/* Small mobile devices (320px and below) */
@media (max-width: 320px) {
    .faq-item {
        padding: var(--spacing-md);
    }
    
    .faq-question {
        font-size: 1.1rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
    }
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background-color: var(--color-gray-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 2fr;
    }
}

/* Small mobile devices (320px and below) */
@media (max-width: 320px) {
    .contact-content {
        width: 100%;
        max-width: 100%;
        gap: var(--spacing-lg);
        padding: 0;
        margin: 0;
    }
}

.contact-info h3 {
    color: var(--color-red-brown);
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-sm);
}

.contact-details {
    margin-top: var(--spacing-lg);
}

.contact-details p {
    margin-bottom: var(--spacing-sm);
}

.contact-details a {
    color: var(--color-orange);
    font-weight: 600;
}

.contact-form {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--color-gray-medium);
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* Small mobile devices (320px and below) */
@media (max-width: 320px) {
    /* Contact section uses same container padding as events section */
    .contact-section .container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        /* Inherits padding: 0 var(--spacing-sm) from base .container rule */
    }
    
    .contact-content {
        width: 100%;
        max-width: 100%;
        gap: var(--spacing-lg);
        padding: 0;
        margin: 0;
    }
    
    .contact-form {
        padding: var(--spacing-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        /* Matches event card spacing - same container padding and card padding */
    }
    
    .contact-info {
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-info h3 {
        font-size: 1.25rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .form-group {
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: var(--spacing-xs);
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .submit-btn {
        font-size: 1rem;
        padding: var(--spacing-sm);
        width: 100%;
        box-sizing: border-box;
    }
    
    #recaptcha-container {
        width: 100%;
        overflow: hidden;
    }
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-dark-brown);
}

.required {
    color: var(--color-orange);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--color-gray-medium);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-orange);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-messages {
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    display: none;
}

.form-messages.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#recaptcha-container {
    margin: var(--spacing-md) 0;
}

.submit-btn {
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-orange), var(--color-red-brown));
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: var(--color-dark-brown);
    background-image: 
        /* Dark ashy brown overlay - matches header */
        linear-gradient(to bottom, rgba(80, 60, 50, 0.6), rgba(70, 50, 40, 0.65)),
        /* Additional ashy brown tint - muted, less saturated */
        linear-gradient(135deg, rgba(90, 70, 60, 0.5), rgba(80, 60, 50, 0.55)),
        /* Vecteezy weathered wood texture - matches header */
        url('../images/vecteezy_vector-weathered-wood-texture-grunge-background_13462851.jpg');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    /* Use multiply to keep cracks dark, and overlay to apply ashy brown color with better visibility */
    background-blend-mode: multiply, overlay, normal;
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
    text-align: center;
    position: relative;
    /* Border at top to match header */
    border-top: 3px solid rgba(0, 0, 0, 0.5);
    /* Box shadow for depth - similar to hero section */
    box-shadow: 
        0 -12px 24px rgba(0, 0, 0, 0.4),
        0 -6px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Add a subtle overlay for text readability without hiding the texture */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.15));
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    max-width: 150px;
}

.footer-info p {
    margin-bottom: var(--spacing-xs);
    color: var(--color-white);
    font-size: 1rem;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.5),
        1px 1px 2px rgba(0, 0, 0, 0.9);
}

.footer-info p:last-child {
    color: var(--color-yellow);
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(255, 215, 0, 0.6),
        1px 1px 2px rgba(0, 0, 0, 1);
}

.footer-social {
    margin-top: var(--spacing-md);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.5);
}

.footer-social a:hover {
    color: var(--color-yellow);
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-attribution {
    font-size: 0.8rem;
    color: var(--color-gray-medium);
    margin-top: var(--spacing-lg);
}

.footer-attribution a {
    color: var(--color-gray-medium);
    text-decoration: underline;
}
/* Small mobile devices (320px and below) */
@media (max-width: 320px) {
    .site-footer {
        padding: var(--spacing-md) 0;
    }
    
    .footer-logo-img {
        height: 40px;
        max-width: 120px;
    }
    
    .footer-info p {
        font-size: 0.85rem;
    }
    
    .footer-info p:last-child {
        font-size: 0.95rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .contact-form,
    .mobile-menu-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    section {
        page-break-inside: avoid;
    }
}
