/* ============================================================
   Bee Pizzeria — Christchurch
   Papanui  ·  Church Corner
   ============================================================ */

/* ---------- 1. Tokens ---------- */
/* Light, warm and food-first: cream paper, charcoal type, and the colours the
   product is actually made of — tomato, baked-crust amber, basil green.
   The logo's black stays the type colour, so the mark still sits at home. */
:root {
    color-scheme: light;

    --bg:         #FFF7EC;   /* cream page */
    --surface:    #FFFFFF;   /* cards, panels */
    --surface-2:  #FCEEDC;   /* warm raised / empty media */
    --surface-3:  #F7E2C7;

    --ink:        #16181F;   /* type — the logo's black, warmed a hair */
    --cream:      #FFF6E9;

    --tomato:     #C4351E;   /* 5.1:1 on cream, 5.1:1 under cream type */
    --tomato-lt:  #E2452B;   /* decorative fills only, never behind text */
    --amber:      #F5A524;   /* decorative only — the squiggle */
    --amber-lt:   #FFEBC9;   /* stars on the tomato panel */
    --basil:      #277A4B;

    --accent:      var(--tomato);
    --accent-soft: var(--tomato);

    --line:       rgba(22, 24, 31, .13);
    --line-soft:  rgba(22, 24, 31, .07);

    /* Alphas chosen so even the dimmest label clears 4.5:1 on --bg. */
    --muted:      rgba(22, 24, 31, .72);
    --muted-dim:  rgba(22, 24, 31, .63);

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;

    --shadow: 0 18px 44px rgba(22, 24, 31, .14);
    --shadow-sm: 0 6px 18px rgba(22, 24, 31, .08);

    --nav-h: 72px;
    --gutter: 20px;
    --maxw: 1180px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 76px); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0;
}

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Shared bits ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: 'Outfit', sans-serif;
    font-size: .78rem; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--accent);
}
.eyebrow::before {
    content: ''; width: 22px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--accent));
}

.section { padding: clamp(60px, 9vw, 104px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); margin: .7rem 0 .6rem; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.55rem;
    border-radius: var(--r-pill);
    font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .95rem;
    letter-spacing: .01em;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent-soft);
    color: var(--cream);
    box-shadow: 0 8px 26px rgba(22, 24, 31, .16);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(22, 24, 31, .22); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(22, 24, 31, .03); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: .62rem 1.15rem; font-size: .88rem; }
.btn-block { width: 100%; }

.honey-bg {
    background-image: url('../images/honeycomb.svg');
    background-size: 84px 48.5px;
    opacity: .07;
}

