/* Shared tokens, type styles, base, buttons and layout helpers.

   Every component imports this file, so it is injected into each
   component's shadow root (Webflow renders code components in Shadow DOM:
   page styles don't reach in, and these don't leak out). Tokens are set on
   :host (the component element) as well as :root so they resolve inside a
   shadow root and in the light-DOM preview alike. Document-level rules
   (html, body, scrollbars, Lenis) live in webflow/site-head.html. */

:host,
:host {
  --manhattan-base: #f0e7d5;
  --manhattan-200: #dfd6c3;
  --hudsons-blue-base: #00677f;
  --hudsons-blue-600: #005468;
  --hot-sauce-base: #fe5000;
  --char-grilled-base: #181819;
  --lady-liberty-base: #9adbe8;
  --slightly-toasted-base: #4b3626;
  --slightly-toasted-700: #302319;
  --location-idle: #886a54;
  --dot-idle: #ccb78f;

  --background-primary: var(--manhattan-base);
  --background-secondary: var(--hudsons-blue-base);
  --background-dark: var(--char-grilled-base);
  --surface-card: var(--manhattan-base);

  --text-primary: var(--char-grilled-base);
  --text-secondary: var(--slightly-toasted-base);
  --text-accent: var(--hot-sauce-base);
  --text-brand: var(--hudsons-blue-base);
  --text-on-dark: var(--manhattan-base);

  --brand-primary: var(--hudsons-blue-base);
  --brand-accent: var(--hot-sauce-base);
  --brand-light: var(--lady-liberty-base);

  --font-display: "gamay", "Arial Black", sans-serif;
  --font-body: "gamay", system-ui, sans-serif;
  --font-script: "adobe-handwriting-ernie", "Adobe Handwriting", cursive;

  /* Fluid scale: t is 0 at 430px wide, 1 at 1512px */
  --t: (100vw - 430px) / 1082;

  --fs-heading:    clamp(48px,   calc(48px   + 2    * var(--t)), 50px);
  --fs-accent:     clamp(50px,   calc(50px   + 10   * var(--t)), 60px);
  --fs-stat:       clamp(42px,   calc(42px   + 7.14 * var(--t)), 49.14px);
  --fs-stat-sm:    clamp(30px,   calc(30px   + 6.14 * var(--t)), 36.14px);
  --fs-stat-label: clamp(14px,   calc(14px   + 2    * var(--t)), 16px);
  --fs-body:       clamp(16px,   calc(17.6px - 1.6  * var(--t)), 17.6px);
  --fs-kicker:     clamp(15.4px, calc(15.4px + 0.6  * var(--t)), 16px);
  --fs-button:     clamp(14px,   calc(15.4px - 1.4  * var(--t)), 15.4px);
  --fs-caption:    12px;
  --fs-body-sm:    16px;

  --size-label-small: 13px;

  --container: 1512px;
  --content: 1352px;
  --gutter: clamp(16px, calc(16px + 56 * var(--t)), 80px);
  /* 10% tighter than the design (client request, 2026-11-30) */
  --section-pad: clamp(72px, calc(72px + 54 * var(--t)), 126px);
  --section-pad-lg: clamp(90px, calc(72px + 72 * var(--t)), 180px);

  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-power3: cubic-bezier(0.165, 0.84, 0.44, 1);   /* GSAP power3.out */
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);       /* power4.inOut */
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);            /* expo.in */
}

/* the component element itself: a custom element is inline by default */
:host {
  display: block;
  color: var(--text-secondary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.t-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-heading);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.t-accent {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  font-size: var(--fs-accent);
  line-height: 1;
}

.t-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.22;
}

.t-kicker {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-kicker);
  line-height: 1.22;
  text-transform: uppercase;
}

.t-nav {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-kicker);
  line-height: 1;
  text-transform: uppercase;
}

.t-button {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-button);
  line-height: 1.22;
  text-transform: uppercase;
}

.t-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--size-label-small);
  line-height: 1;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.t-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--text-brand);
  margin-bottom: 16px;
}
@media (max-width: 900px) {
  .t-eyebrow { margin-bottom: 17.6px; }
}

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

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, figure { margin: 0; }

/* read by assistive technology, drawn nowhere */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* a rich-text prop arrives as a wrapper with the paragraphs inside */
.rich-text > * + * { margin-top: 1em; }
.rich-text a { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }

/* The page layer. On desktop the footer is fixed at z-index 0 under the
   page (Footer.css) and the page slides up off it, so every section sits
   on this layer above it, as .page did on the Astro site. The Site Header
   stays off it: the bar, the mobile menu and the transition panel keep
   their own z-indexes in the page's stacking context, as does the Hero's
   preloader, which is why the Hero puts the class on its section, not on
   its root. */
