/* ============================================
   Thonglor Thai Sumner
   ============================================
   Palette taken from the restaurant itself: the
   blue-and-red neon on Marriner Street, the red
   triangle pattern on the drinks menus, cream
   walls, rimu floors.
   ============================================ */

/* ---- 1. Tokens -------------------------------------------------------- */

:root {
    --blue: #1e37c9;
    --blue-deep: #141f6e;
    --blue-soft: #e8ebfb;
    --red: #e63423;
    --red-deep: #b4230f;
    --red-soft: #fdeceb;

    --ink: #10143a;
    --ink-soft: #4a4f72;
    --ink-faint: #7b7f9c;

    --cream: #fbf4e7;
    --sand: #f2e7d3;
    --paper: #ffffff;
    --line: rgba(16, 20, 58, 0.11);

    --font-display: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --wrap: 1180px;
    --gutter: 1.25rem;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 28px;

    --shadow-sm: 0 2px 10px rgba(16, 20, 58, 0.06);
    --shadow: 0 14px 40px -18px rgba(16, 20, 58, 0.3);
    --shadow-lg: 0 30px 70px -30px rgba(16, 20, 58, 0.45);

    --strip-height: 36px;
    --header-height: 72px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- 2. Reset --------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--strip-height) + var(--header-height) + 1rem);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.has-status-strip { padding-top: var(--strip-height); }

img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

button { font: inherit; cursor: pointer; }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--blue); color: #fff; }

/* ---- 3. Layout helpers ------------------------------------------------ */

.wrap {
    width: min(100% - (var(--gutter) * 2), var(--wrap));
    margin-inline: auto;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 0.9rem;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--red);
    flex: none;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 0.4em; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; max-width: 38rem; }

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 2000;
    padding: 0.8rem 1.2rem;
    background: var(--ink);
    color: #fff;
    border-radius: 0 0 var(--radius-sm) 0;
    text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; }

/* Red triangles on blue — lifted straight off the drinks menu covers.
   An SVG tile so the edges stay crisp at any size. */
.tri-pattern {
    background-color: var(--blue-deep);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='30' viewBox='0 0 34 30'%3E%3Cg fill='%23e63423'%3E%3Cpath d='M8.5 4 15 15H2z'/%3E%3Cpath d='M25.5 19 32 30H19z'/%3E%3Cpath d='M25.5-11 32 0H19z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 34px 30px;
}

/* ---- 4. Buttons ------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    border: 2px solid transparent;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.18s var(--ease), background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(230, 52, 35, 0.9);
}
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn-blue {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(30, 55, 201, 0.9);
}
.btn-blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

.btn-ghost {
    background: transparent;
    border-color: currentColor;
    color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.btn-light {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    backdrop-filter: blur(8px);
}
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

/* ---- 5. Header -------------------------------------------------------- */

.site-header {
    position: sticky;
    top: var(--strip-height);
    z-index: 1000;
    background: rgba(251, 244, 231, 0.88);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.site-header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 4px 24px -16px rgba(16, 20, 58, 0.5);
}

.header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Wordmark — set live in Fredoka to match the restaurant's own logo:
   full-height T and L, small caps for the rest, "Thai Sumner" in red under.
   Markup: <span class="brand-name">T<i>hong</i>L<i>or</i></span>       */
.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    line-height: 0.92;
    margin-right: auto;
}
.brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--blue);
    white-space: nowrap;
}
.brand-name i {
    font-style: normal;
    font-size: 0.76em;
}
.brand-sub {
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    color: var(--red);
    margin-top: 1px;
}

.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav a {
    padding: 0.5rem 0.85rem;
    border-radius: 100px;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-soft);
    transition: color 0.18s, background 0.18s;
}
.nav a:hover { color: var(--ink); background: rgba(16, 20, 58, 0.05); }
.nav a.is-current { color: var(--blue); font-weight: 600; }

/* The nav carries its own order button for the mobile drawer only —
   on desktop the one in .header-actions is the single visible CTA.
   `.nav a` would otherwise out-specify .btn-primary's white text. */
