/* ==========================================================================
   Skaha Lake Pharmacy
   Tokens mirror the Figma "Skaha Brand" collection.
   ========================================================================== */

:root {
  --navy-900: #0e1838;
  --navy-800: #14204a;
  --navy-700: #1e2d63;
  --navy-600: #3a476f;
  --blue-700: #3b6f9e;
  --blue-500: #5990bf;
  --blue-300: #a9c6e0;
  --blue-100: #e3edf6;
  --blue-50: #f2f6fa;
  --white: #fff;
  --green: #2e9e6b;
  --amber: #d99a2b;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(12px, 6.4vw - 12px, 80px);
  --band-gap: clamp(12px, 1.7vw, 24px);
  --r-band: clamp(28px, 3.4vw, 48px);
  --r-card: 24px;
  --r-pill: 9999px;
  --header-offset: 112px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-nav: 0 8px 32px rgba(14, 24, 56, 0.08);
  --shadow-nav-scrolled: 0 14px 40px rgba(14, 24, 56, 0.12);
  --shadow-lift: 0 12px 24px -10px rgba(14, 24, 56, 0.45);
}

/* Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-optical-sizing: auto;
  color: var(--navy-600);
  background: var(--blue-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, dl, dd, blockquote {
  margin: 0;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--blue-100);
  color: var(--navy-900);
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--navy-800);
  color: var(--white);
  font-weight: 500;
  transition: top 0.3s var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
}

.arrow {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Layout
   ========================================================================== */

.page {
  display: flex;
  flex-direction: column;
  gap: var(--band-gap);
  width: 100%;
  max-width: calc(1280px + 2 * var(--gutter));
  min-height: 100vh;
  margin-inline: auto;
  padding: 24px var(--gutter);
}

.main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--band-gap);
}

.band {
  position: relative;
  border-radius: var(--r-band);
  overflow: clip;
  isolation: isolate;
}

.band--white { background: var(--white); }
.band--blue { background: var(--blue-100); }
.band--navy { background: var(--navy-800); color: var(--blue-100); }

/* Type
   ========================================================================== */

.brow {
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.brow--light { color: var(--blue-300); }

.h1 {
  font-size: clamp(2.5rem, 1.75rem + 2.1vw, 3.5rem);
  line-height: 1.143;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--navy-800);
  text-wrap: balance;
}

.h2 {
  font-size: clamp(2rem, 1.55rem + 1.25vw, 2.75rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.25rem, 1.15rem + 0.3vw, 1.5rem);
  line-height: 1.333;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--navy-800);
}

.lead {
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem);
  line-height: 1.5;
  color: var(--navy-600);
  text-wrap: pretty;
}

.accent {
  color: var(--blue-500);
  white-space: nowrap;
}

.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease-out), color 0.25s ease;
}

@media (hover: hover) {
  .link:hover {
    background-size: 100% 1px;
    color: var(--blue-700);
  }
}

/* Buttons
   Outline: a curved "lake" fill rises from below and the label rolls up.
   Solid: lifts slightly and the label rolls up.
   Primary: the arrow loops through its circle.
   ========================================================================== */

.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: var(--btn-h);
  padding: 0 28px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 0.4s var(--ease-out),
    background-color 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn--sm {
  --btn-h: 44px;
  padding: 0 24px;
}

.btn__label {
  position: relative;
  display: inline-block;
  transition: transform 0.55s var(--ease-out);
}

.btn--outline .btn__label,
.btn--solid .btn__label {
  text-shadow: 0 var(--btn-h) currentColor;
}

.btn--outline {
  color: var(--navy-800);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--navy-800);
}

.btn--outline::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -15%;
  right: -15%;
  top: 100%;
  height: 240%;
  border-radius: 50%;
  background: var(--navy-800);
  transition: transform 0.6s var(--ease-out);
}

.btn--soft {
  box-shadow: inset 0 0 0 1.5px rgba(20, 32, 74, 0.35);
}

.btn--solid {
  color: var(--white);
  background: var(--navy-800);
}

.btn--primary {
  padding: 0 8px 0 28px;
  color: var(--white);
  background: var(--navy-800);
}

.btn__circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-800);
  overflow: hidden;
  transition: transform 0.5s var(--ease-spring), background-color 0.4s var(--ease-out);
}

.btn__circle .arrow {
  width: 16px;
  height: 16px;
}

/* Light variants for navy bands */
.btn--light {
  color: var(--navy-800);
  background: var(--white);
}