.page-layer { position: relative; z-index: 1; }

/* the brown logo artwork, inline and coloured by `color` */
.logo {
  display: block;
  width: clamp(156px, calc(156px + 35 * var(--t)), 191px);
  aspect-ratio: 191 / 46;
  overflow: hidden;
  color: var(--manhattan-base);
}
.logo svg { display: block; width: 100%; height: 100%; }

/* Buttons: two stacked faces, each a panel of colour with the label in
   it; on hover the top one sinks while the second, in the hover colour,
   rises over it. --face-bg is the resting colour, --swap-bg / --swap-fg
   the hover one. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  min-width: 150px;
  white-space: nowrap;
  transition: border-color 200ms ease;
}

.btn__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border: var(--face-border, 0 solid transparent);
  background: var(--face-bg, transparent);
  transition: transform 650ms var(--ease-expo);
}
.btn__txt { display: block; }
.btn__arrow {
  display: inline-block;
  width: 0.563em;
  height: 0.563em;
  margin-left: 0.284em;
  vertical-align: baseline;
  translate: 0 0.012em;
  fill: currentColor;
}
.btn__label--swap {
  position: absolute;
  inset: 0;
  background: var(--swap-bg, var(--background-dark));
  /* the hover face is one colour, border included: never a brown fill
     inside a white or blue outline */
  border-color: var(--swap-bg, var(--background-dark));
  color: var(--swap-fg, var(--text-on-dark));
  transform: translateY(100%);
  transition: transform 700ms var(--ease-expo);
}
.btn:hover .btn__label,
.btn:focus-visible .btn__label { transform: translateY(50%); }
.btn:hover .btn__label--swap,
.btn:focus-visible .btn__label--swap { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .btn__label, .btn__label--swap { transition: none; }
}

/* blue; fills orange on hover */
.btn--solid {
  --face-bg: var(--brand-primary);
  --swap-bg: var(--brand-accent);
  color: var(--text-on-dark);
}
.btn--outline {
  --face-border: 1.5px solid var(--background-dark);
  --swap-bg: var(--background-dark);
  color: var(--text-primary);
}
/* blue border on a light ground; fills brown on hover */
.btn--outline-blue {
  --face-border: 1.5px solid var(--brand-primary);
  --swap-bg: var(--slightly-toasted-base);
  --swap-fg: var(--text-on-dark);
  color: var(--text-brand);
}
/* white border on a dark ground; fills brown on hover */
.btn--outline-light {
  --face-border: 1.5px solid var(--manhattan-base);
  --swap-bg: var(--slightly-toasted-base);
  --swap-fg: var(--text-on-dark);
  color: var(--text-on-dark);
}
.btn--accent {
  --face-bg: var(--brand-accent);
  --swap-bg: var(--char-grilled-base);
  color: var(--text-on-dark);
}
.btn--brown {
  --face-bg: var(--slightly-toasted-base);
  --swap-bg: var(--slightly-toasted-700);
  color: var(--text-on-dark);
}
.btn--cream {
  --face-bg: var(--manhattan-base);
  --swap-bg: var(--brand-primary);
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .btn__label { padding: 15.4px 22px; }
}

/* Links only dim on hover; buttons keep their own moves */
a:not(.btn) { transition: opacity 250ms ease; }
a:not(.btn):hover,
a:not(.btn):focus-visible { opacity: 0.7; }

/* One column of the Book a Table pop-up (shared by the Booking Region card
   and the pop-up's built-in list): a small blue label over the stores. */
.bregion {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 auto;
  width: 231px;
  max-width: 100%;
}
.bregion__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-caption);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-brand);
}
.bregion__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* One store row of the Book a Table pop-up (shared by the Booking Store card
   and the pop-up's built-in list). Name in brown; orange with an arrow on
   hover or keyboard focus. */
.bstore { list-style: none; }
.bstore__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  transition: color 200ms ease;
}
.bstore__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-bstore, clamp(22px, calc(22px + 4 * var(--t)), 26px));
  line-height: 1.2;
  text-transform: uppercase;
}
.bstore__arrow {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 200ms ease, transform 300ms var(--ease-power3);
}
/* full orange: base.css fades every plain link to 70% on hover, which
   would wash the orange out (a.… matches its specificity; this file loads
   after base.css, so it wins) */
