/* ============================================================
   MENU PAGE – HERO VARIANT
   (Builds on .hero from main.css)
============================================================ */

.hero.hero--sub {
    min-height: 36vh;
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 40px;
}

.hero.hero--sub h1 {
    font-size: clamp(54px, 7.2vw, 82px);
}

.hero.hero--sub p {
    font-size: clamp(20px, 3.3vw, 26px);
    /* a little bigger */
    max-width: 640px;
    margin-inline: auto;
    margin-top: 8px;
    color: var(--gold);
}

/* Optional: if you gave the menu hero a special class */
.menu-hero .hero-bg img {
    object-fit: cover;
}

/* ============================================================
   MENU SECTION – DARK THEME
============================================================ */

.menu-section {
    background: var(--brand-deep);
    /* dark brand background */
    color: rgba(245, 250, 250, 0.95);
    position: relative;
    z-index: 1;
}

.menu-section .section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.menu-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
    background: linear-gradient(90deg, var(--gold), #ffe29b);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* Heading + intro copy */
.menu-heading h2 {
    margin-top: -30px;
    color: #ffffff;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: clamp(30px, 4vw, 46px);
    /* more pronounced */
    position: relative;
}

.menu-heading h2::after {
    content: "";
    display: block;
    width: 260px;
    height: 8px;
    /* 8px gold bar to match homepage */
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), #ffe29b);
}

.menu-heading p {
    margin: 10px 0 0;
    max-width: 720px;
    color: rgba(243, 249, 249, 0.9);
    /* soft light gray */
    font-size: clamp(19px, 2.1vw, 23px);
    /* a little bigger */
    line-height: 1.8;
}

/* ============================================================
   CATEGORIES
============================================================ */

.menu-category {
    margin-top: clamp(30px, 4.3vw, 44px);
}

.menu-category:first-of-type {
    margin-top: clamp(34px, 5.2vw, 48px);
}

.menu-category h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    /* more pronounced subheaders */
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(245, 250, 250, 0.9);
    /* light gray labels */
}

/* Grid of menu cards */
.menu-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(18px, 2.4vw, 24px);
}

@media (min-width: 900px) {
    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================
   MENU CARD
   (Cards stay light; image fills full left side)
============================================================ */

.menu-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    height: 180px;
    /* <<< universal fixed height */
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition:
        transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.22),
        0 4px 14px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.08);
}

@media (max-width: 720px) {
    .menu-card {
        grid-template-columns: 1fr;
    }
}

/* Image side – fill full left side & follow curves */
/* Remove ANY space around the image */
.menu-card-media {
    height: 100%;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.menu-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover zoom */
.menu-card:hover .menu-card-media img {
    transform: scale(1.06);
    filter: brightness(1.03);
}

/* On mobile, image sits on top; match top corners instead */
@media (max-width: 720px) {
    .menu-card-media {
        border-radius: 20px 20px 0 0;
    }
}

/* Body side */
.menu-card-body {
    padding: clamp(16px, 2.4vw, 20px) clamp(16px, 2.8vw, 22px);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.menu-card-name {
    margin: 0;
    font-size: 1.08rem;
    /* a bit larger */
    font-weight: 700;
    color: var(--brand-deep);
}

.menu-card-price {
    font-size: 1.08rem;
    /* a bit larger */
    font-weight: 700;
    color: var(--gold-deep);
    white-space: nowrap;
}

.menu-card-desc {
    margin: 4px 0 0;
    font-size: 0.98rem;
    /* a bit larger */
    line-height: 1.6;
    color: rgba(6, 36, 36, 0.9);
}

/* MOBILE – image becomes top panel, stays uniform */
@media (max-width: 720px) {
    .menu-card {
        grid-template-columns: 1fr;
        height: auto;
        /* reset to natural height on small screens */
    }

    .menu-card-media {
        height: 30vh;
        /* consistent top image height on mobile */
        border-radius: 20px 20px 0 0;
    }
}

/* Small note at bottom of menu */
.menu-footnote {
    margin-top: 18px;
    font-size: 1.1rem;
    /* a touch bigger */
    color: rgba(243, 249, 249, 0.78);
    /* light gray on dark bg */
}

/* ============================================================
   ACCESSIBILITY & REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .menu-card,
    .menu-card-media img {
        transition: none !important;
    }

    .menu-card:hover .menu-card-media img {
        transform: none;
    }
}

/* ============================================================
   MENU IMAGE LIGHTBOX
============================================================ */

/* Lightbox shell */
.menu-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    /* toggled via .is-open */
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.menu-lightbox.is-open {
    display: flex;
}

/* Clickable dark backdrop */
.menu-lightbox__backdrop {
    position: absolute;
    inset: 0;
}

/* Centered image card */
.menu-lightbox__content {
    position: relative;
    max-width: min(960px, 100%);
    max-height: min(90vh, 640px);
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 4px 18px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.menu-lightbox__img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 540px;
    object-fit: contain;
    background: #000;
}

.menu-lightbox__caption {
    padding: 10px 14px 12px;
    font-size: 0.92rem;
    color: #f9fafb;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.94));
}

/* Close button */
.menu-lightbox__close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transition: background 0.18s ease, transform 0.18s ease;
}

.menu-lightbox__close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
}

.menu-lightbox__close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Reduce motion respects */
@media (prefers-reduced-motion: reduce) {
    .menu-lightbox {
        backdrop-filter: none;
    }
}

.menu-crabdip-link {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(253, 187, 45, 0.5);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.menu-crabdip-link:hover {
    color: #ffffff;
    border-color: var(--gold);
}