/*
* NINEBARNYARDOWLS Brewery Styles - EPIC WITH FULL-PAGE WEBGL
* Fermentation-like WebGL animation flows through all sections
*/
:root {
    /* Color Palette */
    --deep-teal: #0f2027;
    --accent-red: #E64833;
    --brown: #543c29;
    --muted-teal: #90AEAD;
    --warm-pale: #FBE9D0;
    
    /* Typography */
    --font-heading: 'Oxanium', 'Helvetica Neue', Arial, sans-serif;
    --font-subheading: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Space Mono', 'Courier New', monospace;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
}

/* =========================================== */
/* FULL-PAGE WEBGL SHADER BACKGROUND */
/* Flows through all sections EXCEPT hero (which has static image) */
/* =========================================== */
#pageShader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: none; /* Hidden by default, shown when WebGL initializes */
}

/* =========================================== */
/* BASE & RESET STYLES */
/* =========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--warm-pale);
    background-color: var(--deep-teal); /* Fallback if WebGL fails */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

/* =========================================== */
/* RESPONSIVE DESIGN - COMPREHENSIVE MOBILE OPTIMIZATION */
/* =========================================== */
/* Tablet and below (768px) */
@media (max-width: 768px) {
    /* Typography scaling */
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
    
    /* Container adjustments */
    .container {
        padding: 0 var(--space-md);
    }
    
    /* Section spacing */
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: var(--space-lg);
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: var(--space-lg);
    }
    
    /* Hero section */
    #hero {
        min-height: 80vh;
        padding: var(--space-2xl) var(--space-md);
        margin-top: 120px;
    }
    
    .hero-content {
        padding: 0 var(--space-md);
    }
    
    .hero-tagline {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: var(--space-md);
    }
    
    .hero-subtitle {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        margin-bottom: var(--space-lg);
    }
    
    /* About section - stack layout */
    .about-content {
        flex-direction: column;
        gap: var(--space-2xl);
    }
    
    .story-image-container {
        max-width: 100%;
        width: 100%;
    }
    
    .read-more-container {
        text-align: center;
    }
    
    /* Coolship stats - 2 column grid */
    .coolship-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        margin: var(--space-2xl) 0 var(--space-3xl);
    }
    
    .stat-card {
        padding: var(--space-lg);
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--space-sm);
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Coolship process - stack layout */
    .coolship-process {
        flex-direction: column;
        gap: var(--space-2xl);
    }
    
    .coolship-image-container,
    .process-info {
        width: 100%;
    }
    
    /* Beers grid - 1 column */
    .beers-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .beer-image {
        height: 200px;
        padding: var(--space-md);
    }
    
    .beer-content {
        padding: var(--space-md);
    }
    
    /* Contact section - stack layout */
    .contact-container {
        flex-direction: column;
        gap: var(--space-2xl);
    }
    
    .contact-form-container,
    .contact-info {
        width: 100%;
        max-width: 100%;
    }
    
    /* Form adjustments */
    .form-row {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: var(--space-sm);
        font-size: 0.95rem;
    }
    
    .submit-contact-btn {
        width: 100%;
        align-self: stretch;
    }
    
    /* CTA buttons full width on mobile */
    .cta-button {
        padding: var(--space-sm) var(--space-xl);
        font-size: 1rem;
    }
    
    .view-all-beers {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.9rem;
    }
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
    /* Further typography reduction */
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.25rem; }
    
    /* Tighter spacing */
    .container {
        padding: 0 var(--space-sm);
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 70vh;
        padding: var(--space-xl) var(--space-sm);
    }
    
    .hero-content {
        padding: 0 var(--space-sm);
    }
    
    .hero-tagline {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
    }
    
    /* Coolship stats - still 2 columns but tighter */
    .coolship-stats {
        gap: var(--space-sm);
        margin: var(--space-xl) 0 var(--space-2xl);
    }
    
    .stat-card {
        padding: var(--space-md);
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-value {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    /* Beer cards more compact */
    .beer-image {
        height: 180px;
        padding: var(--space-sm);
    }
    
    .beer-content {
        padding: var(--space-sm) var(--space-md);
    }
    
    .beer-content h3 {
        font-size: 1.2rem;
    }
    
    .beer-description {
        font-size: 0.85rem;
    }
    
    /* Glass cards tighter padding */
    .glass-card,
    .glass-info-card {
        padding: var(--space-lg);
    }
    
    /* Form elements */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .cta-button {
        padding: 0.75rem var(--space-lg);
        font-size: 0.95rem;
        min-height: 44px;
    }
}

/* Extra small devices (375px and below) - CENTERED TEXT */
@media (max-width: 375px) {
    /* Ultra-compact for smallest phones */
    .section {
        padding: var(--space-lg) 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: var(--space-md);
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Hero ultra-compact */
    .hero-tagline {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: var(--space-sm);
    }
    
    .hero-subtitle {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        margin-bottom: var(--space-md);
    }
    
    /* Coolship stats single column on very small screens */
    .coolship-stats {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .stat-card {
        padding: var(--space-md);
        flex-direction: column; /* Changed from row to column for better centering */
        text-align: center; /* Centered text */
        align-items: center; /* Center items vertically */
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto var(--space-md); /* Center icon and add bottom margin */
        flex-shrink: 0;
    }
    
    .stat-content {
        text-align: center; /* Centered text */
        width: 100%; /* Take full width */
    }
    
    .stat-value {
        font-size: 1.5rem;
        text-align: center; /* Centered text */
        margin-bottom: 0.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        text-align: center; /* Centered text */
    }
    
    /* Beer cards ultra compact */
    .beer-image {
        height: 160px;
    }
    
    .beer-content h3 {
        font-size: 1.1rem;
    }
    
    /* Glass cards minimal padding */
    .glass-card,
    .glass-info-card {
        padding: var(--space-md);
        border-radius: 12px;
    }
    
    /* Opening statement */
    .opening-statement {
        font-size: 1.15rem;
    }
}

/* Ultra-small screens (320px and below) - iPhone SE, Galaxy Fold */
@media (max-width: 320px) {
    /* Even more compact */
    .container {
        padding: 0 var(--space-xs);
    }
    
    .section {
        padding: var(--space-md) 0;
    }
    
    .section-title {
        font-size: 1.35rem;
        margin-bottom: var(--space-sm);
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Hero for tiny screens */
    .hero-tagline {
        font-size: clamp(1.35rem, 5.5vw, 1.75rem);
        margin-bottom: var(--space-xs);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 2.8vw, 1rem);
        margin-bottom: var(--space-sm);
    }
    
    /* Stat cards - ultra compact horizontal layout */
    .coolship-stats {
        gap: 0.375rem; /* 6px */
        margin: var(--space-lg) 0 var(--space-xl);
    }
    
    .stat-card {
        padding: 0.625rem; /* 10px */
        flex-direction: column; /* Changed from row to column for better centering */
        text-align: center; /* Centered text */
        align-items: center; /* Center items vertically */
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 0.375rem; /* Center icon and add bottom margin */
    }
    
    .stat-content {
        text-align: center; /* Centered text */
    }
    
    .stat-value {
        font-size: 1.25rem;
        line-height: 1.1;
        margin-bottom: 0.125rem;
        text-align: center; /* Centered text */
    }
    
    .stat-label {
        font-size: 0.7rem;
        line-height: 1.2;
        text-align: center; /* Centered text */
    }
    
    /* Beer cards even more compact */
    .beer-image {
        height: 140px;
        padding: var(--space-xs);
    }
    
    .beer-content {
        padding: 0.625rem var(--space-sm);
    }
    
    .beer-content h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .beer-description {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    /* Glass cards very minimal */
    .glass-card,
    .glass-info-card {
        padding: var(--space-sm);
        border-radius: 10px;
    }
    
    .opening-statement {
        font-size: 1.05rem;
        line-height: 1.4;
        margin-bottom: var(--space-md);
    }
    
    /* CTA buttons */
    .cta-button {
        padding: 0.625rem var(--space-md);
        font-size: 0.875rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* Extreme edge case - 275px screens (Galaxy Fold when folded) */
@media (max-width: 275px) {
    .container {
        padding: 0 0.375rem; /* 6px */
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    /* Stat cards - minimal spacing */
    .coolship-stats {
        gap: 0.25rem; /* 4px */
    }
    
    .stat-card {
        padding: 0.5rem; /* 8px */
        flex-direction: column; /* Changed from row to column for better centering */
        text-align: center; /* Centered text */
        align-items: center; /* Center items vertically */
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        margin: 0 auto 0.25rem; /* Center icon and add bottom margin */
    }
    
    .stat-content {
        text-align: center; /* Centered text */
    }
    
    .stat-value {
        font-size: 1.1rem;
        margin-bottom: 0.125rem;
        text-align: center; /* Centered text */
    }
    
    .stat-label {
        font-size: 0.65rem;
        line-height: 1.1;
        text-align: center; /* Centered text */
    }
    
    /* Beer cards minimal */
    .beer-image {
        height: 120px;
    }
    
    .beer-content h3 {
        font-size: 0.95rem;
    }
    
    /* Glass cards ultra minimal */
    .glass-card,
    .glass-info-card {
        padding: 0.625rem;
    }
}

/* Landscape orientation on small devices */
@media (max-width: 768px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: var(--space-md);
    }
}

/* Ultra-wide mobile (iPhone 14 Pro Max, etc.) */
@media (min-width: 390px) and (max-width: 480px) {
    .coolship-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure text remains readable on all devices */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    p {
        line-height: 1.7;
    }
    
    /* Ensure touch targets are minimum 44x44px */
    button,
    .cta-button,
    .nav-link,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better tap targets for links */
    a {
        padding: 0.25rem 0;
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Sections - TRANSPARENT to let WebGL show through */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-xl);
    color: var(--warm-pale);
    position: relative;
    font-family: var(--font-subheading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-red);
    margin: var(--space-sm) auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    color: var(--warm-pale);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* =========================================== */
/* SCROLL-TRIGGERED ANIMATIONS */
/* =========================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================== */
/* GLASSMORPHISM UTILITIES */
/* =========================================== */
.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: var(--space-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: all var(--transition-medium);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.glass-info-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: var(--space-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* =========================================== */
/* HEADER & NAVIGATION - FIXED NO SHRINK */
/* =========================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(10px);
    color: var(--warm-pale);
    z-index: 1000;
    height: 120px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: none;
}

/* Nav container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 var(--space-lg);
    position: relative;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--space-md);
    }
}

/* Logo & Title Container - CENTERED */
.title-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: auto;
    pointer-events: none;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Logo background - static in header */
.logo-background {
    position: absolute;
    width: 160px;
    height: 160px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 0.85;
}

.brewery-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .logo-background {
        width: 120px;
        height: 120px;
    }
}

/* Brewery title */
.brewery-title {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 2;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    padding-top: 15px;
}

.brewery-title-logo {
    height: 140px;
    width: auto;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
    .brewery-title-logo {
        height: 110px;
    }
    
    .brewery-title {
        font-size: 0.75rem;
    }
}

/* Hamburger Menu - RIGHT SIDE - FIXED */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: none;
    width: 32px;
    height: 32px; /* Increased from 26px to 32px to prevent clipping */
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    margin-left: auto;
    overflow: visible; /* Ensure rotated spans aren't clipped */
}

.menu-toggle:hover span {
    background-color: var(--muted-teal);
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--warm-pale);
    border-radius: 1.5px;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

/* Hamburger to X animation - FIXED for all screen sizes */
.menu-toggle.active span:nth-child(1) {
    /* Move down to center (16px) and rotate */
    transform: translateY(14.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    /* Hide middle line */
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    /* Move up to center (16px) and rotate */
    transform: translateY(-14.5px) rotate(-45deg);
}

/* Mobile-specific hamburger X transforms (768px and below) */
@media (max-width: 768px) {
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(21px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-20px) rotate(-45deg);
    }
}

/* Navigation Menu - SLIDE-OUT DRAWER */
.nav-menu-container {
    /* Container is just a wrapper */
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: rgba(15, 32, 39, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 140px;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    gap: 0;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    list-style: none;
    margin: 0;
}

.nav-menu.active {
    right: 0;
}

.nav-link {
    color: var(--warm-pale);
    font-weight: 600;
    padding: var(--space-md) 0;
    display: block;
    font-size: 1.125rem;
    transition: all var(--transition-fast);
    text-decoration: none;
    font-family: var(--font-body);
    position: relative;
    border-bottom: 1px solid rgba(251, 233, 208, 0.15);
    width: 100%;
}

.nav-link:last-child {
    border-bottom: none;
}

.nav-link:hover {
    color: var(--muted-teal);
    padding-left: var(--space-sm);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 30px;
}

/* =========================================== */
/* HERO SECTION - STATIC BACKGROUND IMAGE */
/* Note: Update the image path if needed (currently: ../img/Gladstone.jpg) */
/* =========================================== */
#hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 120px;
    /* STATIC background image - no WebGL here */
    background: linear-gradient(rgba(15, 32, 39, 0.75), rgba(28, 56, 67, 0.70)),
                url('../img/Gladstone.jpg') center/cover no-repeat fixed;
}

/* Enhanced overlay for readability with static image */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 39, 0.15);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    color: var(--warm-pale);
    z-index: 2;
    max-width: 900px;
    padding: 0 var(--space-lg);
    position: relative;
}

.hero-tagline {
    font-family: var(--font-subheading);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: var(--space-lg);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    line-height: 1;
    letter-spacing: 0.02em;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: var(--font-subheading);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: var(--space-xl);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
    font-weight: 300;
    letter-spacing: 0.03em;
    opacity: 0.95;
}

/* CTA Button - Enhanced */
.cta-button {
    background-color: var(--accent-red);
    color: var(--warm-pale);
    padding: var(--space-md) var(--space-2xl);
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--accent-red);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(230, 72, 51, 0.4);
    transition: all var(--transition-medium);
    font-family: var(--font-subheading);
    text-decoration: none;
    display: inline-block;
    min-height: 50px;
    text-align: center;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--warm-pale);
    border-color: var(--warm-pale);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* =========================================== */
/* ABOUT SECTION - SEMI-TRANSPARENT */
/* =========================================== */
#about {
    background: transparent;
    position: relative;
}

/* Subtle dark overlay for contrast */
#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 39, 0.3);
    z-index: 0;
    pointer-events: none;
}

#about .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
    align-items: center;
}

@media (min-width: 769px) {
    .about-content {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-4xl);
    }
}