.btn--light .btn__circle {
  background: var(--navy-800);
  color: var(--white);
}

.btn--outline-light {
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}

.btn--outline-light::before {
  background: var(--white);
}

@media (hover: hover) {
  .btn--outline:hover .btn__label,
  .btn--solid:hover .btn__label {
    transform: translateY(calc(-1 * var(--btn-h)));
  }

  .btn--outline:hover {
    color: var(--white);
    box-shadow: inset 0 0 0 1.5px var(--navy-800);
  }

  .btn--outline:hover::before {
    transform: translateY(-75%);
  }

  .btn--outline-light:hover {
    color: var(--navy-800);
    box-shadow: inset 0 0 0 1.5px var(--white);
  }

  .btn--solid:hover {
    background: var(--navy-700);
    box-shadow: var(--shadow-lift);
    transform: translateY(-1px);
  }

  .btn--primary:hover {
    background: var(--navy-700);
    box-shadow: var(--shadow-lift);
  }

  .btn--light:hover {
    background: var(--blue-100);
    box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.5);
  }

  .btn--primary:hover .btn__circle,
  .btn--light:hover .btn__circle {
    transform: scale(1.1);
  }

  .btn--primary:hover .arrow,
  .btn--light:hover .arrow {
    animation: arrow-through 0.65s var(--ease-out);
  }

  .btn--solid:active,
  .btn--outline:active {
    transform: scale(0.97);
  }
}

@keyframes arrow-through {
  0% { transform: translateX(0); }
  40% { transform: translateX(160%); }
  40.01% { transform: translateX(-160%); }
  100% { transform: translateX(0); }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* App store badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.badge {
  display: block;
  border-radius: 10px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.badge img {
  width: auto;
  height: 56px;
}

.badge:active { transform: scale(0.97); }

@media (max-width: 479px) {
  .badges { gap: 10px; }
  .badge img { height: 46px; }
}

@media (hover: hover) {
  .badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 24px -12px rgba(14, 24, 56, 0.6);
  }
}

/* Header + nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  view-transition-name: site-header;
}

.nav {
  background: var(--white);
  border-radius: 38px;
  box-shadow: var(--shadow-nav);
  transition: box-shadow 0.5s var(--ease-out);
}

.is-scrolled .nav { box-shadow: var(--shadow-nav-scrolled); }

.nav__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 16px 22px 16px 32px;
}

.nav__logo {
  justify-self: start;
  border-radius: 6px;
  transition: opacity 0.25s ease, transform 0.4s var(--ease-out);
}

/* Optical centre: the heavy wordmark fills the top of the logo's box and the
   light waves barely register below it, so true centre reads as riding high */
.nav__logo img {
  width: 112px;
  transform: translateY(7%);
}

@media (hover: hover) {
  .nav__logo:hover { opacity: 0.82; }
}

.nav__links {
  justify-self: center;
  display: flex;
  gap: 40px;
}

.nav__link {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--navy-800);
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--blue-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.nav__link[aria-current]::after { transform: scaleX(1); }

@media (hover: hover) {
  .nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.nav__actions {
  justify-self: end;
  display: flex;
  gap: 12px;
}

.nav__actions .btn--outline[aria-current] { background: var(--blue-50); }

.nav__toggle,
.nav__drawer {
  display: none;
}

@media (max-width: 1023px) {
  :root { --header-offset: 92px; }

  .nav { border-radius: 28px; }

  .nav__bar {
    grid-template-columns: 1fr auto;
    min-height: 60px;
    padding: 8px 8px 8px 28px;
  }

  .nav__logo img { width: 92px; }

  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__toggle {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--blue-50);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s ease, transform 0.3s var(--ease-out);
  }

  .nav__toggle:active { transform: scale(0.92); }

  .nav__toggle-line {
    position: absolute;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--navy-800);
    transition: transform 0.5s var(--ease-out);
  }

  .nav__toggle-line:first-child { transform: translateY(-3.5px); }
  .nav__toggle-line:last-child { transform: translateY(3.5px); }

  .nav.is-open .nav__toggle { background: var(--blue-100); }
  .nav.is-open .nav__toggle-line:first-child { transform: rotate(45deg); }
  .nav.is-open .nav__toggle-line:last-child { transform: rotate(-45deg); }

  .nav__drawer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s var(--ease-out);
  }

  .nav.is-open .nav__drawer { grid-template-rows: 1fr; }

  .nav__drawer-inner {
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: visibility 0s linear 0.55s;
  }

  .nav.is-open .nav__drawer-inner {
    visibility: visible;
    transition-delay: 0s;
  }

  /* The bar keeps its height; the drawer overlays the page */
  .site-header { height: 60px; }

  .site-header::before {
    content: "";
    position: fixed;
    inset: -12px 0 0;
    z-index: -1;
    background: rgba(14, 24, 56, 0.18);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--ease-out);
  }

  .site-header:has(.nav.is-open)::before {
    opacity: 1;
    pointer-events: auto;
  }

  .nav__drawer-links li {
    padding: 0 20px;
  }

  .nav__drawer-links li:first-child { padding-top: 4px; }

  .nav__drawer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--blue-100);
    font-size: 22px;
    line-height: 28px;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--navy-800);
  }

  .nav__drawer-links a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 1.5px solid var(--blue-500);
    border-right: 1.5px solid var(--blue-500);
    transform: rotate(45deg);
  }

  .nav__drawer-links a[aria-current] { color: var(--blue-700); }

  .nav__drawer-links li,
  .nav__drawer-actions {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.45s var(--ease-out);
  }

  .nav.is-open .nav__drawer-links li,
  .nav.is-open .nav__drawer-actions {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 45ms + 90ms);
  }

  .nav__drawer-actions {
    --i: 4;
    display: grid;
    gap: 10px;
    padding: 12px;
  }
}

