/* =========================================================
   GOLDEN HUT CAFE - MENU PAGE
========================================================= */

/* =========================================================
   ROOT COLORS
========================================================= */

:root {
    --primary-green: #063D2E;
    --dark-green: #022F24;
    --medium-green: #0B4A38;
    --gold: #C99A45;
    --light-gold: #E4C77A;
    --cream: #F8F4EA;
    --text-dark: #18352D;
    --text-light: rgba(6, 61, 46, 0.65);
    --border: #DED5C3;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text-dark);
    font-family: "Inter", Arial, sans-serif;
}


/* =========================================================
   MENU PAGE
========================================================= */

.menu-page {
    width: 100%;
    padding: 20px 0 90px;
}


/* =========================================================
   PAGE HEADING
========================================================= */

.menu-heading {
    width: min(850px, 90%);
    margin: 0 auto 15px;
    text-align: center;
}

.section-label {
    display: block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
}

.menu-heading h1 {
    margin: 0 0 15px;
    color: var(--primary-green);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 600;
    line-height: 1.1;
}

.menu-heading p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   MENU GRID
========================================================= */

.menu-grid {
    width: min(1200px, 90%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 25px;
}


/* =========================================================
   MENU CARD
========================================================= */

.menu-card {
    cursor: pointer;
    text-align: center;
}

.menu-image {
    position: relative;
    width: 100%;
    height: 390px;
    overflow: hidden;
    background: #E8E2D6;
    border: 1px solid var(--border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

.menu-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    transition:
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.5s ease;
}


/* Image hover */

.menu-card:hover .menu-image img {
    transform: scale(1.06);
    filter: brightness(0.70);
}


/* Hover overlay */

.menu-image::after {
    content: "VIEW MENU";

    position: absolute;
    left: 50%;
    top: 50%;

    transform: translate(-50%, -40%);

    padding: 11px 18px;

    border: 1px solid var(--light-gold);

    color: #ffffff;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;

    opacity: 0;

    transition:
        opacity 0.4s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);

    pointer-events: none;
}

.menu-card:hover .menu-image::after {
    opacity: 1;
    transform: translate(-50%, -50%);
}


/* Menu name */

.menu-card h3 {
    margin: 15px 0 0;

    color: var(--primary-green);

    font-family: "Playfair Display", Georgia, serif;

    font-size: 19px;
    font-weight: 600;
}

/* =========================================================
   DESSERTS & JUICES
========================================================= */

.menu-subheading {
    width: min(1200px, 90%);
    margin: 60px auto 0;    
    text-align: center;
}

.menu-subheading h2 {
    position: relative;
    display: inline-block;

    color: var(--primary-green);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    font-style: italic;               
    letter-spacing: 1px;
    padding-bottom: 14px;
}

.menu-subheading h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold);
}


/* =========================================================
   DESSERT CAROUSEL - 3D COVER FLOW
   (center card large & forward-facing, side cards angled
   back into the distance on either side, circular looping)
========================================================= */

.menu-carousel {
    width: min(1500px, 94%);
    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    gap: 15px;
}

/* Stage = the 3D viewport. perspective gives the depth. */

.menu-carousel-stage {
    flex: 1;
    min-width: 0;
    position: relative;

    height: 550px;

    display: flex;
    align-items: center;
    justify-content: center;

    perspective: 1300px;
    overflow: hidden;
}

/* Track = the fixed-size 3D stack that holds every card,
   all positioned absolutely on top of one another. */

.menu-carousel-track {
    position: relative;
    width: 300px;
    height: 410px;
    transform-style: preserve-3d;
}

.menu-carousel-track .menu-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    animation: none;

    border-radius: 6px;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    user-select: none;

    box-shadow: 0 20px 40px rgba(6, 61, 46, 0.22);

    opacity: 0;
    transform: translate3d(0, 0, -400px) scale(0.5);

    transition:
        transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.6s ease,
        box-shadow 0.6s ease;
}

/* Image fills the whole card now (title overlays on top of it) */

.menu-carousel-track .menu-card .menu-image {
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: none;
}

/* Darkening gradient so the title stays readable over any photo */

.menu-carousel-track .menu-card .menu-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(2, 35, 26, 0.05) 0%,
        rgba(2, 35, 26, 0.75) 100%
    );
    z-index: 1;
    transition: opacity 0.5s ease;
}

/* Reuse the existing hover "VIEW MENU" label only on the active card */

.menu-carousel-track .menu-card .menu-image::after {
    content: none;
}

.menu-carousel-track .menu-card.carousel-active .menu-image::after {
    content: "VIEW";
    z-index: 2;
}

/* Card title, overlaid at the bottom of the image like a caption */

.menu-carousel-track .menu-card h3 {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;

    margin: 0;
    color: #F8F4EA;
    font-size: 16px;
    line-height: 1.25;

    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    transition-delay: 0s;
}

.menu-carousel-track .menu-card.carousel-active h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

/* Center card: full size, facing forward, on top */