/* Status chip */
.status-chip {
    display: inline-flex; align-items: center; gap: .45rem;
    white-space: nowrap;
    padding: .32rem .75rem;
    border-radius: var(--r-pill);
    font-size: .78rem; font-weight: 600;
    background: rgba(22, 24, 31, .06);
    border: 1px solid var(--line);
    color: var(--muted);
}
.status-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status-chip.is-open {
    color: var(--cream); background: var(--basil); border-color: transparent; font-weight: 700;
}
.status-chip.is-open .dot { background: var(--cream); animation: pulse 2.2s infinite; }
.status-chip.is-closed {
    color: var(--tomato); background: rgba(196, 53, 30, .07); border-color: rgba(196, 53, 30, .30);
}
.status-chip.is-closed .dot { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
    70%  { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Rating badge */
.rating-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .38rem .8rem;
    border-radius: var(--r-pill);
    background: rgba(22, 24, 31, .05);
    border: 1px solid var(--line);
    font-size: .82rem;
    transition: border-color .2s, background .2s;
}
.rating-badge:hover { border-color: rgba(196, 53, 30, .45); background: rgba(22, 24, 31, .08); }
.rating-stars { color: var(--accent); letter-spacing: .06em; font-size: .8rem; }
.rating-num { font-weight: 700; font-family: 'Outfit', sans-serif; }
.rating-label { color: var(--muted); }

.service-pill {
    display: inline-block;
    padding: .22rem .6rem; margin: 0 .3rem .3rem 0;
    border-radius: var(--r-pill);
    font-size: .74rem; font-weight: 500;
    background: rgba(196, 53, 30, .07);
    border: 1px solid rgba(196, 53, 30, .24);
    color: var(--accent);
}

.address-link { color: inherit; transition: color .2s; }
.address-link:hover { color: var(--accent); }

.store-alert {
    display: flex; align-items: flex-start; gap: .55rem;
    margin-top: 1rem; padding: .7rem .9rem;
    border-radius: var(--r-sm);
    background: rgba(22, 24, 31, .1);
    border: 1px solid rgba(22, 24, 31, .22);
    font-size: .88rem; color: var(--accent-soft);
}
.store-alert .alert-mark { flex: none; }

/* ---------- 4. Navigation ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 90;
    height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(255, 247, 236, .94);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transition: background .3s, border-color .3s, color .3s;
}
.logo-light { display: none; }

body.has-hero .nav:not(.scrolled) {
    background: transparent;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    color: var(--cream);
}
body.has-hero .nav:not(.scrolled) .logo-dark { display: none; }
body.has-hero .nav:not(.scrolled) .logo-light { display: block; }
body.has-hero .nav:not(.scrolled) .brand-sub { color: var(--amber-lt); }
body.has-hero .nav:not(.scrolled) .nav-links a { color: rgba(255, 246, 233, .93); }
body.has-hero .nav:not(.scrolled) .nav-links a:hover { color: var(--cream); background: rgba(255, 246, 233, .14); }
body.has-hero .nav:not(.scrolled) .nav-links a.active { color: var(--cream); }
body.has-hero .nav:not(.scrolled) .nav-actions .btn-primary { background: var(--ink); color: var(--cream); }
body.has-hero .nav:not(.scrolled) .nav-toggle { color: var(--cream); }
.nav .container { display: flex; align-items: center; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .65rem; margin-right: auto; min-width: 0; }
.brand img { height: 42px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.brand-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.02rem; letter-spacing: .02em; }
.brand-sub { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
    padding: .5rem .9rem; border-radius: var(--r-pill);
    font-size: .93rem; font-weight: 500; color: var(--muted);
    transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(22, 24, 31, .05); }
.nav-links a.active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: .6rem; margin-left: .8rem; }
.nav-call { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--muted); padding: .5rem .7rem; }
.nav-call:hover { color: var(--accent); }
.nav-call svg { width: 16px; height: 16px; }

.nav-toggle { display: none; padding: .45rem; border-radius: var(--r-sm); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
    .nav-toggle { display: inline-flex; }
    .nav-call span { display: none; }
    .nav-links {
        position: fixed; inset: var(--nav-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: .6rem var(--gutter) 1.2rem;
        background: rgba(255, 247, 236, .99);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        transition: transform .35s var(--ease);
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { padding: .85rem .4rem; border-radius: 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }

    /* The drawer drops down on its own cream panel, so its links stay dark even
       while the bar itself is still floating over the tomato hero. */
    body.has-hero .nav:not(.scrolled) .nav-links a { color: var(--muted); }
    body.has-hero .nav:not(.scrolled) .nav-links a:hover,
    body.has-hero .nav:not(.scrolled) .nav-links a.active { color: var(--accent); background: transparent; }
}

/* ---------- 5. Hero ---------- */
/* A solid tomato panel carries the copy, and the pie sits on top of it at full
   strength — no scrim over the photograph, so the food actually reads. */
.hero {
    position: relative;
    background: var(--tomato);
    color: var(--cream);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: url('../images/honeycomb.svg');
    background-size: 84px 48.5px;
    opacity: .12;
    filter: invert(1);
    pointer-events: none;
}
.hero-grid {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding: calc(var(--nav-h) + 56px) var(--gutter) 84px;
}

.hero-copy { max-width: 620px; }
.hero-squiggle { display: block; width: 190px; height: auto; color: var(--amber); margin-bottom: 1.1rem; }
.hero h1 {
    font-size: clamp(2.6rem, 6.4vw, 4.6rem);
    font-weight: 800;
    line-height: 1.02;
    color: var(--cream);
    margin: 0 0 1.2rem;
}
.hero-lead {
    font-size: clamp(1rem, 1.9vw, 1.14rem);
    color: rgba(255, 246, 233, .93);
    margin: 0 0 2rem;
    max-width: 46ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.8rem; }
