/* =====================================================================
   Grounded Coffee House — stylesheet
   Palette sampled from assets/menu.pdf:
     deep pine green · warm cream · dusty rose
   Mobile-first, RTL/LTR via logical properties.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
    /* Greens */
    --green-950: #101F16;
    --green-900: #142719;
    --green-850: #173020;
    --green-800: #1A3323;   /* primary surface (from PDF) */
    --green-750: #1D3927;   /* secondary surface (from PDF) */
    --green-700: #22432F;
    --green-600: #2C5440;
    --logo-green: #1A2A20;  /* exact background colour of logo.jpg — used where the logo sits */

    /* Cream */
    --cream:     #EDEAE5;   /* from PDF footer */
    --cream-50:  #F6F3EE;
    --ink:       #16291C;

    /* Dusty rose accent (from PDF contour lines) */
    --rose:      #C9A29F;
    --rose-200:  #DEC4C1;
    --rose-deep: #8B6A73;
    --gold:      #E0B36B;   /* review stars */

    /* Text on dark */
    --text:       #F2EFE8;
    --text-muted: rgba(242, 239, 232, 0.64);
    --text-faint: rgba(242, 239, 232, 0.40);
    --hairline:   rgba(237, 234, 229, 0.14);
    --hairline-strong: rgba(237, 234, 229, 0.24);

    /* Fonts */
    --font-body:    'Tajawal', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-heading: 'Fraunces', Georgia, serif;

    /* Geometry */
    --container: 1160px;
    --r-sm: 10px;
    --r:    16px;
    --r-lg: 24px;
    --r-pill: 999px;

    --header-h: 62px;
    --catnav-h: 56px;
    --tabbar-h: 58px;

    --shadow:    0 18px 40px -24px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 0.7);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="ar"] {
    --font-heading: 'El Messiri', 'Tajawal', sans-serif;
}

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

* { margin: 0; }

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

body {
    font-family: var(--font-body);
    background: var(--green-900);
    color: var(--text);
    line-height: 1.6;
    font-size: clamp(15px, 1vw + 13px, 17px);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
}

img, svg, iframe { display: block; max-width: 100%; }
svg { fill: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }

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

::selection { background: var(--rose); color: var(--green-900); }

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.section {
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
    position: relative;
}

.menu    { background: var(--green-800); }
.visit   { background: var(--green-850); }
.contact { background: var(--green-900); }

.section__head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.section__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--cream-50);
}

.section__subtitle {
    margin-top: 0.7rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Eyebrow */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 0.85rem;
}
html[lang="ar"] .eyebrow { letter-spacing: 0.02em; text-transform: none; font-size: 0.9rem; }
.eyebrow--center { justify-content: center; }
.eyebrow__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--rose);
    box-shadow: 0 0 0 4px rgba(201, 162, 159, 0.18);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
    will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn__arrow, .btn__ico { width: 1.15em; height: 1.15em; }
html[dir="rtl"] .btn__arrow { transform: scaleX(-1); }

.btn--primary {
    background: var(--cream-50);
    color: var(--green-900);
    box-shadow: var(--shadow);
}
.btn--primary:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--ghost {
    background: rgba(237, 234, 229, 0.04);
    color: var(--text);
    border-color: var(--hairline-strong);
}
.btn--ghost:hover { background: rgba(237, 234, 229, 0.1); border-color: var(--rose); transform: translateY(-2px); }

.btn--small { padding: 0.6rem 1.05rem; font-size: 0.85rem; font-weight: 500; }
.btn--full { width: 100%; }

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: var(--r-pill);
    background: rgba(201, 162, 159, 0.16);
    color: var(--rose-200);
    border: 1px solid rgba(201, 162, 159, 0.35);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 50;
    height: var(--header-h);
    display: flex;
    align-items: center;
    /* Solid logo-green so the JPG logo blends seamlessly; invisible at the very
       top (hero starts the same colour), reads as a clean app bar once scrolled. */
    background: var(--logo-green);
    transition: box-shadow 0.35s, border-color 0.35s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    border-bottom-color: var(--hairline);
    box-shadow: 0 8px 30px -20px rgba(0, 0, 0, 0.8);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-logo {
    height: 30px;
    width: auto;
    display: block;
    transition: opacity 0.25s;
}
.brand:hover .brand-logo { opacity: 0.85; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 11px;
    background: var(--cream-50);
    color: var(--green-900);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: var(--shadow);
}
.brand-mark--lg { width: 60px; height: 60px; border-radius: 16px; font-size: 2.3rem; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.01em;
    color: var(--cream-50);
}

