/* ========================================================================
   Pizzeria Fratelli — editorial italian bistro
   ======================================================================== */

:root {
    /* --- palette: warm paper, charcoal, terracotta, olive --- */
    --paper:        #f1e9d7;
    --paper-soft:   #e8dec7;
    --paper-deep:   #ddd1b6;
    --ink:          #1c1814;
    --ink-soft:     #3c342a;
    --ink-mute:     #5a5042;
    --terracotta:   #b8543a;
    --terracotta-d: #8d3d27;
    --logo-red:     #d2303c;
    --olive:        #6b7a3f;
    --olive-d:      #4f5a2e;
    --wine:         #5c2825;
    --cream:        #faf5e8;

    /* --- type --- */
    --serif:  'Fraunces', 'Cormorant Garamond', 'Times New Roman', serif;
    --sans:   'Manrope', system-ui, -apple-system, sans-serif;

    /* --- rhythm --- */
    --gutter: clamp(1.25rem, 3vw, 2.5rem);
    --section: clamp(4rem, 10vw, 9rem);

    /* --- effects --- */
    --shadow-soft: 0 10px 40px -20px rgba(28,24,20,.35);
    --shadow-card: 0 30px 80px -40px rgba(28,24,20,.55), 0 4px 12px -6px rgba(28,24,20,.2);

    --ease-out: cubic-bezier(.2,.7,.2,1);
}

/* ========================================================================
   Reset + base
   ======================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    /* low z-index so lightbox (200) paints above the grain */
    z-index: 1;
    opacity: .35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.09  0 0 0 0 0.08  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: var(--terracotta); color: var(--cream); }

/* ========================================================================
   Typography
   ======================================================================== */
h1, h2, h3, h4, h5 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--ink);
    font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}

.display {
    font-family: var(--serif);
    font-weight: 400;
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    color: var(--terracotta);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.eyebrow::before {
    content: '';
    width: 1.8rem; height: 1px;
    background: var(--terracotta);
}

.italic-accent {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    color: var(--terracotta);
}

/* ========================================================================
   Layout primitives
   ======================================================================== */
.container {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container-narrow { max-width: 980px; }

/* Skip-link — visible on keyboard focus only (a11y + SEO landmark) */
.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 4px;
    transform: translateY(-200%);
    transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--terracotta); outline-offset: 2px; }

/* ========================================================================
   Buttons
   ======================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.8rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: all .35s var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--ink);
    color: var(--cream);
}
.btn-primary:hover {
    background: var(--terracotta);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

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

.btn-text {
    padding: 0;
    background: none;
    border-radius: 0;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}
.btn-text .arrow { transition: transform .3s var(--ease-out); }
.btn-text:hover .arrow { transform: translateX(4px); }

/* ========================================================================
   CROSSROAD (rozcestník) — index.htm
   ======================================================================== */
body.crossroad {
    background:
        linear-gradient(180deg,
            rgba(28, 24, 20, 0.78) 0%,
            rgba(28, 24, 20, 0.84) 55%,
            rgba(28, 24, 20, 0.92) 100%),
        url('../images/crossroad-pizza.jpg') center/cover no-repeat var(--ink);
    color: var(--cream);
    height: 100dvh;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    overflow: hidden;
}

/* Crossroad on dark — flip hero/footer text colors to cream */
body.crossroad .crossroad-hero .display { color: var(--cream); }
body.crossroad .crossroad-hero .display .accent { color: var(--logo-red); }
body.crossroad .crossroad-hero .lead    { color: rgba(250, 245, 232, .82); }
body.crossroad .crossroad-hero .lead .italic-accent { color: var(--logo-red); }
body.crossroad .crossroad-footer        { color: rgba(250, 245, 232, .55); }
body.crossroad .crossroad-footer a:hover { color: var(--terracotta); }

.crossroad-header {
    padding: 1rem var(--gutter) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}
