/* ============================================================
   Hotel Centralis Menu — Centralis theme (Midnight Gold & Ivory)
   Dark editorial-luxe surface, champagne gold accents, ivory text,
   Playfair Display headlines, Inter body, Montserrat labels.
   Sharp corners, hairline gold borders, generous spacing.
   ============================================================ */

:root {
    /* Surfaces — midnight navy palette */
    --hcm-bg-1: #06101b;        /* primary-container, deepest */
    --hcm-bg-2: #0a1420;        /* surface */
    --hcm-bg-3: #121c28;        /* surface-container-low */
    --hcm-bg-4: #17202d;        /* surface-container */
    --hcm-bg-5: #212b37;        /* surface-container-high */

    /* Text — warm ivory family */
    --hcm-text: #d9e3f4;        /* on-surface */
    --hcm-text-dim: #c5c6cc;    /* on-surface-variant */
    --hcm-text-muted: #8e9196;  /* outline */

    /* Accents — champagne gold family */
    --hcm-gold: #e8c177;        /* secondary */
    --hcm-gold-dim: #d9b36b;    /* secondary hover */
    --hcm-gold-light: #ffdea3;  /* secondary-fixed */
    --hcm-gold-low: rgba(232, 193, 119, 0.2);
    --hcm-gold-very-low: rgba(232, 193, 119, 0.08);
    --hcm-outline: #44474b;     /* outline-variant */

    /* Typography
       Strong fallback chain so the design still reads if Google Fonts is
       blocked by GDPR / optimization plugins / CSP. Order: bundled-name
       first, then closest visual fallback per OS, then generic family. */
    --hcm-font-display: 'Playfair Display', 'Cormorant Garamond', 'Bodoni 72', 'DM Serif Display', 'Source Serif Pro', Georgia, 'Times New Roman', Times, serif;
    --hcm-font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --hcm-font-label:   'Montserrat', system-ui, -apple-system, 'Segoe UI', 'Trebuchet MS', Tahoma, sans-serif;

    /* Spacing tokens (from Centralis DESIGN.md) */
    --hcm-gutter: 24px;
    --hcm-section-gap: 120px;
    --hcm-margin-mobile: 16px;
    --hcm-margin-desktop: 64px;
    --hcm-container: 1280px;
}

/* ============================================================
   THEME LOCKDOWN — Brand fonts and colors that themes MUST NOT
   override. The plugin is a self-contained menu component; host
   themes commonly style h2/h3/p uniformly and break our look.
   We use !important on a narrow set of brand-critical properties
   only — layout, spacing and behaviour are still themeable.
   ============================================================ */

.hcm-menu,
.hcm-menu * {
    font-family: var(--hcm-font-body);
}

.hcm-menu .hcm-menu__title,
.hcm-menu .hcm-hero__tagline,
.hcm-menu .hcm-category__title,
.hcm-menu .hcm-card__title,
.hcm-menu .hcm-list__name {
    font-family: var(--hcm-font-display) !important;
    font-weight: 400 !important;
    color: var(--hcm-text) !important;
    text-transform: none !important;
    text-shadow: none !important;
}

.hcm-menu .hcm-category__eyebrow,
.hcm-menu .hcm-price__label,
.hcm-menu .hcm-price__amount,
.hcm-menu .hcm-list__label,
.hcm-menu .hcm-list__amount {
    font-family: var(--hcm-font-label) !important;
    text-transform: uppercase !important;
}

.hcm-menu .hcm-category__eyebrow {
    color: var(--hcm-gold) !important;
    font-weight: 600 !important;
}

.hcm-menu .hcm-price__amount,
.hcm-menu .hcm-list__amount {
    color: var(--hcm-gold) !important;
    font-weight: 600 !important;
}

.hcm-menu .hcm-price__label,
.hcm-menu .hcm-list__label {
    color: var(--hcm-text-muted) !important;
    font-weight: 600 !important;
}

.hcm-menu .hcm-card__desc,
.hcm-menu .hcm-list__desc,
.hcm-menu .hcm-category__desc {
    font-family: var(--hcm-font-body) !important;
    color: var(--hcm-text-dim) !important;
    font-style: normal !important;
    font-weight: 300 !important;
}

/* Make sure themes that style ul/li reset margins inside our list view */
.hcm-menu .hcm-list,
.hcm-menu .hcm-list__item {
    list-style: none !important;
    background: transparent !important;
}

/* Stop themes from applying their link colors to our images/captions */
.hcm-menu img { max-width: 100%; height: auto; }

