/* =========================================================================
   Riva Restaurant & Club House
   Colour-blocked bands (ocean blue / Riva orange), black for the frame,
   the red arc from the logo as the one accent. Wide caps + Georgia.
   ========================================================================= */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #207EA9;
  --orange: #F79400;
  --red: #E30613;
  --ink: #0B0B0B;
  --white: #FFFFFF;

  --display: "Montserrat", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1320px;
  --header-h: 64px;
  --band-pad: clamp(72px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.6;
  overflow-x: clip;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; }

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 { margin: 0; font-weight: inherit; }

main:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--white);
}

::selection { background: var(--red); color: var(--white); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--red);
  color: var(--white);
  font: 700 .875rem/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Type roles ---------- */

.eyebrow {
  display: block;
  margin: 0 0 1rem;
  font: 700 .75rem/1.3 var(--display);
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* The giant colour-block words. Font size starts from a CSS estimate
   (container width ÷ letters) and main.js then fits the longest line exactly. */
.giant {
  display: block;
  container-type: inline-size;
  color: var(--giant, currentColor);
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: .045em;
}
.giant > span {
  display: block;
  font-size: min(var(--fit, calc(100cqi / (var(--chars) * .86))), var(--giant-cap, 12.5rem));
  margin-right: -.045em;
  white-space: nowrap;
}
.giant--end { text-align: right; }

@media (min-width: 900px) {
  .giant--join > span { display: inline; font-size: min(var(--fit, calc(100cqi / (var(--chars-joined) * .86))), var(--giant-cap, 12.5rem)); }
}

.prose p { max-width: 60ch; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font: 700 .8125rem/1.2 var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: .4em;
  border-bottom: 2px solid currentColor;
}
.link-arrow .icon--arrow { transition: transform .25s var(--ease); }
.link-arrow:hover .icon--arrow { transform: translateX(4px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: .85em 1.6em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 .78rem/1 var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--white); color: var(--red); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--red); }
.btn--ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--ink);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header__logo { margin-right: auto; display: block; }
.site-header__logo img { height: calc(var(--header-h) - 14px); width: auto; }

.site-header__book { min-height: 40px; padding: .7em 1.2em; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; }

/* Phone / tablet: full-screen menu. Without JS the links simply sit under the bar. */
@media (max-width: 1099.98px) {
  .no-js .nav-toggle { display: none; }
  .no-js .site-header { height: auto; position: static; }
  .no-js .site-header__inner { flex-wrap: wrap; padding-block: 10px; }
  .no-js .site-nav { order: 9; width: 100%; }
  .no-js .site-nav__list { display: flex; flex-wrap: wrap; gap: 4px 18px; font: 700 .75rem/2 var(--display); letter-spacing: .14em; text-transform: uppercase; }
  .no-js .site-nav__extra { display: none; }

  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 28px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--ink);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .js.nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .js .site-nav__list a {
    display: block;
    padding-block: .14em;
    font: 800 clamp(1.9rem, 9.5vw, 3.4rem)/1.08 var(--display);
    letter-spacing: .05em;
    text-transform: uppercase;
  }
  .js .site-nav__list a:hover,
  .js .site-nav__list a[aria-current="page"] { color: var(--orange); }
  .site-nav__book a { color: var(--red); }
  .site-nav__extra { display: grid; gap: 16px; justify-items: start; }
  .site-nav__where { margin: 0; font-style: italic; opacity: .8; }
  .nav-open body { overflow: hidden; }
}

@media (max-width: 420px) {
  .hide-sm { display: none; }
}

@media (min-width: 1100px) {
  .nav-toggle, .site-nav__extra, .site-nav__book { display: none; }
  .site-nav { margin-right: 8px; }
  .site-nav__list { display: flex; gap: clamp(18px, 2.2vw, 36px); }
  .site-nav__list a {
    display: block;
    padding-block: 8px;
    font: 700 .75rem/1 var(--display);
    letter-spacing: .2em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
  }
  .site-nav__list a:hover { color: var(--orange); }
  .site-nav__list a[aria-current="page"] { border-color: var(--orange); }
}

/* ---------- Bands ---------- */

.band {
  position: relative;
  padding: var(--band-pad) var(--gutter);
}
.band--blue { background: var(--blue); color: var(--white); --giant: var(--orange); }
.band--orange { background: var(--orange); color: var(--ink); --giant: var(--blue); }
.band--ink { background: var(--ink); color: var(--white); --giant: var(--orange); }

.band__inner { max-width: var(--max); margin-inline: auto; }
.band__heading { display: block; margin-bottom: clamp(32px, 5vw, 64px); }