.crossroad-header .brand-mark {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.crossroad-header .brand-mark img {
    height: clamp(52px, 6vw, 80px);
    width: auto;
}
.crossroad-hero {
    text-align: center;
    padding: 1.2rem var(--gutter) 0.6rem;
    position: relative;
}
.crossroad-hero .eyebrow {
    margin-bottom: 0.8rem;
}
.crossroad-hero .display {
    font-size: clamp(2.4rem, 7vw, 5rem);
    margin-bottom: 0;
    line-height: 0.95;
}
.crossroad-hero .display br { display: none; }
.crossroad-hero .display .accent {
    color: var(--terracotta);
    font-style: italic;
}
.crossroad-hero .lead {
    max-width: 36rem;
    margin: 0.9rem auto 0;
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.crossroad-locations {
    padding: 1rem var(--gutter) 1.2rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    max-width: 1320px;
    margin-inline: auto;
    width: 100%;
    min-height: 0;          /* allow children to shrink in grid 1fr row */
    align-content: stretch;
}
@media (min-width: 880px) {
    .crossroad-locations {
        grid-template-columns: 1fr 1fr;
        gap: 1.8rem;
        padding: 1.2rem var(--gutter) 1.5rem;
    }
}

.location-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 110px;
    grid-template-areas: "body photo";
    background: var(--cream);
    color: var(--ink); /* break body.crossroad cream inheritance so btn-text & arrows stay legible */
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
    min-height: 0;
}
.location-card .photo { grid-area: photo; }
.location-card .body { grid-area: body; }
@media (min-width: 880px) {
    .location-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "body"
            "photo";
    }
}
.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 90px -40px rgba(28,24,20,.65), 0 8px 18px -8px rgba(28,24,20,.3);
}
.location-card .photo {
    position: relative;
    overflow: hidden;
    background: var(--paper-deep);
    min-height: 0;
}
.location-card .photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out);
}
.location-card:hover .photo img { transform: scale(1.05); }
.location-card .photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28,24,20,.35) 0%, transparent 45%);
    pointer-events: none;
}