/* Home: hero
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 560px);
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  min-height: 500px;
  padding: 48px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero__content .brow {
  font-size: 12px;
  line-height: 16px;
}

.hero__content .lead { max-width: 512px; }

/* Frame matches the entrance photo (5:4) so nothing is cropped */
.hero__media {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--blue-100);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 8px 24px -8px rgba(14, 24, 56, 0.3);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}

.status-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy-600);
}

[data-state="open"] .status-dot { background: var(--green); }
[data-state="soon"] .status-dot { background: var(--amber); }

[data-state="open"] .status-dot::after,
[data-state="soon"] .status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: dot-pulse 2.4s var(--ease-out) infinite;
}

@keyframes dot-pulse {
  from { transform: scale(1); opacity: 0.55; }
  to { transform: scale(3.2); opacity: 0; }
}

@media (max-width: 959px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    padding: 36px 8px 0;
  }
}

/* Home: story band
   ========================================================================== */

.story-band {
  --disc: clamp(300px, 27vw, 380px);
  display: grid;
  grid-template-columns: minmax(var(--disc), 1fr) minmax(0, 700px);
  column-gap: clamp(64px, 6.5vw, 104px);
  align-items: center;
  min-height: 446px;
  padding: 64px 80px;
}

.story-band__visual {
  position: relative;
  justify-self: center;
  width: var(--disc);
  height: var(--disc);
}

.story-band__disc {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 60px -28px rgba(14, 24, 56, 0.45);
}

/* Softly blurred; scaled up so the blurred edge stays outside the circle */
.story-band__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px);
  transform: scale(1.14);
  transition: transform 1.6s var(--ease-out);
}

/* Navy tint so the white logo reads against the pale sky */
.story-band__disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(14, 24, 56, 0.45), rgba(14, 24, 56, 0.18) 70%);
  pointer-events: none;
}

.story-band__logo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 60%;
  margin: auto;
  /* Optical centre: the gap between "SKAHA LAKE" and "PHARMACY" (y≈39 of 117)
     sits on the circle's centre, not the logo's box centre (y≈59) */
  transform: translateY(16.56%);
  filter: drop-shadow(0 2px 14px rgba(14, 24, 56, 0.45));
}

@media (hover: hover) {
  .story-band__disc:hover .story-band__photo { transform: scale(1.19); }
}

.story-band__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.story-band__content .lead { max-width: 520px; }
.story-band__content .cta-row { padding-top: 20px; }

/* Concentric rings: drop in like a ripple, then breathe */
.rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  translate: -50% -50%;
}

.ring--380 { width: calc(var(--disc) * 1.2667); }
.ring--540 { width: calc(var(--disc) * 1.8); }
.ring--700 { width: calc(var(--disc) * 2.3333); }

.js [data-inview] .ring {
  opacity: 0;
  scale: 0.7;
}

.is-in .ring {
  animation:
    ring-in 1.8s var(--ease-out) both,
    ring-breathe 9s var(--ease-in-out) 1.8s infinite;
}

.is-in .ring--540 { animation-delay: 0.15s, 2.6s; }
.is-in .ring--700 { animation-delay: 0.3s, 3.4s; }