.hero .btn-primary { background: var(--ink); color: var(--cream); box-shadow: 0 10px 28px rgba(22, 24, 31, .3); }
.hero .btn-primary:hover { box-shadow: 0 16px 34px rgba(22, 24, 31, .38); }
.hero .btn-ghost { border-color: rgba(255, 246, 233, .45); color: var(--cream); background: rgba(255, 246, 233, .08); }
.hero .btn-ghost:hover { border-color: var(--cream); background: rgba(255, 246, 233, .16); color: var(--cream); }

.hero-ratings { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero .rating-badge {
    background: var(--cream);
    border-color: transparent;
    color: var(--ink);
}
.hero .rating-badge:hover { background: #FFFFFF; }
.hero .rating-stars { color: var(--accent); }
.hero .rating-label { color: var(--muted); }
.hero .eyebrow { color: var(--amber-lt); }
.hero .eyebrow::before { background: linear-gradient(90deg, transparent, var(--amber-lt)); }

/* The pie is a cut-out, so it sits straight on the panel and runs off the
   corner rather than living inside a frame. */
.hero-shot { position: relative; z-index: 1; margin: 2.6rem auto 0; width: min(86%, 400px); }
.hero-shot img {
    width: 100%; height: auto; display: block;
    filter: drop-shadow(0 24px 38px rgba(22, 24, 31, .34));
}
.hero-copy { position: relative; z-index: 2; }

@media (min-width: 941px) {
    .hero-shot {
        position: absolute; margin: 0;
        top: 50%; right: -6%;
        transform: translateY(-50%);
        /* Scales with the viewport so the headline never runs into the crust. */
        width: clamp(400px, 46vw, 660px);
        pointer-events: none;
    }
    .hero-copy { max-width: min(540px, 50%); }
}

/* Marquee strip, straight off the bottom of the panel. */
.marquee {
    position: relative; z-index: 3;
    background: var(--cream);
    border-block: 2px solid var(--ink);
    overflow: hidden;
    padding: .7rem 0;
}
.marquee-track {
    display: flex; align-items: center; gap: 1.6rem;
    width: max-content;
    animation: marquee 32s linear infinite;
    font-family: 'Outfit', sans-serif; font-weight: 700;
    font-size: clamp(.95rem, 2.2vw, 1.25rem);
    color: var(--ink);
    white-space: nowrap;
}
.marquee-track .star { color: var(--tomato); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

@media (max-width: 940px) {
    .hero-ratings { display: none; }
    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: calc(var(--nav-h) + 40px);
        padding-bottom: 60px;
        gap: 2.4rem;
    }
    .hero-copy { max-width: none; }
}

/* ---------- 6. Branch cards ---------- */
.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}
.branch-card {
    position: relative;
    display: flex; flex-direction: column;
    padding: 1.6rem;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color .3s, transform .3s var(--ease);
}
.branch-card:hover { border-color: rgba(22, 24, 31, .3); transform: translateY(-3px); }
.branch-card::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 160px; height: 160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 24, 31, .16), transparent 70%);
    pointer-events: none;
}
.branch-card-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: .7rem 1rem; margin-bottom: 1.1rem;
}
.branch-card h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.branch-card .branch-area { color: var(--muted); font-size: .88rem; }

.branch-meta { display: grid; gap: .85rem; margin-bottom: 1.2rem; }
.branch-meta-row { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; }
.branch-meta-row svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--accent); }
.branch-meta-row .label {
    display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted-dim); margin-bottom: .1rem;
}
.branch-meta-row a:hover { color: var(--accent); }

.branch-actions { display: flex; gap: .6rem; margin-top: auto; flex-wrap: wrap; }
.branch-actions .btn { flex: 1 1 auto; }

/* ---------- 7. Dish cards (home) ---------- */
.dish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.dish-card {
    display: flex; flex-direction: column;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .3s var(--ease), border-color .3s;
}
.dish-card:hover { transform: translateY(-4px); border-color: rgba(196, 53, 30, .35); }
.dish-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dish-card:hover .dish-media img { transform: scale(1.06); }

