:root {
  --night: #150f19;      /* page: desert night, a violet-black */
  --dusk: #1e1724;       /* raised surfaces */
  --dusk-2: #2a2131;     /* inputs, hover */
  --sand: #ecdfc9;       /* text */
  --muted: #a9998c;      /* secondary text */
  --brass: #d4a95f;      /* the one accent: bar brass, candle light */
  --brass-deep: #b58a45;
  --gold: #f2d07b;       /* the logo's gold */
  --logo: url(/img/brand/mirage-wordmark.svg);
  --ember: #d08a78;      /* closed / errors */
  --line: rgba(236, 223, 201, .12);

  --display: 'Bodoni Moda', 'Didot', Georgia, serif;
  --body: 'Jost', 'Futura', system-ui, sans-serif;

  --wrap: min(1180px, 100% - 2 * clamp(16px, 4vw, 48px));
  --radius: 4px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  transition: opacity .4s;
  background: var(--night);
  color: var(--sand);
  font: 300 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
body.is-loading { opacity: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.6rem; font-style: italic; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: var(--wrap); margin-inline: auto; }
section { padding-block: clamp(72px, 11vw, 140px); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { max-width: 60ch; }
.section-head p { color: var(--muted); margin-top: .8em; }
.link { color: var(--brass); text-decoration: none; border-bottom: 1px solid rgba(212, 169, 95, .35); }
.link:hover { border-color: var(--brass); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font: 400 1rem var(--body); letter-spacing: .02em;
  border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--brass); color: #1a1208; border: 1px solid var(--brass); }
.btn--solid:hover { background: #e2bb74; }
.btn--ghost { background: transparent; color: var(--sand); border: 1px solid rgba(236, 223, 201, .4); }
.btn--ghost:hover { border-color: var(--sand); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(21, 15, 25, .86); backdrop-filter: blur(12px); border-color: var(--line); }
.nav { gap: clamp(12px, 2.4vw, 32px); }
/* over the hero photo: a soft night-coloured veil so the bar reads on any picture */
.nav::before {
  content: ''; position: absolute; inset: 0 0 -60px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(21, 15, 25, .82) 0%, rgba(21, 15, 25, .45) 55%, transparent 100%);
  transition: opacity .3s;
}
.nav.is-solid::before { opacity: 0; }
.nav__links a, .langs button { text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
/* the Burgues Script wordmark, painted through a mask so it takes any colour;
   the element's own text stays for screen readers and search engines */
.logo { position: relative; display: block; aspect-ratio: 1551 / 610; font-size: 0; color: transparent; }
.logo::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold);
  -webkit-mask: var(--logo) left center / contain no-repeat;
          mask: var(--logo) left center / contain no-repeat;
}
.nav__brand { width: clamp(118px, 11vw, 150px); margin-right: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .7)); }

/* language flags */
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(236, 223, 201, .22); border-radius: 999px; background: rgba(21, 15, 25, .5); backdrop-filter: blur(8px); }
.langs button {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font: 400 .8rem var(--body); letter-spacing: .04em; padding: 5px 9px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.langs img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; opacity: .55; transition: opacity .2s; }
.langs button:hover { color: var(--sand); }
.langs button:hover img { opacity: .9; }
.langs button[aria-pressed='true'] { background: rgba(236, 223, 201, .14); color: var(--sand); }
.langs button[aria-pressed='true'] img { opacity: 1; }
@media (max-width: 480px) { .langs span { display: none; } .langs button { padding: 6px 8px; } }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 32px); align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: .98rem; }
.nav__links a:not(.nav__cta):hover { color: var(--brass); }
.nav__links .nav__cta {
  background: linear-gradient(135deg, var(--gold), var(--brass));
  color: #1a1208; font-weight: 400; text-shadow: none;
  padding: 9px 20px; border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
  transition: filter .2s, box-shadow .2s;
}
.nav__links .nav__cta:hover { filter: brightness(1.08); box-shadow: 0 4px 22px rgba(212, 169, 95, .35); }
.nav__toggle { display: none; }

@media (max-width: 820px) {
  .nav__toggle {
    display: block; background: none; color: var(--sand); border: 1px solid rgba(236, 223, 201, .4);
    border-radius: 999px; padding: 6px 16px; font: 400 .95rem var(--body); cursor: pointer;
  }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: 12px 0; font-size: 1.15rem; }
  .nav__cta { text-align: center; margin-top: 8px; }
}

