/* =========================================================================
   Bistro Blyan — design system
   Mobile-first. Palette & type preserved from the original site, tightened
   into tokens. Premium through restraint: space, type, composition.
   ========================================================================= */

:root {
  /* Palette — derived from the restaurant's own photography:
     warm near-black joinery/floors, off-white walls, sage velvet chairs,
     brass pendant lamps, warm-wood tables. */
  --paper:   #f8f5f0;  /* warm off-white */
  --cream:   #efe7d9;  /* warmer surface tone */
  --ink:     #191712;  /* warm near-black (from the dark interior) */
  --ink-soft:#454038;
  --muted:   #6c645a;  /* WCAG AA (>=4.5:1 on paper & cream) */
  --taupe:   #6f5f52;  /* warm brown, AA on light */
  --taupe-lt:#8c7b6c;  /* decorative use only (borders, rules) */
  --taupe-dk:#6f6153;
  --sage:    #6b6f5f;  /* signature accent — the velvet chairs / plants / tableware */
  --sage-dk: #545848;  /* AA-safe sage for text/links on light */
  --brass:   #8a6a2f;  /* rare highlight — pendant lamps (used sparingly) */
  --dark:    #14120f;
  --line:    #e4ddd0;
  --line-2:  #d6cdbe;
  --ok:      #4f7a5b;
  --err:     #a4443b;

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Fluid type scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-2:  clamp(1.7rem, 1.5rem + 1vw, 2.3rem);
  --step-3:  clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
  --step-4:  clamp(2.8rem, 2rem + 4vw, 5rem);

  /* Space & layout */
  --wrap: 1180px;
  --narrow: 720px;
  --gap: clamp(1.2rem, 3vw, 2.4rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 2px;
  --header-h: 68px;

  --shadow: 0 18px 50px -28px rgba(44, 44, 44, 0.4);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word; /* long unbreakable tokens (emails, compound BG words) wrap instead of overflowing */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: 0.01em; }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; border-radius: 1px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 5vw, 2.5rem); }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.section { padding-block: var(--section-y); }
.muted { color: var(--muted); }
.kicker {
  font-size: var(--step--1); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--taupe); font-weight: 400; margin-bottom: 1rem;
}
.section-title { font-size: var(--step-3); color: var(--ink); }
.page-title { font-size: var(--step-4); }
.lead { font-size: var(--step-1); font-weight: 300; color: var(--ink-soft); line-height: 1.5; }
.prose p { margin-bottom: 1.2em; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }
.signature { font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--taupe-dk); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem;
  border-radius: var(--radius); transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  font-family: var(--sans); font-size: var(--step--1);
  letter-spacing: 0.15em; text-transform: uppercase; font-weight: 400;
  padding: 0.95em 1.8em; border-radius: var(--radius); cursor: pointer;
  border: 1px solid transparent; transition: all 0.3s var(--ease); text-align: center;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--taupe-dk); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Header / nav ---------- */
/* Accessible visually-hidden utility (keeps content for SEO + screen readers). */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.site-header {
  position: sticky; top: 0; z-index: 130;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-header.scrolled { border-color: var(--line); background: color-mix(in srgb, var(--paper) 97%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(1.5rem, 4vw, 3rem); min-height: var(--header-h); }
.brand { flex: none; display: inline-flex; align-items: center; }
.brand-logo { height: clamp(52px, 5.6vw, 74px); width: auto; display: block; transition: filter 0.3s var(--ease); }

.header-cluster { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.2rem); }
.header-actions { display: flex; align-items: center; gap: 0.4rem; }

.primary-nav ul { list-style: none; padding: 0; display: flex; gap: clamp(0.9rem, 1.7vw, 1.7rem); }
.primary-nav a { font-size: var(--step--1); letter-spacing: 0.05em; position: relative; padding-block: 4px; white-space: nowrap; }
.primary-nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.primary-nav ul a:hover::after, .primary-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav-lang { display: flex; gap: 0.4rem; align-items: center; }
.lang-link { font-size: var(--step--1); letter-spacing: 0.1em; color: var(--muted); padding: 2px 4px; }
.lang-link.is-active { color: var(--ink); border-bottom: 1px solid var(--sage); }
.nav-cta { padding: 0.7em 1.4em; white-space: nowrap; }

.nav-social { display: flex; gap: 0.2rem; align-items: center; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; color: var(--taupe);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.social-link:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  position: relative; z-index: 120;
}
.nav-toggle-bar { width: 24px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s, background 0.3s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-6.5px) rotate(-45deg); }

