/* Al Casbah — concept by VCTR. Not the live Al Casbah website.
   The gold is sampled from their own wordmark (#b6a06f–#bba77b); the ground is
   a warm near-black rather than a neutral one, to sit with the food photography
   and the Bedouin interior the reviews keep mentioning.

   Animation budget: transform and opacity only. */

@font-face {
  font-family: Cormorant; src: url('/fonts/cormorant-var.woff2') format('woff2-variations');
  font-weight: 300 600; font-display: swap;
}
@font-face {
  font-family: Inter; src: url('/fonts/inter-var.woff2') format('woff2-variations');
  font-weight: 300 700; font-display: swap;
}

:root {
  --night: #100e0c;
  --ink: #17140f;
  --ink-2: #1f1b15;
  --sand: #f1ebe0;
  --gold: #c2ab74;
  --gold-2: #ddc48b;
  --clay: #a8502f;
  --grey: #a1978a;          /* 6.1:1 on --night */
  --line: rgba(241, 235, 224, 0.13);

  --display: Cormorant, 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;

  --maxw: 1500px;
  --gut: clamp(20px, 4.4vw, 78px);
  --edge: max(var(--gut), calc((100vw - var(--maxw)) / 2 + var(--gut)));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --s-1: 8px;  --s-2: 14px; --s-3: 22px; --s-4: 34px;
  --s-5: clamp(44px, 6vw, 70px);
  --s-6: clamp(64px, 9vw, 118px);
  --s-7: clamp(88px, 13vw, 176px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: clamp(80px, 9vw, 104px); }
body {
  margin: 0; background: var(--night); color: var(--sand);
  font-family: var(--body); font-size: 17px; line-height: 1.65; font-weight: 300;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { padding-inline: var(--gut); max-width: var(--maxw); margin-inline: auto; width: 100%; }
.skip { position: fixed; top: -60px; left: 12px; z-index: 200; background: var(--gold); color: var(--night); padding: 10px 16px; }
.skip:focus { top: 8px; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 300; line-height: 1.04; letter-spacing: -0.01em; }
.d-l { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.d-m { font-size: clamp(2rem, 3.6vw, 3rem); }
.eyebrow, .label {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
}
.eyebrow { color: var(--gold); }
.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; }
.lede { font-size: clamp(1.02rem, 1.2vw, 1.16rem); color: #cdc5b8; max-width: 56ch; }
.muted { color: var(--grey); }
.stars { color: var(--gold); letter-spacing: 3px; }

.line { display: block; overflow: hidden; }
.line__in { display: block; }
.js .line__in { transform: translateY(105%); }
.js .reveal { opacity: 0; }
.js .dish { opacity: 0; }

/* ---------- chrome ---------- */
.conceptbar {
  position: relative; z-index: 60; display: flex; gap: 1.4em; justify-content: center;
  background: var(--gold); color: var(--night); padding: 8px var(--edge);
  font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em;
  white-space: nowrap; overflow: hidden;
}
.conceptbar a { text-decoration: underline; display: inline-block; padding-block: 5px; margin-block: -5px; }

.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: clamp(14px, 2vw, 34px);
  padding: 14px var(--edge); background: var(--night); border-bottom: 1px solid var(--line);
  transition: transform 0.45s var(--ease);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(16, 14, 12, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.nav.is-up { transform: translateY(-101%); }
.nav__logo img { width: clamp(112px, 11vw, 150px); }
.nav__links { display: flex; gap: clamp(14px, 2vw, 30px); margin-left: auto; font-size: 0.92rem; }
.nav__links a { position: relative; padding: 8px 0; color: #d6cec1; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--sand); }
.nav__links a:hover::after, .nav__links a.is-on::after { transform: scaleX(1); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; padding: 0; place-content: center; justify-items: center; }
.nav__burger span { display: block; width: 26px; height: 1px; background: var(--sand); transition: transform 0.4s var(--ease); }
.nav__burger span + span { margin-top: 8px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span + span { transform: translateY(-4.5px) rotate(-45deg); }
.nav__progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; background: var(--gold); color: var(--night); border: 0;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background-color 0.25s, transform 0.25s var(--ease); cursor: pointer;
}
.btn:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--sand); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--sand); color: var(--night); }
.btn--sm { padding: 11px 20px; font-size: 0.66rem; }

.drawer { position: fixed; inset: 0; z-index: 45; background: var(--night); padding: clamp(124px, 17vw, 142px) var(--gut) 44px; display: grid; align-content: space-between; }
.drawer[hidden] { display: none; }
.drawer__links { display: grid; gap: 6px; }
.drawer__links a { font-family: var(--display); font-size: clamp(2.4rem, 12vw, 4rem); line-height: 1.16; }
.drawer__foot { display: grid; gap: 12px; }
.drawer__phone { font-family: var(--display); font-size: 2rem; color: var(--gold); }

/* ---------- the cover ---------- */
/* A full frame you arrive at, rather than a column of copy beside a picture. */
.cover { position: relative; min-height: 100svh; display: grid; align-content: center; justify-items: center; overflow: hidden; }
.cover__shot { position: absolute; inset: 0; }
.cover__shot img { width: 100%; height: 100%; object-fit: cover; }
/* the board is a busy photograph, so the centre has to be carried well down
   before the wordmark will hold against it */
.cover__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 46%, rgba(16,14,12,0.74) 0%, rgba(16,14,12,0.86) 55%, rgba(16,14,12,0.96) 100%),
    linear-gradient(to bottom, rgba(16,14,12,0.7) 0%, rgba(16,14,12,0.35) 24%, rgba(16,14,12,0.45) 60%, var(--night) 100%);
}
.cover__shot img { filter: saturate(1.05) brightness(0.92); }
.cover__mid {
  position: relative; display: grid; justify-items: center; gap: var(--s-3);
  text-align: center; padding: var(--s-6) var(--gut) var(--s-7);
}
.cover__mark { width: clamp(230px, 34vw, 430px); }
.cover__line { font-size: clamp(1.35rem, 2.7vw, 2.3rem); line-height: 1.32; color: #e4dccd; max-width: 22ch; }
.cover__acts { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: var(--s-2); }
.cover__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: var(--s-3) var(--edge) var(--s-4);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey);
}
.cover__rate { display: inline-flex; align-items: center; gap: 9px; }
.cover__rate .stars { font-size: 0.8rem; font-style: normal; }
.cover__rate b { color: var(--sand); font-weight: 500; }
.cover__cue { position: relative; padding-bottom: 26px; }
.cover__cue::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 1px; height: 20px;
  background: linear-gradient(var(--gold), transparent); animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: scaleY(0.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- ornamental rule, used between movements ---------- */
.rule { display: flex; align-items: center; gap: var(--s-2); width: min(340px, 70%); margin: 0 auto; }
.rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.rule i { font-style: normal; color: var(--gold); font-size: 0.8rem; }

/* ---------- preamble ---------- */
.preamble {
  padding: var(--s-7) var(--gut); display: grid; justify-items: center; gap: var(--s-3);
  text-align: center; max-width: 820px; margin-inline: auto;
}
.preamble__text { font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.16; margin-top: var(--s-3); }
.preamble__body { color: #c3bbae; max-width: 60ch; }
.preamble__topics {
  list-style: none; margin: var(--s-3) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); justify-content: center;
}
.preamble__topics li { display: inline-flex; align-items: baseline; gap: 7px; font-family: var(--display); font-size: 1.3rem; }
.preamble__topics i { font-style: normal; font-family: var(--mono); font-size: 0.62rem; color: var(--gold); }

/* ---------- portrait, offset ---------- */
.portrait {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(24px, 4vw, 70px); padding: var(--s-6) var(--edge) var(--s-7);
}
.portrait__shot { margin: 0; justify-self: end; width: min(100%, 460px); }
.portrait__shot img { width: 100%; }
.portrait__quote { margin: 0; display: grid; gap: var(--s-3); max-width: 15ch; }
.portrait__quote p { font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 1.2; }

/* ---------- the menu card ---------- */
.menu { padding: 0 var(--gut) var(--s-7); }
.card {
  max-width: 1120px; margin-inline: auto; background: var(--ink);
  border: 1px solid var(--line); padding: clamp(28px, 4vw, 66px) clamp(20px, 3.4vw, 56px) clamp(30px, 4vw, 60px);
}
.card__top { text-align: center; display: grid; justify-items: center; gap: var(--s-2); margin-bottom: var(--s-5); }
.card__title { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.06; }
.card__sub { color: var(--grey); max-width: 48ch; }
.card__filters { display: flex; flex-wrap: wrap; gap: var(--s-1); justify-content: center; margin-top: var(--s-2); }
.card__count { color: var(--grey); }

/* two columns, like a printed card — nothing may break across the gutter */
.card__cols { columns: 2; column-gap: clamp(28px, 4vw, 62px); }
.course { break-inside: avoid; margin-bottom: var(--s-5); }
.course.is-empty { display: none; }
.course__head {
  display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
.course__head::before, .course__head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.course__head span { flex: 0 0 auto; }
.course__note { color: var(--grey); font-size: 0.86rem; margin: calc(var(--s-2) * -1) 0 var(--s-3); text-align: center; }
.plates { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.dish { break-inside: avoid; }
.dish.is-out { display: none; }
.dish__head { display: grid; grid-template-columns: auto minmax(16px, 1fr) auto; align-items: baseline; gap: 10px; }
.dish__name { font-family: var(--display); font-size: 1.24rem; font-weight: 500; }
.dish__dots { height: 1px; background: repeating-linear-gradient(90deg, rgba(241,235,224,.24) 0 2px, transparent 2px 6px); transform: translateY(-4px); }
.dish__price { font-family: var(--display); font-size: 1.15rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.dish__desc { color: #aba295; font-size: 0.88rem; line-height: 1.6; margin-top: 4px; }
.dish__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 7px; }
.mark {
  display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 6px;
  background: rgba(194,171,116,0.13); box-shadow: inset 0 0 0 1px rgba(194,171,116,0.38);
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; color: var(--gold-2);
}
.dish__alt { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.05em; color: var(--grey); }

.card__set { margin-top: var(--s-4); display: grid; gap: var(--s-3); justify-items: center; }
.card__setline { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); text-align: center; }
.card__setline b { color: var(--gold); font-weight: 500; }
.card__setline i { font-style: normal; color: var(--line); margin-inline: 8px; }
.card__notes {
  margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--line);
  display: grid; gap: 6px; text-align: center;
  font-family: var(--mono); font-size: 0.64rem; line-height: 1.7; color: var(--grey);
}

.band { overflow: hidden; }
.band img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; }

/* ---------- what people say ---------- */
.says { padding: var(--s-7) var(--edge); display: grid; justify-items: center; gap: var(--s-2); text-align: center; }
.says__score { font-size: clamp(3.4rem, 8vw, 6rem); line-height: 1; color: var(--gold); display: grid; justify-items: center; gap: 2px; }
.says__score i { font-style: normal; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey); }
.says__count { margin-bottom: var(--s-4); }
.says__list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 1000px; width: 100%;
}
.says__list p { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.35; }
.says__list p::before { content: '“'; color: var(--gold); }
.says__list p::after { content: '”'; color: var(--gold); }
.says__list cite { display: block; margin-top: var(--s-2); font-style: normal; }

