/* 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; }

/* The "View set menus" button and its list (lib/MenuDropdown.jsx). The
   button is a section button like its neighbours; the list drops below it,
   as wide as the button, and each line goes orange with its arrow. */
.mdrop { position: relative; display: flex; flex: 1 1 0; min-width: 0; }
.mdrop .btn { flex: 1 1 auto; width: 100%; }
button.btn { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.mdrop__chev {
  display: inline-block;
  width: 0.62em;
  height: 0.37em;
  margin-left: 0.4em;
  vertical-align: 0.12em;
  transition: rotate 300ms var(--ease-power3);
}
.mdrop.is-open .mdrop__chev { rotate: 180deg; }

.mdrop__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  border: 1.5px solid var(--brand-primary);
  background: var(--background-primary);
  box-shadow: 0 12px 30px rgb(24 24 25 / 0.12);
}
.mdrop__list[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .mdrop.is-open .mdrop__list { animation: mdrop-in 350ms var(--ease-expo); }
}
@keyframes mdrop-in { from { opacity: 0; transform: translateY(-6px); } }

a.mdrop__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  color: var(--brand-primary);
  transition: color 200ms ease, background-color 200ms ease;
}
/* full colour on hover: plain links dim to 70% in base.css */
a.mdrop__link:hover,
a.mdrop__link:focus-visible { opacity: 1; color: var(--text-on-dark); background: var(--brand-accent); }
a.mdrop__link:focus-visible { outline: none; }
.mdrop__link .btn__arrow { margin-left: 0; }
/* under the slider on a phone the button is the last thing in the section,
   so the list opens upwards, over the photos, not into the next section */
.actions-below .mdrop__list { top: auto; bottom: calc(100% + 6px); }
.actions-below .mdrop .mdrop__chev { rotate: 180deg; }
.actions-below .mdrop.is-open .mdrop__chev { rotate: 0deg; }
@keyframes mdrop-up { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: no-preference) {
  .actions-below .mdrop.is-open .mdrop__list { animation-name: mdrop-up; }
}

/* faded out under the hero intro (--hud-rest from the head snippet): on the
   section itself, the host is display: contents and opacity does nothing there */
.setmenus { opacity: var(--hud-rest, 1); }

.setmenus {
  background: var(--background-primary);
  /* the design sits this heading closer to the specials cards than a full section gap */
  padding-block: clamp(72px, calc(72px + 18 * var(--t)), 90px) var(--section-pad-lg);
}

.hscroll { position: relative; margin-top: 60px; }
.hscroll__track { display: flex; gap: 2px; }
/* the packages are Set Menu components in the slot: Webflow wraps them in
   one div, which steps aside so each package is a flex item of the track */
.hscroll__track ::slotted(div[slot]) { display: contents; }
.slot-hint { padding: 40px var(--gutter); opacity: 0.6; }


@media (min-width: 901px) {
  /* the pin sticks half-way down rather than at the top, so once pinned
     the row is centred on screen */
  .hscroll__pin {
    --pin-h: min(660px, calc(var(--hud-vh, 100svh) * 0.72));
    position: sticky;
    top: calc((var(--hud-vh, 100svh) - var(--pin-h)) / 2);
    display: flex;
    align-items: center;
    height: var(--pin-h);
    overflow: hidden;
  }
  .hscroll__track {
    /* line the first card up with the container's content edge, not the
       bare gutter */
    padding-inline: max(
      var(--gutter),
      calc((100% - var(--container)) / 2 + var(--gutter))
    );
    will-change: transform;
  }
}

@media (max-width: 900px) {
  .setmenus { padding-block: 90px; }
  .hscroll { margin-top: 35px; }
  .hscroll__pin {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hscroll__pin::-webkit-scrollbar { display: none; }
  .hscroll__track {
    transform: none !important;
    gap: 2.2px;
  }
}

.slabs__dots {
  display: none;
  justify-content: center;
  gap: 3px;
  margin-top: 35px;
}
.slabs__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dot-idle);
  cursor: pointer;
  transition: background-color 250ms ease;
}
.slabs__dots button.is-current { background: var(--brand-primary); }
@media (max-width: 900px) { .slabs__dots { display: flex; } }

.lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* minmax so a 444px column can't widen a phone */
  gap: 24px;
}
.lead__heading    { color: var(--text-secondary); }
.lead__heading h2 { color: var(--text-secondary); }
.lead__aside      { display: flex; flex-direction: column; gap: 40px; width: 444px; max-width: 100%; justify-self: end; }
.lead__aside p    { color: var(--text-secondary); }
.lead__actions    { display: flex; gap: 8px; }
.lead__actions .btn { flex: 1 1 0; min-width: 0; }
.lead__accent     { margin-left: 0.3em; }

@media (min-width: 901px) {
  .lead {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 40px;
  }
}

@media (max-width: 1100px) {
  .lead__aside { justify-self: start; }
}

@media (max-width: 900px) {
  .lead { gap: 35px; }
  .lead__aside p { font-size: var(--fs-body-sm); line-height: 1.38; }
  .lead__actions { display: none; }
}

/* the last word of a heading and its handwritten word stay together (Lines in Copy.tsx) */
.script-tail { white-space: nowrap; }

.script {
  display: inline-block;
  width: var(--w, auto);
  height: auto;
  overflow: visible;
  vertical-align: baseline;
}
/* with JS the word waits for script-ink.ts, so it never shows written and
   then restarts (--hud-script is set on <html> by the head snippet) */
.script:not(.is-inked):not(.is-plain) { visibility: var(--hud-script, visible); }
@media (prefers-reduced-motion: reduce) { .script { visibility: visible; } }

/* in a heading the word sits on the text's baseline with its descenders
   hanging under it, and its box is folded away so a tall word (the p of
   'specials') never pushes the lines apart. --h is the drawn height from
   the viewBox, --hang the share of it below the word's own baseline */
.t-heading .script {
  --below: calc(var(--h, 0px) * var(--hang, 0));
  margin-top: calc(var(--below) - var(--h, 0px));
  margin-bottom: calc(-1 * var(--below));
}

.script--no-shortcuts { --w: clamp(262px, calc(262px + 52 * var(--t)), 314px); --h: calc(var(--w) * 45 / 322); --hang: 0.02; }
/* 'menu' has no ascenders or descenders, so its box is tight and reads
   larger otherwise */
.script--menu         { --w: clamp(143px, calc(143px + 28 * var(--t)), 171px); --h: calc(var(--w) * 27 / 140); --hang: 0.02; }
.script--specials     { --w: clamp(180px, calc(180px + 35 * var(--t)), 215px); --h: calc(var(--w) * 77 / 225); --hang: 0.4; }
.script--set-menus    { --w: clamp(196px, calc(196px + 39 * var(--t)), 235px); --h: calc(var(--w) * 38 / 266); --hang: 0.04; }
/* 'follow' is 196px wide beside the 50px heading in the design, its tail 40px under the baseline */
.script--follow       { --w: clamp(188px, calc(188px + 8 * var(--t)), 196px); --h: calc(var(--w) * 86 / 198); --hang: 0.47; }
.script--coming-soon  { --w: clamp(150px, calc(150px + 65 * var(--t)), 215px); --h: calc(var(--w) * 49 / 215); --hang: 0.47; transform: translateY(14px); }
.script--application-form { --w: min(100%, clamp(300px, calc(377px + 78 * var(--t)), 455px)); --h: calc(var(--w) * 86 / 453); --hang: 0.45; }

/* on a phone the word takes a line of its own under the heading, at the
   right. It stays an inline-level box, pushed the full width over: as a
   block inside the inline tail span (Lines in Copy.tsx) iOS Safari put
   its top margin above the whole line instead of above the word, and
   the heading's lines drifted apart */
@media (max-width: 900px) {
  .t-heading .script-tail { white-space: normal; }
  .t-heading .script {
    display: inline-block;
    vertical-align: top;   /* the gap above the word is the margin, not the line's strut */
    margin: 17.6px 0 0 calc(100% - var(--w, 0px));
  }
}

.actions-below { display: none; }

