/* ═══════════════════════════════════════════
   Charlie's Fried Chicken – Menu Page
   ═══════════════════════════════════════════ */

.cfc-menu-page {
    font-family: var(--cfc-font-body, 'Instrument Sans', Arial, sans-serif);
    color: var(--cfc-black, #111);
    line-height: 1.5;
    --mp-red: var(--cfc-red, #d4001a);
    --mp-cream: var(--cfc-cream, #f5f0eb);
    --mp-black: var(--cfc-black, #111);
}

.cfc-menu-page *,
.cfc-menu-page *::before,
.cfc-menu-page *::after {
    box-sizing: border-box;
}

.cfc-menu-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ═════ HERO ═════ */
.cfc-mp-hero {
    position: relative;
    min-height: var(--mp-hero-h-desktop, 100vh);
    background-size: cover;
    background-position: center;
    background-color: #1a0606;
    color: var(--mp-hero-color, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

@media (max-width: 720px) {
    .cfc-mp-hero {
        min-height: var(--mp-hero-h-mobile, 70vh);
    }
}

.cfc-mp-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.cfc-mp-hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--mp-hero-tint, #000);
    opacity: var(--mp-hero-tint-alpha, 0.4);
    z-index: 1;
    pointer-events: none;
}

.cfc-mp-hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    padding: 80px 24px;
}

.cfc-mp-hero__eyebrow,
.cfc-mp-hero__title,
.cfc-mp-hero__subtitle {
    color: var(--mp-hero-color, #fff) !important;
}

.cfc-mp-hero__eyebrow {
    display: inline-block;
    font-size: var(--mp-hero-eyebrow-size, 14px);
    font-weight: var(--mp-hero-eyebrow-weight, 600);
    font-style: var(--mp-hero-eyebrow-italic, normal);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.9;
    line-height: 1.4;
    animation: cfcMpHeroIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both;
}

.cfc-mp-hero__title {
    animation: cfcMpHeroIn 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}

.cfc-mp-hero__subtitle {
    animation: cfcMpHeroIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both;
}

@keyframes cfcMpHeroIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: var(--mp-hero-in-opacity, 1); transform: translateY(0); }
}

.cfc-mp-hero__eyebrow { --mp-hero-in-opacity: 0.9; }

.cfc-mp-hero__title {
    font-family: var(--cfc-font-heading, 'Hannik', Georgia, serif);
    font-size: var(--mp-hero-title-size-desktop, clamp(48px, 9vw, 120px));
    font-weight: var(--mp-hero-title-weight, 400);
    font-style: var(--mp-hero-title-italic, normal);
    line-height: 0.95;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

@media (max-width: 720px) {
    .cfc-mp-hero__title {
        font-size: var(--mp-hero-title-size-mobile, clamp(40px, 12vw, 72px));
    }
}

.cfc-mp-hero__subtitle {
    margin-top: 24px;
    font-size: var(--mp-hero-subtitle-size, clamp(16px, 1.6vw, 20px));
    font-weight: var(--mp-hero-subtitle-weight, 400);
    font-style: var(--mp-hero-subtitle-italic, normal);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.5;
}

/* ═════ SECTION ═════ */
.cfc-mp-section {
    padding: 48px 32px;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
}

.cfc-mp-section + .cfc-mp-section {
    border-top: 1px solid #e6e6e6;
}

.cfc-mp-section__head {
    text-align: center;
    margin-bottom: 32px;
}

.cfc-mp-section__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mp-red);
    margin-bottom: 12px;
}

.cfc-mp-section__heading {
    font-family: var(--cfc-font-heading, 'Hannik', Georgia, serif);
    font-size: var(--mp-section-heading-size-desktop, clamp(40px, 6vw, 72px));
    font-weight: var(--mp-section-heading-weight, 400);
    font-style: var(--mp-section-heading-italic, normal);
    color: var(--mp-section-heading-color, inherit);
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {
    .cfc-mp-section__heading {
        font-size: var(--mp-section-heading-size-mobile, clamp(32px, 9vw, 56px));
    }
}

.cfc-mp-section__empty {
    text-align: center;
    color: #777;
    font-size: 15px;
    padding: 40px 0;
}

/* ═════ GRID ═════ */
.cfc-mp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 32px;
}

@media (max-width: 720px) {
    .cfc-mp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cfc-mp-section {
        padding: 32px 20px;
    }
}

/* ═════ CARD REVEAL ═════ */
.cfc-mp-card {
    opacity: 0;
    transform: translateY(28px);
}

.cfc-mp-card.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .cfc-mp-card,
    .cfc-mp-hero__eyebrow,
    .cfc-mp-hero__title,
    .cfc-mp-hero__subtitle {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* ═════ CARD ═════ */
.cfc-mp-card {
    appearance: none;
    background: #fff;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    display: grid;
    grid-template-columns: 38% 1fr;
    align-items: stretch;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
                transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 0.2s ease;
    transition-delay: var(--mp-card-delay, 0ms);
    min-width: 0;
    height: var(--mp-card-height-desktop, auto);
}

@media (max-width: 720px) {
    .cfc-mp-card {
        height: var(--mp-card-height-mobile, auto);
    }
}

.cfc-mp-card.is-in-view:hover,
.cfc-mp-card.is-in-view:focus-visible {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cfc-mp-section:nth-child(even) .cfc-mp-card {
    background: #fff;
}

.cfc-mp-card:hover,
.cfc-mp-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    outline: none;
}

.cfc-mp-card:focus-visible {
    box-shadow: 0 0 0 3px var(--mp-red);
}

.cfc-mp-card__img-wrap {
    position: relative;
    background: var(--mp-card-img-bg, var(--mp-red));
    overflow: hidden;
    align-self: stretch;
    min-height: 200px;
}

.cfc-mp-card__img {
    --mp-img-y: var(--mp-card-img-offset-y, -6%);
    --mp-img-scale: 1.12;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: translateY(var(--mp-img-y)) scale(var(--mp-img-scale));
    transform-origin: center;
    transition: transform 0.4s ease;
    display: block;
}

.cfc-mp-card:hover .cfc-mp-card__img {
    --mp-img-scale: 1.18;
}

.cfc-mp-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    color: var(--mp-black);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 1;
}

.cfc-mp-card__body {
    padding: 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
}

.cfc-mp-card__title {
    font-family: var(--cfc-font-heading, 'Hannik', Georgia, serif);
    font-size: var(--mp-card-title-size, clamp(20px, 2vw, 26px));
    font-weight: var(--mp-card-title-weight, 400);
    font-style: var(--mp-card-title-italic, normal);
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--mp-card-title-color, var(--mp-red));
    margin: 0 0 10px;
    letter-spacing: -0.005em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cfc-mp-card__desc,
.cfc-mp-card__desc * {
    font-size: var(--mp-card-desc-size, 14px) !important;
    font-weight: var(--mp-card-desc-weight, 400) !important;
    text-transform: var(--mp-card-desc-transform, uppercase) !important;
    line-height: var(--mp-card-desc-lineheight, 1.5) !important;
    color: #333 !important;
    letter-spacing: 0.02em !important;
    font-family: inherit !important;
    font-style: var(--mp-card-desc-italic, normal) !important;
}

.cfc-mp-card__desc {
    margin: 0 0 12px;
}

.cfc-mp-card__desc p {
    margin: 0 0 6px;
}

.cfc-mp-card__desc p:last-child {
    margin-bottom: 0;
}

.cfc-mp-card__kcal {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mp-red);
    margin-top: auto;
}

@media (max-width: 720px) {
    .cfc-mp-card__title {
        font-size: var(--mp-card-title-size-mobile, var(--mp-card-title-size, clamp(20px, 4.6vw, 26px)));
        font-weight: var(--mp-card-title-weight-mobile, var(--mp-card-title-weight, 400));
    }
    .cfc-mp-card__desc,
    .cfc-mp-card__desc * {
        font-size: var(--mp-card-desc-size-mobile, var(--mp-card-desc-size, 14px)) !important;
        font-weight: var(--mp-card-desc-weight-mobile, var(--mp-card-desc-weight, 400)) !important;
        line-height: var(--mp-card-desc-lineheight-mobile, var(--mp-card-desc-lineheight, 1.5)) !important;
    }
}

@media (max-width: 520px) {
    .cfc-mp-card {
        grid-template-columns: 40% 1fr;
    }
    .cfc-mp-card__img-wrap {
        min-height: 140px;
    }
    .cfc-mp-card__body {
        padding: 16px;
    }
}

/* ═════ MODAL ═════ */
.cfc-mp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cfc-mp-modal.is-open {
    display: flex;
}

.cfc-mp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.cfc-mp-modal__inner {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 920px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
    animation: cfcMpModalIn 0.25s ease-out;
    -webkit-overflow-scrolling: touch;
}

@keyframes cfcMpModalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cfc-mp-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #fff;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mp-red);
    z-index: 4;
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    padding: 0;
}

