/* ============================================
   KONSTANTINO PIZZA — Beddia Style Redesign
   Primary: #f6f3ea (Cream)
   Secondary: #d90f0f (Red)
   Accents: Black
   ============================================ */

/* --- Google Fonts --- */
/* "Poppins" for primary font (Geometric, Clean, Friendly) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Fraunces:wght@400;700;800&family=Alexandria:wght@100..900&display=swap');

/* --- CSS Custom Properties --- */
:root {
    /* User Palette */
    --bg-color: #f6f3ea;
    /* Primary */
    --accent-color: #d90f0f;
    /* Secondary */
    --text-main: #111111;
    /* Black */
    --text-muted: #444444;

    /* Beddia Vibes */
    --sticker-blue: #4a80c4;
    /* For "Open Daily" tape look */
    --sticker-tape: rgba(255, 255, 255, 0.4);

    /* Typography */
    --font-display: 'Poppins', sans-serif;
    /* Primary Font */
    --font-body: 'Poppins', sans-serif;
    /* Primary Font */

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Layout */
    --max-width: 1400px;
    /* Beddia uses wide layouts */
    --radius-lg: 24px;
    /* Soft corners */
}

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

html,
body {
    cursor: none;
    /* Hide default cursor */
}


.custom-cursor {
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease-out, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.link-hover {
    transform: translate(-50%, -50%) scale(2.5);
    background-color: rgba(217, 15, 15, 0.3);
    /* Transparent red ring */
    border: 1px solid var(--accent-color);
}

.custom-cursor.is-pizza {
    background-color: transparent;
    border: none;
    transform: translate(-50%, -50%) scale(3);
}

.custom-cursor.is-pizza::after {
    content: '🍕';
    font-size: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Global prevent horizontal scroll */
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* --- Utilities --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.btn {
    display: inline-block;
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    background-color: var(--accent-color);
    /* Red on hover */
    color: white;
    opacity: 1;
}

.menu-icon-svg {
    display: none;
}

/* ============================================
   LOADER
   ============================================ */
.loader-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.6s ease-out, visibility 0.6s;
}

.loader-logo {
    width: 850px;
    height: auto;
    margin-bottom: 2.5rem;
    animation: fadeInOut 2s ease-in-out infinite alternate;
}

@keyframes fadeInOut {
    from {
        opacity: 0.6;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--text-main);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
    padding: 0.8rem 0;
    /* Reduced padding for the larger logo */
    position: relative;
    /* Scrolls away with page */
    top: 0;
    z-index: 100;
    background-color: #000000;
    /* Deep Black Header */
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Ensure Logo and Nav are perfectly balanced */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.site-header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(0, 0, 0, 0.85);
    /* Slightly translucent black */
    backdrop-filter: blur(8px);
    /* Optional: Adds a premium blur effect */
    opacity: 0.9;
    /* Slight overall fade */
}

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

.logo img {
    height: 70px;
    /* Reduced by 50px */
    width: auto;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 5rem;
    /* Increased gap for layout spacing */
}

.desktop-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 10px 20px;
}

.desktop-nav a:not(.btn):hover {
    background-color: var(--accent-color);
    border-radius: 100px;
    /* Pill shape behind words */
    opacity: 1;
}

/* Header Specific Button contrast */
.desktop-nav .btn {
    background-color: #ffffff;
    color: #000000;
    padding: 12px 24px;
    font-size: 0.85rem;
    opacity: 1;
}

.desktop-nav .btn:hover {
    opacity: 0.9;
    background-color: #f0f0f0;
}

/* ============================================
   HERO SECTION (The Archway Vibe)
   ============================================ */
.hero-section {
    position: relative;
    padding: 0;
    border-bottom: none;
}

.hero-image-container {
    width: 100%;
    height: 100vh;
    min-height: auto;
    position: relative;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    /* Stack Title and Action Bar */
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    overflow: hidden;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/t0y4gbt0y4gbt0y4.png');
    background-size: cover;
    background-position: center;
    transform: scale(1.2);
    opacity: 0.1;
    /* 90% transparency */
    z-index: 1;
    pointer-events: none;
}

