/* ══════════════════════════════════════════════════════════════════════════
   De Nada Tapas Bar — shared stylesheet
   One file for every page. Previously each page carried its own inline
   <style> and they had already drifted apart; the nav alone existed in five
   slightly different versions.

   Register: dark-led and warm. The ground is a warm near-black, the brand
   oxblood is the band colour, and one terracotta accent comes off their own
   cazuelas. The old gold (#B8863E) is gone: it sat on a cold grey-green cream
   and read as generic black-and-gold restaurant.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --ink:          #171110;   /* warm near-black, the page ground */
  --ink-2:        #211815;   /* raised surface on ink */
  --ink-3:        #2C201C;   /* card on ink */
  --oxblood:      #5C1F1F;   /* brand red, kept from the sign */
  --oxblood-dp:   #3B1313;
  --lime:         #F3EDE3;   /* warm limewash, the one light section */
  --lime-2:       #E8DFD1;
  --chalk:        #FCFAF6;
  --print:        #F7F1E5;   /* photographic print stock, warmer than chalk */
  /* One terracotta at two lightnesses. A single mid-tone failed WCAG AA both
     ways: too dark for small text on ink, too light behind chalk button text.
     --ember is the accent on dark grounds, --ember-deep is the accent on the
     limewash section and the fill behind light text. */
  /* One hue for the whole accent family. These were originally drawn from the
     terracotta cazuelas in De Nada's photography, which put them at hue ~17
     with the saturation held down for contrast, and at kicker size that reads
     as brown rather than as the restaurant's red. Pulled to hue ~9 and up in
     saturation, so the accents sit in the same family as the oxblood sign
     rather than looking like a separate tan. */
  --ember:        #E2553C;   /* accent text on dark, 5.0:1 on --ink */
  --ember-deep:   #AD2E18;   /* accent text on light, 5.7:1 on --lime */
  /* The fill is its own colour, not the text accent reused. --ember-deep is
     held down in lightness so it can carry small text on the limewash, and at
     60% saturation a swatch that size reads brown rather than red: the primary
     button ended up duller than the kicker text above it. The fill is pushed
     to 75% saturation and nearer true red, which still clears AA behind chalk
     text at 5.9:1. Only ever used as a background, never as text. */
  --ember-fill:   #B3341A;   /* filled buttons, 5.9:1 behind --chalk */
  --ember-press:  #8F2814;   /* filled-button hover */
  --olive:        #8FA05C;   /* padron green, open-now dot only */

  --on-ink:       #F4EEE4;
  --on-ink-soft:  rgba(244, 238, 228, 0.64);
  --on-lime:      #171110;
  --on-lime-soft: #5B5047;
  --rule-ink:     rgba(244, 238, 228, 0.14);
  --rule-lime:    rgba(23, 17, 16, 0.13);

  --display: 'Spectral', Georgia, 'Times New Roman', serif;
  --ui: 'Instrument Sans', system-ui, -apple-system, sans-serif;

  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
  --nav-h: 78px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--ui);
  background: var(--ink);
  color: var(--on-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto is load-bearing. Every <img> carries width/height attributes so
   the browser can reserve space, and those attributes map to a presentational
   `height` of the intrinsic pixel size. `aspect-ratio` only takes effect when
   height is auto, so without this line a 1800x2697 photo renders 2697px tall
   and every aspect-ratio in the stylesheet is silently ignored. */
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ember-fill); color: var(--chalk); }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  z-index: 1200;
  background: var(--ember-fill); color: var(--chalk);
  padding: 12px 20px; font-size: 13px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ── shared type scale ──────────────────────────────────────────────────── */

.h-xl { font-family: var(--display); font-weight: 400; line-height: 1.06; font-size: clamp(38px, 6.4vw, 78px); letter-spacing: -0.015em; }
.h-lg { font-family: var(--display); font-weight: 400; line-height: 1.12; font-size: clamp(30px, 4vw, 50px); letter-spacing: -0.01em; }
.h-md { font-family: var(--display); font-weight: 400; line-height: 1.2;  font-size: clamp(23px, 2.6vw, 31px); }
.h-xl em, .h-lg em, .h-md em { font-style: italic; }

