/* ========================================
   PATTY & BUN-NY - Main Stylesheet
   ======================================== */

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overscroll-behavior-x: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    overflow-x: clip;
    overscroll-behavior-x: none;
}

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

/* ========================================
   DESKTOP (Base styles - no media query)
   ≥1200px
   ======================================== */

/* --- Navigation Bar --- */
.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px 40px;
    z-index: 100;
}

.nav-link {
    color: #E4D3B0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: color 0.4s ease;
}

.nav-link:hover {
    color: #fff;
}

/* Navbar color change when over builder section */
.main-nav.nav-red .nav-link {
    color: #c41e3a;
}

.main-nav.nav-red .nav-link:hover {
    color: #a01830;
}

.main-nav.nav-red .dropdown-content a {
    color: #c41e3a;
}

.main-nav.nav-red .dropdown-content a:hover {
    color: #a01830;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 4px;
}

.nav-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    min-width: 150px;
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    margin-top: 10px;
}

/* Hover only for devices with hover capability (desktop) */
@media (hover: hover) {
    .nav-dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
    }
}

/* Active class for touch devices and click toggle */
.nav-dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-content a {
    display: block;
    color: #E4D3B0;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(228, 211, 176, 0.15);
    color: #fff;
}

/* --- Nav Links Container (Desktop) --- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* --- Hamburger Menu (Hidden on Desktop) --- */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #E4D3B0;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #E4D3B0;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 30px;
}

.mobile-menu-links > a,
.mobile-dropdown-toggle {
    color: #E4D3B0;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: color 0.2s ease;
    display: block;
}

.mobile-menu-links > a:hover,
.mobile-dropdown-toggle:hover {
    color: #fff;
}

/* Mobile Dropdown */
.mobile-dropdown {
    text-align: center;
}

.mobile-arrow {
    font-size: 1rem;
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.mobile-dropdown.active .mobile-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 300px;
}

.mobile-dropdown-content a {
    color: #E4D3B0;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    display: block;
    padding: 15px 0;
    opacity: 0.8;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.mobile-dropdown-content a:hover {
    color: #fff;
    opacity: 1;
}

/* --- Hero Section --- */
.hero-section-wrapper {
    position: relative;
    height: 350vh; /* Extended scroll space for video reveal + fade + menu sweep */
}

.hero-section {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/image/heroimage.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.logo {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 150px;
    height: auto;
    z-index: 3;
    /* NOT position: fixed — scrolls with page */
}

.hero-video-behind {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    z-index: 3;
    display: block;
    opacity: 0;
}

.hero-heading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 800px;
    height: auto;
    z-index: 4;
}

/* --- Hero Menu Panels --- */
.hero-menu-left,
.hero-menu-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    opacity: 0;
}

.hero-menu-left {
    left: -50%;
}

.hero-menu-right {
    right: -50%;
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-grid img {
    height: auto;
    width: auto;
    object-fit: contain;
}

.menu-title {
    max-width: 250px;
    margin-bottom: 15px;
    position: relative;
    top: 30px;
    align-self: center;
}

.menu-subheading {
    max-width: 180px;
    margin-top: 20px;
    margin-bottom: 0;
    position: relative;
    top: 25px;
}

.menu-item-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 10px;
}

.menu-item-text {
    max-width: 400px;
    transition: transform 0.3s ease-out;
}

.menu-item-row .food-image {
    transition: transform 0.3s ease-out;
}

/* Parallax hover effect */
.menu-item-row.parallax-hover .menu-item-text {
    transform: translateX(-8px) translateY(-4px);
}

.menu-item-row.parallax-hover .food-image {
    transform: translateX(12px) translateY(-8px);
}

/* Preserve scale transforms on left menu */
.hero-menu-left .menu-item-row.parallax-hover .menu-item-text {
    transform: scale(1.5) translateX(-8px) translateY(-4px);
}

/* Preserve scale transforms on right menu */
.hero-menu-right .menu-item-row.parallax-hover .menu-item-text {
    transform: scale(0.75) translateX(8px) translateY(-4px);
}

.hero-menu-right .menu-item-row.parallax-hover .food-image,
.hero-menu-right .menu-item-row:first-of-type.parallax-hover .food-image,
.hero-menu-right .menu-item-row:nth-of-type(2).parallax-hover .food-image {
    transform: scale(1.125) translateX(-12px) translateY(-8px) !important;
}