@media (max-width: 900px) {
  .actions-below {
    display: flex;
    flex-direction: column;
    gap: 8.8px;
    margin-top: 35px;
  }
  .actions-below .btn { width: 100%; }
}


/* arrows over the slider, on phones only (on a desktop the row slides as
   the page scrolls): one step per tap, hidden at either end */
.hscroll__arrow { display: none; }
@media (max-width: 900px) {
  .hscroll__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    border: 0;
    background: var(--manhattan-base);
    color: var(--slightly-toasted-base);
    cursor: pointer;
    transition: opacity 250ms ease, background-color 250ms ease, color 250ms ease;
  }
  .hscroll__arrow--prev { left: 17.6px; }
  .hscroll__arrow--next { right: 17.6px; }
  .hscroll__arrow--next svg { transform: scaleX(-1); }
  .hscroll__arrow svg { width: 20px; height: 20px; }
  .hscroll__arrow:active { background: var(--brand-accent); color: var(--text-on-dark); }
  .hscroll__arrow:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
  .hscroll__arrow:disabled { opacity: 0; pointer-events: none; }
}

/* the arrows on desktop (.hscroll__step, inside the pinned row): a click
   scrolls the page so the previous / next set menu sits mid-screen */
@media (min-width: 901px) {
  .hscroll__step {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-top: -28px;
    padding: 0;
    border: 0;
    background: var(--manhattan-base);
    color: var(--slightly-toasted-base);
    cursor: pointer;
    transition: background-color 250ms ease, color 250ms ease, opacity 300ms ease;
  }
  .hscroll__step--prev { left: var(--gutter); }
  .hscroll__step--next { right: var(--gutter); }
  .hscroll__step--next svg { transform: scaleX(-1); }
  .hscroll__step svg { width: 22px; height: 22px; }
  .hscroll__step:hover,
  .hscroll__step:focus-visible { background: var(--brand-accent); color: var(--text-on-dark); }
  .hscroll__step:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
  .hscroll__step:disabled { opacity: 0; pointer-events: none; }
}
/* on phones the row scrolls by itself and has its own arrows */
@media (max-width: 900px) {
  .hscroll__arrow.hscroll__step { display: none; }
}

/* the heading block sits above the row of photos, so the "View set menus"
   list can drop over them */
.setmenus > .container { position: relative; z-index: 3; }
.actions-below { position: relative; z-index: 3; }

/* the arrows, phone and desktop: blue, and on hover the orange face slides
   in sideways while the blue one eases half out, the way the buttons do it
   upwards. The next arrow fills from the left, the previous from the right */
.hscroll__arrow {
  overflow: hidden;
  isolation: isolate;
  background: none;
  color: var(--text-on-dark);
}
.arrow__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  transition: transform 650ms var(--ease-expo);
}
.arrow__face--swap {
  background: var(--brand-accent);
  transform: translateX(-100%);
  transition: transform 700ms var(--ease-expo);
}
.hscroll__arrow--prev .arrow__face--swap,
.hscroll__step--prev .arrow__face--swap { transform: translateX(100%); }

@media (hover: hover) {
  .hscroll__arrow:hover .arrow__face:not(.arrow__face--swap) { transform: translateX(50%); }
  .hscroll__arrow--prev:hover .arrow__face:not(.arrow__face--swap),
  .hscroll__step--prev:hover .arrow__face:not(.arrow__face--swap) { transform: translateX(-50%); }
  .hscroll__arrow:hover .arrow__face--swap { transform: none; }
}
.hscroll__arrow:focus-visible .arrow__face--swap,
.hscroll__arrow:active .arrow__face--swap { transform: none; }
/* the faces carry the colour now, not the button */
.hscroll__arrow:hover,
.hscroll__arrow:focus-visible,
.hscroll__arrow:active { background: none; color: var(--text-on-dark); }
@media (prefers-reduced-motion: reduce) {
  .arrow__face, .arrow__face--swap { transition: none; }
}

/* on a phone the arrows stay plain blue: no sliding face on a tap */
@media (max-width: 900px) {
  .hscroll__arrow .arrow__face--swap { display: none; }
  .hscroll__arrow .arrow__face { transform: none !important; transition: none; }
}