/* No photo in SIPO for this dish. A plain light frame that says so, so it
   reads as a gap waiting to be filled rather than as decoration. Uploading a
   photo to the product in SIPO replaces this panel with the real image. */
.dish-media.is-empty {
    display: grid; place-items: center;
    background: var(--surface-2);
}
.dish-mark {
    display: flex; flex-direction: column; align-items: center; gap: .55rem;
    color: var(--muted-dim);
}
.dish-mark svg { width: 34px; height: 34px; display: block; }
.dish-mark-text {
    font-size: .72rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
}
.dish-badge {
    position: absolute; top: .75rem; left: .75rem;
    padding: .28rem .7rem; border-radius: var(--r-pill);
    background: rgba(22, 24, 31, .84);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #F0F0F0; font-size: .72rem; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
    white-space: nowrap;
}
/* On the light "no photo" panel the badge needs no translucency to sit on. */
.dish-media.is-empty .dish-badge {
    background: var(--ink); border-color: transparent; backdrop-filter: none;
}
.dish-body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.dish-body h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.dish-body p {
    color: var(--muted); font-size: .89rem; margin: 0 0 1.1rem; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.dish-order {
    padding: .48rem 1rem; border-radius: var(--r-pill);
    border: 1px solid var(--line); font-size: .84rem; font-weight: 600;
    transition: background .2s, color .2s, border-color .2s;
}
.dish-order:hover { background: var(--accent); color: var(--cream); border-color: var(--accent); }

.dish-prices { display: flex; flex-wrap: wrap; gap: .4rem; }
.size-price {
    display: inline-flex; align-items: baseline; gap: .3rem;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .98rem;
    color: var(--accent);
}
.size-price em {
    font-style: normal; font-weight: 500; font-size: .68rem;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dim);
}
.size-price.single { font-size: 1.12rem; }

/* ---------- 8. Feature / about ---------- */
.feature-split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 860px) { .feature-split { grid-template-columns: 1fr; } }