.about-text-wrapper {
    flex: 1;
}

.opening-statement {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--warm-pale);
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}

.about-text-wrapper p {
    margin-bottom: var(--space-lg);
    line-height: 1.8;
    color: var(--warm-pale);
}

.read-more-container {
    margin-top: var(--space-xl);
    text-align: center;
}

/* Enhanced Story Image Container */
.story-image-container {
    flex: 1;
    width: 100%;
}

@media (min-width: 769px) {
    .story-image-container {
        max-width: 500px;
    }
    
    .read-more-container {
        text-align: left;
    }
}

.story-image-container .image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.story-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.story-image-container .image-wrapper:hover .story-image {
    transform: scale(1.05);
}

.story-image-container .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(15, 32, 39, 0.2) 100%
    );
    pointer-events: none;
}

/* =========================================== */
/* COOLSHIP SECTION - SEMI-TRANSPARENT */
/* =========================================== */
#coolship.epic-section {
    background: transparent;
    color: var(--warm-pale);
    position: relative;
    overflow: hidden;
}

/* Darker overlay for coolship section */
#coolship::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 39, 0.4);
    z-index: 0;
    pointer-events: none;
}

#coolship .container {
    position: relative;
    z-index: 1;
}

/* Coolship Stat Cards */
.coolship-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-3xl) 0 var(--space-4xl);
}

