/* =========================================================
   Maison Verre — modern bistro & wine bar
   Warm, deep wine-dark editorial theme
   ========================================================= */

:root {
  /* palette */
  --ink:        #f4ece1;   /* warm cream text */
  --ink-soft:   #cdbfac;
  --ink-faint:  #93836e;
  --bg:         #1c1310;   /* deep cocoa-wine */
  --bg-2:       #241813;
  --bg-3:       #2c1d17;
  --panel:      #221610;
  --line:       rgba(214, 178, 122, 0.18);
  --gold:       #d8a24a;   /* gold accent */
  --gold-soft:  #e7c081;
  --terra:      #c1623b;   /* terracotta */
  --terra-soft: #d98a63;

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --pad:  clamp(1.25rem, 5vw, 4.5rem);
  --radius: 14px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; }

/* ---------- a11y helpers ---------- */
.visually-hidden, .skip-link:not(:focus) {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: 1rem; z-index: 999;
  background: var(--gold); color: #1a120c;
  padding: 0.6rem 1rem; border-radius: 8px;
  font-family: var(--sans); font-weight: 500; text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- shared ---------- */
.section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad);
}
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow--light { color: var(--gold-soft); }

.section__head { max-width: 46rem; }
.section__title {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  letter-spacing: -0.01em;
}
.section__intro, .section__head .section__intro {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 38rem;
}

/* ---------- buttons ---------- */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 500;
  font-size: 0.92rem; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer;
  padding: 0.85em 1.5em; border-radius: 999px;
  border: 1px solid var(--b);
  transition: background .35s ease, color .35s ease, transform .25s ease, border-color .35s ease;
}
.btn--solid { background: var(--gold); color: #20150c; border-color: var(--gold); }
.btn--solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--text {
  border: none; padding: 0.85em 0.4em; color: var(--ink);
  border-radius: 4px;
}
.btn--text:hover { color: var(--gold-soft); }
.btn--text:hover span { transform: translateX(4px); }
.btn--text span { display: inline-block; transition: transform .3s ease; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- wordmark ---------- */
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--ink);
}
.wordmark__mark { color: var(--gold); display: inline-flex; }
.wordmark__text {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.3rem; letter-spacing: 0.02em;
}
.wordmark--footer .wordmark__text { font-size: 1.6rem; color: var(--ink); }

/* ===================== TOP BAR ===================== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease, background .4s ease;
}
.topbar.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.topbar__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0.9rem var(--pad);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav { margin-left: auto; }
.nav__list {
  list-style: none; display: flex; gap: 1.9rem; padding: 0;
}
.nav__list a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 0.95rem; letter-spacing: 0.05em;
  position: relative; padding: 0.3rem 0;
  transition: color .3s ease;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after { transform: scaleX(1); }
.topbar__cta { white-space: nowrap; }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 42px; height: 38px; cursor: pointer;
  position: relative;
}
.nav__toggle-bar, .nav__toggle-bar::before, .nav__toggle-bar::after {
  content: ""; position: absolute; left: 50%; width: 18px; height: 1.6px;
  background: var(--ink); transform: translateX(-50%);
  transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle-bar { top: 50%; transform: translate(-50%, -50%); }
.nav__toggle-bar::before { top: -6px; }
.nav__toggle-bar::after { top: 6px; }

/* ===================== HERO ===================== */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(560px, 88vh, 860px);
  display: flex; align-items: center;
}
.hero__scene { position: absolute; inset: 0; z-index: 0; }
.dusk {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 78% 18%, rgba(216,162,74,0.22), transparent 55%),
    radial-gradient(90% 70% at 20% 90%, rgba(193,98,59,0.20), transparent 60%),
    linear-gradient(180deg, #2a1a12 0%, #1f140f 45%, #160e0a 100%);
}
.dusk__sun {
  position: absolute; top: 12%; right: 14%;
  width: clamp(180px, 26vw, 340px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(231,192,129,0.55), rgba(216,162,74,0.12) 55%, transparent 72%);
  filter: blur(4px);
}
.dusk__haze {
  position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(193,98,59,0.10) 60%, rgba(22,14,10,0.65));
  mix-blend-mode: screen;
}
.hero__sprig {
  position: absolute; right: clamp(1rem, 9vw, 7rem); bottom: -6%;
  width: clamp(90px, 14vw, 150px); height: auto;
  color: rgba(231,192,129,0.55);
}