.nav > a.btn { display: none; }
.nav > a.btn-primary,
.nav > a.btn-blue { color: #fff; }
.nav > a.btn-ghost { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
    display: none;
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    padding: 0;
}
/* Each bar is centred on the button and offset from there, so the two
   outer bars always meet exactly in the middle when it becomes a close X. */
.nav-toggle span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { transform: translateY(-7px); }
.nav-toggle span:nth-child(2) { transform: translateY(0); }
.nav-toggle span:nth-child(3) { transform: translateY(7px); }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .header-actions .btn { display: none; }

    .nav {
        /* Anchored to the header itself, not the viewport: the header's
           backdrop-filter already makes it the containing block for fixed
           children, which would double-count the status strip offset. */
        position: absolute;
        inset: 100% 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem var(--gutter) 1.5rem;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        /* The drawer is shorter than its own offset from the top, so a
           transform alone still leaves its tail over the header — hide it
           outright until it is opened. */
        transform: translateY(-110%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s var(--ease), visibility 0.35s;
    }
    .nav.is-open {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }
    .nav a {
        padding: 0.85rem 0.5rem;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.05rem;
    }
    .nav > a.btn {
        display: inline-flex;
        margin-top: 1rem;
        border-bottom: 0;
        justify-content: center;
    }
}

/* ---- 6. Hero ---------------------------------------------------------- */

.hero {
    position: relative;
    min-height: min(84vh, 780px);
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
    background: var(--ink);
}

.hero-media { position: absolute; inset: 0; }
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
}
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(8, 10, 32, 0.92) 0%, rgba(8, 10, 32, 0.58) 45%, rgba(8, 10, 32, 0.3) 100%),
        linear-gradient(to right, rgba(8, 10, 32, 0.72), rgba(8, 10, 32, 0.12) 65%, transparent 100%);
}

.hero-inner {
    position: relative;
    padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
    max-width: 44rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.9rem 0.4rem 0.5rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 1.4rem;
}
.hero-kicker .pin {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--red);
}
.hero-kicker .pin svg { width: 12px; height: 12px; }

