/* 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 component element steps aside: the pop-up is a dialog in the top
   layer (styles in styles/book-dialog.css) */
:host { display: contents; }