.hero__content {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin-inline: auto; width: 100%;
  padding: 5rem var(--pad);
}
.hero__title {
  font-size: clamp(2.6rem, 7.4vw, 5.2rem);
  letter-spacing: -0.015em; max-width: 16ch;
}
.hero__title em { font-style: italic; color: var(--gold-soft); font-weight: 400; }
.hero__lede {
  margin-top: 1.6rem; max-width: 40ch;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
}
.hero__actions {
  margin-top: 2.2rem; display: flex; flex-wrap: wrap;
  gap: 0.6rem 1rem; align-items: center;
}
.hero__hours {
  margin-top: 2.8rem; display: flex; flex-wrap: wrap; gap: 2.2rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line);
  max-width: 36rem;
}
.hero__hours div { display: flex; flex-direction: column; gap: 0.15rem; }
.hero__hours dt {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold);
}
.hero__hours dd { font-family: var(--serif); font-size: 1.15rem; }

/* ===================== MENU ===================== */
.menu__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.menu__col { list-style: none; padding: 0; display: grid; gap: 2.2rem; align-content: start; }
.dish { padding-bottom: 0.2rem; }
.dish__line {
  display: flex; align-items: baseline; gap: 0.6rem;
}
.dish__name {
  font-size: clamp(1.12rem, 2vw, 1.3rem); font-weight: 500;
  letter-spacing: 0; line-height: 1.25;
}
.dish__dots {
  flex: 1; border-bottom: 1px dotted var(--ink-faint);
  transform: translateY(-3px); min-width: 1.5rem;
}
.dish__price {
  font-family: var(--serif); color: var(--gold-soft);
  font-size: 1.15rem; white-space: nowrap;
}
.dish__price::before { content: "£"; opacity: 0.75; font-size: 0.85em; }
.dish__desc { color: var(--ink-soft); font-size: 0.96rem; margin-top: 0.45rem; max-width: 34ch; }
.menu__note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); color: var(--ink-faint);
  font-size: 0.9rem; max-width: 46rem; font-style: italic;
}

/* ===================== ABOUT ===================== */
.about { position: relative; }
.about::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(216,162,74,0.06), transparent 60%);
  pointer-events: none;
}
.about__grid {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.about__text p { margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.06rem; max-width: 46ch; }
.about__text .section__title { margin-bottom: 0.4rem; }
.pullquote {
  border-left: 2px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.8rem;
}
.pullquote blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem); line-height: 1.35;
  color: var(--ink);
}
.pullquote figcaption {
  margin-top: 1.1rem; color: var(--gold); font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ===================== VISIT ===================== */
.visit__grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center;
}
.visit__address {
  font-style: normal; margin-top: 1.8rem;
  font-size: 1.08rem; line-height: 1.7; color: var(--ink-soft);
}
.visit__address strong { font-family: var(--serif); color: var(--ink); font-weight: 500; }
.visit__hours { margin-top: 1.8rem; display: grid; gap: 0.7rem; max-width: 26rem; }
.visit__hours div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-bottom: 0.7rem; border-bottom: 1px solid var(--line);
}
.visit__hours dt { color: var(--ink); }
.visit__hours dd { color: var(--gold-soft); font-family: var(--serif); white-space: nowrap; }
.visit__detail { margin-top: 1.6rem; color: var(--ink-faint); font-size: 0.95rem; }