/* Home: rings ripple outward from the lake photo, slow and continuous.
   Non-scaling strokes keep every ring a hairline as it grows. */
.ripples {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--disc) * 2.4);
  height: calc(var(--disc) * 2.4);
  max-width: none;
  overflow: visible;
  translate: -50% -50%;
  pointer-events: none;
  transition: opacity 1.6s var(--ease-out);
}

.ripples circle {
  fill: none;
  stroke: var(--blue-300);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: ripple 6s linear infinite;
}

/* Four rings, evenly staggered, so a new ripple leaves the photo every 1.5s */
.ripples circle:nth-child(2) { animation-delay: -1.5s; }
.ripples circle:nth-child(3) { animation-delay: -3s; }
.ripples circle:nth-child(4) { animation-delay: -4.5s; }

@keyframes ripple {
  0% { transform: scale(0.43); opacity: 0; }
  8% { opacity: 0.5; }
  100% { transform: scale(1); opacity: 0; }
}

.js [data-inview]:not(.is-in) .ripples { opacity: 0; }

.js [data-inview] .story-band__disc {
  opacity: 0;
  scale: 0.92;
}

.is-in .story-band__disc {
  animation: disc-in 1.4s var(--ease-out) both;
}

.js [data-inview] .story-band__logo { opacity: 0; }

.is-in .story-band__logo {
  animation: rise 1.1s var(--ease-out) 0.55s both;
}

@keyframes disc-in {
  from { opacity: 0; scale: 0.92; }
  to { opacity: 1; scale: 1; }
}

@keyframes ring-in {
  from { opacity: 0; scale: 0.7; }
  to { opacity: 1; scale: 1; }
}

@keyframes ring-breathe {
  0%, 100% { opacity: 1; scale: 1; }
  50% { opacity: 0.5; scale: 1.035; }
}

@media (max-width: 1023px) {
  .story-band {
    --disc: min(300px, 100vw - 96px);
    grid-template-columns: 1fr;
    gap: 64px;
    min-height: 0;
    padding: 64px 24px 40px;
  }
}

/* Services
   ========================================================================== */

.services {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 80px 56px 56px;
  scroll-margin-top: var(--header-offset);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 840px;
}

.section-head .lead { max-width: 600px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: var(--r-card);
  transition: background-color 0.5s var(--ease-out);
}

.service p {
  font-size: 16px;
  line-height: 1.4;
}

.service__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--navy-800);
}

.service__icon::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: 0;
  border-radius: 50%;
  background: var(--blue-100);
  opacity: 0;
  transform: scale(0.4);
  transition: transform 0.6s var(--ease-spring), opacity 0.4s ease;
}

.service__icon svg {
  position: relative;
  width: 36px;
  height: 36px;
  transition: transform 0.6s var(--ease-spring), color 0.3s ease;
}

@media (hover: hover) {
  .service:hover { background: var(--blue-50); }

  .service:hover .service__icon::before {
    opacity: 1;
    transform: scale(1);
  }

  .service:hover .service__icon svg {
    color: var(--blue-700);
    transform: rotate(-8deg) scale(0.92);
  }
}

/* Booking tile */
.service--cta { padding: 0; background: var(--navy-800); }

.tile-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
  min-height: 220px;
  padding: 28px;
  border-radius: inherit;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
}

.tile-link .h3 { color: var(--white); }

.tile-link::before,
.tile-link::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -90px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(169, 198, 224, 0.22);
  transition: transform 0.9s var(--ease-out);
}

.tile-link::after {
  width: 180px;
  height: 180px;
  right: -50px;
  bottom: -50px;
  background: rgba(89, 144, 191, 0.14);
  border: 0;
}

.tile-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-800);
  overflow: hidden;
  transition: transform 0.55s var(--ease-spring);
}