.feature-collage { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.feature-collage img { border-radius: var(--r-md); aspect-ratio: 1; object-fit: cover; width: 100%; }
.feature-collage img:first-child { grid-row: span 2; aspect-ratio: 3 / 4.2; }

.feature-list { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.feature-item { display: flex; gap: .9rem; }
.feature-icon {
    flex: none; width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(196, 53, 30, .09); border: 1px solid rgba(196, 53, 30, .22);
    color: var(--accent);
}
.feature-icon svg { width: 19px; height: 19px; }
.feature-item h4 { font-size: 1rem; margin-bottom: .15rem; }
.feature-item p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- 9. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
    position: relative;
    border-radius: var(--r-lg);
    padding: clamp(2.2rem, 5vw, 3.4rem);
    background: linear-gradient(135deg, rgba(22, 24, 31, .14), rgba(22, 24, 31, .03));
    border: 1px solid rgba(22, 24, 31, .22);
    text-align: center;
    overflow: hidden;
}
.cta-inner::before {
    content: ''; position: absolute; inset: 0;
    background-image: url('../images/honeycomb.svg');
    background-size: 84px 48.5px;
    opacity: .08;
}
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); margin-bottom: .7rem; }
.cta-inner p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.7rem; }
.cta-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- 10. Hours lists ---------- */
.hours-list li {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
    padding: .42rem 0;
    font-size: .88rem;
    border-bottom: 1px solid var(--line-soft);
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { color: var(--muted); }
.hours-list .time { text-align: right; }
.hours-list li.today { color: var(--accent); font-weight: 600; }
.hours-list li.today .day { color: var(--accent); }

.hours-table { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.hours-row {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
    padding: .78rem 1.05rem;
    font-size: .93rem;
    border-bottom: 1px solid var(--line-soft);
}
.hours-row:last-child { border-bottom: 0; }
.hours-row:nth-child(odd) { background: rgba(22, 24, 31, .015); }
.hours-row .day { color: var(--muted); }
.hours-row .time { text-align: right; font-variant-numeric: tabular-nums; }
.hours-row.today { background: rgba(196, 53, 30, .07); color: var(--accent); font-weight: 600; }
.hours-row.today .day { color: var(--accent); }

.closed-day { color: var(--muted-dim); }
.next-day {
    display: inline-block; margin-left: .4rem; padding: .05rem .38rem;
    border-radius: 5px; font-size: .66rem; font-weight: 600;
    background: rgba(22, 24, 31, .07); color: var(--muted);
    vertical-align: middle;
}

/* ---------- 11. Page header (menu / contact) ---------- */
.page-header {
    position: relative;
    padding: calc(var(--nav-h) + 56px) 0 48px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.page-header::before {
    content: ''; position: absolute; inset: 0;
    background-image: url('../images/honeycomb.svg');
    background-size: 84px 48.5px;
    opacity: .06;
    mask-image: linear-gradient(180deg, #000, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}
.page-header::after {
    content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
    width: 620px; height: 320px;
    background: radial-gradient(circle, rgba(22, 24, 31, .13), transparent 70%);
    pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(2.1rem, 5.6vw, 3.2rem); margin: .7rem 0 .7rem; }
.page-header p { color: var(--muted); max-width: 54ch; margin: 0; }

/* ---------- 12. Menu page ---------- */
.menu-toolbar {
    position: sticky; top: var(--nav-h); z-index: 60;
    background: rgba(255, 247, 236, .95);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.branch-tabs { display: flex; gap: .55rem; padding: .9rem 0 .7rem; flex-wrap: wrap; }
.branch-tab {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: .55rem 1.1rem;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: rgba(22, 24, 31, .03);
    transition: border-color .25s, background .25s, color .25s;
    text-align: left;
}
.branch-tab:hover { border-color: rgba(22, 24, 31, .4); }
.branch-tab.active {
    background: var(--accent-soft);
    border-color: transparent; color: var(--cream);
}
.branch-tab-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .98rem; }
.branch-tab-area { font-size: .72rem; opacity: .7; }
.branch-tab.active .branch-tab-area { opacity: .8; }

.cat-chips {
    display: flex; gap: .45rem; padding: 0 0 .85rem;
    overflow-x: auto; scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
    flex: none;
    padding: .42rem .95rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    font-size: .84rem; color: var(--muted);
    white-space: nowrap;
    transition: color .2s, border-color .2s, background .2s;
}
.cat-chip:hover { color: var(--ink); border-color: rgba(22, 24, 31, .22); }
.cat-chip.active { color: var(--accent); border-color: rgba(196, 53, 30, .42); background: rgba(196, 53, 30, .07); }

.menu-note {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem; margin: 2rem 0 .5rem;
    padding: 1rem 1.2rem;
    border-radius: var(--r-md);
    background: var(--surface); border: 1px solid var(--line);
    font-size: .89rem; color: var(--muted);
}

.menu-section { padding: 2.6rem 0 .6rem; }
.menu-section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; padding-bottom: .85rem; margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
}
.menu-section-head h2 { font-size: clamp(1.3rem, 3.2vw, 1.75rem); color: var(--accent); }
.menu-section-count { font-size: .78rem; color: var(--muted-dim); white-space: nowrap; }

.dish-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: .6rem 2rem; }
.dish-row {
    display: flex; gap: 1.2rem; align-items: flex-start; justify-content: space-between;
    padding: .95rem 0;
    border-bottom: 1px dashed var(--line-soft);
}
.dish-row .dish-info { flex: 1; min-width: 0; }
/* Only rendered when the product actually has a photo in SIPO. */
.dish-thumb {
    flex: none; width: 76px; height: 76px;
    border-radius: var(--r-sm); overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--line);
}
.dish-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dish-row.has-thumb { gap: 1rem; }
.dish-info h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.dish-info p { margin: 0; color: var(--muted); font-size: .86rem; }
.dish-options { margin-top: .35rem !important; font-size: .74rem !important; color: var(--muted-dim) !important; }
.dish-row .dish-prices { flex: none; flex-direction: column; align-items: flex-end; gap: .1rem; text-align: right; }
.dish-row .size-price { flex-direction: row-reverse; gap: .5rem; }

.menu-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.menu-empty a { color: var(--accent); text-decoration: underline; }

.loading { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 4rem 1rem; color: var(--muted); }
.spinner {
    width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid rgba(22, 24, 31, .2); border-top-color: var(--accent);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 13. Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }
.contact-card {
    border-radius: var(--r-lg);
    background: var(--surface); border: 1px solid var(--line);
    overflow: hidden;
    display: flex; flex-direction: column;
}
.contact-map { aspect-ratio: 16 / 9; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.contact-map iframe {
    width: 100%; height: 100%; border: 0; display: block;
    filter: grayscale(1) contrast(1.04);
    transition: filter .3s;
}
.contact-card:hover .contact-map iframe { filter: grayscale(0) contrast(1); }
.contact-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem; flex: 1; }
.contact-body h2 { font-size: 1.4rem; }
.contact-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.contact-hours-label {
    font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted-dim); margin-bottom: .55rem;
}
.contact-body .branch-actions { margin-top: auto; padding-top: .3rem; }

/* ---------- 14. Footer ---------- */
.footer {
    position: relative;
    margin-top: clamp(60px, 8vw, 96px);
    padding-top: clamp(48px, 7vw, 72px);
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface), var(--bg));
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.4rem 2rem;
    padding-bottom: 2.6rem;
}
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h4 {
    font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1rem;
}
.footer-about p { color: var(--muted); font-size: .9rem; margin: 1rem 0 1.1rem; max-width: 34ch; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-branch .branch-name { font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.footer-branch .branch-addr { color: var(--muted); font-size: .85rem; margin-bottom: .55rem; }
.footer-branch .branch-phone { font-size: .88rem; }
.footer-branch .branch-phone:hover { color: var(--accent); }
.footer-branch .hours-list { margin-top: .8rem; }

.footer-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 1.3rem 0; border-top: 1px solid var(--line);
    font-size: .82rem; color: var(--muted-dim);
}
.footer-credits { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.footer-credits a { color: var(--muted); transition: color .2s; }
.footer-credits a:hover { color: var(--accent); }

/* ---------- 15. Branch picker modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    display: grid; place-items: center;
    padding: var(--gutter);
    background: rgba(255, 247, 236, .84);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden;
    transition: opacity .28s var(--ease), visibility .28s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 2 * var(--gutter));
    overflow-y: auto;
    padding: clamp(1.6rem, 4vw, 2.2rem);
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(18px) scale(.98);
    transition: transform .3s var(--ease);
}
.modal-overlay.active .modal { transform: none; }
.modal-close {
    position: absolute; top: .9rem; right: .9rem;
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--bg); color: var(--muted);
    border: 1px solid var(--line);
    font-size: 1.25rem; line-height: 1;
    transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.modal-head { text-align: center; margin-bottom: 1.5rem; }
.modal-head h3 { font-size: 1.5rem; margin: .65rem 0 .4rem; }
.modal-head p { color: var(--muted); font-size: .92rem; margin: 0; }

.branch-choices { display: grid; gap: .8rem; }
.branch-choice {
    display: flex; align-items: center; gap: 1rem;
    width: 100%; padding: 1rem 1.15rem;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: rgba(22, 24, 31, .03);
    text-align: left;
    transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.branch-choice:hover { border-color: rgba(196, 53, 30, .5); background: rgba(22, 24, 31, .07); transform: translateY(-2px); }
.branch-choice-mark {
    flex: none; width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(196, 53, 30, .09); border: 1px solid rgba(196, 53, 30, .24);
    color: var(--accent);
}
.branch-choice-mark svg { width: 19px; height: 19px; }
.branch-choice-body { flex: 1; min-width: 0; }
.branch-choice-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.02rem; }
.branch-choice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .25rem; font-size: .8rem; color: var(--muted); }
.branch-choice-arrow { flex: none; color: var(--muted-dim); transition: transform .25s var(--ease), color .25s; }
.branch-choice:hover .branch-choice-arrow { color: var(--accent); transform: translateX(3px); }
.branch-choice-arrow svg { width: 18px; height: 18px; }

/* ---------- 16. Floating order button ---------- */
.floating-order {
    position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 80;
    display: none; align-items: center; gap: .5rem;
    padding: .85rem 1.3rem;
    border-radius: var(--r-pill);
    background: var(--accent-soft);
    color: var(--cream); font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .92rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.floating-order svg { width: 17px; height: 17px; }
@media (max-width: 880px) { .floating-order { display: inline-flex; } }

/* ---------- 17. Back to top ---------- */
.to-top {
    position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 79;
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--line); color: var(--muted);
    box-shadow: var(--shadow-sm);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .3s, visibility .3s, transform .3s var(--ease), color .2s, border-color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent); border-color: rgba(22, 24, 31, .4); }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 880px) { .to-top { bottom: calc(var(--gutter) + 62px); } }

