/* =========================================================
   Brigid & Bruno — Italian bistro, Galway
   Palette: warm cream paper, olive ink, terracotta accent.
   Fonts:   Fraunces (headings) + Inter (body text)
   ========================================================= */

:root {
  /* Colours */
  --cream: #f6efe4;     /* page background */
  --sand: #ece1cf;      /* alternate section background */
  --olive: #2f3a2b;     /* dark sections, headings */
  --terracotta: #a8472a; /* accent: buttons, numbers, details */
  --ink: #241f1b;       /* body text */

  /* Derived tones */
  --ink-soft: #5b524a;
  --line: rgba(36, 31, 27, 0.16);
  --line-light: rgba(246, 239, 228, 0.28);

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 12vw, 160px);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.1; color: var(--olive); }
h2 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.02em; margin-bottom: 24px; }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
a { color: inherit; }
em { font-style: italic; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

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

/* Accessibility helpers */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--olive); color: var(--cream); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* Small uppercase label above headings, with a thin rule */
.section-num, .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.section-num::after { content: ''; width: 48px; height: 1px; background: currentColor; opacity: 0.6; }
.section-num--light { color: #e7b49b; }
.eyebrow--light { color: var(--cream); justify-content: center; }
.eyebrow--light::before, .eyebrow--light::after { content: ''; width: 32px; height: 1px; background: currentColor; opacity: 0.6; }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head p:last-child { color: var(--ink-soft); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.section-head--row h2 { margin-bottom: 0; }
.section-head--row > p { max-width: 300px; margin: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-num { justify-content: center; }
.section-head--center .section-num::before { content: ''; width: 48px; height: 1px; background: currentColor; opacity: 0.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 1px solid var(--terracotta);
  border-radius: var(--radius);
  background: var(--terracotta);
  color: #fff;
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: #8c3820; border-color: #8c3820; transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); }
.btn--ghost:hover { background: var(--cream); border-color: var(--cream); color: var(--olive); }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--olive); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--small { padding: 12px 20px; font-size: 12px; }
.btn--block { width: 100%; }

/* ---------- 1. Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--cream);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav.is-solid { background: rgba(246, 239, 228, 0.96); color: var(--olive); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 400 22px/1 var(--serif); }
.nav__brand em { color: #e7b49b; }
.nav.is-solid .nav__brand em { color: var(--terracotta); }
.nav__menu { display: flex; align-items: center; gap: 40px; }
.nav__menu ul { display: flex; gap: 30px; }
.nav__menu ul a { position: relative; font-size: 14px; font-weight: 500; text-decoration: none; }
/* thin underline that grows on hover */
.nav__menu ul a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__menu ul a:hover::after { transform: scaleX(1); }
.nav__toggle { display: none; }

/* ---------- 2. Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
/* dark overlay so white text stays readable at any size */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(24, 28, 20, 0.45) 0%, rgba(24, 28, 20, 0.72) 75%),
    linear-gradient(180deg, rgba(24, 28, 20, 0.5) 0%, transparent 30%);
}
.hero__content { position: relative; z-index: 2; padding-block: 120px 80px; }
.hero__title {
  color: #fff;
  font-size: clamp(56px, 10vw, 150px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.hero__title em { color: #e7b49b; font-weight: 300; }
.hero__lead { margin: 26px auto 40px; max-width: 36ch; font: italic 300 clamp(19px, 2vw, 26px)/1.4 var(--serif); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero__note {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 32px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ---------- 3. Our story (overlapping collage) ---------- */
.story__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto;
  gap: 24px;
  align-items: start;
}
.story__text { grid-column: 1 / 6; grid-row: 1 / 3; padding-top: 24px; }
.story__text h2 { font-size: clamp(32px, 3.6vw, 48px); }
.story__text p:not(.section-num) { color: var(--ink-soft); }
.story__sign { margin-top: 28px; font: italic 22px var(--serif); color: var(--olive) !important; }
.story__photo { overflow: hidden; border-radius: var(--radius); }
.story__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.story__photo:hover img { transform: scale(1.04); }
.story__photo--main { grid-column: 8 / 13; grid-row: 1 / 3; aspect-ratio: 4 / 5; }
/* the small photo overlaps the big one and gets a cream frame */
.story__photo--small {
  grid-column: 6 / 10;
  grid-row: 2 / 4;
  align-self: end;
  margin-top: -40%;
  border: 10px solid var(--cream);
  background: var(--cream);
  position: relative;
  z-index: 2;
}
.story__photo--small img { aspect-ratio: 3 / 2; }
.story__photo--small figcaption { padding-top: 10px; font: italic 15px var(--serif); color: var(--ink-soft); }
.story__facts { grid-column: 1 / 6; grid-row: 3; display: flex; gap: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.story__facts li { font-size: 14px; color: var(--ink-soft); }
.story__facts strong { display: block; font: 300 48px/1 var(--serif); color: var(--terracotta); }

/* ---------- 4. Menu ---------- */
.menu { background: var(--sand); }
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.tabs__tab {
  position: relative;
  padding: 14px 22px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: 400 21px/1 var(--serif);
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.tabs__tab::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; background: var(--terracotta); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.tabs__tab:hover { color: var(--olive); }
.tabs__tab[aria-selected="true"] { color: var(--olive); }
.tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__panel { animation: fade 0.4s var(--ease); }
.tabs__panel:focus-visible { outline-offset: 12px; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 72px; }
.dish__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.dish__head h3 { font-size: 23px; }
/* dotted leader line between dish name and price, like a printed menu */
.dish__head::after { content: ''; order: 1; flex: 1; border-bottom: 1px dotted rgba(36, 31, 27, 0.35); transform: translateY(-5px); }
.dish__price { order: 2; font-weight: 600; font-size: 15px; color: var(--terracotta); white-space: nowrap; }
.dish p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- 5. Sunday lunch ---------- */
.sunday { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--olive); color: var(--cream); }
.sunday__photo { min-height: 560px; overflow: hidden; }
.sunday__photo img { width: 100%; height: 100%; object-fit: cover; }
.sunday__card { padding: clamp(48px, 7vw, 104px) clamp(28px, 6vw, 88px); }
.sunday__card h2 { color: var(--cream); font-style: italic; font-weight: 300; }
.sunday__card > p { color: rgba(246, 239, 228, 0.82); max-width: 46ch; }
.courses { margin: 32px 0; border-top: 1px solid var(--line-light); }
.courses li { display: flex; gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-light); font: 400 20px var(--serif); }
.courses span { width: 28px; font: 600 12px var(--sans); letter-spacing: 0.15em; color: #e7b49b; }
.sunday__foot { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.sunday__price { margin: 0; font-size: 14px; color: rgba(246, 239, 228, 0.82); }
.sunday__price strong { display: block; font: 300 40px/1.1 var(--serif); color: var(--cream); }

/* ---------- 6. Gallery (asymmetric grid) ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.g { position: relative; overflow: hidden; border-radius: var(--radius); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
/* warm overlay that fades in on hover */
.g::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(168, 71, 42, 0.35)); opacity: 0; transition: opacity 0.5s var(--ease); }
.g:hover img { transform: scale(1.05); }
.g:hover::after { opacity: 1; }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }

/* ---------- 7. Guest notes ---------- */
.voices { background: var(--sand); }
.demo-note { font-size: 14px; font-style: italic; }
.voices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.voice {
  padding: 40px 34px;
  background: var(--cream);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.voice:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(47, 58, 43, 0.12); }
.voice--accent { margin-top: 40px; background: var(--olive); color: var(--cream); }
.voice blockquote { margin: 0 0 24px; font: 300 22px/1.45 var(--serif); }
.voice blockquote p { margin: 0; }
.voice figcaption { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.voice figcaption span { font-weight: 400; opacity: 0.7; }

/* ---------- 8. Reservation ---------- */
.book {
  position: relative;
  padding-block: var(--section);
  color: var(--cream);
  background: linear-gradient(rgba(36, 31, 27, 0.86), rgba(36, 31, 27, 0.9)), url('../assets/img/interior-1600.webp') center / cover;
}
.book__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.book h2 { color: var(--cream); }
.book__intro p { color: rgba(246, 239, 228, 0.82); }
.book__intro a { color: #e7b49b; }
.book__small { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-light); font: italic 17px var(--serif); }

.form { display: grid; gap: 22px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line-light); background: rgba(36, 31, 27, 0.55); backdrop-filter: blur(4px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form__row--3 { grid-template-columns: 1.3fr 1fr 0.8fr; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246, 239, 228, 0.85); }
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(246, 239, 228, 0.35);
  border-radius: var(--radius);
  background: rgba(246, 239, 228, 0.06);
  color: var(--cream);
  font: 16px var(--sans);
  color-scheme: dark;
  transition: border-color 0.25s, background 0.25s;
}
.field select option { color: var(--ink); background: var(--cream); }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(246, 239, 228, 0.5); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #e7b49b; background: rgba(246, 239, 228, 0.1); outline: none; box-shadow: 0 0 0 3px rgba(231, 180, 155, 0.35); }
.field.has-error input, .field.has-error select { border-color: #ff9b84; }
.field__error { min-height: 0; margin: 0; font-size: 13px; color: #ffb4a3; }
.form__success { margin: 0; padding: 16px 18px; border-left: 3px solid #e7b49b; background: rgba(246, 239, 228, 0.1); font: italic 18px/1.5 var(--serif); }

/* ---------- 9. Visit ---------- */
.visit__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.visit__head p:last-child { color: var(--ink-soft); }
.visit__card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
/* small decorative corner ornaments */
.visit__card::before, .visit__card::after { content: '✦'; position: absolute; color: var(--terracotta); font-size: 14px; }
.visit__card::before { top: -10px; left: 24px; background: var(--cream); padding: 0 8px; }
.visit__card::after { bottom: -10px; right: 24px; background: var(--cream); padding: 0 8px; }
.visit__card h3 { margin-bottom: 14px; font: 600 12px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta); }
.visit__card address { font-style: normal; font: 400 21px/1.45 var(--serif); color: var(--olive); }
.visit__card > div:nth-child(2) { grid-row: span 2; }
.visit__card a { text-decoration-color: var(--line); text-underline-offset: 4px; transition: color 0.2s; }
.visit__card a:hover { color: var(--terracotta); }
.visit__fine { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--ink-soft); }

/* ---------- 10. Footer ---------- */
.footer { padding: 72px 0 32px; background: var(--olive); color: var(--cream); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line-light); }
.footer__brand { display: flex; align-items: center; gap: 16px; text-decoration: none; font: 400 28px var(--serif); }
.footer__brand em { color: #e7b49b; }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer__links a { font-size: 14px; text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
.footer__links a:hover { opacity: 1; text-decoration: underline; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-light); border-radius: 50%; transition: background 0.3s, border-color 0.3s; }
.footer__social a:hover { background: var(--terracotta); border-color: var(--terracotta); }
.footer__social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.footer__social .fill { fill: currentColor; stroke: none; }
.footer__copy { margin-top: 24px; font-size: 13px; opacity: 0.7; }

/* ---------- Step inside: 3D walk through the dining room (js/tour.js) ---------- */
/* Without WebGL the stops show as a plain list on olive; js/tour.js adds .tour--live */
.tour { position: relative; background: #1a1611; color: var(--cream); }
.tour h2, .tour h3 { color: var(--cream); text-shadow: 0 2px 24px rgba(20, 16, 12, 0.6); }
.tour__sticky { position: relative; padding: var(--section) var(--gutter); }
.tour__canvas, .tour__shade, .tour__progress { display: none; }
.tour__head { max-width: var(--container); margin: 0 auto 48px; }
.tour__head h2 { max-width: 14ch; font: 300 clamp(38px, 5.4vw, 72px)/1.04 var(--serif); }
.tour__hint { display: none; }
.tour__stops { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; max-width: var(--container); margin: 0 auto; padding: 0; list-style: none; }
.tour__stop span { font: italic 400 15px var(--serif); color: #e7b49b; }
.tour__stop h3 { margin: 6px 0 8px; font: 400 26px/1.15 var(--serif); }
.tour__stop p { max-width: 34ch; color: rgba(246, 239, 228, 0.78); }
.tour__stop .btn { margin-top: 20px; }

.tour--live { height: 520vh; }
.tour--live .tour__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
.tour--live .tour__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.tour--live .tour__shade { display: block; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 16, 12, 0.72) 0%, rgba(20, 16, 12, 0.25) 42%, transparent 60%),
              linear-gradient(0deg, rgba(20, 16, 12, 0.6) 0%, transparent 35%); }
.tour--live .tour__head { position: absolute; top: clamp(96px, 14vh, 150px); left: var(--gutter); margin: 0; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.tour--live.is-walking .tour__head { opacity: 0; transform: translateY(-16px); }
.tour--live .tour__hint { display: flex; align-items: center; gap: 12px; margin-top: 28px; font: 500 12px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.tour__hint span { position: relative; width: 22px; height: 34px; border: 1.5px solid currentColor; border-radius: 12px; }
.tour__hint span::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: tour-wheel 1.8s infinite; }
@keyframes tour-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
.tour--live .tour__stops { display: block; position: absolute; left: var(--gutter); bottom: clamp(56px, 12vh, 120px); width: min(420px, calc(100% - 2 * var(--gutter))); margin: 0; }
.tour--live .tour__stop { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s; }
.tour--live .tour__stop.is-active { opacity: 1; visibility: visible; transform: none; }
.tour--live .tour__stop h3 { font-size: clamp(30px, 3.4vw, 44px); }
.tour--live .tour__progress { display: block; position: absolute; right: var(--gutter); top: 50%; width: 2px; height: 160px; margin-top: -80px; background: var(--line-light); }
.tour__progress i { display: block; width: 100%; height: 100%; background: #e7b49b; transform-origin: top; transform: scaleY(var(--p, 0)); }

/* ---------- Scroll fade-in (activated by main.js) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive: tablet ---------- */
@media (max-width: 960px) {
  .nav__toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
  }
  /* three-line hamburger drawn with one span + two pseudo-elements */
  .nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s; }
  .nav__bars { position: relative; }
  .nav__bars::before, .nav__bars::after { content: ''; position: absolute; left: 0; }
  .nav__bars::before { top: -7px; }
  .nav__bars::after { top: 7px; }
  .nav.is-open .nav__bars { background: transparent; }
  .nav.is-open .nav__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav__menu {
    position: fixed;
    inset: 80px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--gutter) 32px;
    background: var(--cream);
    color: var(--olive);
    box-shadow: 0 20px 30px rgba(36, 31, 27, 0.12);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open { background: var(--cream); color: var(--olive); }
  .nav.is-open .nav__brand em { color: var(--terracotta); }
  .nav.is-open .nav__menu { visibility: visible; opacity: 1; transform: none; }
  .nav__menu ul { flex-direction: column; gap: 0; }
  .nav__menu ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 400 24px var(--serif); }
  .nav__menu ul a::after { display: none; }

  .story__grid { grid-template-columns: repeat(6, 1fr); }
  .story__text { grid-column: 1 / -1; grid-row: auto; }
  .story__photo--main { grid-column: 1 / 5; grid-row: auto; }
  .story__photo--small { grid-column: 3 / 7; grid-row: auto; margin-top: -30%; }
  .story__facts { grid-column: 1 / -1; grid-row: auto; }

  .sunday { grid-template-columns: 1fr; }
  .sunday__photo { min-height: 0; aspect-ratio: 16 / 9; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .voices__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .voice--accent { margin-top: 0; }
  .book__grid, .visit__grid { grid-template-columns: 1fr; }
}

/* ---------- Responsive: mobile ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .dishes { grid-template-columns: 1fr; gap: 32px; }
  .tabs__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs__tab { flex: none; padding: 12px 12px; font-size: 18px; }
  .tabs__tab::after { left: 12px; right: 12px; }
  .story__photo--main { grid-column: 1 / 6; }
  .story__photo--small { grid-column: 2 / 7; }
  .story__facts { gap: 24px; }
  .story__facts strong { font-size: 38px; }
  .gallery__grid { grid-auto-rows: 160px; gap: 10px; }
  .form__row, .form__row--3, .visit__card { grid-template-columns: 1fr; }
  .visit__card > div:nth-child(2) { grid-row: auto; }
  .hero__actions .btn { flex: 1 1 100%; }
  .footer__grid { flex-direction: column; align-items: flex-start; }
  .tour--live { height: 440vh; }
  .tour--live .tour__shade { background: linear-gradient(0deg, rgba(20, 16, 12, 0.85) 0%, rgba(20, 16, 12, 0.2) 50%, rgba(20, 16, 12, 0.55) 100%); }
  .tour--live .tour__progress { display: none; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Language: the first question and the EN / SR switch ---------- */
/* Until a language is picked, only the question is visible */
.lang-pending body > *:not(.lang-gate) { visibility: hidden; }

.lang-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px var(--gutter);
  background: var(--cream);
  color: var(--ink);
  transition: opacity 0.45s var(--ease);
}
.lang-gate.is-leaving { opacity: 0; pointer-events: none; }
.lang-gate__box { display: grid; justify-items: center; gap: 18px; width: min(100%, 520px); text-align: center; animation: lang-gate-in 0.7s var(--ease) both; }
.lang-gate__brand { font: 400 26px/1 var(--serif); color: var(--olive); }
.lang-gate__brand em { color: var(--terracotta); }
.lang-gate__title { display: grid; gap: 4px; margin: 8px 0 10px; font: 400 clamp(32px, 6vw, 48px)/1.05 var(--serif); color: var(--olive); }
.lang-gate__title span + span { font-style: italic; color: var(--terracotta); }
.lang-gate__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.lang-gate__options button {
  display: grid;
  gap: 6px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.lang-gate__options button b { font: 400 26px/1 var(--serif); color: var(--olive); }
.lang-gate__options button span { font-size: 14px; color: var(--ink-soft); }
.lang-gate__options button:hover,
.lang-gate__options button:focus-visible { border-color: var(--terracotta); transform: translateY(-2px); outline: none; }
.lang-gate__options button:focus-visible { box-shadow: 0 0 0 3px rgba(168, 71, 42, 0.25); }
@keyframes lang-gate-in { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 480px) { .lang-gate__options { grid-template-columns: 1fr; } }

.nav__menu { margin-left: auto; }
.lang-switch { display: inline-flex; margin-left: 28px; border: 1px solid currentColor; border-radius: 999px; opacity: 0.9; }
.lang-switch button {
  min-width: 40px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.08em;
  cursor: pointer;
}
.lang-switch button[aria-pressed='true'] { background: var(--terracotta); color: #fff; }
.lang-switch button:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
@media (max-width: 960px) {
  .lang-switch { margin-left: auto; margin-right: 10px; }
  .nav__toggle { order: 3; }
}

/* Serbian labels run longer: keep each link on one line and tighten the spacing on narrower desktops */
.nav__menu ul a, .nav__menu .btn { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 961px) {
  .nav__menu { gap: 22px; }
  .nav__menu ul { gap: 18px; }
  .lang-switch { margin-left: 18px; }
}
@media (max-width: 1100px) and (min-width: 961px) {
  .nav__brand span { display: none; }
  .nav__menu ul a { font-size: 13px; }
}