/* Home is a locked single-screen splash — no page scroll; nav is via the menu. */
body[data-page="home"] { overflow: hidden; }

/* Immersive pages (home splash + menu banner): transparent header floating over
   a full-bleed photo, light content; solid + dark on scroll. Edge-to-edge so the
   logo + actions hug the true viewport corners, not the centered content column. */
body.imm .site-header { position: fixed; left: 0; right: 0; top: 0; background: transparent; backdrop-filter: none; border-color: transparent; }
/* Extra top breathing room — moves the whole top row (logo + actions) down
   together so they stay aligned, rather than nudging the logo alone. */
body.imm .header-inner { max-width: none; padding-inline: clamp(1.2rem, 3vw, 2.6rem); padding-top: clamp(0.9rem, 2.4vw, 2rem); }
body.imm .site-header.scrolled { background: color-mix(in srgb, var(--paper) 97%, transparent); backdrop-filter: blur(10px); border-color: var(--line); }
body.imm .site-header:not(.scrolled) .primary-nav a,
body.imm .site-header:not(.scrolled) .lang-link,
body.imm .site-header:not(.scrolled) .social-link { color: #fff; }
body.imm .site-header:not(.scrolled) .nav-toggle-bar { background: #fff; }
body.imm .site-header:not(.scrolled) .social-link:hover { background: rgba(255,255,255,0.16); color: #fff; }
body.imm .nav-toggle { display: flex; }   /* hamburger at all widths */

/* Menu open: the X floats above the light full-screen overlay — keep it dark. */
body.nav-open.imm .site-header .nav-toggle-bar { background: var(--ink); }

/* Immersive pages use the full-screen overlay menu at every width (never an inline bar). */
body.imm .primary-nav {
  position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh;
  background: var(--paper); z-index: 110;
  flex-direction: column; justify-content: safe center; align-items: center; gap: 2rem;
  display: flex; transform: translateY(-100%); visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s var(--ease);
  padding: 5rem 2rem 2rem; overflow-y: auto;
}
body.imm .primary-nav.open { transform: none; visibility: visible; }
body.imm .primary-nav ul { flex-direction: column; text-align: center; gap: 1.5rem; }
body.imm .primary-nav a { font-size: var(--step-1); color: var(--ink); }
body.imm .primary-nav .nav-cta { padding: 0.9em 2em; }
/* When that overlay is open, its links sit on paper — override the white
   transparent-header text so they stay readable (source order breaks the tie).
   Scoped to the list + lang links so the .nav-cta keeps its own button colours. */
body.nav-open.imm .site-header .primary-nav ul a,
body.nav-open.imm .site-header .nav-lang .lang-link { color: var(--ink); }

/* Reserve stays one tap away in the bar on the menu page (home keeps it in the
   overlay + hero, so it's hidden there and everywhere non-immersive). */
.header-reserve { display: none; }
body[data-page="menu"] .header-reserve { display: inline-flex; padding: 0.6em 1.15em; font-size: var(--step--1); white-space: nowrap; }
@media (max-width: 420px) { body[data-page="menu"] .header-reserve { padding: 0.55em 0.9em; } }
body[data-page="menu"] .primary-nav .nav-cta { display: none; } /* avoid a duplicate Reserve in the overlay */
/* Outline the bar Reserve while it floats over the photo, for definition. */
body[data-page="menu"] .site-header:not(.scrolled) .header-reserve { box-shadow: 0 0 0 1px rgba(255,255,255,0.55); }
/* The menu bar keeps just Reserve + the menu hamburger — social lives in the
   footer + overlay, and dropping it here also frees the narrow-screen bar. */
body[data-page="menu"] .header-actions .nav-social { display: none; }
/* The dark logo is near-invisible over the photo — whiten it while the header
   floats transparent, then let it flip back to dark on the solid scrolled bar. */
body[data-page="menu"] .site-header:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }

/* ---------- Hero (full-screen opening) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.34) 0%, rgba(20,18,15,0.26) 45%, rgba(20,18,15,0.55) 100%); }

.hero-reserve-wrap { position: relative; width: min(880px, 92vw); height: min(58vh, 480px); }
.hero-reserve {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
  font-family: var(--serif); font-weight: 500; color: #fff;
  font-size: clamp(1.5rem, 6vw, 2.7rem); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.3em 0.4em; white-space: nowrap;
}
.hero-reserve::after {
  content: ""; position: absolute; left: 50%; bottom: 0.12em; width: 0; height: 1px;
  background: currentColor; transform: translateX(-50%); transition: width 0.4s var(--ease);
}
.hero-reserve:hover::after, .hero-reserve:focus-visible::after { width: calc(100% - 0.8em); }

/* Signature-dish reveal on hover — decorative (aria-hidden); link works without it. */
.hero-dishes { position: absolute; inset: 0; pointer-events: none; }
.hero-dish {
  position: absolute; width: clamp(88px, 12vw, 150px); aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 24px 55px -22px rgba(0,0,0,0.65);
  opacity: 0; transition: opacity 0.55s var(--ease), transform 0.65s var(--ease);
}
.hd1 { top: 2%;  left: 4%;  transform: translateY(16px) rotate(-4deg); }
.hd2 { top: 26%; right: 2%; transform: translateY(16px) rotate(3deg); }
.hd3 { bottom: 2%; left: 20%; transform: translateY(16px) rotate(2deg); }
.hero-reserve:hover ~ .hero-dishes .hd1 { opacity: 0.97; transform: translateY(0) rotate(-4deg); }
.hero-reserve:hover ~ .hero-dishes .hd2 { opacity: 0.97; transform: translateY(0) rotate(3deg); }
.hero-reserve:hover ~ .hero-dishes .hd3 { opacity: 0.97; transform: translateY(0) rotate(2deg); }

.hero-hours {
  position: absolute; bottom: 1.4rem; right: clamp(1.1rem, 5vw, 2.5rem); z-index: 2;
  color: color-mix(in srgb, #fff 80%, transparent); font-size: var(--step--1); letter-spacing: 0.15em; text-transform: uppercase;
}

/* ---------- Statement ---------- */
.statement { padding-block: clamp(3rem, 8vw, 5.5rem); }
.statement-title { font-family: var(--serif); font-size: var(--step-3); text-wrap: balance; margin-bottom: 1rem; }
.statement .lead { max-width: 52ch; margin-inline: auto; }

/* ---------- Definition strip ---------- */
.definition { background: var(--cream); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.def-inner { text-align: center; }
.def-word { font-family: var(--serif); font-style: italic; font-size: var(--step-2); color: var(--taupe-dk); }
.def-pos { font-style: normal; font-size: 0.5em; letter-spacing: 0.1em; color: var(--muted); text-transform: lowercase; }
.def-text { font-family: var(--serif); font-size: var(--step-1); color: var(--ink-soft); margin-top: 0.3rem; }

/* ---------- Intro + pillars ---------- */
.intro .narrow { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.intro .section-title { margin-bottom: 1.2rem; }
.pillars { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.pillar { padding-top: 1.4rem; border-top: 1px solid var(--line-2); }
.pillar-title { font-size: var(--step-1); margin-bottom: 0.5rem; }

/* ---------- Feature (image + text) ---------- */
.feature-grid { display: grid; gap: var(--gap); align-items: center; grid-template-columns: 1fr; }
.feature-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.price-unit { font-size: 0.42em; color: var(--muted); letter-spacing: 0.05em; }
.feature-menu { background: var(--paper); }
.feature-room { background: var(--cream); }

/* ---------- Band CTA ---------- */
.band { background: var(--dark); color: var(--paper); text-align: center; }
.band .section-title { color: #fff; margin-bottom: 1rem; }
.band .lead { color: color-mix(in srgb, #fff 78%, transparent); margin-bottom: 2rem; }
.band-inner { margin-top: 2.5rem; }

/* ---------- Generic page ---------- */
.page-head { padding-block: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem); }
.page-head .lead { margin-top: 1rem; }

/* ---------- Story ---------- */
.story-layout, .room-layout, .private-layout { display: grid; gap: var(--gap); grid-template-columns: 1fr; padding-bottom: var(--section-y); }
.story-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ---------- Room ---------- */
.room-hero { margin-block: clamp(1.5rem, 4vw, 2.5rem); }
.room-hero img { width: 100%; max-height: 62vh; object-fit: cover; border-radius: var(--radius); }
.gallery-2 { display: grid; gap: var(--gap); grid-template-columns: 1fr; padding-bottom: var(--section-y); }
.gallery-2 img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-2 .media:last-child img { aspect-ratio: 5 / 6; }
.story-band { margin-block: clamp(2rem, 5vw, 3rem); }
.story-band img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.details-card { background: var(--cream); padding: clamp(1.5rem, 4vw, 2.2rem); border-radius: var(--radius); }
.details-title { font-size: var(--step-1); margin-bottom: 1rem; }
.details-list, .plain-list { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.details-list li { padding-left: 1.3rem; position: relative; }
.details-list li::before { content: "—"; position: absolute; left: 0; color: var(--taupe); }
.plain-list li { padding-left: 1.3rem; position: relative; }
.plain-list li::before { content: "·"; position: absolute; left: 0.3rem; color: var(--taupe); font-weight: 700; }

/* ---------- Menu ---------- */
/* Intro sits on the cream body (moved off the photo): description + price + note. */
.menu-intro { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.menu-intro .lead { max-width: 46ch; margin-inline: auto; }
.menu-price { font-family: var(--serif); font-size: var(--step-2); margin-top: 1.2rem; }
.menu-price-num { color: var(--ink); }
.menu-price-note { color: var(--muted); font-size: var(--step--1); margin-top: 0.4rem; }
.menu-list { display: grid; gap: 2.2rem; padding-block: clamp(2rem, 5vw, 3.5rem); }
.menu-item { position: relative; border-bottom: 1px solid var(--line); padding-bottom: 2.2rem; transition: transform 0.35s var(--ease); }
.menu-item:last-child { border-bottom: 0; }
.menu-course { display: inline-block; font-size: var(--step-0); letter-spacing: 0.22em; text-transform: uppercase; color: var(--taupe); margin-bottom: 0.5rem; transform-origin: left center; transition: transform 0.35s var(--ease), color 0.35s var(--ease); }
.menu-name { font-size: var(--step-2); transition: color 0.35s var(--ease); }
/* A hairline that draws in from the left under the course name on hover. */
.menu-name::after { content: ""; display: block; width: 100%; height: 1px; margin-top: 0.45rem; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.menu-desc { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); margin-top: 0.5rem; max-width: 54ch; }
/* Course hover: enrich, never gate — the number lifts + recolours, the name
   warms to sage and a hairline draws in. All text is readable without hovering. */
.menu-item:hover .menu-course { transform: scale(1.1); color: var(--sage-dk); }
.menu-item:hover .menu-name { color: var(--sage-dk); }
.menu-item:hover .menu-name::after { transform: scaleX(1); }
.menu-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.tag { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25em 0.7em; border-radius: 100px; border: 1px solid var(--line-2); }
.tag-diet { background: color-mix(in srgb, var(--ok) 12%, var(--paper)); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); color: var(--sage-dk); }
.tag-allergen { color: var(--muted); }
.allergen-note { border-left: 2px solid var(--taupe); padding-left: 1rem; color: var(--ink-soft); margin-bottom: 2rem; }

/* Menu page: warm cream body so the page never reads as a blank white sheet;
   the seasonal card and the written courses share one row. */
/* Barely-there warm gradient so the cream reads with gentle depth (a soft
   settle out of the photo above) rather than as one flat sheet. */
.menu-body { background: linear-gradient(180deg, #e7ddca 0%, var(--cream) 22%, #f3ede1 100%); padding-block: clamp(2.5rem, 6vw, 5rem); }
.menu-body .menu-item { border-color: var(--line-2); } /* darker rule stays visible on cream */
.menu-main { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
.menu-main .menu-list { padding-block: 0; }
.menu-card { margin: 0; }
/* The poster is a click-to-enlarge button. The frame clips the gentle zoom so
   the photo scales within its rounded edge, not past it. */
.menu-card-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; position: relative; }
.menu-card-frame { display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.menu-card-frame img { width: 100%; height: auto; display: block; transition: transform 0.6s var(--ease); }
.menu-card-btn:hover .menu-card-frame img,
.menu-card-btn:focus-visible .menu-card-frame img { transform: scale(1.05); }
/* Small "enlarge" cue, revealed on hover/focus. */
.menu-card-hint { position: absolute; top: 0.8rem; right: 0.8rem; display: inline-flex; align-items: center; gap: 0.35em;
  font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  background: rgba(20,18,15,0.55); backdrop-filter: blur(4px); padding: 0.4em 0.8em; border-radius: 100px;
  opacity: 0; transform: translateY(-4px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); pointer-events: none; }
.menu-card-hint::before { content: "\2922"; font-size: 1.05em; line-height: 1; }
.menu-card-btn:hover .menu-card-hint,
.menu-card-btn:focus-visible .menu-card-hint { opacity: 1; transform: translateY(0); }
.menu-card figcaption { margin-top: 0.9rem; font-size: var(--step--1); color: var(--muted); max-width: 44ch; }

/* Click-to-enlarge lightbox (native <dialog>). Fills the viewport so a click on
   the empty area around the poster (anywhere but the image) closes it. */
.lightbox { border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100%; height: 100%; background: rgba(15,13,11,0.9); overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(15,13,11,0.9); }
.lightbox img { display: block; width: auto; height: auto; max-width: min(92vw, 680px); max-height: 90vh;
  object-fit: contain; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,0.55); cursor: default; }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; line-height: 1;
  color: var(--ink); background: var(--paper); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
.lightbox-close:hover { background: #fff; }
.menu-foot { margin-top: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 900px) {
  .menu-main { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: start; }
  .menu-card { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
/* Photographic banner atop the menu page. Full-bleed tablescape under a
   transparent header; layered so the photo can drift (Ken Burns) and brighten on
   hover while the overlaid text stays put and legible. Top padding clears the
   fixed header. A separate top scrim (::after) protects the white header and does
   NOT lift on hover, so the logo stays readable at all times. */
.menu-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(6rem, 14vh, 9rem) 1rem clamp(4rem, 10vh, 6rem);
  text-align: center;
  color: #fff;
  background: #14120f;
}
.menu-hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background: url('/static/img/menu-hero.webp') center center / cover no-repeat;
  transform: scale(1.04);
  animation: menu-kenburns 30s ease-in-out infinite alternate;
  will-change: transform;
}
.menu-hero-scrim {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(15,13,11,0.28) 0%, rgba(15,13,11,0.52) 55%, rgba(15,13,11,0.5) 100%);
  transition: opacity 0.9s var(--ease);
}
/* Header-zone protector: dark only across the top band, unaffected by hover. */
.menu-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,9,7,0.6) 0%, rgba(10,9,7,0) 24%);
}
/* Hover reveal: the main scrim gently lifts so the photo brightens and comes
   forward — the title/price never disappear. */
.menu-hero:hover .menu-hero-scrim { opacity: 0.78; }
@keyframes menu-kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.13) translateY(-1.5%); }
}
.menu-hero-inner { position: relative; text-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.45); }
/* The season line is now the sole, bright hero title — spaced small-caps, large. */
.menu-hero-title {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(1.15rem, 0.55rem + 2.9vw, 3.1rem);
  letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5;
  color: #f4ecdd; max-width: 18ch; margin-inline: auto; overflow-wrap: break-word;
}
@media (max-width: 560px) {
  .menu-hero-title { letter-spacing: 0.1em; max-width: 13ch; }
}
/* Scroll cue: a thin line that gently pulses downward, inviting the scroll to
   the menu. Static (no motion) under reduced-motion via the global override. */
.menu-hero-scroll {
  position: absolute; left: 50%; bottom: clamp(1.5rem, 4vh, 2.5rem); transform: translateX(-50%);
  width: 40px; height: 56px; display: flex; justify-content: center;
}
.menu-hero-scroll-line { position: absolute; top: 0; width: 1px; height: 40px; background: rgba(255,255,255,0.7); animation: menu-scroll-cue 2s var(--ease) infinite; }
@keyframes menu-scroll-cue {
  0% { transform: translateY(-100%); opacity: 0; }
  40% { opacity: 1; }
  80%, 100% { transform: translateY(100%); opacity: 0; }
}

.todo-note {
  background: #fff6d6; border: 1px dashed #d4a017; color: #7a5c00;
  padding: 0.9rem 1.1rem; border-radius: var(--radius); font-size: var(--step--1); margin-block: 1rem;
}

/* ---------- Forms ---------- */
.reserve-layout, .visit-layout { display: grid; gap: var(--gap); grid-template-columns: 1fr; padding-bottom: var(--section-y); }
.reserve-form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
label { font-size: var(--step--1); letter-spacing: 0.04em; color: var(--ink-soft); }
input, select, textarea {
  font-family: var(--sans); font-size: var(--step-0); color: var(--ink);
  padding: 0.75em 0.9em; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; width: 100%; transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--taupe); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--taupe) 18%, transparent); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; font-size: var(--step--1); color: var(--ink-soft); }
.consent input { width: auto; margin-top: 0.15rem; }
/* Native 13px checkboxes are a small touch target — enlarge and brand-tint them. */
.consent input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--sage-dk); }
/* A checkbox border barely reads as invalid — make it explicit and colour the label. */
input[type="checkbox"][aria-invalid="true"] { outline: 2px solid var(--err); outline-offset: 2px; }
.consent input[aria-invalid="true"] ~ span { color: var(--err); }
.availability { font-size: var(--step--1); min-height: 1.2em; }
.availability.ok { color: var(--ok); }
.availability.full { color: var(--err); }
/* Clickable "next available night" suggestion inside the availability line. */
.avail-next {
  font: inherit;
  color: var(--sage-dk);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0;
  cursor: pointer;
}
.avail-next:hover, .avail-next:focus-visible { color: var(--ink); }