.main-nav { display: none; gap: 0.4rem; }
.main-nav a {
    position: relative;
    padding: 0.5rem 0.9rem;
    border-radius: var(--r-pill);
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.25s, background 0.25s;
}
.main-nav a:hover { color: var(--text); background: rgba(237, 234, 229, 0.06); }
.main-nav a.is-active { color: var(--cream-50); }
.main-nav a.is-active::after {
    content: "";
    position: absolute;
    inset-inline: 0.9rem;
    bottom: 0.25rem;
    height: 2px;
    border-radius: 2px;
    background: var(--rose);
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--hairline-strong);
    color: var(--text);
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.lang-toggle:hover { background: rgba(237, 234, 229, 0.08); border-color: var(--rose); }
.lang-toggle__icon svg { width: 1.05rem; height: 1.05rem; }
.lang-toggle__label { line-height: 1; }

/* Header actions + hamburger button */
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--r-pill);
    border: 1px solid var(--hairline-strong);
    color: var(--text);
    transition: background 0.25s, border-color 0.25s;
}
.burger:hover { background: rgba(237, 234, 229, 0.08); border-color: var(--rose); }
.burger__box { position: relative; width: 20px; height: 14px; }
.burger__line {
    position: absolute;
    inset-inline: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger__line:nth-child(1) { top: 0; }
.burger__line:nth-child(2) { top: 6px; }
.burger__line:nth-child(3) { top: 12px; }
.burger.is-open .burger__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open .burger__line:nth-child(2) { opacity: 0; }
.burger.is-open .burger__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: calc(var(--header-h) + 2rem) clamp(5rem, 14vh, 8rem);
    background:
        radial-gradient(120% 90% at 80% 0%, rgba(139, 106, 115, 0.12), transparent 55%),
        linear-gradient(180deg, var(--logo-green) 0%, var(--logo-green) 16%, var(--green-950) 46%, var(--green-850) 78%, var(--green-800) 100%);
    overflow: hidden;
    isolation: isolate;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--green-950);
}
/* Wrapper takes the filter + drift animation — never put filter/animation
   directly on <video>: iOS Safari refuses to play video with CSS filter on it */
.hero__video-wrap {
    position: absolute;
    inset: 0;
    filter: brightness(0.58) saturate(1.08);
    animation: heroVidDrift 26s ease-in-out infinite alternate;
}
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12, 22, 17, 0.78) 0%, rgba(12, 22, 17, 0.42) 30%, rgba(12, 22, 17, 0.5) 62%, rgba(12, 22, 17, 0.9) 100%),
        radial-gradient(130% 90% at 78% 22%, rgba(0, 0, 0, 0) 38%, rgba(12, 22, 17, 0.46));
}
/* extra darkening on the text (start) side for crisp legibility */
.hero__overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to var(--to-end, left), rgba(12, 22, 17, 0.62), rgba(12, 22, 17, 0) 60%);
}
html[dir="rtl"] .hero__overlay::after { --to-end: left; }
html[dir="ltr"] .hero__overlay::after { --to-end: right; }

.hero__inner {
    position: relative;
    display: grid;
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: center;
}
.hero__copy { position: relative; }
.hero__title {
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-block: 0.4rem 0.2rem;
}
.hero__title-lead {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 6.5vw, 4rem);
    line-height: 1.12;
    color: var(--text);
}
.hero__brand {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(3.6rem, 14vw, 8.5rem);
    line-height: 0.95;
    color: var(--cream-50);
    text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.hero__sub {
    color: var(--rose-200);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 500;
    margin-top: 0.6rem;
}
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: clamp(1.4rem, 3.5vw, 2rem);
}

/* ---- Hero info chips (over the video) ---- */
.hero__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: clamp(1rem, 3vw, 1.5rem);
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.46rem 0.8rem;
    border-radius: var(--r-pill);
    background: rgba(237, 234, 229, 0.1);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
            backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(237, 234, 229, 0.18);
    color: var(--cream-50);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.hero-chip svg { width: 1rem; height: 1rem; flex-shrink: 0; }
/* Flame chip */
.hero-chip--flame {
    border-color: rgba(224, 179, 107, 0.42);
    background: linear-gradient(135deg, rgba(46, 22, 10, 0.35), rgba(237, 234, 229, 0.08));
    animation: flameBadgeGlow 2.6s ease-in-out infinite;
}
/* Live status chip */
.hero-chip__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #7fd190;
    box-shadow: 0 0 0 0 rgba(127, 209, 144, 0.55);
    animation: statusPulse 2s ease-in-out infinite;
}
.hero-chip--off .hero-chip__dot { background: #cf8e8e; box-shadow: none; animation: none; }
.hero-chip--on { border-color: rgba(127, 209, 144, 0.4); }
.hero-chip--off { color: var(--rose-200); }
/* Location chip → maps */
.hero-chip--loc svg { color: var(--gold); }
/* All chips are tappable (open Google Maps) — subtle lift on hover */
a.hero-chip:hover { background: rgba(237, 234, 229, 0.18); transform: translateY(-1px); }
a.hero-chip:active { transform: scale(0.97); }
a.hero-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* "Closing soon" note, sits below the chips */
.hero__soon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.7rem;
    padding: 0.4rem 0.78rem;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, #f0c068, #e0b36b);
    color: #2a1c08;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.55);
    animation: soonBlink 1.9s ease-in-out infinite;
}
.hero__soon svg { width: 0.95rem; height: 0.95rem; flex-shrink: 0; }