/* Override auto-fit for specific breakpoints */
@media (max-width: 768px) {
    .coolship-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 375px) {
    .coolship-stats {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-medium);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    min-width: 0; /* Allow flex items to shrink below content size */
    overflow: hidden; /* Prevent content overflow */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--warm-pale);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Text content wrapper */
.stat-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-medium), opacity var(--transition-medium);
    opacity: 0;
    animation: fadeInIcon 0.6s ease forwards;
}

@keyframes fadeInIcon {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-card:hover .stat-icon img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .stat-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--space-sm);
    }
}

.stat-value {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warm-pale);
    display: block;
    margin-bottom: var(--space-xs);
    line-height: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Coolship Process Layout */
.coolship-process {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

@media (min-width: 769px) {
    .coolship-process {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-4xl);
    }
}

/* Enhanced Coolship Image Container */
.coolship-image-container {
    flex: 1;
    width: 100%;
}

.coolship-image-container .image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.coolship-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.coolship-image-container .image-wrapper:hover .coolship-image {
    transform: scale(1.05);
}

.coolship-image-container .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(15, 32, 39, 0.3) 100%
    );
    pointer-events: none;
}

/* Process Info Card */
.process-info {
    flex: 1;
}

.glass-info-card h3 {
    font-family: var(--font-subheading);
    font-size: 1.8rem;
    color: var(--warm-pale);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.glass-info-card p {
    margin-bottom: var(--space-lg);
    line-height: 1.8;
    color: var(--warm-pale);
    opacity: 0.95;
}

/* =========================================== */
/* BEERS SECTION - TRANSPARENT */
/* =========================================== */
#beers {
    position: relative;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-4xl) 0;
    margin: 0;
}