.menu-carousel-track .menu-card.carousel-active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
    z-index: 10;
    box-shadow: 0 25px 55px rgba(6, 61, 46, 0.35);
}

/* One step to the right / left */

.menu-carousel-track .menu-card.carousel-offset-1 {
    opacity: 0.75;
    transform: translate3d(300px, 0, -120px) scale(0.82) rotateY(-32deg);
    z-index: 5;
}

.menu-carousel-track .menu-card.carousel-offset--1 {
    opacity: 0.75;
    transform: translate3d(-300px, 0, -120px) scale(0.82) rotateY(32deg);
    z-index: 5;
}

/* Two steps to the right / left */

.menu-carousel-track .menu-card.carousel-offset-2 {
    opacity: 0.45;
    transform: translate3d(560px, 0, -260px) scale(0.65) rotateY(-42deg);
    z-index: 2;
}

.menu-carousel-track .menu-card.carousel-offset--2 {
    opacity: 0.45;
    transform: translate3d(-560px, 0, -260px) scale(0.65) rotateY(42deg);
    z-index: 2;
}

/* Anything further away stays hidden in the middle distance */

.menu-carousel-track .menu-card.carousel-hidden {
    opacity: 0;
    transform: translate3d(0, 0, -400px) scale(0.5);
    z-index: 0;
    pointer-events: none;
}

/* =========================================================
   PAGINATION DOTS
========================================================= */

.menu-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 auto 60px;
}

.menu-carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(6, 61, 46, 0.25);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu-carousel-dots .dot:hover {
    background-color: rgba(6, 61, 46, 0.45);
}

.menu-carousel-dots .dot.active {
    background-color: var(--primary-green);
    transform: scale(1.3);
}


/* =========================================================
   CAROUSEL ARROWS
========================================================= */

.menu-carousel-arrow {
    flex-shrink: 0;
    -webkit-appearance: none;   /* ← add */
    appearance: none;
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: #ffffff;
    color: var(--primary-green);

    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.menu-carousel-arrow:hover {
    background: var(--primary-green);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}

.menu-carousel-arrow:active {
    transform: scale(0.95);
}

.menu-carousel-arrow.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.menu-lightbox {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(2, 35, 26, 0.96);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}

.menu-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Large image container */

.lightbox-content {
    width: auto;
    max-width: 90vw;
    max-height: 90vh;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;

    transform: scale(0.80) translateY(25px);

    transition:
        opacity 0.45s ease,
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-lightbox.active .lightbox-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.lightbox-content img {
    display: block;

    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}


/* =========================================================
   LIGHTBOX CLOSE BUTTON
========================================================= */

.lightbox-close {
    position: absolute;

    top: 22px;
    right: 28px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(228, 199, 122, 0.75);
    border-radius: 50%;

    background: transparent;
    color: #ffffff;

    font-size: 32px;
    font-family: Arial, sans-serif;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    opacity: 0;

    transform: scale(0.7) rotate(-45deg);

    transition:
        opacity 0.35s ease,
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease,
        color 0.3s ease;
}

.menu-lightbox.active .lightbox-close {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.lightbox-close:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark-green);
}


/* =========================================================
   SIGNATURE DISH BANNER
========================================================= */

.signature-banner {
    position: relative;

    width: 100%;
    min-height: 450px;

    overflow: hidden;

    background: var(--dark-green);

    margin: 0 0 55px;

    display: flex;
    align-items: center;
}

.signature-media {
    position: absolute;
    inset: 0;

    z-index: 0;

    background: var(--medium-green);
}

.signature-media video {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.signature-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.65) 55%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.signature-content {
    position: relative;
    z-index: 2;

    width: 96%;
    max-width: 420px;

    margin-left: auto;
    margin-right: 120px;

    padding: 70px 20px 70px 0;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    text-align: right;
}

.signature-label {
    color: var(--light-gold);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 3px;

    margin-bottom: 10px;
}

.signature-content h2 {
    color: #ffffff;

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(30px, 3.6vw, 42px);
    font-weight: 600;

    margin-bottom: 14px;
}

.signature-content p {
    color: rgba(255, 255, 255, 0.85);

    font-size: 16px;
    line-height: 1.6;

    margin-bottom: 22px;
}

.signature-btn {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 12px 24px;

    border: 1px solid var(--gold);

    color: var(--light-gold);

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1px;

    transition: 0.3s ease;
}

.signature-btn:hover {
    background: var(--gold);
    color: var(--dark-green);
}


/* =========================================================
   WAVE DIVIDER
========================================================= */

.wave-divider {
    position: absolute;

    left: 0;

    width: 100%;

    line-height: 0;

    z-index: 3;
}

.wave-divider--top {
    top: 0;
}

.wave-divider--bottom {
    bottom: 0;
}

.wave-divider svg {
    display: block;

    width: 100%;
    height: 70px;
}

.wave-divider path {
    fill: var(--cream);
}


/* =========================================================
   GRACEFUL PHOTO FALLBACK
========================================================= */

.menu-image.photo-pending {
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 20px;

    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--dark-green)
    );
}