/* ---------- visit: the card sits on the map ---------- */
.visit { position: relative; display: grid; }
.visit__map { grid-area: 1 / 1; min-height: clamp(460px, 62vh, 680px); background: var(--ink-2); }
.visit__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05) brightness(0.82); }
.visit__card {
  grid-area: 1 / 1; place-self: center; z-index: 2; width: min(460px, calc(100% - 2 * var(--gut)));
  display: grid; justify-items: center; gap: var(--s-2); text-align: center;
  background: rgba(16, 14, 12, 0.95); border: 1px solid var(--line); padding: var(--s-5) var(--s-4);
}
.visit__addr { color: var(--grey); }
.visit__facts { display: grid; gap: 0; margin: var(--s-2) 0 0; width: 100%; }
.visit__facts div { display: flex; justify-content: space-between; gap: var(--s-2); padding: 11px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.visit__facts dt { color: var(--grey); }
.visit__facts dd { margin: 0; }
.visit__facts a:hover { color: var(--gold); }
.visit__acts { display: flex; flex-wrap: wrap; gap: var(--s-1); justify-content: center; margin-top: var(--s-2); }

/* ---------- footer ---------- */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: var(--s-6) var(--edge) 76px; display: grid; gap: var(--s-5); }
.footer__top { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1fr; gap: var(--s-4) var(--s-3); max-width: var(--maxw); margin-inline: auto; width: 100%; }
.footer__logo { width: 150px; }
.footer__line { margin-top: var(--s-2); color: #b9b0a3; max-width: 34ch; }
.footer__list { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: 11px; font-size: 0.92rem; color: #c4bbae; }
.footer__list a { display: inline-block; padding-block: 4px; }
.footer__list a:hover { color: var(--gold); }
.footer__bottom {
  max-width: var(--maxw); margin-inline: auto; width: 100%;
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  padding-top: var(--s-3); border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.68rem; line-height: 1.6; color: var(--grey);
}
.footer__bottom a { color: var(--gold); }
.footer__bottom span:last-child { padding-right: 96px; }

/* ---------- concept watermark ---------- */
.wm {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0.07;
  background-repeat: repeat; background-size: 300px 175px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='175'%3E%3Ctext x='150' y='92' fill='%23bbb' font-family='Arial,Helvetica,sans-serif' font-size='17' font-weight='700' letter-spacing='2.5' text-anchor='middle' transform='rotate(-26 150 88)'%3ECONCEPT %C2%B7 VCTR%3C/text%3E%3C/svg%3E");
}
.wm-badge {
  position: fixed; right: 14px; bottom: 14px; z-index: 71; display: flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; background: rgba(16, 14, 12, 0.92); color: var(--sand);
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(194, 171, 116, 0.5);
}
.wm-badge b { color: var(--gold); }
.wm-badge span { display: none; }
.wm-badge:hover span, .wm-badge:focus-visible span { display: inline; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; }
  .portrait { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .portrait__shot { justify-self: center; }
  .portrait__quote { max-width: 22ch; justify-items: center; text-align: center; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .card__cols { columns: 1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .conceptbar__alt { display: none; }
  .cover__acts, .visit__acts { display: grid; grid-template-columns: 1fr; width: 100%; }
  .cover__acts .btn, .visit__acts .btn { width: 100%; }
  .cover__foot { flex-direction: column; gap: 10px; align-items: flex-start; }
  .cover__cue { display: none; }
  .dish__head { grid-template-columns: 1fr auto; }
  .dish__dots { display: none; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom span:last-child { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .line__in, .js .reveal, .js .dish { transform: none; opacity: 1; }
  .cover__cue::after { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