.menu-grid .food-image {
    max-width: 180px;
}

.menu-disclaimer {
    max-width: 150px;
    margin-top: 5px;
    margin-left: 180px;
}

.menu-text-with-disclaimer {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Left menu text sizing */
.hero-menu-left .menu-title {
    transform: scale(1.5);
    transform-origin: left top;
}

.hero-menu-left .menu-subheading {
    transform: scale(1.125);
    transform-origin: left top;
}

.hero-menu-left .menu-item-text {
    transform: scale(1.5);
    transform-origin: left center;
}

.hero-menu-left .food-image {
    margin-left: 200px;
}

/* Right menu styling */
.hero-menu-right .menu-title {
    transform: scale(0.9);
    transform-origin: right top;
}

.hero-menu-right .menu-item-text {
    transform: scale(0.75);
    transform-origin: right center;
}

.hero-menu-right .menu-item-row {
    flex-direction: row-reverse;
}

.hero-menu-right .food-image {
    margin-right: -60px;
}

.hero-menu-right .menu-item-row:first-of-type .food-image {
    transform: scale(1.125);
}

.hero-menu-right .menu-item-row:nth-of-type(2) .food-image {
    transform: scale(1.125);
}

/* Food image container with ADD button */
.food-image-container {
    position: relative;
    display: inline-block;
}

.hero-menu-left .food-image-container {
    margin-left: 200px;
}

.hero-menu-right .food-image-container {
    margin-right: -60px;
}

.food-image-container .food-image {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.add-btn {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    color: #E4D3B0;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.add-btn:hover,
.add-btn:focus,
.add-btn.selected {
    background-color: #E4D3B0;
    color: #000;
}

/* Individual button positioning for visual alignment */
/* Left menu - Fatty Patty (1st row) */
.hero-menu-left .menu-item-row:nth-of-type(1) .add-btn {
    bottom: -5px;
}

/* Left menu - BBQ (2nd row) */
.hero-menu-left .menu-item-row:nth-of-type(2) .add-btn {
    bottom: -20px;
}

/* Left menu - Trucker's (3rd row) */
.hero-menu-left .menu-item-row:nth-of-type(3) .add-btn {
    bottom: -7px;
}

/* Right menu - Fries (1st row) */
.hero-menu-right .menu-item-row:nth-of-type(1) .add-btn {
    bottom: -30px;
}

/* Right menu - Soda (2nd row) */
.hero-menu-right .menu-item-row:nth-of-type(2) .add-btn {
    bottom: -41px;
}



/* --- Commercial Section --- */
.commercial-section {
    width: 100%;
    background-color: #fef9f3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.commercial-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
}

.commercial-video,
.commercial-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.commercial-video {
    position: relative;
    z-index: 1;
}

.commercial-image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

.commercial-image.visible {
    opacity: 1;
}

/* --- Menu Builder Section --- */
.menu-builder-section {
    width: 100%;
    min-height: 100vh;
    padding: 80px 0;
    background-color: #fef9f3;
}

.section-heading {
    max-width: 800px;
    margin-left: 240px;
    margin-top: -100px;
    margin-bottom: 15px;
    display: block;
}

.menu-builder-container {
    display: flex;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: -25px;
    padding: 0 60px;
    gap: 60px;
}

/* --- Toppings Table --- */
.toppings-table {
    flex: 0 0 50%;
    background-color: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.toppings-title {
    font-size: 2rem;
    font-weight: 700;
    color: #c41e3a;
    margin-bottom: 30px;
    text-align: center;
}

/* --- Select All Button --- */
.select-all-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 15px;
    background-color: #c41e3a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.select-all-btn:hover {
    background-color: #a01830;
    transform: scale(1.02);
}

.select-all-btn[data-state="all"] {
    background-color: #333;
}

.select-all-btn[data-state="all"]:hover {
    background-color: #555;
}

.toppings-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.topping-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background-color: #fef9f3;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.topping-item:hover {
    background-color: #fdeee8;
    transform: translateX(4px);
}

.topping-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: #c41e3a;
    cursor: pointer;
}

.topping-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.topping-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

/* --- Panel Navigation --- */
.panel-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fef9f3;
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c41e3a;
    margin: 0;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #c41e3a;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 6px;
}

