/* Base of the landing: reset, type, layout, depth bands, header, footer, buttons, focus. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

/* Smooth anchor scrolling only without JS: with JS, V.scrollTo drives the scroll, and a native smooth
   scroll would fight ScrollTrigger's pin (SPEC 5.5, decision 18). */
html:not(.has-js) {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--hall-1);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.1;
}

em {
  font-style: normal;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
summary {
  font: inherit;
  color: inherit;
}

main {
  display: block;
}

.muted {
  opacity: .8;
}

/* Pictograms */
.ico {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -.22em;
  fill: currentColor;
  --ico-2: currentColor;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: var(--z-skip);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* Focus: double ring, visible on pale and on navy */
:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--ink);
}

/* Demo bar */
.demo-bar {
  margin: 0;
  padding: 10px 20px;
  background: var(--sun-pale);
  color: var(--demo-ink);
  font-size: var(--fs-small);
  text-align: center;
}

.has-demo .hero {
  margin-top: calc(-1 * var(--demo-h));
}

/* Layout */
.sec {
  padding-block: var(--sec-pad);
}

.sec__inner {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.depth-run {
  position: relative;
}

.depth-gap {
  height: clamp(120px, 24vh, 240px);
  background: linear-gradient(180deg, var(--d1), var(--d2));
}

/* Depth bands: gradient and text colour per band (contrast in SPEC 2.2) */
.sec--plunge {
  background: linear-gradient(180deg, var(--d-surface), var(--d0));
  color: var(--ink);
}

.sec--services {
  background: linear-gradient(180deg, var(--d0), var(--d1));
  color: var(--ink);
}

.sec--services em,
.sec--plunge em {
  color: var(--blue-800);
}

.sec--physio {
  background: linear-gradient(180deg, var(--d2), var(--d3));
}

.sec--promos {
  background: linear-gradient(180deg, var(--d3), var(--d4));
}

.sec--shop {
  background: linear-gradient(180deg, var(--d4), var(--d5));
}

.sec--contact {
  background: linear-gradient(180deg, var(--d5), var(--d6));
}

.sec--physio,
.sec--promos,
.sec--shop,
.sec--contact {
  color: var(--white);
}

.sec--physio em,
.sec--promos em,
.sec--shop em {
  color: var(--foam-2);
}

.sec--contact em {
  color: var(--foam);
}

.sec--physio .eyebrow,
.sec--promos .eyebrow,
.sec--shop .eyebrow,
.sec--contact .eyebrow {
  color: var(--foam-2);
}

.sec--plunge {
  font-family: var(--font-display);
  font-size: var(--fs-plunge);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--s-4);
  color: var(--teal-deep);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .16em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--r-pill);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-xs), color var(--t-xs);
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
}

.btn--ink:hover {
  background: var(--teal-deep);
}

.btn--sun {
  background: var(--sun);
  color: var(--ink);
}

.btn--sun:hover {
  background: #ffd877;
}

.btn--paper {
  background: var(--paper);
  color: var(--ink);
}

.btn--paper:hover {
  background: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color var(--t-xs);
}

.text-link:hover {
  color: var(--teal);
}

.sec--physio .text-link:hover,
.sec--promos .text-link:hover,
.sec--shop .text-link:hover,
.sec--contact .text-link:hover {
  color: var(--foam-2);
}

/* Rope: coral and paper dashes (lane rope) */
.rope {
  display: block;
  height: 8px;
  border-radius: var(--r-pill);
  background: repeating-linear-gradient(90deg, var(--coral) 0 24px, var(--paper) 24px 48px);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .25em;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand__name span {
  color: var(--teal);
}

.brand i {
  color: var(--coral);
  font-size: .5em;
  font-style: normal;
}

/* With the logo's emblem: the name stays live text next to it (crisp, selectable, read by screen readers). */
.brand--mark {
  align-items: center;
  gap: 10px;
}

.brand__mark {
  display: block;
  flex: none;
  width: auto;
  height: 38px;
}

/* Header: zero-height sticky, so it takes no flow space and rests under the demo bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: 0;
  display: flow-root; /* keeps the bar's 16px top margin inside the zero-height header instead of pushing <main> down */
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  max-width: 1264px;
  margin: 16px 16px 0;
  padding: 6px 8px 6px 20px;
  border-radius: var(--r-pill);
  background: rgba(251, 247, 234, .96);
  box-shadow: var(--shadow-float);
  color: var(--ink);
  transition: background-color var(--t-s), box-shadow var(--t-s);
}

html[data-zone="air"] .site-header__bar {
  background: transparent;
  box-shadow: none;
}

@media (max-width: 767px) {
  .site-header__bar {
    gap: 4px;
    padding-left: 14px;
  }

  .site-header__bar .brand {
    font-size: 1.0625rem;
  }

  .nav-cta {
    padding: 0 12px;
  }

  .nav-cta .ico,
  .nav-sheet__open .ico {
    display: none;
  }

  .brand__mark {
    height: 34px;
  }

  .nav-sheet summary {
    padding: 0 10px;
  }
}

.main-nav {
  display: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 8px;
  left: 14px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-xs);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-xs);
}

.nav-cta:hover {
  background: var(--teal-deep);
}

/* Under 480 px the emblem alone: the name, the call button and the menu do not fit in the capsule (360 px leaves 10 px).
   The link keeps its aria-label, so its accessible name does not change. */
@media (max-width: 479px) {
  .brand--mark .brand__name {
    display: none;
  }

  .brand__mark {
    height: 38px;
  }
}

/* Mobile menu: <details>, works with no JS */
.nav-sheet summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.nav-sheet summary::-webkit-details-marker {
  display: none;
}

.nav-sheet__open,
.nav-sheet__close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-sheet__close,
.nav-sheet[open] .nav-sheet__open {
  display: none;
}

.nav-sheet[open] .nav-sheet__close {
  display: inline-flex;
}

.nav-sheet__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--r-l);
  background: var(--paper);
  box-shadow: var(--shadow-float);
}

.nav-sheet__panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--r-m);
  font-weight: 500;
  text-decoration: none;
}

.nav-sheet__panel a:hover {
  background: var(--mint-light);
}

@media (min-width: 1024px) {
  /* The capsule spans from (gutter - 24px) so that the brand (24px of padding) lands exactly on the hero copy at every width. */
  .site-header__bar {
    max-width: none;
    margin-inline: calc(var(--gutter) - 24px);
    padding-left: 24px;
    width: calc(100% - 2 * (var(--gutter) - 24px));
  }

  .main-nav {
    display: flex;
    margin-left: auto;
  }

  .nav-cta {
    margin-left: 0;
    font-size: 1rem;
  }

  .nav-sheet {
    display: none;
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: var(--z-content);
  padding: var(--s-8) var(--gutter);
  background: var(--abyss-2);
  color: var(--foam-2);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  max-width: var(--content-max);
  margin-inline: auto;
}

.site-footer .brand {
  color: var(--white);
  font-size: 1.5rem;
}

.site-footer .brand__name span {
  color: var(--aqua-300);
}

/* The logo's blue lettering would vanish on the navy floor: it sits on a cream plate, like the header capsule. */
.brand-plate {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: var(--r-m);
  background: var(--paper);
  box-shadow: var(--shadow-float);
}

.footer-logo {
  display: block;
  width: clamp(140px, 36vw, 176px);
  height: auto;
}

.site-footer__top {
  min-height: 44px;
}

.site-footer__top:hover {
  color: var(--white);
}

@media (min-width: 1024px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