/* Spectral is a static family with no optical-size axis, unlike the Didones
   used elsewhere in the bank. Pinning optical sizing off states that, and
   stops a large heading being reported as thinned-out display cut. */
.h-xl, .h-lg, .h-md, .break-line, .deal-hero-price, .menu-cat > h2, .wine-name, .dish-name {
  font-optical-sizing: none;
}

.kicker {
  display: block;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
}

.lede { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75; color: var(--on-ink-soft); }

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-fill { background: var(--ember-fill); color: var(--chalk); }
.btn-fill:hover { background: var(--ember-press); }
.btn-line { border-color: rgba(244, 238, 228, 0.38); color: var(--on-ink); }
.btn-line:hover { border-color: var(--on-ink); background: rgba(244, 238, 228, 0.07); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--oxblood); }

/* ── reveals ────────────────────────────────────────────────────────────────
   Hidden state is gated on .js so the page is readable with scripting off,
   and on .motion-ok so a visitor who asks for reduced motion gets everything
   already in place. `?motion` on any URL forces them on for review: Max's own
   Windows has reduced motion switched on system-wide, which otherwise makes
   the page look like nothing animates at all. */

.rv { opacity: 1; transform: none; }
html.js.motion-ok .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
html.js.motion-ok .rv.in { opacity: 1; transform: none; }
html.js.motion-ok .rv.d1 { transition-delay: 0.07s; }
html.js.motion-ok .rv.d2 { transition-delay: 0.14s; }
html.js.motion-ok .rv.d3 { transition-delay: 0.21s; }

/* ══ NAV ═══════════════════════════════════════════════════════════════════
   One bar, on every page. Transparent over a photographic hero, solid once
   the page scrolls or when the page has no hero to sit over (.nav--solid). */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad);
  background: transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav--solid {
  background: rgba(23, 17, 16, 0.93);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--rule-ink);
}

.nav-logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav-logo img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  list-style: none;
}
.nav-links a {
  position: relative;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-ink);
  opacity: 0.78;
  padding: 6px 0;
  transition: opacity 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* Reserve lives in the bar as a button on desktop. The list copy exists only
   for the mobile panel, where the button is hidden. */
.nav-links .m-reserve { display: none; }