.location-card .body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}
@media (min-width: 880px) {
    .location-card .body {
        padding: 1.4rem 1.6rem 1.6rem;
        gap: 0.85rem;
    }
}
.location-card .body .label {
    font-family: var(--sans);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--olive);
    font-weight: 600;
}
@media (min-width: 880px) {
    .location-card .body .label { font-size: 0.7rem; }
}
.location-card .body h2 {
    font-size: clamp(1.15rem, 2.6vw, 1.9rem);
    font-weight: 500;
    line-height: 1.05;
}
.location-card .body h2 em {
    color: var(--terracotta);
    font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.location-card .body .address {
    font-size: 0.82rem;
    color: var(--ink-soft);
    line-height: 1.35;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    align-self: flex-start;
    transition: color .25s var(--ease-out);
}
.location-card .body .address .address-pin {
    flex: 0 0 auto;
    color: var(--terracotta);
    transition: transform .35s var(--ease-out), color .25s var(--ease-out);
}
.location-card .body .address:hover { color: var(--terracotta); }
.location-card .body .address:hover .address-pin {
    transform: translateY(-2px);
    color: var(--terracotta-d);
}
@media (min-width: 880px) {
    .location-card .body .address { font-size: 0.95rem; line-height: 1.45; }
}
/* Klikatelná karta (Újezd) má .card-link::before přes celý povrch — adresa
   potřebuje vyšší z-index, aby si zachovala vlastní cíl kliknutí na Google Maps. */
.location-card.card-linked .address {
    position: relative;
    z-index: 2;
}
.location-card .body .actions {
    margin-top: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    align-items: center;
}
.location-card .body .actions .btn {
    padding: 0.7rem 1.1rem;
    font-size: 0.72rem;
}
@media (min-width: 880px) {
    .location-card .body .actions {
        margin-top: 0.4rem;
        gap: 1rem;
    }
    .location-card .body .actions .btn {
        padding: 0.85rem 1.6rem;
        font-size: 0.78rem;
    }
}
.location-card .body .actions .btn-text {
    padding: 0;
    font-size: 0.82rem;
}

/* Clickable-card pattern: .card-link's ::before covers the whole card so a click
   anywhere on .card-linked navigates to the link target. Inner anchors (Objednat
   online, etc.) get a higher z-index so they keep their own click target. */
.location-card.card-linked { cursor: pointer; }
.location-card.card-linked .card-link::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.location-card.card-linked .actions .btn-primary,
.location-card.card-linked .actions a[href^="tel:"] {
    position: relative;
    z-index: 2;
}

.crossroad-footer {
    padding: 0.6rem var(--gutter) 0.9rem;
    text-align: center;
    font-family: var(--sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-mute);
}
.crossroad-footer a:hover { color: var(--terracotta); }

/* ========================================================================
   NAV — restaurant page
   ======================================================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.2rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* dark halo over the hero — text + logo flip white in this state */
    background: linear-gradient(to bottom,
        rgba(28, 24, 20, 0.78) 0%,
        rgba(28, 24, 20, 0.48) 70%,
        rgba(28, 24, 20, 0) 100%);
    transition: background .35s var(--ease-out), padding .35s var(--ease-out), box-shadow .35s var(--ease-out), backdrop-filter .35s var(--ease-out);
}
.nav.scrolled {
    background: rgba(241, 233, 215, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 0.75rem; padding-bottom: 0.75rem;
    box-shadow: 0 8px 30px -20px rgba(28,24,20,.4);
}
.nav .brand img { height: 42px; }
.nav.scrolled .brand img { height: 36px; }

/* Logo swap: white at top of hero, dark in the scrolled paper state */
.nav .brand .logo-light { display: block; }
.nav .brand .logo-dark  { display: none; }
.nav.scrolled .brand .logo-light { display: none; }
.nav.scrolled .brand .logo-dark  { display: block; }

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 110;
}
.nav-toggle span {
    width: 26px; height: 1.5px;
    background: var(--cream);
    transition: all .35s var(--ease-out), background .25s var(--ease-out);
    transform-origin: center;
}
.nav.scrolled .nav-toggle span { background: var(--ink); }
/* When the slide-out menu is open the bars sit over paper — keep them dark */
.nav.open .nav-toggle span { background: var(--ink); }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-menu {
    position: fixed;
    top: 0; right: 0;
    width: min(100%, 480px);
    height: 100vh;
    background: var(--paper);
    padding: 6rem 3rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    transform: translateX(100%);
    transition: transform .55s var(--ease-out);
    z-index: 105;
    box-shadow: -30px 0 60px -30px rgba(28,24,20,.35);
}
.nav.open .nav-menu { transform: translateX(0); }
.nav-menu a {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--ink);
    transition: color .25s var(--ease-out), padding-left .25s var(--ease-out);
    line-height: 1.2;
}
.nav-menu a:hover {
    color: var(--terracotta);
    padding-left: 0.6rem;
    font-style: italic;
}
.nav-menu .nav-cta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.nav-menu .nav-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}
.nav-menu .nav-social a {
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .2s, transform .2s var(--ease-out);
}
.nav-menu .nav-social a svg { width: 26px; height: 26px; }
.nav-menu .nav-social a:hover {
    color: var(--terracotta);
    padding-left: 0;
    transform: translateY(-2px);
}

/* Make sure the desktop nav CTA stays readable (cream-on-ink), not affected by .nav-menu a { color: var(--ink) } */
.nav-menu .nav-cta .btn-primary {
    background: var(--terracotta);
    color: var(--cream);
}
.nav-menu .nav-cta .btn-primary:hover {
    background: var(--terracotta-d);
    color: var(--cream);
    box-shadow: 0 14px 28px -10px rgba(184, 84, 58, .45);
}

@media (min-width: 980px) {
    .nav-toggle { display: none; }
    .nav-menu {
        position: static;
        width: auto; height: auto;
        background: transparent;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        transform: none;
        box-shadow: none;
    }
    .nav-menu a {
        font-family: var(--sans);
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        color: var(--cream);
        transition: color .25s var(--ease-out), padding-left .25s var(--ease-out);
    }
    .nav.scrolled .nav-menu a { color: var(--ink); }
    .nav-menu a:hover { padding-left: 0; font-style: normal; color: var(--terracotta); }
    .nav.scrolled .nav-menu a:hover { color: var(--terracotta); }

    /* Dvojitý gradient underline efekt — narůstá z opačných stran */
    .nav-menu > a {
        position: relative;
        padding: 4px 0;
    }
    .nav-menu > a::before,
    .nav-menu > a::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, var(--terracotta), var(--terracotta-d));
        transform: scaleX(0);
        transition: transform .4s var(--ease-out);
        pointer-events: none;
    }
    .nav-menu > a::before { top: 0;    transform-origin: left;  }
    .nav-menu > a::after  { bottom: 0; transform-origin: right; }
    .nav-menu > a:hover::before,
    .nav-menu > a:hover::after,
    .nav-menu > a:focus-visible::before,
    .nav-menu > a:focus-visible::after {
        transform: scaleX(1);
    }

    .nav-menu .nav-cta {
        margin-top: 0;
        flex-direction: row;
        align-items: center;
    }
    .nav-menu .nav-cta .btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.75rem;
    }
    /* keep CTA pill readable (dark bg, cream text) regardless of nav state */
    .nav-menu .nav-cta .btn-primary,
    .nav.scrolled .nav-menu .nav-cta .btn-primary {
        color: var(--cream);
    }

    .nav-menu .nav-social { margin: 0 0 0 0.5rem; }
    .nav-menu .nav-social a svg { width: 22px; height: 22px; }
    .nav-menu .nav-social a { color: rgba(250, 245, 232, .8); }
    .nav.scrolled .nav-menu .nav-social a { color: var(--ink-soft); }
}

.nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(28,24,20,.4);
    opacity: 0; pointer-events: none;
    transition: opacity .4s var(--ease-out);
    z-index: 102;
}
.nav.open .nav-backdrop { opacity: 1; pointer-events: auto; }
@media (min-width: 980px) {
    .nav-backdrop { display: none; }
}

/* ========================================================================
   HERO — restaurant page
   ======================================================================== */
.hero {
    min-height: 100vh;
    position: relative;
    padding: 7rem var(--gutter) 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2.2rem;
    isolation: isolate;
    overflow: hidden;
}

/* --- CTA — primary conversion area, sits dead-center of the hero --- */
.hero-cta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
    max-width: 100%;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.2rem 2.2rem;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    transition: transform .35s var(--ease-out),
                background .35s var(--ease-out),
                color .35s var(--ease-out),
                box-shadow .35s var(--ease-out);
    white-space: nowrap;
    box-shadow: 0 14px 35px -14px rgba(28,24,20,.45),
                0 4px 10px -6px rgba(28,24,20,.18);
}
.btn-hero-cta svg { flex-shrink: 0; }

.btn-hero-cta.primary {
    background: var(--terracotta);
    color: var(--cream);
    position: relative;
}
.btn-hero-cta.primary::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    background: var(--terracotta);
    opacity: 0;
    z-index: -1;
    animation: ctaPulse 2.6s var(--ease-out) infinite;
}
.btn-hero-cta.primary:hover {
    background: var(--terracotta-d);
    transform: translateY(-3px);
    box-shadow: 0 22px 45px -14px rgba(184,84,58,.55),
                0 6px 14px -6px rgba(184,84,58,.3);
}

@keyframes ctaPulse {
    0%   { opacity: .35; transform: scale(1); }
    70%  { opacity: 0;   transform: scale(1.18); }
    100% { opacity: 0;   transform: scale(1.18); }
}

.btn-hero-cta.phone {
    background: var(--cream);
    color: var(--ink);
    border: 1px solid rgba(28,24,20,.12);
}
.btn-hero-cta.phone:hover {
    background: var(--ink);
    color: var(--cream);
    transform: translateY(-3px);
    border-color: var(--ink);
}
.btn-hero-cta.phone .number {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
    .hero-cta-top {
        gap: 0.7rem;
        margin-bottom: 2rem;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .btn-hero-cta {
        justify-content: center;
        padding: 1.05rem 1.6rem;
        font-size: 0.95rem;
    }
    .btn-hero-cta.phone .number { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
    .btn-hero-cta.primary::before { animation: none; }
}
/* Hero carousel — slides crossfade, scale slowly toward 1 while active */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease-in-out, transform 6s ease-out;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}
.hero-slide picture,
.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Flat dark overlay on top of the carousel — no light fade at the bottom */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(28, 24, 20, .78);
    z-index: -1;
}

.hero-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 3;
}
.hero-dot {
    width: 26px; height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}
.hero-dot::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid var(--logo-red);
    background: transparent;
    transition: background .3s var(--ease-out);
}
.hero-dot.active::after { background: var(--logo-red); }
.hero-dot:hover::after  { background: rgba(210, 48, 60, .55); }

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: opacity .01ms; transform: none; }
}