.hero-title,
.hero-action-bar,
.hero-socials {
    position: relative;
    z-index: 2;
}

.hero-action-bar {
    background-color: #121212;
    /* Dark Charcoal from image */
    width: 100%;
    max-width: 900px;
    padding: 2rem 3rem;
    border-radius: 100px;
    /* Large pill container */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: background-color 0.8s ease, transform 0.4s ease;
}

.hero-action-bar.clicked {
    background-color: var(--accent-color);
    /* Turns Red */
    border-color: #ffffff;
}

.hero-action-bar.clicked .action-text p {
    color: #000000;
    /* Contrast against red */
}

.reserve-btn {
    background-color: var(--accent-color);
    /* Vibrant Red */
    color: #ffffff;
    /* White text for contrast */
    padding: 1.2rem 3rem;
    border-radius: 100px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.reserve-btn:hover {
    transform: scale(1.05);
    background-color: #b70000;
    /* Darker red on hover */
    box-shadow: 0 10px 20px rgba(217, 15, 15, 0.3);
}

.hero-socials {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    margin-top: 2rem;
}

.hero-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-socials a:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
}


.action-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cccccc;
    margin: 0;
}

/* ============================================
   AWARDS (Hero Placement)
   ============================================ */
.hero-awards {
    margin-bottom: 2rem;
    z-index: 10;
}

.awards-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.award-item {
    position: relative;
}

.award-item img {
    height: 105px;
    /* Increased by 5px */
    width: auto;
    /* Full Color & Max Visibility */
    filter: none;
    opacity: 0;
    /* Start hidden for animation */
    transform: translateY(20px) scale(0.8);
    transition: filter 0.4s ease, transform 0.4s ease;
}

/* Stacking Animation Trigger */
.site-loaded .award-item img {
    animation: badge-entrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* One by one delays */
.award-item:nth-child(1) img {
    animation-delay: 0.1s;
}

.award-item:nth-child(2) img {
    animation-delay: 0.3s;
}

.award-item:nth-child(3) img {
    animation-delay: 0.5s;
}

.award-item:nth-child(4) img {
    animation-delay: 0.7s;
}

.award-item:nth-child(5) img {
    animation-delay: 0.9s;
}

@keyframes badge-entrance {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.award-item:hover img {
    /* Full Color & 3D Twiggle */
    filter: drop-shadow(0 10px 20px rgba(217, 15, 15, 0.3));
    transform: scale(1.1) translateY(-5px);
}

@media (max-width: 768px) {
    .hero-awards {
        margin-bottom: 1.5rem;
    }

    .awards-grid {
        gap: 0 !important;
        /* Remove gap to allow overlapping */
    }

    .award-item {
        margin: 0 -10px;
        /* ~20% overlap for 50px high badges */
    }

    .award-item img {
        height: 55px;
        /* Increased by 5px */
    }
}

.hero-title {
    font-family: 'Alexandria', sans-serif;
    font-weight: 900;
    /* Scales up to 120px but fits on smaller screens */
    font-size: clamp(3rem, 12vw, 120px);
    text-align: center;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    color: var(--accent-color);
    -webkit-text-stroke: 2px var(--accent-color);
    position: relative;
    z-index: 10;
}

.hero-title span {
    display: block;
    white-space: nowrap;
    /* Forces each phrase onto one line */
    margin-bottom: 10px;
}

.hover-flip-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% - 115px), calc(-50% + 60px)) rotateY(90deg) scale(0);
    width: 100px;
    /* Tiny size as requested */
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    /* Circle looks like a topping/seal */
    border: 4px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 15;
}

.hero-title:hover .hover-flip-image,
.hover-flip-image.is-popped {
    opacity: 1;
    transform: translate(calc(-50% - 115px), calc(-50% + 60px)) rotateY(0deg) scale(1);
}