/* ---- Hero storefront showcase ---- */
.hero__media {
    position: relative;
    perspective: 1400px;
    margin-top: clamp(1.8rem, 5vw, 0);
}
.hero__photo {
    position: relative;
    display: block;
    margin: 0;
    border-radius: 30px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    color: var(--cream-50);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transform-style: preserve-3d;
    transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
    transition: transform 0.5s var(--ease);
    will-change: transform;
    animation: heroFloat 7s ease-in-out infinite;
}
.hero__photo:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
/* Tap / press feedback */
.hero__photo-inner { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.hero__photo:active .hero__photo-inner { transform: scale(0.972); }
.hero__photo:hover .hero__photo-inner {
    box-shadow: 0 48px 90px -28px rgba(0, 0, 0, 0.8),
                0 14px 30px -16px rgba(0, 0, 0, 0.65),
                inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
/* Soft gradient halo behind the card */
.hero__photo::before {
    content: "";
    position: absolute;
    inset: -14%;
    z-index: -1;
    background: radial-gradient(60% 55% at 70% 25%, rgba(224, 179, 107, 0.28), transparent 70%),
                radial-gradient(60% 55% at 25% 80%, rgba(139, 106, 115, 0.32), transparent 72%);
    filter: blur(18px);
    opacity: 0.9;
    transform: translateZ(-40px);
}
/* Gradient ring frame */
.hero__photo-ring {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(150deg, rgba(224, 179, 107, 0.85), rgba(139, 106, 115, 0.35) 45%, rgba(237, 234, 229, 0.12) 75%, rgba(224, 179, 107, 0.55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}
.hero__photo-inner {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    background: var(--green-950);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75),
                0 12px 28px -18px rgba(0, 0, 0, 0.6),
                inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.hero__photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.12);
    animation: heroKen 20s ease-in-out infinite alternate;
    /* Unveil sweep on first paint */
    clip-path: inset(0 0 100% 0);
}
html.js .hero__media.is-visible .hero__photo-img {
    animation: heroUnveil 1.1s var(--ease) forwards, heroKen 20s ease-in-out 1.1s infinite alternate;
}
html:not(.js) .hero__photo-img { clip-path: none; }
/* Diagonal gloss sweep */
.hero__photo-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.18) 46%, rgba(255, 255, 255, 0.05) 54%, transparent 68%);
    transform: translateX(-120%);
    animation: heroShine 7s ease-in-out 1.4s infinite;
}
/* Floating location chip */
.hero__photo-badge {
    position: absolute;
    inset-block-end: 14px;
    inset-inline-start: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--r-pill);
    background: rgba(15, 26, 20, 0.55);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
            backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(237, 234, 229, 0.14);
    color: var(--cream-50);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transform: translateZ(45px);
    box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.7);
}
.hero__photo-badge svg { width: 1rem; height: 1rem; color: var(--gold); flex-shrink: 0; }

/* ---- Animated flame "try our coffee" badge ---- */
.hero__photo-flame {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.46rem 0.8rem;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, rgba(46, 22, 10, 0.62), rgba(17, 28, 22, 0.58));
    -webkit-backdrop-filter: blur(10px) saturate(150%);
            backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(224, 179, 107, 0.4);
    color: var(--cream-50);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transform: translateZ(55px);
    animation: flameBadgeGlow 2.6s ease-in-out infinite;
}
.flame {
    position: relative;
    width: 1.05rem;
    height: 1.25rem;
    flex-shrink: 0;
    transform-origin: 50% 92%;
    animation: flameFlicker 0.85s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 5px rgba(255, 140, 40, 0.85));
}
.flame svg { width: 100%; height: 100%; display: block; overflow: visible; }
.flame__outer { transform-box: fill-box; transform-origin: 50% 90%; }
.flame__inner {
    transform-box: fill-box;
    transform-origin: 50% 90%;
    animation: flameInner 0.6s ease-in-out infinite alternate;
}

/* ---- Live open/closed status badge ---- */
.hero__photo-status {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-start: 14px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    transform: translateZ(55px);
}
.hero__photo-status__row {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.44rem 0.74rem;
    border-radius: var(--r-pill);
    background: rgba(15, 26, 20, 0.58);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
            backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(237, 234, 229, 0.16);
    color: var(--cream-50);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.7);
}
.hero__photo-status__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--status-on, #7fd190);
    box-shadow: 0 0 0 0 rgba(127, 209, 144, 0.55);
    animation: statusPulse 2s ease-in-out infinite;
}
.hero__photo-status--closed .hero__photo-status__dot {
    background: #cf8e8e;
    box-shadow: none;
    animation: none;
}
.hero__photo-status--closed .hero__photo-status__row { color: var(--rose-200); }
/* "Closing soon" warning chip */
.hero__photo-status__soon {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    padding: 0.34rem 0.62rem;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, #f0c068, #e0b36b);
    color: #2a1c08;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.6);
    animation: soonBlink 1.9s ease-in-out infinite;
}
.hero__photo-status__soon svg { width: 0.85rem; height: 0.85rem; flex-shrink: 0; }