.hero h1 {
    font-size: clamp(2.6rem, 8vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 0.35em;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero h1 em {
    font-style: normal;
    color: #ffb4a8;
}

.hero-lede {
    font-size: clamp(1.02rem, 2vw, 1.18rem);
    color: rgba(255, 255, 255, 0.86);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hours + phone ribbon under the hero */
.ribbon {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}
.ribbon-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 2.25rem;
    padding: 1rem 0;
}
.ribbon-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.ribbon-item svg { width: 17px; height: 17px; color: #ffb4a8; flex: none; }
.ribbon-item a { color: #fff; text-decoration: none; font-weight: 600; }
.ribbon-item a:hover { text-decoration: underline; }
.ribbon-item b { color: #fff; font-weight: 600; }
.ribbon-sep { margin-left: auto; }

.rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: #fff;
}
.rating-chip .stars { color: #ffc861; letter-spacing: 0.05em; }

/* ---- 7. Story --------------------------------------------------------- */

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}
@media (max-width: 880px) { .story-grid { grid-template-columns: 1fr; } }

.story-copy h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.story-copy p { color: var(--ink-soft); font-size: 1.05rem; }
.story-copy .lede { font-size: 1.18rem; color: var(--ink); font-weight: 450; }

.story-facts {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}
.story-facts li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    font-size: 0.98rem;
    color: var(--ink-soft);
}
.story-facts .tick {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
    margin-top: 2px;
}
.story-facts .tick svg { width: 12px; height: 12px; }

.story-media {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.story-media figure { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-media .tall { grid-row: span 2; aspect-ratio: 3 / 4.6; }
.story-media .wide { aspect-ratio: 3 / 2.1; }

.story-badge {
    position: absolute;
    left: -14px;
    bottom: 28px;
    background: var(--red);
    color: #fff;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    line-height: 1.15;
    max-width: 11rem;
}
.story-badge b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.story-badge span { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.92; }

/* ---- 8. Featured dishes (API) ----------------------------------------- */

.featured { background: var(--paper); }

.dish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
    gap: clamp(1rem, 2.2vw, 1.6rem);
}

/* ---- Loading skeletons ----
   The SIPO endpoints take a few seconds. These stand in for the real cards
   so the section reads as loading rather than as empty. */
@keyframes shimmer {
    100% { background-position: -200% 0; }
}

.skel {
    display: block;
    background: linear-gradient(90deg, var(--sand) 25%, #f8f1e3 50%, var(--sand) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: 6px;
}
.skel-line + .skel-line { margin-top: 0.5rem; }

.dish-card.is-skeleton {
    pointer-events: none;
    border-color: var(--line);
}
.dish-card.is-skeleton .dish-card-img { aspect-ratio: 1 / 1; }
.dish-card.is-skeleton .skel-line { height: 11px; }
.dish-card.is-skeleton .skel-line.w-40 { width: 40%; }
.dish-card.is-skeleton .skel-line.w-75 { width: 75%; height: 15px; }
.dish-card.is-skeleton .skel-line.w-90 { width: 90%; }
.dish-card.is-skeleton .skel-line.w-25 { width: 25%; margin-top: auto; height: 14px; }

.dish.is-skeleton { pointer-events: none; }
.dish.is-skeleton .skel-line { height: 12px; }
.dish.is-skeleton .skel-line.w-55 { width: 55%; }
.dish.is-skeleton .skel-line.w-80 { width: 80%; height: 10px; }

@media (prefers-reduced-motion: reduce) {
    .skel { animation: none; }
}

.dish-card {
    display: flex;
    flex-direction: column;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.dish-card-img { aspect-ratio: 1 / 1; }
.dish-card:hover .dish-card-img img { transform: scale(1.14); }
.dish-card-img img { transition: transform 0.6s var(--ease); }

.dish-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.1rem 1.15rem 1.2rem;
    flex: 1;
}
.dish-card-cat {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
}
.dish-card-name {
    font-family: var(--font-display);
    font-size: 1.14rem;
    font-weight: 600;
    line-height: 1.2;
}
.dish-card-desc {
    font-size: 0.87rem;
    line-height: 1.5;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dish-card-price {
    margin-top: auto;
    padding-top: 0.7rem;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--blue);
}

/* Closes off the dish grid — the last row rarely fills, so this gives the
   section a deliberate ending instead of a ragged one. */
.grid-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: clamp(2rem, 4vw, 2.75rem);
    border-top: 1px solid var(--line);
    text-align: center;
}
.grid-more p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-faint);
}

/* ---- 9. Gallery ------------------------------------------------------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 0.85rem;
}
.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--sand);
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid .g-tall { grid-row: span 2; }
.gallery-grid .g-wide { grid-column: span 2; }

@media (max-width: 880px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; }
    .gallery-grid .g-wide { grid-column: span 2; }
}

/* ---- 10. Find us ------------------------------------------------------ */

.find { background: var(--paper); }

.find-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: stretch;
}
@media (max-width: 880px) { .find-grid { grid-template-columns: 1fr; } }

.find-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}
.find-card h3 { font-size: 1.35rem; margin-bottom: 0.9rem; }

.info-list { display: grid; gap: 1.35rem; }
.info-row { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-icon {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
}
.info-icon svg { width: 17px; height: 17px; }
.info-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 0.2rem;
}
.info-value { font-size: 1rem; line-height: 1.45; }
.info-value a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.info-value a:hover { color: var(--blue); border-bottom-color: currentColor; }

.map-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 340px;
    background: var(--sand);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---- 11. Order CTA band ----------------------------------------------- */