.hero-heading {
    max-width: 1320px;
    width: 100%;
}
.hero-heading .eyebrow { margin-bottom: 1.2rem; justify-content: center; }
.hero-heading h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 8vw, 6.4rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.035em;
    margin-bottom: 1.2rem;
    font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
    color: var(--cream);
}
.hero-heading h1 .it {
    font-style: italic;
    color: var(--logo-red);
    font-weight: 300;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.hero-heading p.lead {
    font-size: 1.1rem;
    line-height: 1.55;
    max-width: 40rem;
    margin-inline: auto;
    color: rgba(250, 245, 232, .85);
}
.hero-heading p.lead .italic-accent { color: var(--logo-red); }

.hero-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: rgba(250, 245, 232, .75);
}
.online-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(28, 24, 20, .55);
    border: 1px solid rgba(250, 245, 232, .18);
    color: var(--cream);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
}
.online-status .bullet {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--olive);
    box-shadow: 0 0 0 0 var(--olive);
    animation: pulse 2s infinite;
}
.online-status.closed .bullet { background: var(--terracotta); animation: none; }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(107,122,63,.6); }
    70%  { box-shadow: 0 0 0 8px rgba(107,122,63,0); }
    100% { box-shadow: 0 0 0 0 rgba(107,122,63,0); }
}

/* Scroll indicator: mouse-outline + falling dot.
   Anchored to #menu so it doubles as a "next section" link. */
.hero-scroll {
    position: absolute;
    bottom: 3.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    color: rgba(250, 245, 232, .75);
    text-decoration: none;
    transition: color .25s var(--ease-out), transform .25s var(--ease-out);
}
@media (min-width: 980px) { .hero-scroll { display: flex; } }
.hero-scroll:hover { color: var(--cream); }
.hero-scroll:hover .hero-scroll-mouse { box-shadow: 0 0 0 4px rgba(250,245,232,.08); }

.hero-scroll-mouse {
    width: 26px;
    height: 42px;
    border: 1.5px solid currentColor;
    border-radius: 14px;
    position: relative;
    transition: box-shadow .25s var(--ease-out);
}
.hero-scroll-dot {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 3px;
    height: 7px;
    border-radius: 2px;
    background: currentColor;
    transform: translateX(-50%);
    animation: heroScrollDot 1.8s cubic-bezier(.4,.1,.4,1) infinite;
}
@keyframes heroScrollDot {
    0%   { transform: translate(-50%, 0)    scaleY(1);   opacity: 0; }
    20%  { opacity: 1; }
    70%  { transform: translate(-50%, 14px) scaleY(.6);  opacity: 1; }
    100% { transform: translate(-50%, 18px) scaleY(.4);  opacity: 0; }
}
.hero-scroll-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}
@media (prefers-reduced-motion: reduce) {
    .hero-scroll-dot { animation: none; opacity: .9; transform: translate(-50%, 6px); }
}

/* ========================================================================
   SECTION — generic
   ======================================================================== */