.visit__map {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.8rem;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.visit__map svg { width: 100%; height: auto; }
.map__bg { fill: #1a110d; }
.map__water { fill: rgba(216,162,74,0.08); }
.map__block rect { fill: rgba(244,236,225,0.04); stroke: var(--line); stroke-width: 1; }
.map__road { stroke: rgba(244,236,225,0.10); stroke-width: 7; fill: none; stroke-linecap: round; }
.map__route {
  stroke: var(--terra-soft); stroke-width: 2.4; fill: none;
  stroke-dasharray: 5 7; stroke-linecap: round;
}
.map__stop { fill: var(--bg); stroke: var(--ink-soft); stroke-width: 2; }
.map__stop-ring { fill: none; stroke: var(--ink-faint); stroke-width: 1; }
.map__pin path { fill: var(--gold); }
.map__pin-dot { fill: #20150c; }
.map__label {
  fill: var(--ink-soft); font-family: var(--sans); font-size: 13px;
  font-weight: 400; letter-spacing: 0.04em;
}
.map__label--accent { fill: var(--gold-soft); font-weight: 500; }
.map__label--muted { fill: var(--ink-faint); font-size: 11px; font-style: italic; }

/* ===================== RESERVE ===================== */
.reserve { padding-block: clamp(4rem, 9vw, 7.5rem); }
.reserve__band {
  background:
    radial-gradient(90% 130% at 0% 0%, rgba(193,98,59,0.18), transparent 55%),
    linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: clamp(16px, 3vw, 28px);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.reserve__intro p { color: var(--ink-soft); margin-top: 1.1rem; max-width: 40ch; }
.reserve__mail a { color: var(--gold-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.reserve__mail a:hover { border-color: var(--gold); }

.reserve__form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: 0.4rem; }
.field--row { grid-template-columns: 1fr 1fr; gap: 1rem; }
.field--row > div { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.field__opt { text-transform: none; letter-spacing: 0; color: var(--ink-faint); font-size: 0.92em; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 0.98rem;
  color: var(--ink); background: rgba(0,0,0,0.22);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.75rem 0.85rem; transition: border-color .3s ease, background .3s ease;
}
.field textarea { resize: vertical; min-height: 3rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); background: rgba(0,0,0,0.30); outline: none;
}
.field select { appearance: none; cursor: pointer; }
.reserve__status { min-height: 1.2em; font-size: 0.92rem; color: var(--gold-soft); }
.reserve__status.is-error { color: var(--terra-soft); }

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(3rem, 6vw, 4.5rem) var(--pad) 2rem;
}
.footer__grid {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
}
.footer__tag { margin-top: 1rem; color: var(--ink-faint); max-width: 28ch; font-size: 0.95rem; }
.footer__h {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold);
  margin-bottom: 1rem;
}
.footer__list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer__list li, .footer__list a { color: var(--ink-soft); font-size: 0.95rem; text-decoration: none; }
.footer__list a { transition: color .3s ease; border-bottom: 1px solid transparent; }
.footer__list a:hover { color: var(--gold-soft); }
.footer__base {
  max-width: var(--maxw); margin: 2.5rem auto 0; padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  color: var(--ink-faint); font-size: 0.85rem;
}

/* ===================== MOTION ===================== */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-16px) rotate(1deg); }
}
.float-slow { animation: floatY 9s ease-in-out infinite; transform-origin: bottom center; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 880px) {
  .nav { margin-left: auto; position: relative; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .topbar__cta { display: none; }
  .nav__list {
    position: absolute; right: 0; top: calc(100% + 0.7rem);
    flex-direction: column; gap: 0.2rem; min-width: 200px;
    background: var(--bg-3); border: 1px solid var(--line);
    border-radius: 12px; padding: 0.6rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav__list.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list li { width: 100%; }
  .nav__list a { display: block; padding: 0.65rem 0.7rem; }
  .nav__list a::after { display: none; }

  .about__grid, .visit__grid, .reserve__band { grid-template-columns: 1fr; }
  .pullquote { margin-top: 0.5rem; }
}

@media (max-width: 620px) {
  .menu__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero__hours { gap: 1.4rem 2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .hero__sprig { opacity: 0.5; }
}

/* ===================== 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;
  }
  .reveal { opacity: 1; transform: none; }
  .float-slow { animation: none; }
}