.hover-flip-image.is-popped {
    animation: pizza-spin 10s linear infinite;
    animation-delay: 0.6s;
}

@keyframes pizza-spin {
    from {
        transform: translate(calc(-50% - 115px), calc(-50% + 60px)) rotate(0deg);
    }

    to {
        transform: translate(calc(-50% - 115px), calc(-50% + 60px)) rotate(360deg);
    }
}

/* ============================================
   HEADLINE STRIP "Pizza, Wine..."
   ============================================ */
.headline-strip {
    padding: var(--space-xl) 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.headline-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.big-statement {
    font-size: clamp(3.5rem, 5.5vw, 4.8rem);
    /* Decreased by another 10px (~0.7rem) */
    font-weight: 500;
    line-height: 1;
    color: var(--text-main);
    position: relative;
}


.blue-sticker {
    display: inline-block;
    background-color: var(--sticker-blue);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.4rem;
    /* Decreased by another 10px (~0.6rem) */
    padding: 6px 14px;
    transform: rotate(-3deg) translateY(-15px);
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.12);
    position: absolute;
    top: -5px;
    right: 10px;
}

.blue-sticker::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    /* Tape effect */
    opacity: 0.6;
}

.intro-text-block p {
    font-size: 1.5rem;
    /* Decreased by another 10px (~0.6rem) */
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

/* ============================================
   FEATURED SECTION (Hoagie Room equivalent)
   ============================================ */
.featured-section {
    padding: var(--space-xl) 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        url('images/255c5f_dbf93ffbca5b4a5184796571d1ea53d7~mv2 (1).avif');
    background-size: cover;
    /* Both layers cover full area */
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    /* Parallax Effect */
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.featured-image {
    border-radius: var(--radius-lg);
    /* Soft round corners */
    overflow: hidden;
    max-width: 80%;
    /* Reduced size */
    margin: 0 auto;
    /* Center it */
}

.featured-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.featured-content {
    padding-left: var(--space-md);
}

.featured-content h2 {
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

/* ============================================
   MENU GRID (Polaroid/Editorial Style)
   ============================================ */
.menu-section {
    padding: var(--space-xl) 0;
    background: #121212;
    /* Dark Premium BG */
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.menu-section .container {
    display: block;
    /* Switch from grid to block flow */
}

/* Header Row */
.menu-header-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-xl);
    align-items: start;
    margin-bottom: var(--space-xl);
}

.menu-col-left h2 {
    font-family: 'Alexandria', sans-serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    text-transform: uppercase;
    line-height: 0.95;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.menu-col-right p {
    color: #aaaaaa;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    max-width: 400px;
}

.btn-white {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn-white:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Infinite Image Slider */
.menu-slider {
    width: 100%;
    overflow: hidden;
    margin-top: var(--space-xl);
    position: relative;
    /* Fade edges for premium feel */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.menu-slider-track {
    display: flex;
    width: max-content;
    /* Fit all slides */
    /* gap removed */
    animation: scroll 30s linear infinite;
}

.slide {
    width: 400px;
    flex-shrink: 0;
    margin-right: 20px;
    /* Spacer */
    transition: transform 0.3s ease;
}

.slide:hover {
    transform: scale(1.02);
    /* Interactive feel */
}

.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Perfect half-width loop */
    }
}

.location-section {
    padding: 8rem 0;
    background-color: var(--bg-color);
    text-align: center;
}

.location-grid-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.6fr;
    /* Even wider side columns */
    gap: 4rem;
    margin: 4rem auto;
    align-items: center;
    max-width: 1700px;
    width: 96%;
}

.map-container,
.store-image-container {
    width: 100%;
    height: 550px;
    /* Taller as requested */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.store-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-details {
    text-align: center;
    padding: 0 1rem;
    color: var(--text-main);
}

.info-block {
    margin-bottom: 2.5rem;
}

.info-block h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.info-block p {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-header-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .slide {
        width: 280px;
        /* Smaller slides on mobile */
    }

    .slide img {
        height: 220px;
    }
}

/* ============================================
   PIZZA ROW (Bottom Circles)
   ============================================ */
.pizza-row-section {
    padding: 1.5px 0;
    /* Reduced total height significantly */
    overflow: hidden;
    /* Prevent horizontal scrolling */
    background-color: var(--bg-color);
    /* Match Reference Background */
    color: var(--text-main);
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.pizza-row-section::-webkit-scrollbar {
    display: none;
}

.pizza-row-section h2 {
    color: white;
}

.pizza-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    /* Reduced to bring them closer */
    flex-wrap: nowrap;
    padding: 0 50px;
}

/* Standardized container size for perfect spacing */
.pizza-circle {
    width: 460px;
    /* Layout container stays large */
    height: 460px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: transform 0.3s ease, z-index 0.3s ease;
}

/* The visual circle: made 80px smaller independently */
.pizza-circle::before {
    content: '';
    position: absolute;
    width: 320px;
    /* Reduced by 60px (380 - 60) */
    height: 320px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    z-index: 1;
    /* Sits behind the image */
    pointer-events: none;
}

.pizza-circle:hover {
    z-index: 20;
}

/* Individual VISUAL size overrides using scale */
.pizza-circle:nth-child(1) img {
    --base-scale: 0.96;
    transform: scale(var(--base-scale)) translateY(-20px);
}

.pizza-circle:nth-child(1):hover img {
    transform: scale(calc(var(--base-scale) * 1.08)) translateY(-20px) rotate(1deg);
}

.pizza-circle:nth-child(2) img {
    --base-scale: 0.95;
}

.pizza-circle:nth-child(3) img {
    --base-scale: 1.14;
    transform: scale(var(--base-scale)) translateY(-30px);
}

.pizza-circle:nth-child(3):hover img {
    transform: scale(calc(var(--base-scale) * 1.08)) translateY(-30px) rotate(1deg);
}

.pizza-circle:nth-child(4) img {
    --base-scale: 0.9;
}

.pizza-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(var(--base-scale, 1));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Soft premium shadow */
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.12));
}