section {
    padding-block: var(--section);
    position: relative;
}
.section-head {
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
    max-width: 880px;
}
.section-head .eyebrow { margin-bottom: 1.2rem; }
.section-head h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
    margin-bottom: 1.2rem;
    font-weight: 400;
    font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
}
.section-head h2 em {
    color: var(--terracotta);
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.section-head p {
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 38rem;
}

/* ========================================================================
   MENU  (domino-style on dark ink with terracotta accents)
   ======================================================================== */
.menu-sec {
    background: var(--ink) url('../images/menu-bg.jpg') center/cover no-repeat;
    background: var(--ink)
        image-set(
            url('../images/menu-bg.avif') type('image/avif'),
            url('../images/menu-bg.webp') type('image/webp'),
            url('../images/menu-bg.jpg')  type('image/jpeg')
        ) center/cover no-repeat;
    color: var(--cream);
    padding-block: clamp(4rem, 8vw, 7rem);
    position: relative;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .menu-sec { background-attachment: fixed; }
}
.menu-sec > .container { position: relative; z-index: 1; }

.menu-sec .sec-title {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.menu-sec .sec-title .script {
    display: inline-block;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--terracotta);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    margin-bottom: 0.35rem;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.menu-sec .sec-title h2 {
    font-family: var(--serif);
    color: var(--cream);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 400;
    line-height: 1;
    margin: 0 0 0.6rem;
    font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
}
.menu-sec .sec-title .dots {
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem;
    margin: 0.9rem auto;
}
.menu-sec .sec-title .dots::before,
.menu-sec .sec-title .dots::after {
    content: '';
    width: 40px; height: 2px;
    background: var(--terracotta);
}
.menu-sec .sec-title .dots span {
    width: 10px; height: 10px;
    background: var(--terracotta);
    transform: rotate(45deg);
}
.menu-sec .sec-title p {
    color: rgba(250, 245, 232, .65);
    max-width: 36rem;
    margin: 0.8rem auto 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Sticky filter bar */
.menu-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: 0 -1rem 2.25rem;
    padding: 0.9rem 1rem;
    background: transparent;
    border-bottom: 1px solid transparent;
}
.menu-bar.is-stuck { /* no background change — stays transparent on scroll */ }
.menu-bar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Filter pills — multi-row wrap, all categories visible */
.menu-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    padding: 2px 0;
}
.menu-fbtn {
    background: transparent;
    border: 1px solid rgba(250, 245, 232, .4);
    color: rgba(250, 245, 232, .9);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: color .22s var(--ease-out), background .22s var(--ease-out), border-color .22s var(--ease-out);
    white-space: nowrap;
    flex-shrink: 0;
}
.menu-fbtn:hover {
    border-color: rgba(250, 245, 232, .5);
    color: var(--cream);
}
.menu-fbtn.on {
    border-color: var(--terracotta);
    color: var(--cream);
    background: var(--terracotta);
}

/* Search input */
.menu-search {
    position: relative;
    width: 100%;
    max-width: 320px;
}
.menu-search input {
    width: 100%;
    background: rgba(250, 245, 232, .06);
    border: 1px solid rgba(250, 245, 232, .14);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 0.85rem;
    padding: 0.55rem 0.9rem 0.55rem 2.2rem;
    border-radius: 999px;
    outline: none;
    transition: border-color .2s, background .2s;
}
.menu-search input::placeholder { color: rgba(250, 245, 232, .62); }
.menu-search input:focus,
.menu-search input:focus-visible {
    border-color: var(--terracotta);
    background: rgba(250, 245, 232, .09);
    outline: 2px solid var(--terracotta);
    outline-offset: 2px;
}
.menu-search::before {
    content: '';
    position: absolute;
    left: 0.85rem; top: 50%;
    width: 14px; height: 14px;
    transform: translateY(-50%);
    background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23faf5e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='.55'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
    pointer-events: none;
}
.m-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(250, 245, 232, .55);
    font-style: italic;
    padding: 3rem 0;
}

/* Two-column item grid with full-width category headers */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 1024px) {
    .menu-grid { grid-template-columns: 1fr 1fr; gap: 0 3rem; }
}

.m-cat-title {
    grid-column: 1 / -1;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(250, 245, 232, .92);
    padding: 2.25rem 0 0.65rem;
    border-bottom: 1px solid rgba(250, 245, 232, .18);
    font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
    letter-spacing: 0.02em;
    font-style: italic;
}
.m-cat-title:first-child { padding-top: 0.25rem; }

.m-item {
    display: flex; align-items: flex-start; gap: 0.9rem;
    padding: 1.1rem 0.75rem;
    margin: 0 -0.75rem;
    border-bottom: 1px solid rgba(250, 245, 232, .12);
    border-radius: 6px;
    transition: opacity .3s, background .25s var(--ease-out);
    min-width: 0;
}
.m-item:hover { background: rgba(250, 245, 232, .035); }
.m-item-img {
    width: 60px; height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(250, 245, 232, .06);
    display: flex; align-items: center; justify-content: center;
}
.m-item-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .25s;
}
.m-item.has-img { cursor: zoom-in; }
.m-item.has-img:hover .m-item-img img { opacity: .8; }
.m-item-img.empty {
    color: rgba(250, 245, 232, .22);
    font-size: 1.3rem;
}