/* Medium overlay for beers section */
#beers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 39, 0.35);
    z-index: 0;
    pointer-events: none;
}

/* Beer grid positioned above overlay */
.beers-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
    .beers-container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    .beers-container {
        padding: 0 var(--space-sm);
    }
}

.beers-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.beers-title {
    font-family: var(--font-subheading);
    color: var(--warm-pale);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.beers-title::after {
    background-color: var(--accent-red);
    width: 80px;
}

.beers-subtitle {
    color: var(--warm-pale);
    opacity: 0.95;
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}

/* View All Beers button */
.view-all-beers {
    background-color: var(--accent-red);
    color: var(--warm-pale);
    padding: var(--space-md) var(--space-lg);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    min-height: 44px;
    border: 2px solid var(--accent-red);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-subheading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
}

.view-all-beers:hover {
    background-color: transparent;
    border-color: var(--warm-pale);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Enhanced beer grid */
.beers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 640px) and (max-width: 1023px) {
    .beers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .beers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Enhanced Beer Card */
.beer-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: all var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.beer-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border-color: var(--muted-teal);
}

/* Beer Image */
.beer-image {
    height: 220px;
    background: linear-gradient(135deg,
        rgba(144, 174, 173, 0.15) 0%,
        rgba(36, 72, 85, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.beer-image img {
    max-height: 180px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    z-index: 1;
    transition: transform var(--transition-medium);
}

.beer-card:hover .beer-image img {
    transform: scale(1.08);
}

/* Beer Content */
.beer-content {
    padding: var(--space-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.beer-content h3 {
    color: var(--deep-teal);
    font-size: 1.35rem;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
    font-weight: 700;
    font-family: var(--font-subheading);
}

.beer-abv {
    color: var(--accent-red);
    font-weight: 700;
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

.beer-description {
    color: var(--brown);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    flex-grow: 1;
    line-height: 1.6;
}

/* Beer Features */
.beer-features {
    margin-bottom: var(--space-md);
}

.beer-features h4 {
    color: var(--deep-teal);
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
    opacity: 0.9;
    font-family: var(--font-subheading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.features-list li {
    color: var(--brown);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    background: rgba(36, 72, 85, 0.08);
    border-radius: 12px;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
}

.features-list li:hover {
    background: rgba(36, 72, 85, 0.15);
}

/* Beer Button */
.beer-button {
    align-self: stretch;
    margin-top: auto;
}

.beer-button .cta-button {
    width: 100%;
    min-height: 48px;
    background-color: var(--accent-red);
    border: 2px solid var(--accent-red);
    font-size: 0.9rem;
    padding: var(--space-sm) var(--space-md);
    transition: all var(--transition-fast);
}

.beer-button .cta-button:hover {
    background-color: transparent;
    color: var(--accent-red);
    transform: translateY(-2px);
}

/* =========================================== */
/* CONTACT SECTION - SEMI-TRANSPARENT */
/* =========================================== */
#contact {
    background: transparent;
    color: var(--warm-pale);
    position: relative;
}

/* Dark overlay for contact */
#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 39, 0.45);
    z-index: 0;
    pointer-events: none;
}

#contact .container {
    position: relative;
    z-index: 1;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
    margin-top: var(--space-xl);
}

@media (min-width: 1024px) {
    .contact-container {
        flex-direction: row;
        gap: var(--space-4xl);
        align-items: flex-start;
    }
    
    .contact-form-container {
        flex: 2;
    }
    
    .contact-info {
        flex: 1;
        max-width: 400px;
    }
}

/* Contact Form Container with Glassmorphism */
.contact-form-container {
    flex: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Form Grid Layout */
.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .form-row {
        flex-direction: row;
        gap: var(--space-lg);
    }
    
    .form-row .form-group {
        flex: 1;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    color: var(--warm-pale);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.95;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--warm-pale);
    padding: var(--space-md);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-red);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(230, 72, 51, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(251, 233, 208, 0.5);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-group label {
    font-weight: normal;
    opacity: 0.85;
    cursor: pointer;
    font-size: 0.9rem;
}

.submit-contact-btn {
    background-color: var(--accent-red);
    color: var(--warm-pale);
    border: 2px solid var(--accent-red);
    padding: var(--space-md) var(--space-2xl);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    margin-top: var(--space-sm);
    align-self: flex-start;
    min-height: 50px;
    font-family: var(--font-subheading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.submit-contact-btn:hover {
    background-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Contact Info with Glassmorphism */
.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: var(--warm-pale);
    font-size: 1.6rem;
    margin-bottom: var(--space-xl);
    font-family: var(--font-subheading);
    position: relative;
    padding-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-red);
}

.contact-method {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(251, 233, 208, 0.15);
}

.contact-method:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-details h4 {
    color: var(--warm-pale);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    font-family: var(--font-subheading);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.contact-details h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details p {
    color: var(--warm-pale);
    margin-bottom: 0.25rem;
    opacity: 0.9;
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-note {
    opacity: 0.7;
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Contact Success Message */
.contact-success {
    text-align: center;
    padding: var(--space-3xl);
    background: rgba(36, 72, 85, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 2px solid var(--muted-teal);
    display: none;
}

.contact-success.show {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    font-size: 3.5rem;
    color: var(--accent-red);
    margin-bottom: var(--space-lg);
}

.contact-success h3 {
    color: var(--warm-pale);
    margin-bottom: var(--space-md);
    font-size: 1.75rem;
}

.contact-success p {
    color: var(--warm-pale);
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.new-message-btn {
    background-color: var(--muted-teal);
    color: var(--deep-teal);
    border: 2px solid var(--muted-teal);
    padding: var(--space-md) var(--space-xl);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all var(--transition-fast);
    min-height: 48px;
    font-family: var(--font-subheading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.new-message-btn:hover {
    background-color: var(--warm-pale);
    border-color: var(--warm-pale);
    transform: translateY(-2px);
}

/* =========================================== */
/* OWL EASTER EGG */
/* =========================================== */
.owl-easter-egg {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    cursor: pointer;
    width: 40px;
    height: 40px;
}

.owl-easter-egg:hover {
    opacity: 0.7;
}

.owl {
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
    user-select: none;
    animation: float 3s ease-in-out infinite;
    background-image: url('img/9BYO.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.owl:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Owl Game Modal - FIXED: Added missing styles and z-index fix */
.owl-game {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Ensure it's above everything */
    backdrop-filter: blur(5px);
}

.owl-game.active {
    display: flex;
}

.game-content {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border: 3px solid #f4a261;
    border-radius: 20px;
    padding: var(--space-xl);
    max-width: 800px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.game-content h2 {
    color: #f4a261;
    margin-bottom: var(--space-md);
    font-size: 2rem;
    font-family: var(--font-heading);
}

.game-score {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    color: #e8dcc4;
    font-family: var(--font-body);
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.game-canvas {
    background: #2c3e50;
    border: 3px solid #f4a261;
    border-radius: 10px;
    display: block;
    margin: 0 auto var(--space-md);
    max-width: 100%;
    width: 600px;
    height: 400px;
}

.game-controls {
    color: #e8dcc4;
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    font-family: var(--font-body);
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-sm);
    border-radius: 8px;
}

.close-game {
    background: #f4a261;
    color: #1a1a2e;
    border: none;
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    margin-top: var(--space-md);
}

.close-game:hover {
    background: #e8dcc4;
    transform: scale(1.05);
}

/* Game running state - prevent scrolling */
body.game-running {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* =========================================== */
/* FOOTER - SEMI-TRANSPARENT */
/* =========================================== */
.footer {
    background: rgba(15, 32, 39, 0.85);
    backdrop-filter: blur(10px);
    color: var(--warm-pale);
    padding: var(--space-3xl) 0 var(--space-xl);
    text-align: center;
    position: relative;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer p {
    margin-bottom: var(--space-xs);
    opacity: 0.85;
    line-height: 1.6;
}

.footer p:last-child {
    margin-bottom: 0;
}

.design-credit {
    margin-top: var(--space-xl);
    opacity: 0.6;
    font-size: 0.875rem;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.design-credit a {
    color: var(--warm-pale);
    text-decoration: none;
    transition: opacity var(--transition-fast);
    border-bottom: 1px dotted var(--warm-pale);
}

.design-credit a:hover {
    opacity: 0.9;
    border-bottom-style: solid;
}

/* =========================================== */
/* SCROLL TO TOP */
/* =========================================== */
.scroll-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 54px;
    height: 54px;
    background-color: var(--accent-red);
    color: var(--warm-pale);
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: transparent;
    border-color: var(--accent-red);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 30px rgba(230, 72, 51, 0.5);
}

/* =========================================== */
/* ERROR MESSAGES */
/* =========================================== */
.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: var(--space-xs);
    display: block;
}

/* =========================================== */
/* IMAGE FALLBACK */
/* =========================================== */
.image-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--warm-pale);
    font-size: 1.5rem;
    font-weight: 600;
    display: none;
}

/* =========================================== */
/* REDUCED MOTION SUPPORT */
/* =========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .owl,
    .beer-card,
    .cta-button,
    .scroll-to-top,
    .menu-toggle span,
    .story-image,
    .coolship-image {
        animation: none !important;
        transition: none !important;
    }
    
    .beer-card:hover,
    .scroll-to-top:hover,
    .cta-button:hover,
    .story-image-container .image-wrapper:hover .story-image,
    .coolship-image-container .image-wrapper:hover .coolship-image {
        transform: none !important;
    }
    
    .menu-toggle.active span {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* =============================================================
   HEADER & FOOTER STYLES
   Originally in inline <style> blocks in includes/header.php
   and includes/footer.php. Moved here so every page benefits
   automatically without needing individual <link> tags.
   ============================================================= */

/* ---------------------------------------------------------------
   FROM: includes/header.php
   --------------------------------------------------------------- */
/* ===== BRAND WRAPPER ===== */
.logo-link {
    text-decoration: none;
    display: inline-block;
    padding-top: 15px; /* Add headroom above logo */
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.brand-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    pointer-events: auto; /* Ensure clicks work */
}

/* ===== TITLE TEXT (FRONT) ===== */
.title-text {
    height: 125px; /* Slightly increased */
    width: auto;
    display: block;
    position: relative;
    z-index: 2;
}

/* ===== VENN DIAGRAM (BACKGROUND) ===== */
.venn-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px; /* Increased size */
    height: 150px;
    z-index: 1;
}

.venn-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease-in-out;
}

.venn-default {
    opacity: 1;
}

.venn-alt {
    opacity: 0;
}

/* ===== HOVER EFFECT ===== */
.logo-link {
    cursor: pointer;
}

.logo-link:hover .venn-default {
    opacity: 0;
}

.logo-link:hover .venn-alt {
    opacity: 1;
}

.logo-link:hover .brand-wrapper {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* ===== CLICK ANIMATION ===== */
.brand-wrapper.clicking {
    animation: brandPulse 0.3s ease;
}

@keyframes brandPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.96); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .title-text {
        height: 100px;
    }
    
    .venn-background {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 480px) {
    .title-text {
        height: 80px;
    }
    
    .venn-background {
        width: 90px;
        height: 90px;
    }
}

/* ===== ACCESSIBILITY ===== */
.logo-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 8px;
    border-radius: 4px;
}

.logo-link:focus:not(:focus-visible) {
    outline: none;
}


/* ---------------------------------------------------------------
   FROM: includes/footer.php
   --------------------------------------------------------------- */
/*
 * Footer component styles.
 *
 * WHY we override .footer here:
 *   styles.css sets `text-align: center` and large top padding on .footer.
 *   We reset those here so the three-column layout is left-aligned and
 *   the overall height is more compact.
 *
 * WHY we use .footer-wrap instead of .container:
 *   styles.css forces `.footer .container` into flex-direction:column which
 *   would stack our three columns vertically. Using a different class name
 *   means our grid rule applies cleanly with no conflict.
 */

.footer {
    /* Override the center alignment from styles.css */
    text-align: left;
    /* Tighter padding — the original var(--space-3xl) was 4rem top */
    padding: var(--space-2xl) 0 0;
}

/* ---- WRAPPER ---- */
.footer-wrap {
    display: grid;
    /* Left column is slightly wider to give the brand room to breathe.
       Middle column takes the remaining space for the longer page list.
       Right column is narrow — only two legal links. */
    grid-template-columns: 1.4fr 1.2fr 0.8fr;
    gap: var(--space-3xl);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-xl) var(--space-2xl);
}

/* ---- BRAND COLUMN ---- */
.footer-brand p,
.footer-brand a {
    /* Remove the global .footer p margin and opacity */
    margin-bottom: var(--space-xs);
    opacity: 0.85;
    line-height: 1.7;
    display: block;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    opacity: 1 !important;
    margin-bottom: var(--space-sm) !important;
}

.footer-brand a {
    color: var(--warm-pale);
    text-decoration: none;
    border-bottom: 1px dotted rgba(251, 233, 208, 0.4);
    transition: opacity 0.2s ease, border-color 0.2s ease;
    display: inline;
}

.footer-brand a:hover {
    opacity: 1;
    border-bottom-color: var(--warm-pale);
}

/* ---- LINK COLUMNS (Pages & Legal) ---- */
.footer-col-heading {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.4;
    margin: 0 0 var(--space-md);
    font-weight: 400;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-list li {
    margin-bottom: var(--space-xs);
}

.footer-link-list a {
    color: var(--warm-pale);
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1.8;
}

.footer-link-list a:hover {
    opacity: 1;
}

/* ---- BASE BAR ---- */
.footer-base {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    opacity: 0.5;
}

.footer-base-credit a {
    color: var(--warm-pale);
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.footer-base-credit a:hover {
    opacity: 0.8;
}

/* ---- PAGES TOGGLE BUTTON ---- */
/*
 * The toggle is a <button> styled to look exactly like the static
 * .footer-col-heading. Using a real <button> means it is keyboard
 * focusable and fires click events on Enter/Space automatically.
 */
.footer-pages-toggle {
    /* Reset all default browser button styles */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    /* Match the heading appearance */
    display: flex;
    align-items: center;
    gap: 0.5em;
    color: var(--warm-pale);
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.4;
    margin: 0 0 var(--space-md);
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.footer-pages-toggle:hover {
    opacity: 0.75;
}

/* ---- CHEVRON ICON ---- */
/*
 * Starts pointing right (›). When the button has aria-expanded="true",
 * the chevron rotates 90deg to point down, signalling the list is open.
 * The transition makes it spin smoothly.
 */
.footer-chevron {
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    /* Nudge it down slightly to optically align with the caps text */
    position: relative;
    top: 1px;
}

.footer-pages-toggle[aria-expanded="true"] .footer-chevron {
    transform: rotate(90deg);
}

/* ---- COLLAPSIBLE PAGES LIST ---- */
/*
 * max-height animation technique:
 *   Collapsed: max-height 0 + overflow hidden = invisible, takes no space.
 *   Expanded:  max-height set to a value larger than the list will ever be
 *              (500px covers all 11 items comfortably).
 *
 * The easing is ease-in for collapse (fast start, slow end feels natural
 * for things disappearing) and ease-out for expand (slow start, fast end
 * feels like it's springing open).
 */
.footer-pages-list {
    max-height: 0;
    overflow: hidden;
    /* Margin also transitions so the space below collapses cleanly */
    margin-top: 0;
    transition:
        max-height 0.4s ease-in,
        margin-top 0.4s ease-in;
}

.footer-pages-list.is-open {
    max-height: 500px;
    margin-top: 0;
    transition:
        max-height 0.4s ease-out,
        margin-top 0.4s ease-out;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .footer-wrap {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding: 0 var(--space-lg) var(--space-xl);
    }

    .footer-base {
        flex-direction: column;
        gap: var(--space-xs);
        text-align: center;
        padding: var(--space-md) var(--space-lg);
    }
}