.cfc-mp-modal__close svg {
    width: 26px;
    height: 26px;
}

.cfc-mp-modal__close:hover,
.cfc-mp-modal__close:focus-visible {
    background: var(--mp-red);
    color: #fff;
    transform: scale(1.06);
    outline: none;
}

.cfc-mp-modal__gallery {
    position: relative;
    background: var(--mp-card-img-bg, var(--mp-red));
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cfc-mp-modal__img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfc-mp-modal__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.cfc-mp-modal__img[src=""] {
    display: none;
}

.cfc-mp-modal__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mp-red);
    z-index: 3;
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    padding: 0;
}

.cfc-mp-modal__arrow svg {
    width: 28px;
    height: 28px;
}

.cfc-mp-modal__arrow:hover,
.cfc-mp-modal__arrow:focus-visible {
    background: var(--mp-red);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    outline: none;
}

.cfc-mp-modal__arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.cfc-mp-modal__arrow--prev { left: 20px; }
.cfc-mp-modal__arrow--next { right: 20px; }

.cfc-mp-modal__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 16px 0 0;
}

.cfc-mp-modal__dots:empty {
    display: none;
}

.cfc-mp-modal__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.cfc-mp-modal__dot.is-active {
    background: var(--mp-red);
    transform: scale(1.2);
}