/* ---------- Surface ---------- */

.hcm-menu {
    /* Defaults; shortcode emits a scoped <style> overriding these. */
    --hcm-bg-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.04  0 0 0 0 0.06  0 0 0 0 0.10  0 0 0 0.85 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
    --hcm-bg-size: auto;
    --hcm-bg-overlay: 0.55;
    --hcm-bg-color: #06101b;

    position: relative;
    color: var(--hcm-text);
    font-family: var(--hcm-font-body);
    font-weight: 300;
    line-height: 1.6;
    padding: clamp(40px, 6vw, 96px) clamp(16px, 4vw, 64px);
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow: hidden;

    background-color: var(--hcm-bg-1);
    background-image: var(--hcm-bg-image);
    background-size: var(--hcm-bg-size);
    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;
}

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

/* Colored overlay — admin Overlay color + Overlay strength */
.hcm-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-color: var(--hcm-bg-color);
    opacity: var(--hcm-bg-overlay);
    z-index: 0;
}

/* Subtle atmospheric highlights — always-on cinematic light hints */
.hcm-menu::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 18%, rgba(232, 193, 119, 0.05) 0, transparent 28%),
        radial-gradient(circle at 90% 82%, rgba(232, 193, 119, 0.04) 0, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.20)       0, transparent 80%);
    z-index: 1;
}

.hcm-menu > * { position: relative; z-index: 2; }

/* ---------- Menu top title (optional shortcode attribute) ---------- */

.hcm-menu__title {
    font-family: var(--hcm-font-display);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    text-align: center;
    letter-spacing: 0.02em;
    margin: 0 0 64px;
    color: var(--hcm-text);
    font-weight: 400;
}

/* ---------- Hero block (logo + tagline + corner decorations) ---------- */

.hcm-hero {
    position: relative;
    margin: 0 auto clamp(64px, 8vw, 140px);
    padding: clamp(60px, 10vw, 140px) clamp(20px, 4vw, 80px);
    text-align: center;
    border: 1px solid var(--hcm-gold-low);
    max-width: 1100px;
    min-height: clamp(380px, 60vh, 720px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hcm-hero__logo {
    max-width: min(440px, 70%);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.6));
}

.hcm-hero__rule {
    width: 64px;
    height: 1px;
    background: var(--hcm-gold);
    margin: 36px auto 28px;
}

.hcm-hero__tagline {
    font-family: var(--hcm-font-display);
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    color: var(--hcm-gold);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0;
}

.hcm-hero__sub {
    font-family: var(--hcm-font-label);
    font-size: 0.75rem;
    color: var(--hcm-text-dim);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin: 18px 0 0;
}

/* ---------- Decorations (per-section absolute-positioned ornaments) ---------- */

.hcm-decoration {
    position: absolute;
    color: var(--hcm-gold);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    width: var(--hcm-deco-size, 140px);
    height: auto;
    opacity: var(--hcm-deco-opacity, 0.85);
    transform: rotate(var(--hcm-deco-rotate, 0deg));
}

.hcm-decoration svg { display: block; width: 100%; height: 100%; }

.hcm-decoration--top-left      { top: -28px; left: -28px; }
.hcm-decoration--top-right     { top: -28px; right: -28px; }
.hcm-decoration--top-center    { top: -28px; left: 50%; transform: translateX(-50%) rotate(var(--hcm-deco-rotate, 0deg)); }
.hcm-decoration--bottom-left   { bottom: -28px; left: -28px; }
.hcm-decoration--bottom-right  { bottom: -28px; right: -28px; }
.hcm-decoration--bottom-center { bottom: -28px; left: 50%; transform: translateX(-50%) rotate(var(--hcm-deco-rotate, 0deg)); }
.hcm-decoration--left-center   { top: 50%; left: -28px;  transform: translateY(-50%) rotate(var(--hcm-deco-rotate, 0deg)); }
.hcm-decoration--right-center  { top: 50%; right: -28px; transform: translateY(-50%) rotate(var(--hcm-deco-rotate, 0deg)); }

.hcm-decoration--size-small  { --hcm-deco-size: 90px; }
.hcm-decoration--size-medium { --hcm-deco-size: 160px; }
.hcm-decoration--size-large  { --hcm-deco-size: 240px; }

/* ---------- Category section ---------- */