.tile-arrow .arrow {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.service--cta { transition: background-color 0.5s var(--ease-out), transform 0.5s var(--ease-out); }

@media (hover: hover) {
  .service--cta:hover {
    background: var(--navy-700);
    transform: translateY(-3px);
  }

  .service--cta:hover .tile-link::before { transform: scale(1.35); }
  .service--cta:hover .tile-link::after { transform: scale(1.5); }
  .service--cta:hover .tile-arrow { transform: scale(1.12); }
  .service--cta:hover .tile-arrow .arrow { animation: arrow-through 0.65s var(--ease-out); }
}

@media (max-width: 1099px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Nine tiles in two columns: the booking tile becomes a full-width bar */
  .service--cta { grid-column: 1 / -1; }

  .tile-link {
    flex-direction: row;
    align-items: center;
    min-height: 120px;
  }
}

@media (max-width: 959px) {
  .services {
    gap: 32px;
    padding: 48px 24px 24px;
  }
}

@media (max-width: 639px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .service { padding: 24px 4px; gap: 14px; border-radius: 0; }
  .service + .service:not(.service--cta) { border-top: 1px solid var(--blue-100); }
  .service__icon::before { display: none; }
  .service.service--cta {
    margin-top: 12px;
    padding: 0;
    border-radius: var(--r-card);
  }
  .tile-link { min-height: 112px; padding: 24px; }
}

/* Page hero (About)
   ========================================================================== */

.page-hero {
  display: flex;
  align-items: center;
  min-height: 400px;
  padding: 48px;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 700px;
}

.page-hero__content .lead { max-width: 500px; }

.decor {
  position: absolute;
  z-index: 0;
  left: 78.125%;
  top: 62.5%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.decor > * {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  translate: -50% -50%;
}

.decor__disc {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--blue-100);
}

.decor .rings {
  inset: auto;
  width: 300px;
  height: 300px;
  --disc: 300px;
}

.decor__wave {
  width: 560px;
  animation: wave-drift 10s var(--ease-in-out) 1.6s infinite;
}

.js .decor__wave {
  clip-path: inset(0 100% 0 0);
  animation:
    wave-draw 1.6s var(--ease-out) 0.35s forwards,
    wave-drift 10s var(--ease-in-out) 1.95s infinite;
}

@keyframes wave-draw {
  to { clip-path: inset(0 0 0 0); }
}

@keyframes wave-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-16px); }
}

@media (max-width: 959px) {
  .page-hero {
    align-items: flex-start;
    min-height: 0;
    padding: 180px 8px 16px;
  }

  .decor {
    left: 62%;
    top: 96px;
    scale: 0.5;
  }
}

/* About: story
   ========================================================================== */

.story {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  align-items: start;
  gap: 80px;
  padding: 80px 64px;
}

.story__person {
  position: sticky;
  top: calc(var(--header-offset) + 8px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.story__photo {
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
  background: var(--blue-100);
}

.story__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

@media (hover: hover) {
  .story__photo:hover img { transform: scale(1.03); }
}

.story__name {
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--navy-900);
}

.story__role {
  font-size: 16px;
  line-height: 1.3;
  color: var(--navy-600);
}

.story__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem);
  line-height: 1.5;
  color: var(--navy-600);
}

.prose > p:first-child { color: var(--navy-900); }

.callout {
  position: relative;
  padding: 28px 32px;
  border-radius: var(--r-card);
  background: var(--blue-100);
  color: var(--navy-900);
}

@media (max-width: 1099px) {
  .story {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 48px;
    padding: 64px 48px;
  }
}

@media (max-width: 859px) {
  .story {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 24px 24px 40px;
  }

  .story__person {
    position: static;
    gap: 16px;
  }


  .callout { padding: 22px 24px; }
}

/* Navy CTA band
   ========================================================================== */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 64px;
}

.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -140px;
  top: -220px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(89, 144, 191, 0.14);
}

.cta-band__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 640px;
}

.cta-band .h2 { color: var(--white); }
.cta-band .lead { max-width: 560px; color: var(--blue-100); }
.cta-band .lead a { color: var(--white); }

@media (max-width: 959px) {
  .cta-band {
    gap: 28px;
    padding: 40px 24px;
  }

  .cta-band::before {
    right: -220px;
    top: -260px;
  }
}

/* Order online
   ========================================================================== */

.order-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 72px 24px 56px;
  text-align: center;
}

.order-hero .h1 {
  max-width: 900px;
  color: var(--navy-900);
}

.order-hero .lead { max-width: 680px; }
.order-hero .badges { justify-content: center; }

.video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  aspect-ratio: 1280 / 620;
  color: var(--white);
}

.video__disc {
  position: absolute;
  z-index: -1;
  left: 59.4%;
  top: -32.3%;
  width: 56.25%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(89, 144, 191, 0.14);
  transition: transform 1.4s var(--ease-out);
}

.video__ring {
  position: absolute;
  z-index: -1;
  left: -9.4%;
  top: 53.2%;
  width: 32.8%;
  max-width: none;
  transition: transform 1.4s var(--ease-out);
}

.video__play {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 104px;
  height: 104px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-800);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.55s var(--ease-spring), color 0.3s ease;
}