.nav-btn:hover:not(:disabled) {
    background-color: #c41e3a;
    color: #fff;
}

.nav-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* --- Toppings/Sauces/Sides/Drinks Panels --- */
.toppings-panel,
.sauces-panel,
.sides-panel,
.drinks-panel {
    display: none;
}

.toppings-panel.active-panel,
.sauces-panel.active-panel,
.sides-panel.active-panel,
.drinks-panel.active-panel {
    display: block;
}

.sauces-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* --- Sides Panel --- */
.sides-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.side-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background-color: #fef9f3;
    border-radius: 10px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.side-item:hover {
    background-color: #fdeee8;
    transform: scale(1.02);
}

.side-checkbox {
    width: 24px;
    height: 24px;
    accent-color: #c41e3a;
    cursor: pointer;
}

.side-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.side-thumb {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.side-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* --- Drinks Panel --- */
.drinks-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.drink-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #fef9f3;
    border-radius: 10px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.drink-item:hover {
    background-color: #fdeee8;
    transform: scale(1.02);
}

.drink-checkbox {
    width: 24px;
    height: 24px;
    accent-color: #c41e3a;
    cursor: pointer;
}

.drink-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.drink-thumb {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.drink-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* --- Size Selector --- */
.size-selector {
    display: none;
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
}

.side-checkbox:checked ~ .size-selector,
.drink-checkbox:checked ~ .size-selector {
    display: flex;
}

.size-option {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.size-option input[type="radio"] {
    display: none;
}

.size-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #c41e3a;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    color: #c41e3a;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.size-option input[type="radio"]:checked + span {
    background-color: #c41e3a;
    color: #fff;
}

.size-option:hover span {
    background-color: #fdeee8;
}

.size-option input[type="radio"]:checked + span:hover {
    background-color: #a01830;
}

/* --- Video Stack --- */
.video-stack-container {
    flex: 1;
    position: relative;
    height: 1200px;
    min-width: 800px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: -350px;
    transform: translateZ(0);
    will-change: transform;
}

.topping-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 100%;
    will-change: opacity;
    backface-visibility: hidden;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease, top 0.4s ease;
    pointer-events: none;
}

.topping-video.active {
    opacity: 1;
}


/* ========================================
   MENU BUILDER METHOD 2 (Images)
   ======================================== */
.menu-builder-section-2 {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 80px 0;
    background-color: #fef9f3;
}

.section-fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.1s ease;
}

.menu-builder-container-2 {
    display: flex;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    gap: 60px;
}

/* --- Toppings Table Method 2 --- */
.toppings-table-2 {
    flex: 0 0 50%;
    background-color: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: -300px;
}

/* --- Panel Navigation Method 2 --- */
.panel-navigation-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fef9f3;
}

.panel-title-2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c41e3a;
    margin: 0;
}

/* --- Toppings/Sauces/Sides/Drinks Panels Method 2 --- */
.toppings-panel-2,
.sauces-panel-2,
.sides-panel-2,
.drinks-panel-2 {
    display: none;
}

.toppings-panel-2.active-panel,
.sauces-panel-2.active-panel,
.sides-panel-2.active-panel,
.drinks-panel-2.active-panel {
    display: block;
}

/* --- Select All Button Method 2 --- */
.select-all-btn-2 {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 15px;
    background-color: #c41e3a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.select-all-btn-2:hover {
    background-color: #a01830;
    transform: scale(1.02);
}

.select-all-btn-2[data-state="all"] {
    background-color: #333;
}

.select-all-btn-2[data-state="all"]:hover {
    background-color: #555;
}

.toppings-list-2,
.sauces-list-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* --- Sides Panel Method 2 --- */
.sides-list-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.side-item-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background-color: #fef9f3;
    border-radius: 10px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.side-item-2:hover {
    background-color: #fdeee8;
    transform: scale(1.02);
}

.side-checkbox-2 {
    width: 24px;
    height: 24px;
    accent-color: #c41e3a;
    cursor: pointer;
}