.m-item-info { flex: 1; min-width: 0; overflow: hidden; }
.m-item-row { display: flex; align-items: baseline; gap: 0.5rem; }
.m-item-row h3 {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--cream);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-variation-settings: "opsz" 144;
}
.m-item-row .leader {
    flex: 1; min-width: 20px;
    border-bottom: 2px dotted rgba(250, 245, 232, .15);
    margin-bottom: 4px;
}
.m-item-row .m-price {
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--terracotta);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.m-item-info p {
    font-size: 0.82rem;
    color: rgba(250, 245, 232, .75);
    margin-top: 0.25rem;
    line-height: 1.45;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

@media (max-width: 768px) {
    .m-item.has-img { flex-direction: row-reverse; }
    .m-item.has-img .m-item-img { margin-left: auto; }
    .m-item-img.empty { display: none; }
    .menu-fbtn { font-size: 0.7rem; padding: 0.6rem 0.95rem; letter-spacing: 0.04em; min-height: 36px; }
    .m-item-row { flex-wrap: wrap; }
    .m-item-row h3 { white-space: normal; font-size: 0.92rem; flex: 1 1 100%; }
    .m-item-row .leader { display: none; }
    .m-item-row .m-price { font-size: 0.85rem; }
    .m-item-info p { white-space: normal; }
    .menu-bar { padding: 0.75rem 1rem; }
    .menu-bar-inner { gap: 0.55rem; }
}

.m-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: rgba(250, 245, 232, .65);
    font-family: var(--sans);
}
.m-loading .spin {
    width: 32px; height: 32px;
    border: 3px solid rgba(184, 84, 58, .2);
    border-top-color: var(--terracotta);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.m-err {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(250, 245, 232, .75);
    font-family: var(--serif);
    font-style: italic;
}
.m-err a {
    color: var(--terracotta);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ========================================================================
   ABOUT
   ======================================================================== */
.about {
    background: var(--ink);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}
.about::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .07;
    background-image:
        radial-gradient(circle at 20% 30%, var(--terracotta) 0, transparent 40%),
        radial-gradient(circle at 80% 70%, var(--olive) 0, transparent 40%);
    pointer-events: none;
}
.about .eyebrow { color: var(--terracotta); }
.about .eyebrow::before { background: var(--terracotta); }
.about-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}
@media (min-width: 880px) {
    .about-inner {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}
.about-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: var(--shadow-card);
}
.about-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(.95);
}
.about-image::before {
    content: '"';
    position: absolute;
    top: -1rem; left: -1rem;
    font-family: var(--serif);
    font-style: italic;
    font-size: 14rem;
    line-height: 1;
    color: var(--terracotta);
    z-index: 2;
    font-weight: 400;
}

.about-content h2 {
    color: var(--cream);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    margin-bottom: 1.8rem;
    font-weight: 400;
    line-height: 1.05;
    font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}
.about-content h2 em {
    color: var(--terracotta);
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.about-content p {
    color: rgba(250, 245, 232, .8);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    max-width: 36rem;
}
.about-content p:last-child {
    font-family: var(--serif);
    font-style: italic;
    color: var(--cream);
    font-size: 1.3rem;
    line-height: 1.4;
    padding-left: 1.5rem;
    border-left: 2px solid var(--terracotta);
    margin-top: 2rem;
}

/* ========================================================================
   GALLERY
   ======================================================================== */
.gallery {
    background: var(--paper);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 0.8rem;
}
@media (min-width: 700px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 220px;
        gap: 1.1rem;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: zoom-in;
    background: var(--paper-deep);
    transition: transform .35s var(--ease-out);
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease-out), filter .35s var(--ease-out);
}
.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}
.gallery-item::after {
    content: '+';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.5);
    font-family: var(--serif);
    font-weight: 200;
    font-size: 3rem;
    color: var(--cream);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(28,24,20,.55);
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    opacity: 0;
    transition: all .4s var(--ease-out);
    pointer-events: none;
    backdrop-filter: blur(4px);
}
.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* asymmetric featured tiles on desktop */
@media (min-width: 700px) {
    .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .gallery-item:nth-child(6) { grid-column: span 2; }
    .gallery-item:nth-child(9) { grid-row: span 2; }
}

/* ========================================================================
   CONTACT
   ======================================================================== */
.contact {
    background: linear-gradient(to bottom, var(--paper-soft) 0%, var(--paper) 100%);
}
.contact-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}
@media (min-width: 880px) {
    .contact-inner {
        grid-template-columns: 1fr 1.3fr;
        gap: 2.5rem;
    }
}