/* ---- Hover/focus "open location" veil ---- */
.hero__photo-veil {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(15, 26, 20, 0) 45%, rgba(15, 26, 20, 0.5));
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
}
.hero__photo:hover .hero__photo-veil,
.hero__photo:focus-visible .hero__photo-veil { opacity: 1; }
.hero__photo-open {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--r-pill);
    background: rgba(237, 234, 229, 0.95);
    color: var(--green-900);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.6);
    transform: translateY(10px) scale(0.96);
    transition: transform 0.4s var(--ease);
}
.hero__photo:hover .hero__photo-open,
.hero__photo:focus-visible .hero__photo-open { transform: translateY(0) scale(1); }
.hero__photo-open svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
/* Click ripple */
.hero__photo-ripple {
    position: absolute;
    z-index: 3;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    transform: scale(0);
    animation: photoRipple 0.65s ease-out forwards;
}
@keyframes photoRipple {
    to { transform: scale(24); opacity: 0; }
}

.hero__scroll {
    position: absolute;
    inset-block-end: clamp(1.2rem, 4vh, 2.2rem);
    inset-inline-start: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}
html[dir="rtl"] .hero__scroll { transform: translateX(50%); }
.hero__scroll-arrow svg { width: 1.3rem; height: 1.3rem; animation: bob 2s ease-in-out infinite; }
.hero__scroll:hover { color: var(--text); }

/* ---------- Menu ---------- */
.menu__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.2rem;
    margin-top: 1.2rem;
}
.menu__note { color: var(--text-faint); font-size: 0.9rem; }

/* Sticky category nav */
.cat-nav {
    position: sticky;
    inset-block-start: var(--header-h);
    z-index: 30;
    margin-block: clamp(1.5rem, 4vw, 2.2rem) clamp(1.5rem, 4vw, 2.5rem);
    background: color-mix(in srgb, var(--green-800) 92%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-block: 1px solid var(--hairline);
}
.cat-nav__track {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-block: 0.6rem;
    scroll-snap-type: x proximity;
}
.cat-nav__track::-webkit-scrollbar { display: none; }
.cat-pill {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--hairline-strong);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    scroll-snap-align: start;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.cat-pill:hover { color: var(--text); border-color: var(--rose); }
.cat-pill.is-active {
    background: var(--rose);
    color: var(--green-900);
    border-color: var(--rose);
    font-weight: 700;
}

.menu-cats { display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 3rem); }

.menu-cat { scroll-margin-top: calc(var(--header-h) + var(--catnav-h) + 1rem); }
.menu-cat__title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.7rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--hairline-strong);
}
.menu-cat__title h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.35rem, 3.2vw, 1.75rem);
    color: var(--cream-50);
    line-height: 1.1;
}
.menu-cat--featured .menu-cat__title h3 { color: var(--rose-200); }
.menu-cat--featured {
    background: linear-gradient(180deg, rgba(201, 162, 159, 0.07), transparent 70%);
    border: 1px solid rgba(201, 162, 159, 0.18);
    border-radius: var(--r-lg);
    padding: clamp(1.1rem, 3vw, 1.6rem);
    margin-inline: calc(-1 * clamp(1.1rem, 3vw, 1.6rem));
}
.menu-cat--featured .menu-cat__title { border-bottom-color: rgba(201, 162, 159, 0.3); }

.menu-cat__items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem 2.5rem;
}

.m-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding-block: 0.7rem;
    border-radius: var(--r-sm);
    transition: background 0.25s;
}
.m-item:hover { background: rgba(237, 234, 229, 0.035); }
.m-item__name {
    font-weight: 500;
    color: var(--text);
    font-size: 1.02rem;
}
.m-item__lead {
    flex: 1 1 1.2rem;
    min-width: 0.8rem;
    align-self: center;
    height: 0;
    border-bottom: 1.5px dotted var(--hairline-strong);
    transform: translateY(-0.2em);
}
.m-item__prices {
    display: inline-flex;
    align-items: baseline;
    gap: 0.9rem;
    flex: 0 0 auto;
}
.price { display: inline-flex; align-items: baseline; gap: 0.32rem; }
.price__size {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--text-faint);
    font-weight: 500;
}
.price__val {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--rose-200);
    font-variant-numeric: tabular-nums;
}

/* ---------- Visit ---------- */
.visit__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.2rem, 3vw, 2rem);
}
.visit__map {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow);
    min-height: 280px;
    background: var(--green-700);
}
.visit__map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; filter: saturate(0.9); }

/* Whole map is a tap target → opens the exact place in Google Maps */
.visit__map-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    transition: background 0.3s;
}
.visit__map-link:hover { background: rgba(16, 31, 22, 0.14); }
.visit__map-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--green-950) 86%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(237, 234, 229, 0.18);
    color: var(--cream-50);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.visit__map-hint svg { width: 1.15rem; height: 1.15rem; color: var(--rose-200); transition: color 0.3s; }