.video__play svg {
  width: 34px;
  height: 38px;
  fill: currentColor;
  transition: transform 0.55s var(--ease-spring);
}

.video__play::before,
.video__play::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  animation: play-pulse 3s var(--ease-out) infinite;
  pointer-events: none;
}

.video__play::after { animation-delay: 1.5s; }

@keyframes play-pulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.75); opacity: 0; }
}

.video__play:active { transform: scale(0.95); }

.video__caption {
  font-size: 20px;
  line-height: 30px;
  transition: opacity 0.4s ease;
}

@media (hover: hover) {
  .video:hover .video__disc { transform: translate(-3%, 4%) scale(1.04); }
  .video:hover .video__ring { transform: rotate(18deg) scale(1.05); }
  .video__play:hover { transform: scale(1.07); color: var(--blue-700); }
  .video__play:hover svg { transform: scale(1.08); }
}

/* Centred with inset + auto margins (not translate), so fullscreen isn't offset */
.video iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: auto;
  height: 100%;
  max-width: 100%;
  margin: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
}

.video.is-playing iframe { opacity: 1; }

.video iframe:fullscreen {
  translate: none;
  aspect-ratio: auto;
}

.video.is-playing .video__play,
.video.is-playing .video__caption {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (max-width: 959px) {
  .order-hero { padding: 48px 4px 40px; }
  .video { aspect-ratio: 4 / 3; }
  .video__play { width: 84px; height: 84px; }
  .video__play svg { width: 28px; height: 31px; }
  .video__caption { font-size: 17px; }
  .video__disc { width: 90%; left: 45%; top: -40%; }
  .video__ring { width: 60%; left: -22%; top: 58%; }
  .video iframe { width: 100%; height: auto; }
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 80px 64px;
}

.steps .h2 { max-width: 760px; }

.step-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 8px var(--white);
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 60px;
  right: -24px;
  border-top: 1.5px dashed var(--blue-300);
  transform-origin: left;
  transition: transform 1.1s var(--ease-out) 0.35s;
}

.js .step:not(.is-in)::before { transform: scaleX(0); }

.step .h3 {
  min-height: 64px;
  color: var(--navy-900);
}

.step p {
  font-size: 16px;
  line-height: 1.4;
}

.step a { color: var(--navy-800); font-weight: 500; }

@media (max-width: 1099px) {
  .step-list { gap: 24px; }
  .step .h3 { min-height: 0; }
}

@media (max-width: 959px) {
  .steps {
    gap: 36px;
    padding: 48px 24px 24px;
  }

  .step-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 4px;
    padding-bottom: 32px;
  }

  .step__num {
    grid-row: span 2;
    box-shadow: none;
  }

  .step .h3 { padding-top: 10px; }

  .step:not(:last-child)::before {
    top: 64px;
    bottom: 12px;
    left: 26px;
    right: auto;
    border-top: 0;
    border-left: 1.5px dashed var(--blue-300);
    transform-origin: top;
  }

  .js .step:not(.is-in)::before { transform: scaleY(0); }
}

/* Good to know */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding: 48px 64px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fact .h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
}

.fact__check {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--blue-500);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact p {
  padding-left: 32px;
  font-size: 16px;
  line-height: 1.4;
}

@media (max-width: 859px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 24px;
  }
}

/* Minor ailments
   ========================================================================== */

.ailments-hero__actions { justify-content: center; }
.ailments-hero .brow { text-wrap: balance; }

.ailments-hero__note {
  max-width: 520px;
  font-size: 14px;
  line-height: 20px;
  text-wrap: balance;
}

.ailments {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 80px 64px;
}

.ailments__alert {
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.45;
  background: var(--blue-50);
}

.ailments__alert strong {
  font-weight: 600;
  color: var(--navy-900);
}

.ailments__source {
  font-size: 15px;
  line-height: 1.4;
}

.ailment-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
}

.ailment-group__title {
  position: sticky;
  top: var(--header-offset);
  font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--navy-900);
  text-wrap: balance;
}

.ailment-group__intro {
  position: sticky;
  top: var(--header-offset);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ailment-group--faq .h2 { font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem); }

.ailment-list { border-top: 1px solid var(--blue-100); }

ul.ailment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ailment-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--blue-100);
  scroll-margin-top: var(--header-offset);
}

.ailment {
  border-bottom: 1px solid var(--blue-100);
  scroll-margin-top: var(--header-offset);
}

.ailment summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

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