/* ---------- 18. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- 20. Gallery ---------- */
.gallery-toolbar {
    position: sticky; top: var(--nav-h); z-index: 60;
    background: rgba(255, 247, 236, .95);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.gallery-toolbar .container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding-block: .85rem;
}
.gallery-toolbar .cat-chips { padding: 0; }
#gallery-count { font-size: .82rem; color: var(--muted-dim); white-space: nowrap; }

/* Masonry-ish wall: CSS columns keep every photo at its own aspect ratio. */
.shot-wall { columns: 4; column-gap: .9rem; padding: 2.2rem 0 1rem; }
@media (max-width: 1080px) { .shot-wall { columns: 3; } }
@media (max-width: 760px)  { .shot-wall { columns: 2; } }
@media (max-width: 420px)  { .shot-wall { columns: 1; } }

.shot {
    position: relative; display: block; width: 100%;
    margin: 0 0 .9rem; padding: 0;
    break-inside: avoid;
    border: 1px solid var(--line); border-radius: var(--r-md);
    overflow: hidden; background: var(--surface-2);
    cursor: pointer;
    transition: border-color .25s, transform .3s var(--ease);
}
.shot:hover { border-color: rgba(196, 53, 30, .45); transform: translateY(-3px); }
.shot img { width: 100%; height: auto; display: block; }
.shot-tag {
    position: absolute; left: .6rem; bottom: .6rem;
    padding: .2rem .6rem; border-radius: var(--r-pill);
    background: rgba(22, 24, 31, .82);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .16);
    font-size: .7rem; font-weight: 600; color: #F0F0F0;
    opacity: 0; transform: translateY(4px);
    transition: opacity .25s, transform .25s var(--ease);
}
.shot:hover .shot-tag { opacity: 1; transform: none; }