.pizza-circle:hover img {
    transform: scale(calc(var(--base-scale, 1) * 1.02)) rotate(0.5deg);
    /* Tiny effect */
}

/* Specific Hover Overrides */
.pizza-circle:nth-child(1):hover img {
    transform: scale(calc(var(--base-scale) * 1.02)) translateY(-20px) rotate(0.5deg);
}

.pizza-circle:nth-child(3):hover img {
    transform: scale(calc(var(--base-scale) * 1.02)) translateY(-30px) rotate(0.5deg);
}

/* Paper Note Overlay specific styles */
/* Paper Note Overlay specific override */
.pizza-circle img.pizza-note-overlay {
    position: absolute;
    width: 430px !important;
    /* Reduced by 70px (500 - 70) */
    height: auto !important;
    max-width: none !important;
    top: 50%;
    left: 50%;
    z-index: 1000 !important;
    transform: translate(calc(-50% + 150px), calc(-50% - 70px)) rotate(-5deg) !important;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6)) !important;
    transition: none !important;
    pointer-events: none;
    object-fit: contain;
}

/* Hover effect removed to keep it static */

.location-section {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}


/* ============================================
   MENU MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    /* Slightly darker for better contrast */
    padding: 80px 0 50px;
    /* More top padding for close button space, bottom padding for breathing room */
}

.modal.show {
    display: block;
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px;
}