.ailment__title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: var(--navy-800);
  transition: color 0.25s ease;
}

.ailment__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--navy-800);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.ailment__icon::before,
.ailment__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.6px;
  margin: -0.8px 0 0 -6px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out);
}

.ailment__icon::after { transform: rotate(90deg); }

.ailment[open] .ailment__icon {
  background: var(--navy-800);
  color: var(--white);
}

.ailment[open] .ailment__icon::after { transform: rotate(0deg); }

.ailment__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
  padding: 0 52px 24px 0;
  font-size: 16px;
  line-height: 1.5;
}

.ailment__body ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.ailment__body li {
  position: relative;
  padding-left: 18px;
}

.ailment__body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

.ailment__body strong {
  font-weight: 600;
  color: var(--navy-800);
}

.ailment__note {
  padding-left: 12px;
  border-left: 2px solid var(--blue-300);
  color: var(--navy-800);
}

/* Outbound arrows (↗) loop diagonally instead of sideways */
@keyframes arrow-out {
  0% { transform: translate(0, 0); }
  40% { transform: translate(130%, -130%); }
  40.01% { transform: translate(-130%, 130%); }
  100% { transform: translate(0, 0); }
}

@media (hover: hover) {
  .btn:hover .arrow--out,
  .service--cta:hover .arrow--out { animation-name: arrow-out; }
}

.service__more {
  display: inline-block;
  margin-top: 4px;
  font-weight: 500;
  color: var(--navy-800);
}

@media (hover: hover) {
  .ailment summary:hover .ailment__title { color: var(--blue-700); }
  .ailment:not([open]) summary:hover .ailment__icon { background: var(--blue-100); }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .ailment { interpolate-size: allow-keywords; }

    .ailment::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
    }

    .ailment[open]::details-content { block-size: auto; }
  }
}

@media (max-width: 959px) {
  .ailments {
    gap: 40px;
    padding: 48px 24px;
  }

  .ailment-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ailment-group__title,
  .ailment-group__intro { position: static; }

  .ailment__body { padding-right: 0; }
}

@media (max-width: 359px) {
  .cta-band:has(.btn--primary) { padding-inline: 16px; }
  .cta-band .btn--primary { padding-left: 20px; font-size: 15px; }
}

/* Footer
   ========================================================================== */

.footer {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 64px 64px 40px;
  scroll-margin-top: var(--header-offset);
}

.footer__contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 96px;
}

.footer__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.footer__title { color: var(--navy-600); }

.hours {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 380px;
}

.hours__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--r-pill);
  background: var(--blue-50);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}

.hours__list {
  width: 100%;
}

.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--blue-100);
  font-size: 15px;
  line-height: 22px;
}

.hours__row:last-child { border-bottom: 0; }

.hours__row dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--navy-800);
}

.hours__row dd {
  color: var(--navy-600);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hours__row.is-today {
  margin-inline: -12px;
  padding-inline: 12px;
  border-radius: 12px;
  border-bottom-color: transparent;
  background: var(--blue-50);
}

.hours__row:has(+ .is-today) { border-bottom-color: transparent; }

.hours__row.is-today dt::after {
  content: "Today";
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  font-style: normal;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--blue-100);
}

.contact-row:last-child { border-bottom: 0; }

.contact-row__icon {
  width: 24px;
  height: 24px;
  color: var(--navy-800);
  transition: color 0.3s ease, transform 0.5s var(--ease-spring);
}

.contact-row__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
  line-height: 1.3;
}

.contact-row__label {
  font-weight: 500;
  line-height: 24px;
  color: var(--navy-800);
}

@media (hover: hover) {
  .contact-row:hover .contact-row__icon {
    color: var(--blue-500);
    transform: translateY(-2px) rotate(-6deg);
  }
}

/* Reserves the slider's height so the footer doesn't jump on reveal. */
.email-reveal {
  min-height: 44px;
  margin-top: 4px;
}

.email-reveal[hidden],
.email-reveal [hidden] { display: none; }

.email-reveal__address {
  margin-top: -4px;
  line-height: 24px;
}

.email-slide {
  --handle: 36px;
  --inset: 4px;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 211px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue-100);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  /* Vertical swipes still scroll the page; horizontal ones drive the slider. */
  touch-action: pan-y;
}

.email-slide__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--x, 0px) + var(--handle) + var(--inset) * 2);
  border-radius: inherit;
  background: var(--blue-100);
  transition: width 0.5s var(--ease-out);
}