/* Home teaser strip */
.gallery-strip {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .9rem;
}
.gallery-strip .shot { margin: 0; aspect-ratio: 1; }
.gallery-strip .shot img { height: 100%; object-fit: cover; }

/* ---------- 21. Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 210;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(255, 247, 236, .96);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), visibility .25s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-stage {
    margin: 0; max-width: 100%; max-height: 100%;
    display: flex; flex-direction: column; align-items: center; gap: .9rem;
}
.lightbox-stage img {
    max-width: 100%; max-height: calc(100vh - 9rem);
    width: auto; height: auto;
    border-radius: var(--r-md);
    box-shadow: var(--shadow);
}
.lightbox-stage figcaption { color: var(--muted); font-size: .85rem; text-align: center; }
.lightbox-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    font-size: 1.5rem; line-height: 1;
    transition: background .2s, color .2s;
}
.lightbox-close:hover { background: var(--ink); color: var(--cream); }
.lightbox-nav {
    flex: none; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: background .2s, color .2s;
}
.lightbox-nav:hover { background: var(--accent); color: var(--cream); }
.lightbox-nav svg { width: 22px; height: 22px; }
@media (max-width: 620px) {
    .lightbox { padding: 1rem; }
    .lightbox-nav { position: absolute; bottom: 1.2rem; }
    .lightbox-nav.prev { left: 25%; }
    .lightbox-nav.next { right: 25%; }
    .lightbox-stage img { max-height: calc(100vh - 11rem); }
}

/* ---------- 19. Small screens ---------- */
@media (max-width: 560px) {
    :root { --gutter: 16px; --nav-h: 64px; }
    .brand img { height: 36px; }
    .brand-name { font-size: .94rem; }
    .brand-sub { display: none; }
    /* The floating button already covers ordering at this width. */
    .nav-actions { display: none; }
    .hero-cta .btn { flex: 1 1 100%; }
    .dish-list { grid-template-columns: 1fr; }
    .branch-actions { flex-direction: column; }
    .menu-note { flex-direction: column; align-items: flex-start; }
}