a.bstore__link { transition: color 200ms ease; }
a.bstore__link:hover,
a.bstore__link:focus-visible { color: var(--text-accent); opacity: 1; }
.bstore__link:hover .bstore__arrow,
.bstore__link:focus-visible .bstore__arrow { opacity: 1; transform: none; }
.bstore__link:focus-visible { outline: 2px solid var(--text-accent); outline-offset: 4px; }

/* The Book a Table pop-up. On the site it is a <dialog> opened as a modal,
   so it sits above everything (the top layer) whatever the page around it
   does; the page behind dims. In the Designer it sits open in the page. */

.book {
  /* the dialog fills the screen, transparent, and centres the panel; a
     click on it outside the panel closes it */
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--gutter);
  border: 0;
  background: transparent;
  overflow: auto;
  overscroll-behavior: contain;
}
.book[open] { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.book::backdrop { background: rgb(0 0 0 / 0.55); }

.book__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: fit-content;
  max-width: 100%;
  padding: 56px;
  background: var(--surface-card);
  color: var(--text-secondary);
}

.book__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.book__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, calc(32px + 28 * var(--t)), 60px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-brand);
}
.book__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -4px -4px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 200ms ease;
}
.book__close svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.book__close:hover, .book__close:focus-visible { color: var(--text-accent); }
.book__close:focus-visible { outline: 2px solid var(--text-accent); outline-offset: 2px; }

.book__regions { display: flex; flex-wrap: wrap; gap: 28px; }
/* the columns are Booking Region components in the slot: Webflow wraps them
   in one div, which steps aside so each column is an item of the row */
.book__regions ::slotted(div[slot]) { display: contents; }

/* opening: the page dims and the panel rises in */
@media (prefers-reduced-motion: no-preference) {
  .book[open] .book__panel { animation: book-in 500ms var(--ease-expo); }
  .book[open]::backdrop { animation: book-dim 300ms ease; }
}
@keyframes book-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes book-dim { from { background: rgb(0 0 0 / 0); } }

@media (max-width: 560px) {
  .book { padding: 12px; }
  .book__panel { gap: 28px; padding: 44px 20px 32px; }
  /* the close button moves into the corner so the title has the width */
  .book__close { position: absolute; top: 14px; right: 14px; margin: 0; }
  .book__regions { flex-direction: column; gap: 24px; }
}

/* in the Designer */
.book--editing { display: grid; justify-items: center; gap: 12px; padding: 40px 16px; background: rgb(0 0 0 / 0.55); }
.book__note { font-size: 13px; color: var(--text-on-dark); }
.slot-hint { font-size: 13px; opacity: 0.6; max-width: 40ch; }

/* ---------- the fixed bar ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  color: var(--text-on-dark);
  transition: transform 800ms var(--ease-expo), background-color 1200ms ease;
}
/* hidden until the hero intro stages it (--hud-stage from the head snippet) */
.nav__inner { visibility: var(--hud-stage, visible); }
.nav .nav__links { color: var(--text-on-dark); }
.nav .nav__toggle span { background: var(--manhattan-base); }
/* over the hero photo the outline button is white with a white border;
   fills brown on hover */
.nav:not(.is-dark) .btn--outline {
  --face-bg: var(--manhattan-base);
  --face-border: 1.5px solid var(--manhattan-base);
  --swap-bg: var(--slightly-toasted-base);
  --swap-fg: var(--text-on-dark);
  color: var(--text-brand);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav.is-dark { background: var(--brand-primary); }
.nav.is-dark .nav__links { color: var(--text-on-dark); }
/* on the blue bar the first button is white; fills orange on hover */
.nav.is-dark .btn--solid {
  --face-bg: var(--manhattan-base);
  --swap-bg: var(--brand-accent);
  --swap-fg: var(--text-on-dark);
  color: var(--text-primary);
}
/* on the blue bar the outline button has a white border; fills brown on hover */
.nav.is-dark .btn--outline {
  --face-border: 1.5px solid var(--manhattan-base);
  --swap-bg: var(--slightly-toasted-base);
  --swap-fg: var(--text-on-dark);
  color: var(--text-on-dark);
}
.nav.is-dark .nav__toggle span { background: var(--manhattan-base); }

@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}

.nav__links {
  display: flex;
  gap: 28px;
  flex: 1 1 0;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 300ms ease;
}
.nav__links a { position: relative; }

.nav__logo { flex: 0 0 auto; }

.nav__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex: 1 1 0;
}

.nav__toggle {
  display: none;
  width: 24px;
  height: 24px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity 200ms ease;
}
.nav__toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text-primary);
}
.nav__toggle[aria-expanded="true"] { opacity: 0; }