.side-label-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.side-thumb-2 {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.side-name-2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* --- Drinks Panel Method 2 --- */
.drinks-list-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.drink-item-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #fef9f3;
    border-radius: 10px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.drink-item-2:hover {
    background-color: #fdeee8;
    transform: scale(1.02);
}

.drink-checkbox-2 {
    width: 24px;
    height: 24px;
    accent-color: #c41e3a;
    cursor: pointer;
}

.drink-thumb-2 {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.drink-label-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.drink-name-2 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* --- Size Selector Method 2 --- */
.size-selector-2 {
    display: none;
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
}

.side-checkbox-2:checked ~ .size-selector-2,
.drink-checkbox-2:checked ~ .size-selector-2 {
    display: flex;
}

.size-option-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.size-option-2 input[type="radio"] {
    display: none;
}

.size-option-2 span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #c41e3a;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    color: #c41e3a;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.size-option-2 input[type="radio"]:checked + span {
    background-color: #c41e3a;
    color: #fff;
}

.size-option-2:hover span {
    background-color: #fdeee8;
}

.size-option-2 input[type="radio"]:checked + span:hover {
    background-color: #a01830;
}

.topping-item-2 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background-color: #fef9f3;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.topping-item-2:hover {
    background-color: #fdeee8;
    transform: translateX(4px);
}

.topping-item-2 input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: #c41e3a;
    cursor: pointer;
}

.topping-thumb-2 {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.topping-name-2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

/* --- Image Stack Method 2 --- */
.image-stack-container {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -300px;
    margin-left: 235px;
    transform: scale(0.95);
    transform-origin: top center;
}

.topping-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease, top 0.4s ease;
    pointer-events: none;
}

.topping-image.active {
    opacity: 1;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/image/Contact Section/burgers-20260127-122952-6803.png');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 1;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 0;
}

.contact-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px;
}