.visit__map-link:hover .visit__map-hint { transform: translateY(-3px); background: var(--rose); color: var(--green-900); }
.visit__map-link:hover .visit__map-hint svg { color: var(--green-900); }

.visit__info { display: flex; flex-direction: column; gap: 1.2rem; }
.info-card {
    background: rgba(237, 234, 229, 0.04);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: clamp(1.2rem, 3vw, 1.6rem);
}
.info-card__row { display: flex; gap: 0.9rem; margin-bottom: 1.1rem; }
.info-card__ico {
    flex: 0 0 auto;
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(201, 162, 159, 0.14);
    color: var(--rose-200);
}
.info-card__ico svg { width: 1.3rem; height: 1.3rem; }
.info-card__ico--inline {
    width: 1.5rem; height: 1.5rem; background: none; display: inline-grid;
    vertical-align: -0.35em;
}
.info-card__label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--cream-50);
    margin-bottom: 0.25rem;
}
.info-card__value { color: var(--text-muted); }

.hours__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}
.hours__head .info-card__label { margin-bottom: 0; }
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.75rem;
    border-radius: var(--r-pill);
    font-size: 0.8rem;
    font-weight: 700;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; }
.status--open { background: rgba(120, 190, 140, 0.16); color: #9bd3a8; }
.status--open .status__dot { background: #7fd190; box-shadow: 0 0 0 4px rgba(127, 209, 144, 0.18); animation: pulse 2.2s ease-in-out infinite; }
.status--closed { background: rgba(201, 162, 159, 0.14); color: var(--rose-200); }
.status--closed .status__dot { background: var(--rose); }

.hours__list { display: flex; flex-direction: column; }
.hours__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.6rem;
    border-top: 1px solid var(--hairline);
    color: var(--text-muted);
}
.hours__row:first-child { border-top: 0; }
.hours__row--today {
    color: var(--text);
    font-weight: 700;
}
.hours__today-tag {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--green-900);
    background: var(--rose);
    padding: 0.1rem 0.5rem;
    border-radius: var(--r-pill);
    margin-inline-start: 0.5rem;
    vertical-align: middle;
}
.hours__time { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ---------- Contact ---------- */
.contact__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    max-width: 720px;
    margin-inline: auto;
}
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.6rem 1.2rem;
    border-radius: var(--r-lg);
    background: rgba(237, 234, 229, 0.04);
    border: 1px solid var(--hairline);
    transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.contact-card:hover {
    transform: translateY(-4px);
    background: rgba(237, 234, 229, 0.08);
    border-color: var(--rose);
    box-shadow: var(--shadow);
}
.contact-card__ico {
    display: grid; place-items: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(201, 162, 159, 0.14);
    color: var(--rose-200);
    margin-bottom: 0.3rem;
    transition: background 0.3s, color 0.3s;
}
.contact-card:hover .contact-card__ico { background: var(--rose); color: var(--green-900); }
.contact-card__ico svg { width: 1.5rem; height: 1.5rem; }
.contact-card__label { font-weight: 700; font-size: 1.05rem; color: var(--cream-50); }
.contact-card__value { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Reviews ---------- */
.reviews { background: var(--green-900); }
.reviews__summary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}
.reviews__score {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--cream-50);
}
.stars { display: inline-flex; gap: 2px; }
.stars .star svg { width: 1.25rem; height: 1.25rem; fill: var(--hairline-strong); transition: fill 0.2s; }
.stars .star--on svg { fill: var(--gold); }
.stars--sm .star svg { width: 0.9rem; height: 0.9rem; }
.reviews__count { color: var(--text-muted); font-size: 0.95rem; width: 100%; }

.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: clamp(2rem, 5vw, 3rem);
}
.review-card {
    background: rgba(237, 234, 229, 0.04);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: border-color 0.3s, transform 0.3s var(--ease);
}
.review-card:hover { border-color: rgba(201, 162, 159, 0.35); transform: translateY(-3px); }
.review-card__top { display: flex; align-items: center; gap: 0.75rem; }
.review-card__avatar {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(201, 162, 159, 0.18);
    color: var(--rose-200);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
}
.review-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-card__meta { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.review-card__author { font-weight: 700; color: var(--cream-50); }
.review-card__sub { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.review-card__time { color: var(--text-faint); font-size: 0.78rem; }
.review-card__g { width: 18px; height: 18px; margin-inline-start: auto; opacity: 0.5; flex: 0 0 auto; }
.review-card__text {
    color: var(--text-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reviews__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: clamp(2rem, 5vw, 2.8rem);
}
.reviews__powered { text-align: center; color: var(--text-faint); font-size: 0.8rem; margin-top: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    background: var(--cream);
    color: var(--ink);
    padding-block: clamp(2.5rem, 6vw, 4rem);
}
.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.6rem;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.site-footer__logo {
    width: clamp(190px, 56vw, 240px);
    height: auto;
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.site-footer__closing {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.4rem, 4vw, 2rem);
    line-height: 1.25;
    max-width: 30ch;
    color: var(--green-850);
}
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem; }
.site-footer__nav a {
    color: var(--green-700);
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.site-footer__nav a:hover { color: var(--rose-deep); }

.site-footer__social { display: flex; gap: 0.7rem; }
.social-btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: var(--green-800);
    border: 1px solid rgba(22, 41, 28, 0.18);
    transition: background 0.3s, color 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}
.social-btn svg { width: 1.35rem; height: 1.35rem; }
.social-btn:hover {
    background: var(--green-800);
    color: var(--cream-50);
    border-color: var(--green-800);
    transform: translateY(-3px);
}
.site-footer__legal { color: rgba(22, 41, 28, 0.6); font-size: 0.85rem; display: grid; gap: 0.2rem; }
.site-footer__made { font-style: italic; }

.to-top {
    position: fixed;
    inset-block-end: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 1.9rem);
    inset-inline-end: 1rem;
    z-index: 45;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--rose);
    color: var(--green-900);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.to-top svg { width: 1.25rem; height: 1.25rem; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--rose-200); }