.nav-reserve {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink);
  border: 1px solid rgba(244, 238, 228, 0.4);
  padding: 11px 20px;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.nav-reserve:hover { background: var(--ember-fill); border-color: var(--ember-fill); color: var(--chalk); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none; border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 22px; height: 1.5px;
  background: var(--on-ink);
  transition: background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute; left: 0;
  width: 22px; height: 1.5px;
  background: var(--on-ink);
  transition: transform 0.3s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ══ SECTION SHELL ═════════════════════════════════════════════════════════ */

.sec { padding: clamp(64px, 8vw, 118px) var(--pad); }
.sec-inner { max-width: var(--maxw); margin: 0 auto; }
.sec--lime { background: var(--lime); color: var(--on-lime); }
.sec--lime .lede { color: var(--on-lime-soft); }
.sec--lime .kicker { color: var(--ember-deep); }
.sec--ox { background: var(--oxblood); }

/* ══ PAGE HEADER (inner pages) ═════════════════════════════════════════════
   Typographic, not photographic. This band is full-bleed, so on a 2x display
   it wants around 2800px of source; the best photograph De Nada have is
   2002px, and every candidate came out upscaled between 1.4x and 2.3x. A
   soft, dimmed picture reads as a stalled video, which is exactly how it kept
   being described. The photography now only appears in slots it can fill:
   the hero video, the about photo at half measure, and the plates beside the
   carte and the offers. */

.page-head {
  position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 6.5vw, 82px)) var(--pad) clamp(42px, 5.5vw, 70px);
  background:
    radial-gradient(ellipse 120% 140% at 50% -10%, rgba(140, 48, 44, 0.42) 0%, rgba(59, 19, 19, 0) 62%),
    linear-gradient(180deg, var(--oxblood-dp) 0%, #241211 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  overflow: hidden;
  text-align: center;
}
.page-head > .sec-inner { position: relative; z-index: 2; }
.page-head .kicker { margin-bottom: 14px; color: #E0A985; }
.page-head h1 { max-width: 20ch; margin: 0 auto; }
.page-head .lede { max-width: 52ch; margin: 20px auto 0; color: rgba(244, 238, 228, 0.72); }

/* ══ FOOTER ════════════════════════════════════════════════════════════════ */

.footer {
  background: #0F0B0A;
  border-top: 1px solid var(--rule-ink);
  padding: clamp(48px, 6vw, 76px) var(--pad) 0;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 58px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: var(--on-ink-soft); max-width: 28ch; }
.footer h4 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer a, .footer .f-body { font-size: 14.5px; color: var(--on-ink-soft); line-height: 1.75; transition: color 0.2s; }
.footer a:hover { color: var(--on-ink); }
/* Agency credit. Small on purpose: the client's footer is not a billboard
   for the builder. The mark is the inverse lockup, the only one drawn for a
   dark ground; the standard landscape file has a near-white panel baked in
   and its dark purple would disappear here. */
.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(244, 238, 228, 0.38);
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.footer-credit img {
  height: 15px;
  width: auto;
  opacity: 0.55;
  transition: opacity 0.2s var(--ease);
}
.footer-credit a:hover { color: var(--on-ink-soft); }
.footer-credit a:hover img { opacity: 1; }

.footer-bottom {
  max-width: var(--maxw);
  margin: clamp(40px, 5vw, 60px) auto 0;
  border-top: 1px solid var(--rule-ink);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(244, 238, 228, 0.42);
}
.footer-bottom a { font-size: 12.5px; }

/* ══ BOOKING MODAL ═════════════════════════════════════════════════════════ */

.modal {
  display: none;
  position: fixed; inset: 0;
  z-index: 1100;
  background: rgba(15, 11, 10, 0.84);
  backdrop-filter: blur(4px);
  padding: 24px;
  overflow-y: auto;
}
.modal.open { display: flex; align-items: flex-start; justify-content: center; }
.modal-card {
  background: var(--chalk);
  color: var(--on-lime);
  max-width: 660px;
  width: 100%;
  margin: auto;
  padding: clamp(28px, 4vw, 46px);
  position: relative;
}
.modal-card .kicker { margin-bottom: 12px; color: var(--ember-deep); }
.modal-card h2 { margin-bottom: 18px; }
.modal-card p { font-size: 14.5px; line-height: 1.8; color: var(--on-lime-soft); margin-bottom: 14px; }
.modal-close {
  position: absolute; top: 8px; right: 8px;
  width: 42px; height: 42px;
  background: none; border: none;
  font-size: 26px; line-height: 1;
  color: var(--on-lime); cursor: pointer;
}
.modal-policy {
  border-top: 1px solid var(--rule-lime);
  border-bottom: 1px solid var(--rule-lime);
  padding: 20px 0;
  margin: 20px 0 26px;
}
.modal-policy p:last-child { margin-bottom: 0; }
.modal-fallback { font-size: 13px; color: var(--on-lime-soft); margin-top: 18px; }
.modal-fallback a { color: var(--ember-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ══ RESPONSIVE ════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  :root { --nav-h: 66px; }

  .nav-logo img { height: 38px; }
  .nav-toggle { display: flex; }
  .nav-reserve { display: none; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(23, 17, 16, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule-ink);
    padding: 8px var(--pad) 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a {
    display: block;
    font-size: 15px; letter-spacing: 0.1em;
    padding: 15px 0;
    border-bottom: 1px solid var(--rule-ink);
    opacity: 1;
  }
  .nav-links a::after { display: none; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .m-reserve { display: block; }
  .nav-links .m-reserve a { color: var(--ember); font-weight: 600; }

  /* Text links are the only controls in the footer and they were 18px tall,
     under the 24px WCAG target minimum and fiddly with a thumb. Padding the
     anchor rather than spacing the list item keeps the visual rhythm but makes
     the whole row tappable. */
  .footer li { margin-bottom: 2px; }
  .footer li a { display: inline-block; padding: 7px 0; }
  /* The bottom bar's two links were missed by the rule above: they are not in
     the list, so they kept their bare 15-22px height. */
  .footer-bottom a { display: inline-block; padding: 6px 0; }
  .footer-bottom { gap: 4px 16px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