.contact-info {
    flex: 1;
    color: #E4D3B0;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.contact-locations {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.location h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.location p {
    font-size: 1rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.contact-item p {
    font-size: 1rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.contact-social {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(228, 211, 176, 0.3);
}

.contact-social p {
    font-size: 1rem;
    margin-bottom: 8px;
}

.contact-social p:last-child {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.contact-logo {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-logo img {
    width: 100%;
    max-width: 250px;
    height: auto;
}

/* ========================================
   TABLET LANDSCAPE: 991px - 1200px
   ======================================== */
@media screen and (max-width: 1200px) and (min-width: 991px) {
    /* Tablet Landscape specific styles */

    /* Hamburger Menu - Show on tablet */
    .hamburger-btn {
        display: block !important;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: block !important;
    }

    /* Hero Menu - Enlarged by 25% */
    .hero-menu-left .menu-title {
        transform: scale(1.06) !important;
        max-width: 200px !important;
    }

    .hero-menu-left .menu-subheading {
        transform: scale(0.81) !important;
        max-width: 150px !important;
    }

    .hero-menu-left .menu-item-text {
        transform: scale(1.06) !important;
        max-width: 310px !important;
    }

    .hero-menu-left .food-image-container {
        margin-left: 75px !important;
    }

    .hero-menu-left .food-image {
        margin-left: 0 !important;
    }

    .hero-menu-left .menu-item-row {
        gap: 12px !important;
        margin-top: 0px !important;
    }

    .menu-grid .food-image {
        max-width: 115px !important;
    }

    .hero-menu-right .menu-title {
        transform: scale(0.63) !important;
        max-width: 175px !important;
    }

    .hero-menu-right .menu-item-text {
        transform: scale(0.5) !important;
        max-width: 225px !important;
    }

    /* Fries text - 25% larger */
    .hero-menu-right .menu-item-row:first-of-type .menu-item-text {
        transform: scale(0.625) !important;
    }

    /* Drinks text - 20% larger */
    .hero-menu-right .menu-item-row:nth-of-type(2) .menu-item-text {
        transform: scale(0.6) !important;
    }

    .hero-menu-right .food-image-container {
        margin-right: -30px !important;
    }

    .hero-menu-right .menu-item-row {
        gap: 10px !important;
    }

    .hero-menu-right .menu-item-row:first-of-type .food-image,
    .hero-menu-right .menu-item-row:nth-of-type(2) .food-image {
        transform: scale(1.0) !important;
    }

    .menu-disclaimer {
        max-width: 115px !important;
        margin-left: 100px !important;
        transform: scale(1.06) !important;
    }

    /* Hero Menu Section spacing */
    .hero-menu-content {
        gap: 25px !important;
    }

    .hero-menu-left,
    .hero-menu-right {
        padding: 20px !important;
    }

    /* Commercial Section - full width video */
    .commercial-section {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .commercial-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .commercial-video {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    /* Menu Builder Section */
    .section-heading {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    /* Method 1 burger - move left */
    .video-stack-container {
        margin-left: -175px !important;
    }

    /* Method 2 burger - move left and increase size */
    .image-stack-container {
        margin-left: 10px !important;
        margin-top: -280px !important;
        transform: scale(0.78) !important;
        transform-origin: top center !important;
    }
}

/* ========================================
   TABLET PORTRAIT: 768px - 990px (height > 500px)
   ======================================== */
@media screen and (max-width: 990px) and (min-width: 768px) and (min-height: 501px) {
    /* Tablet Portrait specific styles */

    /* Hamburger Menu - Show on tablet */
    .hamburger-btn {
        display: block !important;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: block !important;
    }

    /* Extend hero section for sequential menu animation */
    .hero-section-wrapper {
        height: 450vh !important;
    }

    /* Center menus for portrait display */
    .hero-menu-left,
    .hero-menu-right {
        transform: translateY(-50%) scale(0.85) !important;
    }

    /* Reset right positioning for portrait (JS controls left position) */
    .hero-menu-right {
        right: auto !important;
    }

    /* Move burger heading 100px to the left */
    .hero-menu-left .menu-title {
        margin-left: -100px !important;
    }

    /* Reduce window padding to expand grid and fit text */
    .toppings-table,
    .toppings-table-2 {
        padding: 10px !important;
    }

    .topping-item,
    .topping-item-2 {
        padding: 12px 10px !important;
        gap: 10px !important;
    }

    .topping-name,
    .topping-name-2 {
        font-size: 0.9rem !important;
    }

    /* Move Method 1 and Method 2 burgers 250px to the left */
    .video-stack-container {
        margin-left: -250px !important;
    }

    .image-stack-container {
        margin-left: 0px !important;
        margin-top: -410px !important;
        transform: scale(1.14) !important;
    }

    /* Center Build Your Burger heading */
    .section-heading {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Contact Section - Logo in bottom right corner, pull up to reduce gap */
    .contact-section {
        position: relative !important;
        margin-top: -300px !important;
    }

    .contact-container {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .contact-logo {
        position: absolute !important;
        bottom: 30px !important;
        right: 30px !important;
        flex: none !important;
    }

    .contact-logo img {
        max-width: 150px !important;
    }
}

/* ========================================
   MOBILE LANDSCAPE: height ≤ 500px
   ======================================== */
@media screen and (max-height: 500px) {
    /* Mobile Landscape specific styles */

    /* Fix horizontal overflow */
    .hero-section-wrapper,
    .hero-section,
    .menu-builder-section,
    .menu-builder-section-2,
    .commercial-section,
    .contact-section {
        max-width: 100vw !important;
        overflow-x: clip !important;
    }

    /* Hamburger Menu - Show on mobile landscape */
    .hamburger-btn {
        display: block !important;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: block !important;
    }

    /* Reduce logo size by 25% (150px * 0.75 = 112px) */
    .logo {
        width: 112px !important;
    }

    /* Extend hero section for sequential menu animation */
    .hero-section-wrapper {
        height: 550vh !important;
    }

    /* Center menus for landscape display */
    .hero-menu-left,
    .hero-menu-right {
        transform: translateY(-50%) scale(0.7) !important;
    }

    /* Reset right positioning (JS controls left position) */
    .hero-menu-right {
        right: auto !important;
    }

    /* Move burger heading 100px to the left */
    .hero-menu-left .menu-title {
        margin-left: -100px !important;
    }

    /* Reduce window padding to expand grid and fit text */
    .toppings-table,
    .toppings-table-2 {
        padding: 10px !important;
    }

    .topping-item,
    .topping-item-2 {
        padding: 12px 10px !important;
        gap: 10px !important;
    }

    .topping-name,
    .topping-name-2 {
        font-size: 0.9rem !important;
    }

    /* Move Method 1 and Method 2 burgers 250px to the left */
    .video-stack-container {
        margin-left: -250px !important;
    }

    .image-stack-container {
        margin-left: 0px !important;
        margin-top: -345px !important;
        transform: scale(1.14) !important;
    }

    /* Center Build Your Burger heading */
    .section-heading {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Method 2 section - 25px taller, allow vertical overflow for expanded burger */
    .menu-builder-section-2 {
        min-height: calc(100vh + 25px) !important;
        overflow: visible !important;
    }

    /* Contact Section - Logo in bottom right corner */
    .contact-section {
        position: relative !important;
        margin-top: 0px !important;
    }

    .contact-container {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .contact-logo {
        position: absolute !important;
        bottom: 30px !important;
        right: 30px !important;
        flex: none !important;
    }

    .contact-logo img {
        max-width: 150px !important;
    }
}

/* ========================================
   MOBILE PORTRAIT: width ≤ 767px (height > 500px)
   ======================================== */
@media screen and (max-width: 767px) and (min-height: 501px) {
    /* Fix horizontal overflow */
    .hero-section-wrapper,
    .hero-section,
    .menu-builder-section,
    .menu-builder-section-2,
    .commercial-section,
    .contact-section {
        max-width: 100vw !important;
        overflow-x: clip !important;
    }

    /* Hamburger Menu - Show on mobile portrait */
    .hamburger-btn {
        display: block !important;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: block !important;
    }

    /* Reduce logo size (smaller than tablet's 112px) */
    .logo {
        width: 100px !important;
    }

    /* Increase hero heading and waving characters by 50% (60% * 1.5 = 90%) */
    .hero-heading,
    .hero-video-behind {
        width: 90% !important;
    }

    /* Extend hero section for sequential menu animation (upward exit needs more space) */
    .hero-section-wrapper {
        height: 500vh !important;
    }

    /* Scale menus smaller and lower them for mobile portrait */
    /* Note: top is set without !important so JS can override it for shift-up animation */
    .hero-menu-left,
    .hero-menu-right {
        top: calc(60% + 100px);
        transform: translateY(-50%) translateX(-45px) scale(0.6) !important;
    }

    /* Reset right positioning (JS controls left position) */
    .hero-menu-right {
        right: auto !important;
    }

    /* Adjust burger heading margin for smaller viewport */
    .hero-menu-left .menu-title {
        margin-left: 40px !important;
        margin-bottom: 45px !important;
    }

    /* Add spacing after subheadings (e.g. 50's Classic, New Arrival) */
    .menu-subheading {
        margin-top: 45px !important;
        margin-bottom: 45px !important;
    }

    /* Stack food images below text instead of side-by-side */
    .menu-item-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px !important;
        margin-bottom: 30px !important;
    }

    /* Center food image containers */
    .food-image-container {
        display: flex !important;
        justify-content: center !important;
    }

    /* Add spacing between rows in the grid */
    .menu-grid {
        gap: 10px !important;
    }

    /* Override right menu row-reverse to column, smaller gap for fries/drink */
    .hero-menu-right .menu-item-row {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Move sides/drinks menu to the left */
    .hero-menu-right {
        transform: translateY(-50%) translateX(-95px) scale(0.6) !important;
    }

    /* Shift sides heading to the right */
    .hero-menu-right .menu-title {
        margin-left: 65px !important;
    }

    /* Shift fries and soda images to the right */
    .hero-menu-right .food-image-container {
        margin-left: 65px !important;
    }

    /* Put disclaimer below drink image */
    .hero-menu-right .menu-text-with-disclaimer {
        display: contents !important;
    }

    .hero-menu-right .menu-item-text {
        order: 1 !important;
    }

    .hero-menu-right .food-image-container {
        order: 2 !important;
    }

    .hero-menu-right .menu-disclaimer {
        order: 3 !important;
    }

    /* Shift burger images to the right */
    .hero-menu-left .food-image-container {
        margin-left: 200px !important;
    }

    .hero-menu-right .food-image-container {
        margin-right: 0 !important;
    }

    /* Adjust disclaimer margin for stacked layout */
    .menu-disclaimer {
        margin-left: 0 !important;
    }

    /* Reduce toppings table padding and font size */
    .toppings-table,
    .toppings-table-2 {
        padding: 10px !important;
    }

    .topping-item,
    .topping-item-2 {
        padding: 10px 8px !important;
        gap: 8px !important;
    }

    .topping-name,
    .topping-name-2 {
        font-size: 0.85rem !important;
    }

    /* Reduce and center Build Your Burger heading to fit viewport */
    .section-heading {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: calc(100vw - 20px) !important;
        margin-top: -40px !important;
        margin-bottom: 10px !important;
    }

    /* Builder containers: stack vertically, full width */
    .menu-builder-container,
    .menu-builder-container-2 {
        flex-direction: column !important;
        padding: 0 5px !important;
        gap: 20px !important;
        max-width: 100% !important;
        margin-top: 0 !important;
        align-items: center !important;
    }

    /* Builder sections: minimal padding, clip horizontal but allow vertical overflow */
    .menu-builder-section,
    .menu-builder-section-2 {
        padding: 10px 0 !important;
        overflow-x: clip !important;
        overflow-y: visible !important;
    }

    /* Toppings tables: full width, reset negative margins from desktop layout */
    .toppings-table,
    .toppings-table-2 {
        flex: none !important;
        width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        margin-top: 0 !important;
    }

    /* Method 1 burger: below the table, full width, no overlap */
    .video-stack-container {
        flex: none !important;
        position: relative !important;
        margin: 0 auto !important;
        min-width: 0 !important;
        width: calc(100vw - 10px) !important;
        height: 400px !important;
        overflow: visible !important;
        transition: height 0.4s ease !important;
    }

    /* Scale up Method 1 burger videos (16:9 landscape videos render small with object-fit:contain) */
    .topping-video {
        transform: translate(-50%, -50%) scale(1.7) translateZ(0) !important;
    }

    /* Method 2 burger: below the table, full width, no overlap */
    .image-stack-container {
        flex: none !important;
        position: relative !important;
        margin: 0 auto !important;
        width: calc(100vw - 10px) !important;
        height: 400px !important;
        transform: none !important;
        transform-origin: center center !important;
        overflow: visible !important;
        transition: height 0.4s ease !important;
    }

    /* Scale down Method 2 burger images by 25% */
    .topping-image {
        width: 75% !important;
    }

    /* Contact Section - vertical layout for mobile */
    .contact-section {
        position: relative !important;
        margin-top: 0px !important;
        min-height: auto !important;
    }

    .contact-container {
        flex-direction: column !important;
        align-items: center !important;
        padding: 40px 20px !important;
        gap: 30px !important;
    }

    .contact-title {
        font-size: 2rem !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }

    .locations-dropdown-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 12px 20px !important;
        background: rgba(228, 211, 176, 0.1) !important;
        border: 1px solid rgba(228, 211, 176, 0.3) !important;
        border-radius: 8px !important;
        color: #E4D3B0 !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        margin-bottom: 0 !important;
        transition: background 0.3s ease !important;
    }

    .locations-dropdown-toggle:active {
        background: rgba(228, 211, 176, 0.2) !important;
    }

    .dropdown-arrow {
        transition: transform 0.3s ease !important;
        display: inline-block !important;
    }

    .locations-dropdown-toggle.open .dropdown-arrow {
        transform: rotate(180deg) !important;
    }

    .contact-locations {
        flex-direction: column !important;
        gap: 20px !important;
        margin-bottom: 25px !important;
        display: none !important;
        overflow: hidden !important;
    }

    .contact-locations.open {
        display: flex !important;
    }

    .contact-details {
        flex-direction: column !important;
        gap: 20px !important;
        margin-bottom: 25px !important;
        margin-top: 15px !important;
    }

    /* Hide second phone number and catering email on mobile */
    .contact-details .contact-item:nth-child(1) p:nth-of-type(2) {
        display: none !important;
    }

    .contact-details .contact-item:nth-child(3) p:nth-of-type(2) {
        display: none !important;
    }

    .contact-info {
        text-align: center !important;
    }

    .contact-social {
        text-align: center !important;
        margin-top: 15px !important;
        padding-top: 20px !important;
    }

    .contact-logo {
        position: relative !important;
        flex: none !important;
    }

    .contact-logo img {
        max-width: 150px !important;
    }
}