.menu-page {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.close-modal {
    position: fixed;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
}

html {
    scroll-behavior: smooth;
}

.site-footer {
    background-color: black;
    color: white;
    position: relative;
}

.checkerboard-strip {
    height: 24px;
    width: 100%;
    background-image:
        linear-gradient(45deg, #000 25%, transparent 25%),
        linear-gradient(-45deg, #000 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #000 75%),
        linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0px;
    background-color: white;
    /* Contrast against black footer */
}

.footer-content {
    padding: var(--space-xl) var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    color: #999;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: white;
}

/* Main Footer Branding */
/* Main Footer Branding */
.footer-logo {
    width: 100%;
    margin-top: var(--space-lg);
    display: flex;
    justify-content: center;
}

.footer-logo img {
    border-radius: 50%;
    /* Consistent cropping */
}

/* ============================================
   RESPONSIVE DESIGN (Mobile & Tablet)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --space-xl: 4rem;
    }

    .hero-title {
        font-size: 8vw;
    }
}

@media (max-width: 768px) {

    /* --- Global --- */
    /* Fix: Ensure loader doesn't block clicks after fade */
    .loader-screen.hidden {
        display: none !important;
        pointer-events: none !important;
    }

    .loader-logo {
        width: 80vw !important;
        /* Responsive size for mobile */
        max-width: 320px !important;
        margin-bottom: 0 !important;
    }

    .loader-spinner {
        display: none !important;
    }

    h1 {
        font-size: 3rem;
    }

    .hover-flip-image {
        display: none !important;
    }

    .custom-cursor {
        display: none !important;
    }

    h2 {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* --- Navigation --- */
    .site-header {
        padding: 0.5rem 0;
    }

    .nav-container {
        justify-content: space-between;
        /* Align Logo Left, Btn Right */
        align-items: center;
        width: 100%;
    }

    .logo {
        display: block;
        z-index: 102;
        /* Ensure above anything else */
    }

    .logo img {
        height: 40px;
        /* Smaller Mobile Logo */
        display: block;
    }

    .desktop-nav {
        display: flex;
        gap: 0;
        align-items: center;
    }

    /* Hide text links on mobile - FORCE IT */
    .desktop-nav a:not(.btn) {
        display: none !important;
    }

    /* Keep Order Button Visible */
    .desktop-nav .btn {
        padding: 8px 0;
        /* Remove padding for just icon */
        font-size: 0.8rem;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        /* No bubble on mobile */
        color: white !important;
    }

    .desktop-nav .btn .btn-text {
        display: none;
    }

    .desktop-nav .btn .menu-icon-svg {
        display: block;
        width: 32px;
        height: 32px;
        color: white;
    }

    /* --- Hero Section --- */
    .hero-image-container {
        height: auto;
        min-height: 50vh;
        /* Reduced height significantly */
        padding: 4rem 0;
        justify-content: center;
        /* Center content vertically too */
        gap: 1.5rem;
    }

    .hero-title {
        font-size: calc(9vw - 10px);
        font-weight: 800;
        /* Slightly lighter as requested */
        /* Reduced again to fit */
        margin-top: 1rem;
        max-width: 100%;
        line-height: 1.1;
        overflow-wrap: break-word;
        /* Ensure wrapping */
    }

    /* Allow words to wrap on mobile if needed */
    .hero-title span {
        white-space: normal;
        display: block;
        margin-bottom: 10px;
    }

    .hover-flip-image {
        width: 80px;
        height: 80px;
        transform: translate(-50%, -50%) rotateY(90deg) scale(0);
    }

    .hero-title:hover .hover-flip-image,
    .hover-flip-image.is-popped {
        transform: translate(-50%, -120%) rotateY(0deg) scale(1);
    }

    .hero-action-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: transparent;
        box-shadow: none;
        padding: 0;
        width: 100%;
        margin-top: 2rem;
    }

    .reserve-btn {
        width: 100%;
        max-width: 300px;
        /* Limit width so it's not full screen */
        text-align: center;
        margin: 0 auto;
        /* Center it */
    }

    .action-text {
        display: none;
        /* Hide heritage text on mobile */
    }

    .hero-socials {
        justify-content: center;
        margin-top: 1.5rem;
    }





    /* Hide Red Dot Cursor on Touch Devices */


    /* --- Headline Strip --- */
    .headline-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .big-statement {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .blue-sticker {
        position: relative;
        right: auto;
        top: auto;
        transform: rotate(-2deg);
        margin: 0 auto 2rem;
        display: block;
        width: max-content;
    }

    /* --- Loader --- */
    .loader-title {
        font-size: 10vw;
        /* Responsive size for mobile */
    }

    /* --- Featured Section --- */
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .featured-image {
        max-width: 100%;
    }

    .featured-content {
        padding-left: 0;
        text-align: center;
    }

    /* --- Menu Section --- */
    .menu-header-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .menu-col-right {
        margin: 0 auto;
    }

    /* --- Pizza Row: NO SCROLL approach ---
       All 4 pizzas fit in viewport width.
       No overflow-x:auto = no clipping = note can extend freely */
    .pizza-row-section {
        padding: 1rem 0 6rem;
        /* Extra bottom for note */
        overflow: visible !important;
    }

    .pizza-row {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible !important;
        /* No scroll = no clipping */
        padding: 0.5rem 0.5rem 2rem;
        gap: 0 !important;
        flex-wrap: nowrap;
    }

    .pizza-circle {
        width: 22vw !important;
        /* ~86px on 390px phone, 4 fit perfectly */
        min-width: 0 !important;
        /* Allow flex to size */
        max-width: 22vw !important;
        height: 22vw !important;
        flex-shrink: 0;
        margin: 0 !important;
        transform: none !important;
        position: relative;
        overflow: visible !important;
        pointer-events: none !important;
    }

    .pizza-circle:nth-child(1) {
        z-index: 2;
    }

    .pizza-circle:nth-child(2) {
        z-index: 3;
    }

    .pizza-circle:nth-child(3) {
        z-index: 10;
    }

    /* Highest for note */
    .pizza-circle:nth-child(4) {
        z-index: 1;
    }

    .pizza-circle::before {
        width: 80% !important;
        height: 80% !important;
    }

    /* Reset ALL desktop image transforms on mobile */
    .pizza-circle img {
        --base-scale: 1 !important;
        transform: scale(1) !important;
        width: 90% !important;
        height: 90% !important;
        filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1)) !important;
        transition: none !important;
    }

    .pizza-circle:nth-child(1) img,
    .pizza-circle:nth-child(2) img,
    .pizza-circle:nth-child(4) img {
        --base-scale: 1 !important;
        transform: scale(1) !important;
    }

    .pizza-circle:nth-child(3) img {
        --base-scale: 1.1 !important;
        /* ~10px increase via scale + 5px up */
        transform: scale(1.1) translateY(-5px) !important;
        width: calc(90% + 10px) !important;
        height: calc(90% + 10px) !important;
    }

    .pizza-circle:hover img,
    .pizza-circle:nth-child(1):hover img,
    .pizza-circle:nth-child(3):hover img {
        transform: scale(1) !important;
    }

    /* Note: centered horizontally under the middle of the 4 pizzas */
    .pizza-circle img.pizza-note-overlay {
        width: 360px !important;
        /* Reduced by 90px (450 - 90) */
        height: auto !important;
        max-width: none !important;
        position: absolute !important;
        left: 50% !important;
        margin-left: -11vw !important;
        /* Shifted 50px left back to center-base */
        top: 70% !important;
        transform: translate(-50%, -10px) rotate(-2deg) !important;
        transition: none !important;
        z-index: 1000 !important;
        pointer-events: none;
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35)) !important;
    }

    /* --- Location Section --- */
    .location-grid-layout {
        grid-template-columns: 1fr !important;
        width: 90% !important;
        margin: 2rem auto !important;
        gap: 3rem !important;
    }

    .map-container,
    .store-image-container {
        width: 100% !important;
        height: 250px !important;
    }

    .location-details {
        padding: 0 !important;
    }

    /* --- Footer --- */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
}