@media (max-width: 900px) {
  .nav__links,
  .nav__actions { display: none; }
  .nav__toggle { display: block; }
  .nav__inner { justify-content: center; min-height: 106px; }
  .nav__logo { margin-inline: auto; }
  .nav__toggle { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); }
}

/* no hero shot under the bar: brown lettering on the cream page */
.nav--light:not(.is-dark) .nav__links { color: var(--text-secondary); }
.nav--light:not(.is-dark) .nav__logo { color: var(--slightly-toasted-base); }
.nav--light:not(.is-dark) .nav__toggle span { background: var(--slightly-toasted-base); }
.nav--light:not(.is-dark) .btn--outline {
  --face-bg: transparent;
  --face-border: 1.5px solid var(--background-dark);
  --swap-bg: var(--background-dark);
  --swap-fg: var(--text-on-dark);
  color: var(--text-primary);
}

/* ---------- the mobile menu ---------- */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) 50px;
  background: var(--brand-primary);
  color: var(--text-on-dark);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 700ms cubic-bezier(0.7, 0, 0.84, 0) 150ms,
    visibility 0s linear 850ms;
}
.mnav.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1000ms var(--ease-expo), visibility 0s;
}
@media (min-width: 901px) { .mnav { display: none; } }

/* the nav bar's height, so nothing jumps */
.mnav__bar {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 106px;
}

.mnav__close {
  position: absolute;
  right: 0;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.mnav__close span {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 11px;
  height: 2px;
  background: var(--manhattan-base);
  transition: translate 500ms var(--ease-expo), rotate 500ms var(--ease-expo);
}
.mnav__close span:first-child { translate: 0 -3.5px; }
.mnav__close span:last-child  { translate: 0 3.5px; }
.mnav.is-open .mnav__close span {
  translate: 0 0;
  transition-duration: 1100ms;
  transition-delay: 200ms;
}
.mnav.is-open .mnav__close span:first-child { rotate: 45deg; }
.mnav.is-open .mnav__close span:last-child  { rotate: -45deg; }

.mnav__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: auto;
  padding-top: 40px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}
.mnav__links a {
  display: block;
  overflow: hidden;
  padding-inline: 0.04em;
  margin-inline: -0.04em;
}
.mnav__links span {
  display: block;
  translate: 0 105%;
  transition: translate 450ms cubic-bezier(0.7, 0, 0.84, 0);
}
.mnav.is-open .mnav__links span {
  translate: 0 0;
  transition: translate 1400ms var(--ease-expo) calc(180ms + var(--i, 0) * 55ms);
}

.mnav__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 60px;
  opacity: 0;
  translate: 0 24px;
  transition: opacity 300ms ease, translate 450ms cubic-bezier(0.7, 0, 0.84, 0);
}
.mnav.is-open .mnav__actions {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 900ms var(--ease-expo) 560ms,
    translate 1400ms var(--ease-expo) 560ms;
}
.mnav__actions .btn { box-sizing: border-box; width: 100%; height: 50px; }

@media (prefers-reduced-motion: reduce) {
  .mnav, .mnav.is-open { clip-path: none; transition: none; }
  .mnav__links span, .mnav__actions, .mnav__close span,
  .mnav.is-open .mnav__links span,
  .mnav.is-open .mnav__actions,
  .mnav.is-open .mnav__close span { transition: none; }
}

/* ---------- the page transition panel ----------
   Leaving: navigation.ts puts is-leaving on the panel and the panel wipes
   up over the page. Arriving: the head snippet set html.pt-in before
   first paint, which reaches in here as the --hud-pt-* properties, and
   the panel wipes away. */
.pt {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: var(--brand-primary);
  pointer-events: none;
  visibility: var(--hud-pt-vis, hidden);
  clip-path: inset(100% 0 0 0);
  animation: var(--hud-pt-anim, none) 1100ms var(--ease-in-out) 120ms both;
}
.pt__logo { animation: var(--hud-pt-logo, none) 700ms var(--ease-in) 60ms both; }
.pt.is-leaving {
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0);
  transition: clip-path 700ms var(--ease-in-out);
  animation: none;
}
.pt.is-leaving .pt__logo { animation: pt-logo-in 700ms var(--ease-expo) 250ms both; }
@keyframes pt-out {
  from { clip-path: inset(0); }
  to   { clip-path: inset(0 0 100% 0); }
}
@keyframes pt-logo-in {
  from { opacity: 0; translate: 0 30px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes pt-logo-out {
  from { opacity: 1; translate: 0 0; }
  to   { opacity: 0; translate: 0 -30px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt { display: none; }
}