.email-slide__hint {
  position: relative;
  padding-left: calc(var(--handle) + var(--inset) + 12px);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  color: var(--navy-600);
  opacity: calc(1 - var(--p, 0) * 1.8);
  transition: opacity 0.3s ease;
}

.email-slide__handle {
  position: absolute;
  left: var(--inset);
  top: var(--inset);
  display: grid;
  place-items: center;
  flex: none;
  width: var(--handle);
  height: var(--handle);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy-800);
  cursor: inherit;
  touch-action: inherit;
  transform: translateX(var(--x, 0px));
  transition: transform 0.5s var(--ease-spring), background-color 0.3s ease;
}

.email-slide__handle .arrow { transition: transform 0.5s var(--ease-spring); }

.email-slide.is-dragging { cursor: grabbing; }

.email-slide.is-dragging .email-slide__fill,
.email-slide.is-dragging .email-slide__handle,
.email-slide.is-dragging .email-slide__hint { transition: none; }

.email-slide.is-done { cursor: default; }

.email-slide.is-done .email-slide__fill,
.email-slide.is-done .email-slide__handle { transition-timing-function: var(--ease-out); }

@media (hover: hover) {
  .email-slide:hover .email-slide__handle { background: var(--navy-700); }
  .email-slide:hover .arrow { transform: translateX(2px); }
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--blue-100);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__logo {
  border-radius: 6px;
  transition: opacity 0.25s ease;
}

.footer__logo img { width: 123px; }

@media (hover: hover) {
  .footer__logo:hover { opacity: 0.82; }
}

.footer__copy {
  font-size: 14px;
  line-height: 20px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--navy-800);
}

@media (max-width: 959px) {
  .footer {
    gap: 36px;
    padding: 44px 24px 28px;
  }

  .footer__contact {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-row { gap: 16px; }

  .footer__bar {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 28px;
  }
}

@media (max-width: 479px) {
  .hours__row { font-size: 14px; }
  .hours__row.is-today dt::after { display: none; }
  .contact-row__text { font-size: 15px; }
  .contact-row .btn--sm { --btn-h: 40px; padding: 0 18px; font-size: 15px; }

  .footer__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* 404 */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 56vh;
  padding: 64px 24px;
  text-align: center;
}

.not-found .lead { max-width: 520px; }
.not-found .cta-row { justify-content: center; padding-top: 12px; }

/* Motion
   Load choreography for heroes, reveal-on-scroll for section content.
   Content is only hidden when JS is running (html.js).
   ========================================================================== */

@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes media-in {
  from { clip-path: inset(8% 8% 8% 8% round 24px); }
  to { clip-path: inset(0 0 0 0 round 24px); }
}

@keyframes media-zoom {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}

.js [data-load] {
  animation: rise 1s var(--ease-out) both;
  animation-delay: calc(var(--d, 0) * 90ms + 60ms);
}

/* Stagger order (data attributes, not inline styles, so the CSP can stay strict) */
[data-load="1"] { --d: 1; }
[data-load="2"] { --d: 2; }
[data-load="3"] { --d: 3; }

.js [data-load-media] {
  animation: media-in 1.3s var(--ease-out) 0.2s both;
}

.js [data-load-media] img {
  animation: media-zoom 1.8s var(--ease-out) 0.2s both;
}

.js [data-load-media] .status-chip {
  animation: rise 0.9s var(--ease-out) 0.9s both;
}

.js [data-reveal]:not(.is-in) {
  opacity: 0;
}

.js [data-reveal].is-in {
  animation: rise 1s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

.is-prerendering *,
.is-prerendering *::before,
.is-prerendering *::after {
  animation-play-state: paused !important;
}

/* Page transitions (cross-document View Transitions, no JS) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-out 0.22s var(--ease-in-out) both;
}

::view-transition-new(root) {
  animation: vt-in 0.5s var(--ease-out) both;
}

::view-transition-group(site-header) {
  animation-duration: 0.5s;
  animation-timing-function: var(--ease-out);
}

@keyframes vt-out {
  to { opacity: 0; }
}

@keyframes vt-in {
  from { opacity: 0; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal]:not(.is-in) { opacity: 1; }

  /* Still rings in place of the ripple */
  .ripples circle { animation: none; opacity: 0.5; }
  .ripples circle:nth-child(1) { transform: scale(0.53); }
  .ripples circle:nth-child(2) { transform: scale(0.75); }
  .ripples circle:nth-child(3) { transform: scale(0.97); }
  .ripples circle:nth-child(4) { display: none; }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