.cfc-mp-modal__body {
    padding: 32px 40px 40px;
}

.cfc-mp-modal__title {
    font-family: var(--cfc-font-heading, 'Hannik', Georgia, serif);
    font-size: var(--mp-modal-title-size-desktop, clamp(32px, 4.5vw, 48px));
    font-weight: var(--mp-modal-title-weight, 400);
    font-style: var(--mp-modal-title-italic, normal);
    line-height: 1;
    text-transform: uppercase;
    color: var(--mp-red);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.cfc-mp-modal__kcal {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mp-red);
    margin: 0 0 20px;
}

.cfc-mp-modal__kcal:empty {
    display: none;
}

.cfc-mp-modal__desc,
.cfc-mp-modal__desc * {
    font-size: var(--mp-modal-desc-size-desktop, 16px) !important;
    font-weight: var(--mp-modal-desc-weight, 400) !important;
    line-height: var(--mp-modal-desc-lineheight-desktop, 1.6) !important;
    color: #333 !important;
    font-family: inherit !important;
    font-style: var(--mp-modal-desc-italic, normal) !important;
}

.cfc-mp-modal__desc p {
    margin: 0 0 12px;
}

@media (max-width: 720px) {
    .cfc-mp-modal__title {
        font-size: var(--mp-modal-title-size-mobile, clamp(26px, 7vw, 36px));
    }
    .cfc-mp-modal__desc,
    .cfc-mp-modal__desc * {
        font-size: var(--mp-modal-desc-size-mobile, 15px) !important;
        line-height: var(--mp-modal-desc-lineheight-mobile, 1.55) !important;
    }
}

/* ═════ MOBILE: bottom sheet ═════ */
@media (max-width: 720px) {
    .cfc-mp-modal {
        padding: 0;
        align-items: flex-end;
    }
    .cfc-mp-modal__inner {
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        width: 100%;
        padding-top: 24px;
        animation: cfcMpSheetUp 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
    .cfc-mp-modal__inner::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 44px;
        height: 5px;
        background: rgba(0,0,0,0.2);
        border-radius: 999px;
        z-index: 5;
        pointer-events: none;
    }
    .cfc-mp-modal__close {
        top: 14px;
        right: 14px;
        width: 46px;
        height: 46px;
    }
    .cfc-mp-modal__close svg {
        width: 22px;
        height: 22px;
    }
    .cfc-mp-modal__gallery {
        aspect-ratio: 4 / 3;
    }
    .cfc-mp-modal__arrow {
        width: 50px;
        height: 50px;
    }
    .cfc-mp-modal__arrow svg {
        width: 24px;
        height: 24px;
    }
    .cfc-mp-modal__arrow--prev { left: 14px; }
    .cfc-mp-modal__arrow--next { right: 14px; }
    .cfc-mp-modal__body {
        padding: 20px 20px 28px;
    }
    .cfc-mp-modal__dots {
        padding: 12px 0 0;
    }
}

@keyframes cfcMpSheetUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.cfc-mp-modal--closing .cfc-mp-modal__inner {
    animation: cfcMpSheetDown 0.25s ease-in forwards;
}

@keyframes cfcMpSheetDown {
    from { transform: translateY(0); }
    to   { transform: translateY(100%); }
}

body.cfc-mp-modal-open {
    overflow: hidden;
}