/* Colour blocks hold a giant title and text, nothing else (client brief).
   --stack: title, then text in the right-hand column. --side: title beside text.
   --rev: text first, title on the right. */
.block { --band-pad: clamp(64px, 10vw, 152px); }
.block__title { display: block; margin-bottom: clamp(32px, 5vw, 64px); }
.block__inner { display: grid; gap: clamp(28px, 5vw, 64px); }
.block__inner > .block__title { margin-bottom: 0; }
.block__text {
  font-size: clamp(1.125rem, 1rem + .55vw, 1.4rem);
  line-height: 1.55;
}
.block__text p { max-width: 34em; }
.block__text a { text-decoration-thickness: 2px; }

@media (min-width: 900px) {
  .block--stack .block__text { width: 58%; margin-left: auto; }
  .block--side .block__inner { grid-template-columns: 1fr 1fr; align-items: center; column-gap: clamp(40px, 6vw, 112px); }
  .block--rev .block__title { order: 2; }
}

/* Gentle entrance for content blocks. main.js adds .can-reveal only once it is
   watching the page, so nothing stays hidden if the script never runs. */
.can-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.can-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-h));
  min-height: max(560px, calc(100svh - var(--header-h)));
  overflow: hidden;
  background: #0E4560;
  isolation: isolate;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 55%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(0 0 0 / .32) 0%, rgb(0 0 0 / 0) 28%, rgb(0 0 0 / 0) 52%, rgb(0 0 0 / .62) 100%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 28px;
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(28px, 6vh, 64px) var(--gutter) clamp(28px, 5vh, 56px);
}

/* Four stacked lines take ~0.8× their width in height, so cap the width by the
   height left over once the lede and buttons have their room. The arc hangs off
   the right half of the words, the way it wraps "Riva" in the logo. */
.hero__mark {
  position: relative;
  align-self: center;
  width: min(100%, calc((100svh - var(--header-h) - 300px) * 1.18));
}
.hero__title { position: relative; z-index: 2; }
.hero__title .giant { --giant: var(--white); --giant-cap: 100vh; text-shadow: 0 2px 40px rgb(0 0 0 / .25); }

.hero-arc {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 36%;
  height: 100%;
  width: auto;
  max-width: none;
  color: var(--red);
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-arc__brush { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: arc-draw 2s var(--ease) .45s forwards; }
@keyframes arc-draw { to { stroke-dashoffset: 0; } }

.hero__title .giant > span { animation: rise 1s var(--ease) both; }
.hero__title .giant > span:nth-child(2) { animation-delay: .08s; }
.hero__title .giant > span:nth-child(3) { animation-delay: .16s; }
.hero__title .giant > span:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(.25em); } to { opacity: 1; transform: none; } }