.hcm-category {
    position: relative;
    max-width: var(--hcm-container);
    margin: 0 auto clamp(80px, 10vw, 140px);
    padding: clamp(28px, 5vw, 64px) clamp(16px, 3vw, 56px);
    border: 1px solid var(--hcm-gold-very-low);
    background: rgba(10, 20, 32, 0.35);
    backdrop-filter: blur(2px);
}

.hcm-category__header {
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 72px);
}

.hcm-category__eyebrow {
    font-family: var(--hcm-font-label);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--hcm-gold);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.hcm-category__title {
    font-family: var(--hcm-font-display);
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    color: var(--hcm-text);
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.hcm-category__rule {
    width: 48px;
    height: 1px;
    background: var(--hcm-gold);
    margin: 24px auto 0;
}

.hcm-category__desc {
    color: var(--hcm-text-dim);
    font-family: var(--hcm-font-body);
    font-weight: 300;
    font-size: 1rem;
    margin: 18px auto 0;
    max-width: 640px;
}

/* ---------- Card grid (frameless, circular images) ---------- */

.hcm-grid {
    display: grid;
    gap: clamp(40px, 5vw, 72px) clamp(28px, 3vw, 56px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hcm-card {
    display: grid;
    grid-template-columns: minmax(180px, 38%) 1fr;
    align-items: center;
    gap: clamp(18px, 2.4vw, 32px);
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: transform 0.4s ease;
}

.hcm-card:hover { transform: translateY(-3px); }

/* Alternate image side per card for visual rhythm */
.hcm-grid > .hcm-card:nth-child(even) {
    grid-template-columns: 1fr minmax(180px, 38%);
}
.hcm-grid > .hcm-card:nth-child(even) .hcm-card__media { order: 2; }
.hcm-grid > .hcm-card:nth-child(even) .hcm-card__body  { order: 1; text-align: right; align-items: flex-end; }
.hcm-grid > .hcm-card:nth-child(even) .hcm-card__title-rule { margin-left: auto; margin-right: 0; }
.hcm-grid > .hcm-card:nth-child(even) .hcm-card__prices { justify-content: flex-end; }

.hcm-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.hcm-card__media::after {
    /* Soft champagne-gold halo, very subtle */
    content: '';
    position: absolute;
    inset: -6%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 193, 119, 0.12) 0%, transparent 65%);
    filter: blur(8px);
    transition: opacity 0.4s ease;
    opacity: 0.6;
    z-index: 0;
}
.hcm-card:hover .hcm-card__media::after { opacity: 1; }

.hcm-card__image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 1px solid var(--hcm-gold-low);
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.7));
    transition: transform 0.5s ease, filter 0.5s ease, border-color 0.4s ease;
}
.hcm-card:hover .hcm-card__image {
    transform: scale(1.03);
    border-color: var(--hcm-gold);
    filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.8));
}