/* ---------- hero: the wordmark shimmers like heat over sand ---------- */
.hero {
  position: relative; min-height: min(100svh, 1100px); padding: 0;
  display: grid; align-items: end; overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 15, 25, .55) 0%, rgba(21, 15, 25, .1) 30%, rgba(21, 15, 25, .6) 62%, var(--night) 100%);
}
.hero__content { position: relative; width: var(--wrap); margin: 0 auto; padding-bottom: clamp(48px, 9vh, 96px); }
.hero__word {
  position: relative;
  width: min(100%, 880px);
  margin-left: -2%;
  filter: url(#haze);
  animation: rise 1.8s cubic-bezier(.2, .7, .2, 1) both;
}
.hero__line { font: 400 clamp(1.1rem, 2.2vw, 1.45rem) var(--body); margin: clamp(40px, 7vw, 88px) 0 18px; color: var(--sand); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; color: var(--muted); font-size: .98rem; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
.status.is-open { color: var(--sand); }
.status.is-open::before { background: #9fcf8a; box-shadow: 0 0 0 4px rgba(159, 207, 138, .18); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
.about__img { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 200px 200px var(--radius) var(--radius); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__text p { font-size: 1.2rem; max-width: 48ch; margin-top: 1.2em; }
.about__text .about__addr { color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about__img { max-width: 420px; } }

/* ---------- menu ---------- */
.menu { border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.tab {
  background: none; border: 1px solid var(--line); color: var(--muted);
  font: 400 1rem var(--body); padding: 10px 20px; border-radius: 999px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.tab:hover { color: var(--sand); border-color: rgba(236, 223, 201, .35); }
.tab[aria-selected='true'] { background: var(--sand); color: var(--night); border-color: var(--sand); }

.menu__list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 88px); }
@media (max-width: 820px) { .menu__list { grid-template-columns: 1fr; } }
.dish {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  background: none; border-left: 0; border-right: 0; border-top: 0;
  color: inherit; text-align: left; font: inherit; width: 100%;
}
button.dish { cursor: zoom-in; }
.dish--noimg { grid-template-columns: 1fr; }
.dish__img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--dusk); transition: transform .4s; }
button.dish:hover .dish__img { transform: scale(1.06); }
.dish__top { display: flex; align-items: baseline; gap: 12px; }
.dish__name { font: 400 1.45rem/1.2 var(--display); }
.dish__lead { flex: 1; border-bottom: 1px dotted rgba(236, 223, 201, .3); transform: translateY(-5px); min-width: 16px; }
.dish__price { font: 400 1.15rem var(--display); color: var(--brass); white-space: nowrap; }
.dish__desc { color: var(--muted); margin: 4px 0 0; font-size: .98rem; }
.menu__empty { color: var(--muted); }

/* ---------- gallery ---------- */
.gallery { background: var(--dusk); }
.gallery__grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(160px, 22vw, 300px);
  grid-auto-flow: dense;
}
.shot { padding: 0; border: 0; background: var(--dusk-2); cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .6s; filter: saturate(.92); }
.shot:hover img { transform: scale(1.04); filter: saturate(1.05); }
.shot:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 700px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 38vw; }
}

/* ---------- hours ---------- */
.hours__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }
@media (max-width: 700px) { .hours__cols { grid-template-columns: 1fr; } }
.hours h3 { margin-bottom: 14px; color: var(--brass); }
.hours__table { width: 100%; border-collapse: collapse; }
.hours__table td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours__table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours__table tr.is-today td { color: var(--brass); }
.hours__table .today { color: var(--muted); font-size: .9em; }
.hours__table .closed { color: var(--ember); }

/* ---------- booking ---------- */
.book { background: linear-gradient(180deg, var(--night), var(--dusk)); border-top: 1px solid var(--line); }
.book__inner { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 88px); }
.book__intro p { color: var(--muted); margin-top: 1em; max-width: 36ch; }
.book__intro .link { font: 400 1.4rem var(--display); }
@media (max-width: 880px) { .book__inner { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--dusk-2); color: var(--sand);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: 400 1rem var(--body);
}
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brass); }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__msg { margin: 0; }
.form__msg.is-error { color: var(--ember); }
.form__msg.is-ok { color: #b8d9a6; }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: stretch; }
.visit address { font-style: normal; font-size: 1.2rem; margin: 1.2em 0 1.6em; }
.visit address p { margin: 0 0 .4em; }
.visit__map { min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.visit__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.5) brightness(.9); }
@media (max-width: 880px) { .visit { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.foot__brand { font: italic 400 1.6rem var(--display); color: var(--sand); margin-right: auto; }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(12, 8, 14, .94); color: var(--sand);
}
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { color: var(--muted); text-align: center; }
.lightbox figcaption strong { font: 400 1.5rem var(--display); color: var(--sand); display: block; }
.lightbox button { background: none; border: 0; color: var(--sand); cursor: pointer; font: 300 2.6rem var(--body); height: 64px; }
.lightbox button:hover { color: var(--brass); }
.lightbox__close { position: absolute; top: 12px; right: 16px; }
.lightbox.is-single .lightbox__nav { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