.cta-band {
    position: relative;
    color: #fff;
    overflow: hidden;
    background: var(--blue-deep);
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='30' viewBox='0 0 34 30'%3E%3Cg fill='%23e63423'%3E%3Cpath d='M8.5 4 15 15H2z'/%3E%3Cpath d='M25.5 19 32 30H19z'/%3E%3Cpath d='M25.5-11 32 0H19z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 34px 30px;
    opacity: 0.22;
}
.cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.cta-inner h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 0.3em; }
.cta-inner p { color: rgba(255, 255, 255, 0.78); max-width: 34rem; margin: 0; }
.cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---- 12. Footer ------------------------------------------------------- */

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: clamp(1.75rem, 4vw, 3rem);
    padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* .footer-brand is a plain div, so the wordmark parts need stacking
   themselves (in the header their .brand parent is a flex column). */
.footer-brand .brand-name,
.footer-brand .brand-sub { display: block; }
.footer-brand .brand-name { font-size: 1.6rem; color: #8fa0ff; line-height: 1; }
.footer-brand .brand-sub { color: #ff9c8d; margin-top: 3px; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; }

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer-col a:hover { color: #fff; }

.footer-col .hours-row {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    font-size: 0.86rem;
    padding: 0.42rem 0;
}
.footer-col .hours-day { color: rgba(255, 255, 255, 0.6); }
.footer-col .hours-row.is-today { color: #8fa0ff; }
.footer-col .hours-row.is-today .hours-day::after { background: #8fa0ff; color: var(--ink); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    /* The extra bottom padding keeps the last line clear of the floating
       order button, which is pinned to the bottom-right of the viewport. */
    padding: 1.5rem 0 5.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-credits {
    display: flex;
    align-items: center;
    gap: 0.5rem 1.75rem;
    flex-wrap: wrap;
}
.footer-credits > span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
}
.footer-credits .credit-label {
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.42);
}
.footer-credits a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-bottom: 1px solid transparent;
}
.footer-credits a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.6); }

/* ---- 13. Page header (inner pages) ------------------------------------ */

.page-header {
    position: relative;
    color: #fff;
    background: var(--blue-deep);
    overflow: hidden;
}
.page-header .ph-media { position: absolute; inset: 0; }
.page-header .ph-media img { width: 100%; height: 100%; object-fit: cover; }
.page-header .ph-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 13, 40, 0.94), rgba(10, 13, 40, 0.6));
}
.ph-inner {
    position: relative;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
    max-width: 44rem;
}
.ph-inner h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); margin-bottom: 0.3em; }
.ph-inner p { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; max-width: 34rem; margin: 0; }
.ph-inner .eyebrow { color: #ff9c8d; }
.ph-inner .eyebrow::before { background: #ff9c8d; }

.crumbs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.2rem;
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---- 14. Menu page ---------------------------------------------------- */

.menu-bar {
    position: sticky;
    top: calc(var(--strip-height) + var(--header-height));
    z-index: 900;
    background: rgba(251, 244, 231, 0.94);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.menu-cats {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.7rem 0;
    scroll-behavior: smooth;
}
.menu-cats::-webkit-scrollbar { display: none; }

.cat-link {
    flex: none;
    padding: 0.42rem 0.95rem;
    border-radius: 100px;
    border: 1px solid var(--line);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-soft);
    white-space: nowrap;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.cat-link:hover { border-color: var(--blue); color: var(--blue); }
.cat-link.is-active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    font-weight: 600;
}
.cat-link.is-skeleton { border-color: transparent; border-radius: 100px; }

.menu-section { margin-bottom: clamp(2.75rem, 6vw, 4.5rem); scroll-margin-top: 10rem; }
.menu-section-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--ink);
    flex-wrap: wrap;
}
.menu-section-head h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); margin: 0; }
.menu-section-head p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* Two columns once there is room — a single 1180px-wide column of dishes
   strands the price miles from the name. */
.dish-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: 0.35rem 3rem;
}
.dish-list.is-bare { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.1rem 3rem; }

@media (max-width: 620px) {
    .dish-list, .dish-list.is-bare { grid-template-columns: 1fr; }
}