/* ---------- Full-screen navigation drawer (hamburger) ---------- */
body.drawer-open { overflow: hidden; }

.nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: color-mix(in srgb, var(--green-950) 97%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.nav-drawer.is-open { opacity: 1; visibility: visible; }

.nav-drawer__inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: clamp(1rem, 4vw, 1.6rem);
    padding-top: max(env(safe-area-inset-top), 1rem);
    padding-bottom: max(env(safe-area-inset-bottom), 1.5rem);
    transform: translateY(-12px);
    transition: transform 0.45s var(--ease);
}
.nav-drawer.is-open .nav-drawer__inner { transform: none; }

.nav-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(1.5rem, 7vw, 3rem);
}
.nav-drawer__logo { height: 30px; width: auto; }
.nav-drawer__close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--hairline-strong);
    color: var(--text);
    transition: background 0.25s, transform 0.25s;
}
.nav-drawer__close:hover { background: rgba(237, 234, 229, 0.08); transform: rotate(90deg); }
.nav-drawer__close svg { width: 1.4rem; height: 1.4rem; }

.nav-drawer__nav { display: flex; flex-direction: column; }
.drawer-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: clamp(0.85rem, 3vw, 1.15rem) 0.3rem;
    border-bottom: 1px solid var(--hairline);
    color: var(--cream-50);
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 6vw, 1.9rem);
    font-weight: 600;
    transition: color 0.25s, padding-inline-start 0.25s var(--ease);
}
.drawer-link__ico { color: var(--rose); display: inline-grid; place-items: center; flex: 0 0 auto; }
.drawer-link__ico svg { width: 1.5rem; height: 1.5rem; }
.drawer-link__label { flex: 1; }
.drawer-link__chev { width: 1.25rem; height: 1.25rem; color: var(--text-faint); flex: 0 0 auto; transition: color 0.25s; }
html[dir="rtl"] .drawer-link__chev { transform: scaleX(-1); }
.drawer-link:hover { color: var(--rose-200); padding-inline-start: 0.9rem; }
.drawer-link:hover .drawer-link__chev { color: var(--rose); }
.drawer-link--accent, .drawer-link--accent .drawer-link__ico { color: var(--rose-200); }