.hero__foot { position: relative; z-index: 2; display: grid; gap: 20px; }
.hero__lede {
  margin: 0;
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  line-height: 1.3;
  text-shadow: 0 1px 18px rgb(0 0 0 / .45);
}
.hero__lede span {
  display: block;
  margin-top: .6em;
  font: 700 .75rem/1.3 var(--display);
  font-style: normal;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 900px) {
  .hero-arc { left: 52%; height: 120%; }
  .hero__foot { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- Events ---------- */

.events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  margin: 0 0 clamp(32px, 4vw, 48px);
  padding: 0;
  list-style: none;
}
.event-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.5vw, 32px);
  background: var(--ink);
  color: var(--white);
}
.event-card__when { margin-bottom: 1.6rem; color: var(--orange); }
.event-card__day { font: 800 2.6rem/1 var(--display); }
.event-card__month { font: 700 .8rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.event-card__tbc {
  display: inline-block;
  padding: .5em .9em;
  border: 2px solid currentColor;
  border-radius: 999px;
  font: 700 .66rem/1 var(--display);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.event-card__title { margin-bottom: .6rem; font: 800 1.2rem/1.15 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.event-card__meta { margin-bottom: 1rem; font: 700 .68rem/1.4 var(--display); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.event-card__blurb { margin: 0; font-size: 1rem; }

/* ---------- Reservations ---------- */

.reserve__grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.reserve__intro { margin-bottom: 1.6rem; font-style: italic; font-size: 1.15rem; }

.panel {
  padding: clamp(24px, 4vw, 52px);
  background: var(--white);
  color: var(--ink);
}

@media (min-width: 1024px) {
  .reserve__grid { grid-template-columns: 7fr 5fr; align-items: start; }
}

/* Form */
.booking-form, .enquiry-form { display: grid; gap: 22px; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row--3 { grid-template-columns: 1.3fr 1fr 1fr; }
}
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend {
  padding: 0;
  font: 700 .68rem/1.3 var(--display);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.optional { font-weight: 500; letter-spacing: .08em; text-transform: none; opacity: .65; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 1.0625rem/1.4 var(--serif);
  appearance: none;
}
.field select {
  padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230B0B0B' stroke-width='2' d='M5 9l7 7 7-7'/%3E%3C/svg%3E") right 2px center / 18px no-repeat;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  box-shadow: none;
  border-bottom-color: var(--blue);
  background: rgb(32 126 169 / .07);
}
.field input:user-invalid, .field select:user-invalid { border-bottom-color: var(--red); }

.chips__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .6em 1.05em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font: 600 .72rem/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.chips input:checked + label { background: var(--ink); color: var(--white); }
.chips input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-note { margin: 0; font-size: .92rem; opacity: .75; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Find us */
.find-us { display: grid; gap: 28px; }
.map-card { margin: 0; }
.map-card__art { position: relative; aspect-ratio: 1261 / 942; background: var(--blue); }
.map-card__art iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-top: .8rem;
}
.map-card__load {
  padding: .5em 0;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.island-map { width: 100%; height: 100%; }
.island-map__sea { fill: var(--blue); }
.island-map__land { fill: var(--orange); }
.island-map__islet { fill: var(--orange); }
.island-map__town { fill: var(--ink); }
.island-map__labels text { font: 700 34px var(--display); letter-spacing: .12em; text-transform: uppercase; fill: var(--ink); }
.island-map__labels .island-map__sea-label { fill: var(--white); text-anchor: end; }
.island-map__pin circle { fill: var(--red); stroke: var(--white); stroke-width: 6; }
.island-map__pin .island-map__pulse { fill: none; stroke: var(--red); stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
.island-map__pin text { font: 800 48px var(--display); letter-spacing: .1em; text-transform: uppercase; fill: var(--ink); }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }

.find-us__details address { font-style: normal; margin-bottom: .6rem; }
.find-us__details .eyebrow { margin-top: 2rem; color: var(--orange); }
.find-us__details .eyebrow:first-child { margin-top: 0; }
.find-us__plus { font-size: .92rem; opacity: .75; }
.find-us__links { display: flex; flex-wrap: wrap; gap: 10px; }
.find-us__links .btn { min-height: 44px; padding: .7em 1.1em; }
.map-credit { margin-top: 2rem; font-size: .78rem; opacity: .55; }

.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; margin: 0; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(56px, 8vw, 104px) var(--gutter) calc(clamp(32px, 4vw, 48px) + env(safe-area-inset-bottom));
  border-top: 6px solid var(--red);
  background: var(--ink);
  color: var(--white);
  font-size: 1rem;
}
.site-footer__inner { max-width: var(--max); margin-inline: auto; }
.site-footer__logo { display: inline-block; margin-bottom: clamp(36px, 5vw, 56px); }
.site-footer__logo img { width: clamp(150px, 18vw, 210px); }
.site-footer__cols { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer .eyebrow { color: var(--orange); }
.site-footer address { font-style: normal; margin-bottom: .6rem; }
.site-footer__coords { font: 700 .75rem/1 var(--display); letter-spacing: .2em; opacity: .7; }
.site-footer__contact, .site-footer__nav { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; }
.site-footer__contact a:hover, .site-footer__nav a:hover { color: var(--orange); }
.site-footer__nav a { text-decoration: none; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / .18);
  font: 600 .68rem/1.5 var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .7;
}

/* ---------- Phone action bar ---------- */

.action-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink);
  border-top: 1px solid rgb(255 255 255 / .14);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.action-bar.is-visible { transform: none; }
.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 58px;
  font: 700 .7rem/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.action-bar a + a {
  flex-direction: column;
  gap: 5px;
  font-size: .62rem;
  letter-spacing: .12em;
  border-left: 1px solid rgb(255 255 255 / .14);
}
.action-bar .icon { width: 1.5em; height: 1.5em; }
.action-bar__book { background: var(--red); }
.no-js .action-bar { display: none; }
@media (max-width: 1023.98px) {
  .js .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1024px) {
  .action-bar { display: none; }
}

/* ---------- Inner pages ---------- */

.page-head { padding-top: clamp(48px, 8vw, 120px); padding-bottom: clamp(48px, 7vw, 104px); }
.page-head .band__heading { margin-bottom: clamp(24px, 3vw, 40px); }
.page-head__lede { max-width: 40ch; font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); line-height: 1.4; }

/* Menu */
.menu-sections { display: grid; gap: 14px; }
.menu-card { padding: clamp(28px, 4vw, 56px); }
/* Section titles are real headings, so they stay ink/white for contrast; red only on white. */
.menu-card:nth-child(3n+1) { background: var(--orange); color: var(--ink); --title: var(--ink); }
.menu-card:nth-child(3n+2) { background: var(--blue); color: var(--white); --title: var(--white); }
.menu-card:nth-child(3n+3) { background: var(--white); color: var(--ink); --title: var(--red); }
.menu-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: clamp(20px, 3vw, 36px); padding-bottom: 18px; border-bottom: 2px solid currentColor; }
.menu-card__title { font: 800 clamp(1.5rem, 1.1rem + 2vw, 2.6rem)/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--title); }
.menu-card__note { margin: 0; font-style: italic; }
.menu-items { display: grid; gap: 18px 56px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .menu-items { grid-template-columns: 1fr 1fr; } }
.menu-item__name { margin: 0; display: flex; justify-content: space-between; gap: 16px; font: 700 1rem/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.menu-item__desc { margin: .2rem 0 0; font-style: italic; }
.menu-item__tag { font: 700 .66rem/1 var(--display); letter-spacing: .12em; padding: .35em .5em; border: 1.5px solid currentColor; border-radius: 4px; }
.menu-foot { margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 28px; }
@media (min-width: 900px) { .menu-foot { grid-template-columns: 1fr 1fr; } }
/* Photo gallery: first photo large, the rest in a grid. Two columns on phones. */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.photo-grid__item:first-child { grid-column: 1 / -1; }
.photo-grid a { display: block; height: 100%; overflow: hidden; background: rgb(255 255 255 / .06); }
.photo-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.photo-grid a:hover img { transform: scale(1.03); }
.photo-grid__more { display: flex; width: fit-content; margin: clamp(24px, 4vw, 40px) auto 0; }
@media (min-width: 900px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  /* The big photo fills its 2×2 slot; the small 4:3 tiles set the row height. */
  .photo-grid__item:first-child { grid-column: span 2; grid-row: span 2; position: relative; }
  .photo-grid__item:first-child a { position: absolute; inset: 0; }
  .photo-grid__item:first-child img { aspect-ratio: auto; }
}

.lightbox {
  width: 100vw; max-width: 100vw;
  height: 100dvh; max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(11 11 11 / .96);
  color: var(--white);
}
.lightbox::backdrop { background: rgb(11 11 11 / .8); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px var(--gutter); }
.lightbox__count { font: 700 .72rem/1 var(--display); letter-spacing: .2em; }
.lightbox__stage { position: relative; min-height: 0; }
.lightbox__stage img {
  position: absolute;
  inset: 0 clamp(56px, 6vw, 96px);
  width: calc(100% - 2 * clamp(56px, 6vw, 96px));
  height: 100%;
  max-width: none;
  object-fit: scale-down;
}
@media (max-width: 600px) {
  .lightbox__stage img { inset: 0; width: 100%; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: -58px; transform: none; }
}
.lightbox__caption { padding: 14px var(--gutter) calc(20px + env(safe-area-inset-bottom)); text-align: center; }
.lightbox button {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .1);
  color: var(--white);
  cursor: pointer;
}
.lightbox button:hover { background: var(--red); }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }

/* Private events */
.offer-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .offer-list { grid-template-columns: repeat(3, 1fr); } }
.offer { padding: clamp(24px, 3vw, 40px); background: var(--ink); color: var(--white); }
.offer h2 { margin-bottom: .9rem; font: 800 1.25rem/1.15 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--orange); }
.offer p { font-size: 1rem; }

.enquiry { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 1024px) { .enquiry { grid-template-columns: 5fr 7fr; align-items: start; } }

/* Thank-you + 404 */
.message-page { min-height: calc(100svh - var(--header-h)); display: grid; align-content: center; }
.message-page .prose { margin-bottom: 2rem; }
.message-page .hero__actions { margin-top: 1rem; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-arc__brush { animation: none; stroke-dashoffset: 0; }
  .can-reveal .reveal { opacity: 1; transform: none; }
  .island-map__pulse { display: none; }
}

@media print {
  .can-reveal .reveal { opacity: 1; transform: none; }
  .site-header, .action-bar, .hero-arc, .map-card__load, .booking-form, .enquiry-form { display: none; }
  .band, .site-footer { padding: 24px 0; background: none !important; color: #000 !important; }
  .giant { color: #000 !important; }
}