/* The skeleton rows carry their own shimmer; no extra dimming needed. */
#menu-sections.is-loading { min-height: 50vh; }

.dish {
    display: flex;
    gap: 0.95rem;
    align-items: center;
    padding: 0.7rem 0.9rem;
    margin: 0 -0.9rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: background 0.18s;
}
.dish:hover { background: var(--paper); }

.dish-thumb {
    flex: none;
    width: 76px;
    height: 76px;
    border-radius: var(--radius-sm);
}
.dish-thumb.is-empty { background: transparent; }

.dish-text { flex: 1; min-width: 0; }

.dish-head {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}
.dish-name {
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.3;
}
/* Leader dots between the dish name and its price. */
.dish-head::after {
    content: "";
    flex: 1;
    order: 1;
    align-self: center;
    border-bottom: 1px dotted rgba(16, 20, 58, 0.24);
    min-width: 1.5rem;
    margin-bottom: 3px;
}
.dish-price {
    order: 2;
    flex: none;
    font-family: var(--font-display);
    font-size: 1.04rem;
    font-weight: 600;
    color: var(--blue);
    font-variant-numeric: tabular-nums;
}
.dish-from {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.dish-desc {
    display: block;
    margin-top: 0.22rem;
    font-size: 0.89rem;
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 44rem;
}

.dish-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.6rem;
}
.choice {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.18rem 0.55rem;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-size: 0.78rem;
}
.choice-name { color: var(--ink-soft); }
.choice-price { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
    .dish-thumb { width: 66px; height: 66px; }
    .dish-name { font-size: 1rem; }
}

/* ---- 15. Contact page ------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}
.panel + .panel { margin-top: 1.5rem; }
.panel h2 { font-size: 1.45rem; margin-bottom: 0.2em; }
.panel > p { color: var(--ink-soft); font-size: 0.95rem; }
.panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.panel-head h2 { margin: 0; }

.today-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    background: var(--blue-soft);
    color: var(--blue-deep);
    font-size: 0.84rem;
    font-weight: 600;
}
.today-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; }

.contact-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.map-tall { min-height: 420px; }
.map-tall iframe { min-height: 420px; }

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}
.service-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.service-list .tick {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--red);
    display: grid;
    place-items: center;
}
.service-list .tick svg { width: 11px; height: 11px; }

/* ---- 16. Motion ------------------------------------------------------- */

.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.is-visible { opacity: 1; transform: none; }

/* ---- Floating order button ----
   Always available, bottom right. On desktop it carries its label; on
   phones it shrinks to the icon alone so it never covers the content. */
.order-fab {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 960;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    height: 56px;
    padding: 0 1.5rem;
    border-radius: 100px;
    background: var(--red);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 12px 30px -10px rgba(230, 52, 35, 0.75), 0 2px 8px rgba(16, 20, 58, 0.18);
    transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.order-fab:hover {
    background: var(--red-deep);
    transform: translateY(-3px);
    box-shadow: 0 18px 38px -12px rgba(230, 52, 35, 0.85), 0 2px 8px rgba(16, 20, 58, 0.18);
}
.order-fab svg { width: 21px; height: 21px; flex: none; }

@media (max-width: 860px) {
    .order-fab {
        width: 56px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }
    .order-fab .fab-label {
        /* Visually hidden, still read out by screen readers. */
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* Back-to-top sits bottom-LEFT: the bottom-right corner belongs to the
   floating order button, and stacking the two collided with the footer. */
.to-top {
    position: fixed;
    left: 1.1rem;
    bottom: 1.1rem;
    z-index: 950;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
    .to-top { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-in { opacity: 1; transform: none; }
}

/* ---- 17. Print -------------------------------------------------------- */

@media print {
    .status-strip, .site-header, .menu-bar, .to-top, .cta-band, .site-footer, .page-header .ph-media { display: none !important; }
    body { background: #fff; padding-top: 0; }
    .dish { break-inside: avoid; }
    .menu-section { break-inside: avoid-page; }
}