.hcm-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.hcm-card__title {
    font-family: var(--hcm-font-display);
    font-size: clamp(1.35rem, 2.1vw, 1.8rem);
    color: var(--hcm-text);
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.hcm-card__title-rule {
    width: 36px;
    height: 1px;
    background: var(--hcm-gold);
    margin: 4px 0 6px;
}

.hcm-card__prices {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    align-items: baseline;
    margin: 0;
}

.hcm-price {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    color: var(--hcm-text);
    white-space: nowrap;
}

.hcm-price__label {
    font-family: var(--hcm-font-label);
    color: var(--hcm-text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
}

.hcm-price__amount {
    font-family: var(--hcm-font-label);
    color: var(--hcm-gold);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.06em;
    font-feature-settings: 'tnum';
}

.hcm-card__desc {
    color: var(--hcm-text-dim);
    font-family: var(--hcm-font-body);
    font-weight: 300;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.55;
}

.hcm-card--no-image {
    grid-template-columns: 1fr !important;
    text-align: left;
}
.hcm-card--no-image .hcm-card__media { display: none; }
.hcm-grid > .hcm-card--no-image:nth-child(even) .hcm-card__body { text-align: left; align-items: flex-start; }
.hcm-grid > .hcm-card--no-image:nth-child(even) .hcm-card__title-rule { margin-left: 0; margin-right: auto; }

/* ---------- Compact list (drinks, sauces) ---------- */

.hcm-list {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 64px;
}

.hcm-list__item {
    break-inside: avoid;
    padding: 16px 0;
    border-bottom: 1px solid var(--hcm-gold-very-low);
}

.hcm-list__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.hcm-list__name {
    font-family: var(--hcm-font-display);
    font-size: 1.1rem;
    color: var(--hcm-text);
    white-space: nowrap;
    font-weight: 400;
}

.hcm-list__leader {
    flex: 1;
    border-bottom: 1px dotted var(--hcm-gold-low);
    transform: translateY(-5px);
    min-width: 12px;
}

.hcm-list__prices {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    justify-content: flex-end;
    text-align: right;
}

.hcm-list__price {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.hcm-list__label {
    font-family: var(--hcm-font-label);
    color: var(--hcm-text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
}

.hcm-list__amount {
    font-family: var(--hcm-font-label);
    color: var(--hcm-gold);
    font-weight: 600;
    font-size: 0.95rem;
    font-feature-settings: 'tnum';
}

.hcm-list__desc {
    color: var(--hcm-text-dim);
    font-family: var(--hcm-font-body);
    font-weight: 300;
    font-size: 0.88rem;
    margin: 4px 0 0;
    line-height: 1.5;
}

/* ---------- Empty state ---------- */

.hcm-menu--empty {
    text-align: center;
    color: var(--hcm-text-muted);
    padding: 80px 16px;
    font-family: var(--hcm-font-body);
    font-style: italic;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .hcm-grid { grid-template-columns: 1fr; }
    .hcm-grid > .hcm-card,
    .hcm-grid > .hcm-card:nth-child(even) {
        grid-template-columns: minmax(160px, 32%) 1fr;
    }
    .hcm-grid > .hcm-card:nth-child(even) .hcm-card__media { order: 0; }
    .hcm-grid > .hcm-card:nth-child(even) .hcm-card__body  { order: 0; text-align: left; align-items: flex-start; }
    .hcm-grid > .hcm-card:nth-child(even) .hcm-card__title-rule { margin-left: 0; margin-right: auto; }
    .hcm-grid > .hcm-card:nth-child(even) .hcm-card__prices { justify-content: flex-start; }
}

@media (max-width: 720px) {
    .hcm-list { columns: 1; }

    /* Two products per row on mobile */
    .hcm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 14px;
    }

    .hcm-grid > .hcm-card,
    .hcm-grid > .hcm-card:nth-child(even) {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }
    .hcm-grid > .hcm-card .hcm-card__media,
    .hcm-grid > .hcm-card:nth-child(even) .hcm-card__media {
        order: 0;
        max-width: 100%;
        margin: 0 auto;
    }
    .hcm-grid > .hcm-card .hcm-card__body,
    .hcm-grid > .hcm-card:nth-child(even) .hcm-card__body {
        order: 0;
        text-align: center;
        align-items: center;
        gap: 8px;
    }
    .hcm-grid > .hcm-card .hcm-card__title,
    .hcm-grid > .hcm-card:nth-child(even) .hcm-card__title {
        font-size: 1rem;
    }
    .hcm-grid > .hcm-card .hcm-card__title-rule,
    .hcm-grid > .hcm-card:nth-child(even) .hcm-card__title-rule {
        margin: 4px auto 0;
        width: 28px;
    }
    .hcm-grid > .hcm-card .hcm-card__prices,
    .hcm-grid > .hcm-card:nth-child(even) .hcm-card__prices {
        justify-content: center;
        gap: 4px 12px;
    }
    .hcm-price__label  { font-size: 0.65rem; }
    .hcm-price__amount { font-size: 0.88rem; }
    .hcm-card__desc    { font-size: 0.82rem; line-height: 1.4; }

    .hcm-list__head { flex-wrap: wrap; }
    .hcm-list__leader { display: none; }
    .hcm-list__prices { width: 100%; justify-content: flex-start; }
    .hcm-category__header { text-align: center; }

    /* Edge/scatter decorations hide on mobile so cards stay readable */
    .hcm-decoration--left-center,
    .hcm-decoration--right-center,
    .hcm-decoration--top-center,
    .hcm-decoration--bottom-center { display: none; }

    .hcm-decoration--size-medium { --hcm-deco-size: 90px; }
    .hcm-decoration--size-large  { --hcm-deco-size: 130px; }

    .hcm-hero { padding: 56px 20px; min-height: 320px; }
}

@media (max-width: 380px) {
    .hcm-menu { padding-left: 10px; padding-right: 10px; }
    .hcm-grid { gap: 24px 10px; }
    .hcm-card__title { font-size: 0.92rem; }
    .hcm-card__desc  { display: none; }
}

@media (max-width: 720px) {
    .hcm-menu { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
    .hcm-card,
    .hcm-card__image,
    .hcm-card__media::after { transition: none; }
}