.contact-card {
    background: var(--cream);
    padding: 2.5rem;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.contact-card h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem;
}
.contact-row {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(28,24,20,.1);
}
.contact-row:first-of-type { border-top: 0; padding-top: 0; }
.contact-row .ico {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--terracotta);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
}
.contact-row .label {
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-mute);
    margin-bottom: 0.2rem;
}
.contact-row .value {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--ink);
    line-height: 1.4;
    font-variation-settings: "opsz" 144;
}
.contact-row a.value:hover { color: var(--terracotta); }
.contact-row .hours { font-size: 0.95rem; line-height: 1.6; font-family: var(--sans); }
.contact-row .hours strong { font-weight: 600; color: var(--ink); }

.contact-map {
    position: relative;
    min-height: 380px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--paper-deep);
}
.contact-map iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
    filter: grayscale(.35) sepia(.15);
}
.contact-map .map-cta {
    position: absolute;
    bottom: 1.2rem; right: 1.2rem;
    z-index: 2;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer {
    background: var(--ink);
    color: rgba(250, 245, 232, .75);
    padding: 4.5rem var(--gutter) 2rem;
}
.footer-inner {
    max-width: 1320px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 880px) {
    .footer-inner {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}
.footer-brand img {
    height: 56px;
    margin-bottom: 1.4rem;
}
.footer-brand p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--cream);
    max-width: 22rem;
}
.footer h4 {
    color: var(--cream);
    font-family: var(--sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.55rem; line-height: 1.5; font-size: 0.95rem; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--terracotta); }
.footer .social {
    display: flex; gap: 0.8rem;
    margin-top: 1rem;
}
.footer .social a {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(250, 245, 232, .25);
    color: var(--cream);
}
.footer .social a:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--cream);
}
.footer-bottom {
    max-width: 1320px;
    margin: 3rem auto 0;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(250, 245, 232, .12);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: rgba(250, 245, 232, .5);
}

/* ========================================================================
   FLOATING BUTTONS — back to top + home
   ======================================================================== */
.floating-buttons {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 60;
}
.fb {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--cream);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: all .3s var(--ease-out);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}
.fb.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.fb:hover {
    background: var(--terracotta);
    transform: translateY(-3px);
}

/* ========================================================================
   POPUP — Restia popupImage (1:1 podle wc.rest24.cz/martins-pizza/)
   ======================================================================== */
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupFadeIn .25s ease-out;
}
.popup-overlay.out { animation: popupFadeOut .25s ease-out forwards; }
@keyframes popupFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes popupFadeOut { from { opacity: 1; } to { opacity: 0; } }

.popup__body {
    position: relative;
    max-width: 550px;
    padding: 35px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 1);
    margin: 1rem;
}
.popup__body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.popup__body .close-btn {
    position: absolute;
    top: 0;
    right: 15px;
    width: 21px;
    height: 45px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.popup__body .close-btn svg {
    width: 21px;
    height: 30px;
}
.popup__body .close-btn:hover { opacity: .7; }

/* ========================================================================
   LIGHTBOX — minimal
   ======================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(28, 24, 20, .92);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease-out);
    backdrop-filter: blur(8px);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
    border-radius: 4px;
    transform: scale(.95);
    transition: transform .35s var(--ease-out);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(250, 245, 232, .12);
    color: var(--cream);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background .25s;
    backdrop-filter: blur(4px);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: var(--terracotta);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { top: 50%; left: 1.5rem; transform: translateY(-50%); }
.lightbox-next  { top: 50%; right: 1.5rem; transform: translateY(-50%); }
.lightbox-caption {
    position: absolute;
    bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    color: var(--cream);
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.95rem;
    background: rgba(28,24,20,.5);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
}

/* ========================================================================
   FADE-IN on scroll (Intersection Observer adds .visible)
   ======================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s cubic-bezier(.22,.61,.36,1),
                transform .85s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .40s; }
.reveal-delay-6 { transition-delay: .48s; }

/* dynamicky generované menu položky — jemnější (menší posun, kratší) */
.m-item.reveal {
    transform: translateY(14px);
    transition: opacity .55s cubic-bezier(.22,.61,.36,1),
                transform .6s cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ========================================================================
   Utility
   ======================================================================== */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