.nav-drawer__foot {
    margin-top: auto;
    padding-top: clamp(1.5rem, 6vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.drawer-call {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}
.drawer-call svg { width: 1.3rem; height: 1.3rem; color: var(--rose-200); }
.nav-drawer__social { display: flex; gap: 0.6rem; }
.social-btn--dark { color: var(--text); border-color: var(--hairline-strong); }
.social-btn--dark:hover { background: var(--rose); color: var(--green-900); border-color: var(--rose); transform: translateY(-3px); }

/* Staggered entrance for drawer items */
.nav-drawer.is-open .drawer-link,
.nav-drawer.is-open .nav-drawer__foot {
    animation: drawerItemIn 0.5s var(--ease) both;
    animation-delay: calc(0.1s + var(--i, 0) * 0.06s);
}

/* ---------- Mobile tab bar (floating glass pill) ---------- */
.tabbar {
    position: fixed;
    inset-block-end: calc(env(safe-area-inset-bottom) + 12px);
    inset-inline: 0;
    z-index: 60;
    display: flex;
    justify-content: center;
    padding-inline: 14px;
    pointer-events: none;             /* let the side gaps pass through */
    animation: tabbarIn 0.7s var(--ease) 0.15s both;
}
.tabbar__inner {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 440px;
    height: var(--tabbar-h);
    padding: 6px;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--green-950) 74%, transparent);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    backdrop-filter: blur(22px) saturate(1.5);
    border: 1px solid rgba(237, 234, 229, 0.12);
    box-shadow: 0 20px 45px -16px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Sliding active highlight (positioned by JS, falls back gracefully) */
.tabbar__hl {
    position: absolute;
    inset-block: 6px;
    left: 6px;
    width: 0;
    border-radius: var(--r-pill);
    background: linear-gradient(180deg, rgba(201, 162, 159, 0.32), rgba(201, 162, 159, 0.16));
    border: 1px solid rgba(201, 162, 159, 0.34);
    box-shadow: 0 4px 14px -6px rgba(201, 162, 159, 0.5);
    opacity: 0;
    z-index: 0;
    transition: left 0.5s var(--spring, cubic-bezier(.34,1.4,.5,1)), width 0.5s var(--spring, cubic-bezier(.34,1.4,.5,1)), opacity 0.3s;
    animation: tabHlGlow 3.2s ease-in-out infinite;
}
@keyframes tabHlGlow {
    0%, 100% { box-shadow: 0 4px 14px -6px rgba(201, 162, 159, 0.45); }
    50%      { box-shadow: 0 4px 22px -4px rgba(201, 162, 159, 0.8); }
}

.tab {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: var(--r-pill);
    color: var(--text-faint);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.3s, transform 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.tab__ico svg { width: 1.4rem; height: 1.4rem; transition: transform 0.35s var(--ease); }
.tab.is-active { color: var(--cream-50); }
/* Active tab: icon springs up with a playful pop, label fades up */
.tab.is-active .tab__ico svg {
    transform: translateY(-2px) scale(1.12);
    animation: tabPop 0.55s var(--ease);
}
.tab.is-active .tab__label { animation: tabLabelUp 0.45s var(--ease); }
.tab:active { transform: scale(0.9); }
.tab__label { line-height: 1; transition: opacity 0.3s; }

/* Download tab — always accented as an action */
.tab--pdf { color: var(--rose-200); gap: 2px; flex: 1.15; }
.tab--pdf .tab__ico {
    display: grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: rgba(201, 162, 159, 0.18);
    border: 1px solid rgba(201, 162, 159, 0.42);
    transition: background 0.3s, transform 0.25s var(--ease);
}
.tab--pdf .tab__ico svg { width: 0.92rem; height: 0.92rem; }
.tab--pdf .tab__label {
    white-space: normal;
    line-height: 1.02;
    font-size: 0.52rem;
    max-width: 8ch;
    text-align: center;
}
.tab--pdf:hover .tab__ico { background: rgba(201, 162, 159, 0.3); }
.tab--pdf:active .tab__ico { transform: scale(0.88); }

/* ---------- Reveal animations (only when JS active) ---------- */
html.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--d, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Skip link ---------- */
.skip-link {
    position: fixed;
    inset-block-start: 0.5rem;
    inset-inline-start: 0.5rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: var(--r-sm);
    background: var(--cream-50);
    color: var(--green-900);
    font-weight: 700;
    transform: translateY(-150%);
    transition: transform 0.25s;
}
.skip-link:focus { transform: none; }

/* ---------- Preloader (coffee pour + logo) ---------- */
.preloader { display: none; }
html.js .preloader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: var(--logo-green);
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
body.preload-lock { overflow: hidden; }

.preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.3rem;
    padding: 2rem;
}
.coffee-load { position: relative; width: 128px; height: 138px; }
.coffee-load__cup { width: 100%; height: 100%; display: block; }
.coffee-load__cupline, .coffee-load__handle { stroke: var(--cream-50); }
.coffee-load__saucer { stroke: var(--cream-50); opacity: 0.5; }

/* Coffee fills the cup once, then holds */
.coffee-load__fill {
    transform: translateY(48px);
    animation: coffeeFill 1.9s cubic-bezier(.45, 0, .2, 1) .25s forwards;
}
/* Pouring stream */
.coffee-load__stream {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 50%;
    width: 5px;
    height: 40px;
    margin-inline-start: -2.5px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(122, 82, 54, 0) 0%, #7a5236 28%, #9a6440 62%, rgba(122, 82, 54, 0) 100%);
    background-size: 100% 220%;
    filter: drop-shadow(0 0 3px rgba(154, 100, 64, 0.55));
    animation: streamFlow 0.5s linear infinite, streamFade 0.45s ease 1.75s forwards;
}
/* Steam wisps */
.coffee-load__steam {
    position: absolute;
    inset-block-start: 20px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    opacity: 0;
    animation: steamShow 0.6s ease 1.85s forwards;
}
.coffee-load__steam i {
    width: 4px;
    height: 16px;
    border-radius: 3px;
    background: rgba(246, 243, 238, 0.5);
    animation: steamRise 2.2s ease-in-out infinite;
}
.coffee-load__steam i:nth-child(2) { animation-delay: 0.5s; }
.coffee-load__steam i:nth-child(3) { animation-delay: 1s; }

.preloader__logo { width: clamp(150px, 42vw, 200px); height: auto; border-radius: 6px; }
.preloader__tag {
    color: var(--rose-200);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    font-weight: 600;
    animation: tagPulse 1.7s ease-in-out infinite;
}
.preloader__tag::after { content: "…"; }

@keyframes coffeeFill { to { transform: translateY(2px); } }
@keyframes streamFlow { from { background-position: 0 0; } to { background-position: 0 -220%; } }
@keyframes streamFade { to { opacity: 0; } }
@keyframes steamShow { to { opacity: 1; } }
@keyframes steamRise {
    0%   { transform: translateY(6px) scaleY(.5); opacity: 0; }
    35%  { opacity: 0.6; }
    100% { transform: translateY(-16px) scaleY(1.15); opacity: 0; }
}
@keyframes tagPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ---------- Keyframes ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(127, 209, 144, 0.35); } 50% { box-shadow: 0 0 0 6px rgba(127, 209, 144, 0); } }
@keyframes floatLine { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes tabbarIn { from { opacity: 0; transform: translateY(120%); } to { opacity: 1; transform: translateY(0); } }
@keyframes drawerItemIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes tabPop {
    0%   { transform: translateY(2px) scale(0.86); }
    45%  { transform: translateY(-5px) scale(1.26); }
    72%  { transform: translateY(-1px) scale(1.05); }
    100% { transform: translateY(-2px) scale(1.12); }
}
@keyframes tabLabelUp {
    from { opacity: 0.25; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}
@keyframes tabHlIn {
    from { transform: scale(0.9); }
    to   { transform: scale(1); }
}
@keyframes heroKen {
    0%   { transform: scale(1.12) translate(0, 0); }
    100% { transform: scale(1.2) translate(-2.5%, -2%); }
}
@keyframes heroUnveil {
    0%   { clip-path: inset(0 0 100% 0); }
    100% { clip-path: inset(0 0 0 0); }
}
@keyframes heroShine {
    0%   { transform: translateX(-120%); }
    18%  { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}
@keyframes heroFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -10px; }
}
@keyframes flameFlicker {
    0%   { transform: scale(1) rotate(-2deg); }
    30%  { transform: scale(1.07, 0.95) rotate(2deg); }
    60%  { transform: scale(0.96, 1.06) rotate(-1.5deg); }
    100% { transform: scale(1.03, 0.98) rotate(1.5deg); }
}
@keyframes flameInner {
    from { transform: scaleY(0.82) translateY(1px); opacity: 0.75; }
    to   { transform: scaleY(1.12) translateY(-1px); opacity: 1; }
}
@keyframes flameBadgeGlow {
    0%, 100% { box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.7), 0 0 14px -4px rgba(255, 140, 40, 0.35); }
    50%      { box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.7), 0 0 24px -2px rgba(255, 150, 50, 0.75); }
}
@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(127, 209, 144, 0.55); }
    50%      { box-shadow: 0 0 0 6px rgba(127, 209, 144, 0); }
}
@keyframes soonBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}
@keyframes heroVidDrift {
    0%   { transform: scale(1.06) translate(0, 0); }
    100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
    .menu-cat__items { grid-template-columns: repeat(2, 1fr); }
    .menu-cat--featured .menu-cat__items { grid-template-columns: repeat(2, 1fr); }
    .contact__cards { grid-template-columns: repeat(2, 1fr); }
    .reviews__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 861px) {
    :root { --header-h: 74px; }
    .main-nav { display: flex; }
    .tabbar { display: none; }
    .burger { display: none; }
    .nav-drawer { display: none; }
    body { padding-bottom: 0 !important; }
    .to-top { inset-block-end: 1.5rem; inset-inline-end: 1.5rem; }
    .visit__grid { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
    .visit__map { min-height: 420px; }
    .contact__cards { grid-template-columns: repeat(4, 1fr); }

    /* Single-column cinematic hero; constrain copy for readability */
    .hero__copy { max-width: 600px; }
}

@media (min-width: 1024px) {
    /* Categories with many items spread to 3 columns on wide screens */
    .menu-cat__items { gap: 0.2rem 3rem; }
    .reviews__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Keep clear of the floating mobile tab bar */
@media (max-width: 860px) {
    body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 34px); }

    /* Full visual fits in one screen — content centred, no wasted void */
    .hero {
        min-height: 100svh;
        flex-direction: column;
        justify-content: center;
        padding-block:
            calc(var(--header-h) + 0.8rem)
            calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 3.2rem);
    }
    .hero__inner { gap: clamp(0.9rem, 3.2vw, 1.4rem); }
    /* Scroll hint sits in the reserved bottom band */
    .hero__scroll { inset-block-end: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 1rem); }
    /* Compact chips on phones */
    .hero-chip { font-size: 0.72rem; padding: 0.4rem 0.66rem; gap: 0.34rem; }
    .hero-chip svg, .hero-chip .flame { width: 0.9rem; height: 0.9rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    html.js .reveal { opacity: 1; transform: none; }
    /* Hold the video still (poster frame) and calm the flame */
    .hero__video-wrap { animation: none; transform: scale(1.04); }
    .flame { filter: drop-shadow(0 0 4px rgba(255, 140, 40, 0.7)); }
}