/* Custom date picker — only Wed–Sat future dates are selectable. */
.datepick { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem;
  background: #fff; max-width: 360px; margin-top: 0.4rem; }
.datepick.err { border-color: var(--err); }
.datepick-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.datepick-month { font-weight: 600; text-transform: capitalize; font-size: var(--step-0); }
.datepick-nav { border: 1px solid var(--line); background: none; width: 36px; height: 36px;
  border-radius: var(--radius); cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink); }
.datepick-nav:hover, .datepick-nav:focus-visible { border-color: var(--sage); outline: none; }
.datepick-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dp-dow { text-align: center; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); padding: 0.2rem 0; }
.dp-cell { height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 0.92rem; border-radius: var(--radius); }
.dp-off { color: #cbc2b4; }                 /* closed / past — visible but not clickable */
.dp-open { border: 1px solid transparent; background: var(--cream); color: var(--ink); cursor: pointer; }
.dp-open:hover, .dp-open:focus-visible { border-color: var(--sage); outline: none; }
.dp-sel { background: var(--sage); color: #fff; }
.datepick-chosen { margin: 0.6rem 0 0; font-size: var(--step--1); color: var(--ink-soft); min-height: 1.2em; }
.form-msg { font-size: var(--step--1); min-height: 1.2em; }
.form-msg.err { color: var(--err); }
.form-result { background: var(--cream); padding: clamp(1.5rem, 4vw, 2.2rem); border-radius: var(--radius); border-left: 3px solid var(--ok); }
.form-result h2 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter { margin-top: 1rem; display: grid; gap: 0.6rem; }
.newsletter-label { color: var(--muted); }
.newsletter-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-row input { flex: 1 1 12ch; min-width: 0; } /* min-width:0 lets the field shrink so the footer grid never overflows */

/* ---------- Visit / map ---------- */
.visit-info { display: grid; gap: 1.8rem; }
.info-h { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe); margin-bottom: 0.3rem; }
.info-block p { margin-bottom: 0.6rem; }
.map-ph, .map-embed { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); border: 0; }
.map-ph {
  display: grid; place-content: center; text-align: center; gap: 0.3rem;
  background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 12px, #efe8db 12px, #efe8db 24px);
  color: var(--taupe-dk); border: 1px solid var(--line-2);
}
.map-ph span { font-family: var(--serif); font-size: var(--step-1); }
.map-ph small { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section-y); }
.faq .section-title { margin-bottom: 1.5rem; text-align: center; }
.faq-list { display: grid; gap: 0; max-width: var(--narrow); margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-family: var(--serif); font-size: var(--step-1); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--taupe); font-family: var(--sans); font-weight: 300; transition: transform 0.3s; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding-bottom: 1.2rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Legal pages ---------- */
.legal-updated { margin-top: 0.6rem; font-size: var(--step--1); }
.legal-body { padding-bottom: var(--section-y); display: grid; gap: 2.2rem; }
.legal-section h2 { font-size: var(--step-1); margin-bottom: 0.7rem; }
.legal-section p { margin-bottom: 0.9em; max-width: 68ch; color: var(--ink-soft); }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section .plain-list { margin-top: 0.4rem; }
.legal-section a { border-bottom: 1px solid var(--line-2); }
.legal-section a:hover { border-color: var(--taupe); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: color-mix(in srgb, var(--paper) 82%, transparent); padding-top: clamp(3rem, 7vw, 5rem); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
.footer-brand .brand-name { color: #fff; font-size: 1.6rem; }
/* Lighter tones on the dark footer so text clears WCAG AA on #1a1a1a. */
.footer-tagline { font-family: var(--serif); font-style: italic; color: #b09a86; margin-top: 0.5rem; }
.footer-h { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: #b09a86; margin-bottom: 0.8rem; font-family: var(--sans); font-weight: 400; }
.footer-social { display: flex; gap: 1rem; margin-bottom: 1rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; align-items: center; padding-block: 2rem; margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: var(--step--1); color: #b3a99e; }
.footer-legal-links { display: flex; gap: 1.2rem; }
/* Newsletter sits on the dark footer — the default ink-on-transparent ghost button
   and muted label/consent tones would be near-invisible, so lighten them here. */
.site-footer .muted { color: #b3a99e; } /* --muted (#6c645a) is only ~3.2:1 on the dark footer — lift it to AA */
.site-footer .newsletter-label { color: #b09a86; }
.site-footer .consent { color: #b3a99e; }
.site-footer .btn-ghost { border-color: rgba(255,255,255,0.45); color: #fff; }
.site-footer .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 150; max-width: 520px; margin-inline: auto;
  background: var(--ink); color: var(--paper); padding: 1rem 1.2rem; border-radius: var(--radius);
  display: flex; gap: 1rem; align-items: center; justify-content: space-between; box-shadow: var(--shadow); font-size: var(--step--1);
}
.cookie-banner .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; white-space: nowrap; }

/* ---------- Reveal animation ----------
   Gated behind .js (set synchronously in <head>): without JavaScript the
   content is visible by default, never trapped at opacity:0. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.pillar.reveal { transition-delay: calc(var(--i, 0) * 90ms); }

/* =========================================================================
   Tablet / desktop
   ========================================================================= */
@media (min-width: 720px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .gallery-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
}
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid.reverse .feature-media { order: 2; }
  .story-layout { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .room-layout { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .reserve-layout { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .visit-layout { grid-template-columns: 1fr 1fr; align-items: start; }
  .private-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* =========================================================================
   Mobile nav (<1200px). Boundary raised because the Bulgarian nav labels
   ("Как да дойдете", "Частни събития") + CTA overflow a single desktop row
   below ~1200px. Mobile/desktop share one boundary (no sub-pixel dead zone).
   The full-screen overlay also drives the home page at ALL widths (see the
   body[data-page="home"] rule that mirrors it).
   ========================================================================= */
@media (max-width: 1199.98px) {
  .nav-toggle { display: flex; }

  /* Sized to the viewport explicitly: .site-header's backdrop-filter makes it
     the containing block for this fixed panel, so inset:0 would only fill the
     header. dvh keeps it full-height and lets translateY(-100%) hide it fully. */
  .primary-nav {
    position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh;
    background: var(--paper); z-index: 110;
    flex-direction: column; justify-content: safe center; align-items: center; gap: 2rem;
    display: flex; transform: translateY(-100%); visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0.4s var(--ease);
    padding: 5rem 2rem 2rem; overflow-y: auto; /* scrolls + clears header on short/landscape screens */
  }
  .primary-nav.open { transform: none; visibility: visible; }
  .primary-nav ul { flex-direction: column; text-align: center; gap: 1.5rem; }
  .primary-nav a { font-size: var(--step-1); color: var(--ink); }
  .nav-cta { padding: 0.9em 2em; }
}
@media (min-width: 1200px) {
  body:not(.imm) .primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); transform: none !important; }
}

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