.menu-image.photo-pending img {
    display: none;
}

.menu-image.photo-pending::after {
    content: attr(data-label);

    position: static;

    transform: none;

    opacity: 1;

    pointer-events: none;

    border: none;

    padding: 0;

    font-family: "Playfair Display", serif;

    font-size: 0.95rem;

    letter-spacing: 0.06em;

    text-transform: uppercase;

    color: var(--light-gold);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .main-nav {
        gap: 22px;
    }

    .header-button {
        min-width: 125px;
        padding: 0 15px;
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .menu-carousel-track {
        width: 260px;
        height: 360px;
    }

    .menu-carousel-stage {
        height: 460px;
    }

    .menu-carousel-track .menu-card.carousel-offset-1 {
        transform: translate3d(230px, 0, -120px) scale(0.82) rotateY(-32deg);
    }

    .menu-carousel-track .menu-card.carousel-offset--1 {
        transform: translate3d(-230px, 0, -120px) scale(0.82) rotateY(32deg);
    }

    .menu-carousel-track .menu-card.carousel-offset-2 {
        transform: translate3d(420px, 0, -260px) scale(0.65) rotateY(-42deg);
    }

    .menu-carousel-track .menu-card.carousel-offset--2 {
        transform: translate3d(-420px, 0, -260px) scale(0.65) rotateY(42deg);
    }
 
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .menu-page {
        padding: 30px 0 65px;
    }

    .menu-heading {
        margin-bottom: 20px;
    }

    .menu-heading h1 {
        font-size: 36px;
    }

    .menu-heading p {
        font-size: 12px;
    }

    .menu-grid {
        width: 90%;

        grid-template-columns: repeat(2, 1fr);

        gap: 25px 15px;
    }

    .menu-image {
        height: 300px;
    }

    .menu-card h3 {
        margin-top: 10px;
        font-size: 16px;
    }

        .menu-carousel {
        width: 92%;
        gap: 10px;
    }

    .menu-carousel-stage {
        height: 400px;
    }

    .menu-carousel-track {
        width: min(260px, 68vw);
        height: 340px;
    }

    .menu-carousel-track .menu-card h3 {
        font-size: 14px;
    }

    .menu-carousel-track .menu-card.carousel-offset-1,
    .menu-carousel-track .menu-card.carousel-offset--1,
    .menu-carousel-track .menu-card.carousel-offset-2,
    .menu-carousel-track .menu-card.carousel-offset--2 {
        opacity: 0;
        transform: translate3d(0, 0, -400px) scale(0.5);
        pointer-events: none;
    }

    .menu-carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
     

    /* Signature banner */

    .signature-banner {
        min-height: 380px;
    }

    .signature-content {
        align-items: flex-start;

        text-align: left;

        margin-left: 0;
        margin-right: auto;

        padding: 50px 25px;
    }

    .wave-divider svg {
        height: 40px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 450px) {

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }

    .menu-image {
        height: 260px;
    }

    .menu-card h3 {
        font-size: 14px;
    }

    .menu-carousel-track {
        width: min(230px, 72vw);
        height: 300px;
    }

    .menu-carousel-stage {
        height: 360px;
    }

    .menu-carousel-track .menu-card h3 {
        font-size: 13px;
    }
  
    .lightbox-close {
        top: 12px;
        right: 12px;

        width: 42px;
        height: 42px;

        font-size: 28px;
    }

    .menu-lightbox {
        padding: 15px;
    }
 
}


/* =========================================================
   SMOOTH PAGE ENTRY ANIMATIONS
========================================================= */

.menu-page {
    animation: pageFadeIn 0.8s ease-out both;
}

@keyframes pageFadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =========================================================
   HEADING ANIMATION
========================================================= */

.menu-heading {
    opacity: 0;

    transform: translateY(35px);

    animation:
        headingReveal
        0.9s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.15s
        forwards;
}

@keyframes headingReveal {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   MENU CARD ANIMATION
========================================================= */

.menu-card {
    opacity: 0;

    transform: translateY(55px) scale(0.94);

    animation:
        cardReveal
        0.8s
        cubic-bezier(0.22, 1, 0.36, 1)
        var(--card-delay)
        forwards;

    will-change: transform, opacity;
}

@keyframes cardReveal {

    from {
        opacity: 0;
        transform: translateY(55px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   SIGNATURE BANNER MOBILE
========================================================= */

@media (max-width: 700px) {

    .signature-banner {
        min-height: 380px;
    }

    .signature-content {
        align-items: flex-start;
        text-align: left;

        margin-left: 0;
        margin-right: auto;

        padding: 50px 25px;
    }

    .wave-divider svg {
        height: 40px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .menu-page,
    .menu-heading,
    .menu-card,
    .lightbox-content,
    .lightbox-close {

        animation: none;

        transition: none;

        opacity: 1;

        transform: none;
    }
}