/* ==========================================================================
   Take A Leap Inc — site stylesheet
   Self-hosted Sora (display) + Manrope (text). No build step, no framework.
   ========================================================================== */

/* ---------- fonts (variable, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- design tokens ---------- */
:root {
  --navy: #14324e;
  --navy-deep: #0c2238;
  --navy-soft: #1e466b;
  --ink: #22344a;
  --teal: #0e9aa7;
  --teal-dark: #0b838e;
  --teal-tint: #e6f5f7;
  --red: #d8412f;

  --paper: #ffffff;
  --paper-soft: #f6f8fb;
  --paper-tint: #eef3f8;
  --line: #dde5ee;
  --line-strong: #c6d3e0;
  --muted: #5b6b80;
  --muted-soft: #8395a9;

  --shadow-xs: 0 1px 2px rgba(12, 34, 56, .06);
  --shadow-sm: 0 2px 10px rgba(12, 34, 56, .07);
  --shadow-md: 0 14px 34px rgba(12, 34, 56, .11);
  --shadow-lg: 0 26px 60px rgba(12, 34, 56, .16);
  --shadow-teal: 0 8px 22px rgba(14, 154, 167, .32);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --display: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell: 1240px;
  --gutter: clamp(1.15rem, 4vw, 3.25rem);
  --section-y: clamp(2.25rem, 3.4vw, 3.5rem);
  --header-h: 72px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* The UA rule is `[hidden] { display: none }` — specificity (0,1,0). Any class
   that sets display (.form, .success, .field) matches that specificity and, as
   an author rule, WINS. That silently breaks el.hidden = true everywhere.
   Restore the attribute so hiding actually hides. */
[hidden] { display: none !important; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: var(--navy); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

a, button, [role="button"], label { -webkit-tap-highlight-color: rgba(14, 154, 167, .16); touch-action: manipulation; }

::selection { background: rgba(14, 154, 167, .22); }

/* ---------- typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 1.35rem + 3.1vw, 3.5rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.35rem); }
h3 { font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); line-height: 1.25; }
h4 { font-size: 1rem; line-height: 1.35; }

p { text-wrap: pretty; }

.lede {
  font-size: clamp(1.03rem, .98rem + .35vw, 1.2rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--text);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow--light { color: #7fd6de; }

.measure { max-width: 68ch; }

/* ---------- layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2rem, 3vw, 2.75rem); }
.section--soft { background: var(--paper-soft); }
.section--tint { background: var(--paper-tint); }
.section--navy { background: var(--navy-deep); color: #c3d3e2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lede { color: #a9bfd2; }
.section--navy .section__head p { color: #a9bfd2; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.5rem, 2.4vw, 2.15rem);
}

.section__head p { margin-top: .9rem; }

.stack { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.stack--tight { gap: .65rem; }

.grid { display: grid; gap: clamp(.9rem, 1.6vw, 1.25rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.split--top { align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
/* The appointment form is long and its time-slot grid packs better when
   wide: at this ratio the slots fit 7-per-row instead of 5, the form loses
   ~100px, and the sidebar gains ~70px -- closing the gap between the two
   columns by 175px. */
.split--formwide { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-deep);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 700;
}
.skip:focus { left: 0; color: #fff; }

/* ==========================================================================
   Header — identical on every page
   ========================================================================== */

.topbar {
  background: var(--navy-deep);
  color: #b8cadb;
  font-size: .8rem;
  line-height: 1.5;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  padding-block: .35rem;
  flex-wrap: wrap;
}

.topbar a { color: #fff; font-weight: 700; }
.topbar a:hover { color: #7fd6de; }

.topbar__alert { display: inline-flex; align-items: center; gap: .5rem; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ff6b5b;
  box-shadow: 0 0 0 4px rgba(224, 72, 59, .2);
}

.dot--open { background: #2fbe6c; box-shadow: 0 0 0 4px rgba(47, 190, 108, .22); }
.dot--closed { background: #8ba2b6; box-shadow: none; }

.topbar__right { display: inline-flex; align-items: center; gap: 1rem; }

/* language toggle */
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.lang button {
  min-width: 42px;
  min-height: 30px;
  padding: 0 .65rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  color: #cfdce8;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.lang button[aria-pressed="true"] { background: var(--teal); color: #fff; }
.lang button:hover:not([aria-pressed="true"]) { background: rgba(255, 255, 255, .1); color: #fff; }

/* main bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}

.site-header[data-stuck="true"] {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, .95);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: .25rem; }

.nav a {
  position: relative;
  padding: .55rem .8rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}

.nav a:hover { color: var(--navy); background: var(--paper-soft); }

.nav a::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}

.nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.header__actions { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }

.header__tel {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}
.header__tel:hover { color: var(--teal); }

/* hamburger */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #fff;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.drawer[data-open="true"] { display: block; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 34, 56, .5);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 1.15rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  padding-top: max(1.15rem, env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .32s var(--ease);
}

.drawer[data-anim="in"] .drawer__scrim { opacity: 1; }
.drawer[data-anim="in"] .drawer__panel { transform: translateX(0); }

.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.drawer__close {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--navy);
}

.drawer nav { display: flex; flex-direction: column; gap: .15rem; }

.drawer nav a {
  padding: .85rem .9rem;
  border-radius: var(--r-md);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.drawer nav a:hover { background: var(--paper-soft); }
.drawer nav a[aria-current="page"] { background: var(--teal-tint); color: var(--teal-dark); font-weight: 700; }

.drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: .8rem; }

.drawer .lang { border-color: var(--line-strong); align-self: flex-start; }
.drawer .lang button { color: var(--muted); }
/* must re-state the pressed colour: the rule above has equal specificity to
   `.lang button[aria-pressed="true"]` and would otherwise win on order */
.drawer .lang button[aria-pressed="true"] { color: #fff; }
.drawer .lang button:hover:not([aria-pressed="true"]) { background: var(--paper-soft); color: var(--navy); }

body[data-drawer-open="true"] { overflow: hidden; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--r-pill);
  font-family: var(--text);
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-teal); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; box-shadow: 0 12px 28px rgba(14, 154, 167, .42); transform: translateY(-2px); }

.btn--navy { background: var(--navy-deep); color: #fff; }
.btn--navy:hover { background: var(--navy); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--white { background: #fff; color: var(--navy-deep); }
.btn--white:hover { background: #eef6f7; color: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--outline { border-color: var(--line-strong); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-tint); }

.btn--ghost-light { border-color: rgba(255, 255, 255, .32); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }

.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: .86rem; }
.btn--lg { min-height: 54px; padding: 0 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn .arrow { transition: transform .22s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--teal-dark);
}
.link-arrow .arrow { transition: transform .22s var(--ease); }
.link-arrow:hover { color: var(--teal-dark); }
.link-arrow:hover .arrow { transform: translateX(4px); }

.link-arrow--light { color: #7fd6de; }
.link-arrow--light:hover { color: #fff; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  display: grid;
  /* Exact halves so the padding calc below can line the copy up with .shell */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  /* Bounded on both ends: tall enough to feel like a hero, never taller than
     the viewport (the header eats ~110px, so cap well under 100vh). */
  min-height: clamp(400px, 46vh, 540px);
  background: var(--navy-deep);
}

.hero__copy {
  background: var(--navy-deep);
  color: #fff;
  padding-block: clamp(2.25rem, 4vw, 3.75rem);
  /* Left edge tracks .shell so the headline starts on the same vertical line as
     every section heading below it, at any viewport width. */
  padding-left: max(var(--gutter), calc(50vw - (var(--shell) / 2) + var(--gutter)));
  padding-right: var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero__copy > * { position: relative; z-index: 1; }

.hero__copy::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto auto -28% -18%;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(closest-side, rgba(14, 154, 167, .38), transparent 70%);
  pointer-events: none;
}

.hero__inner { max-width: 34rem; width: 100%; display: flex; flex-direction: column; gap: 1.5rem; }

.hero h1 { color: #fff; }

.hero__lede { font-size: clamp(1.02rem, .96rem + .4vw, 1.15rem); line-height: 1.75; color: #b9cbdb; max-width: 32rem; }

.mark {
  color: #fff;
  font-weight: 700;
  background: rgba(14, 154, 167, .3);
  box-shadow: 0 0 0 4px rgba(14, 154, 167, .3);
  border-radius: 3px;
}

.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* The photo is taken OUT OF FLOW on purpose. hero-care.jpg is portrait
   (1600x2312); left in flow it dictates the grid row height and stretches the
   hero past the viewport, stranding the copy in a sea of blank navy. Absolute
   positioning lets the copy column decide the height and the photo just fills
   whatever box it gets. */
.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--navy-soft);
  border-radius: var(--r-xl);
  /* Same vertical inset as .hero__copy's padding-block, so the photo is exactly
     as tall as the text block beside it. Right edge tracks .shell, mirroring
     the headline's left edge. */
  margin-block: clamp(2.25rem, 4vw, 3.75rem);
  margin-right: max(var(--gutter), calc(50vw - (var(--shell) / 2) + var(--gutter)));
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

/* alert card */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  background: rgba(224, 72, 59, .16);
  border: 1px solid rgba(255, 138, 128, .38);
  max-width: 32rem;
}

.alert p { font-size: .84rem; line-height: 1.65; color: #ffd9d4; }
.alert strong { color: #fff; }
.alert a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.alert a:hover { color: #fff; }
.alert .dot { margin-top: .45rem; }

.alert--light { background: #fdf0ee; border-color: #f4c7c0; }
.alert--light p { color: #7d2b20; }
.alert--light strong { color: #58180f; }
.alert--light a { color: var(--red); }

/* page hero (interior pages) */
.page-hero {
  background: var(--navy-deep);
  color: #b9cbdb;
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(closest-side, rgba(14, 154, 167, .3), transparent 70%);
  pointer-events: none;
}

.page-hero .shell { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-top: .8rem; }
.page-hero p { color: #b9cbdb; line-height: 1.8; }

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  /* was `end`, which dropped a 2-line paragraph to the bottom of a 3-line
     headline and left a 171px hole above it */
  align-items: center;
}

/* ==========================================================================
   Cards & tiles
   ========================================================================== */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.15rem, 1.7vw, 1.45rem);
  display: flex;
  flex-direction: column;
  gap: .65rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.card--soft { background: var(--paper-soft); }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.card--accent { position: relative; overflow: hidden; }
.card--accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--navy-soft));
}

.card p { font-size: .91rem; line-height: 1.62; color: var(--muted); }

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.card__num {
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--teal);
}

.tile-wide { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 1.1rem; }
.tile-wide > div { display: flex; flex-direction: column; gap: .5rem; }

/* CTA card that sits inside a grid */
.card--cta {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy-soft) 100%);
  border-color: transparent;
  color: #fff;
  justify-content: center;
  gap: 1.1rem;
}
.card--cta p { color: rgba(255, 255, 255, .9); font-size: 1rem; }

/* support pill list */
.support {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-md);
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition: background .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}

.support strong { color: #fff; font-size: .95rem; font-weight: 700; }
.support p { font-size: .86rem; line-height: 1.6; color: #a9bfd2; }
.support:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .34); transform: translateY(-3px); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  transition: all .18s var(--ease);
}

.chip:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-tint); }
.chip[aria-pressed="true"], .chip.is-active { border-color: var(--teal); background: var(--teal-tint); color: var(--navy); }

.chip--light { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #cfe0ee; }
.chip--light:hover { border-color: #7fd6de; background: rgba(14, 154, 167, .22); color: #fff; }

/* media frames */
.frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-tint);
  box-shadow: var(--shadow-sm);
}

.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 3 / 2; }
.frame--square { aspect-ratio: 1 / 1; }

/* people */
.person { display: flex; flex-direction: column; gap: 0; overflow: hidden; padding: 0; }
.person .frame { border-radius: 0; box-shadow: none; aspect-ratio: 1 / 1; }
.person__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; }
.person__role { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }

.person-row {
  display: flex;
  align-items: center;
  gap: .95rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.person-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-xs); }

.person-row img,
.person-row .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--paper-tint);
}

.avatar {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--teal-dark);
  background: var(--teal-tint);
}

.person-row h3 { font-size: 1rem; }
.person-row span { font-size: .8rem; color: var(--muted); }

/* stat / fact list */
.facts { display: flex; flex-direction: column; gap: .55rem; }
.facts p { font-size: .92rem; line-height: 1.7; }

.status { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .82rem; }
.status__label { font-weight: 800; letter-spacing: .04em; }
.status__label[data-open="true"] { color: #2fbe6c; }
.status__label[data-open="false"] { color: var(--muted-soft); }
.status__detail { color: var(--muted-soft); }

.section--navy .status__detail { color: #9fb5c9; }

/* ==========================================================================
   Visit / map
   ========================================================================== */

/* Two real columns, not a floating card over the map.

   The old version absolutely positioned the plate on top of a fixed-height
   iframe. The plate cleared the map's bottom edge by only ~7px at default text
   size, so any zoom, any longer address, any wrapped line pushed it straight
   through the map and into the footer — and it hid a third of the map besides.
   Side-by-side columns cannot overlap at any zoom level. */
.visit { background: var(--navy-deep); color: #cfdce8; padding-block: var(--section-y); }

.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: stretch;
}

.visit__plate {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #cfdce8;
  border-radius: var(--r-xl);
  padding: clamp(1.35rem, 2.2vw, 1.9rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .75rem;
}

/* The iframe is taken out of flow for the same reason as the hero photo: left
   in flow it would dictate the row height instead of filling it. */
.visit__map {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--navy-soft);
  min-height: 340px;
}

.visit__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(.92);
}

.visit__plate h2 { color: #fff; }
.visit__plate a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .38); }
.visit__plate a:hover { color: #7fd6de; }
.visit__plate p { font-size: .89rem; line-height: 1.7; }
.visit__note { font-size: .82rem; color: #9fb5c9; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: .9rem; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form { display: flex; flex-direction: column; gap: 1.25rem; }

.field { display: flex; flex-direction: column; gap: .4rem; }

.field > label,
.form__step > label,
.label {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--navy);
}

.input,
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: .95rem;
  font-family: var(--text);
  color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}

textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235b6b80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
  cursor: pointer;
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 154, 167, .16);
}

::placeholder { color: var(--muted-soft); opacity: 1; }

[data-invalid="true"],
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--red);
  background: #fff7f6;
}

[data-invalid="true"]:focus,
input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(216, 65, 47, .14); }

.field__error {
  font-size: .8rem;
  font-weight: 600;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: .35rem;
}

.form__error {
  padding: .8rem 1rem;
  border-radius: var(--r-md);
  background: #fdf0ee;
  border: 1px solid #f4c7c0;
  color: #7d2b20;
  font-size: .88rem;
  font-weight: 600;
}

.form__step {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}

/* Some cells carry a visible label and some don't; bottom-aligning keeps the
   controls on one line instead of the label pushing its select down. */
.form__step .grid { align-items: end; }

.form__foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form__hint { font-size: .82rem; color: var(--muted); }

.form__note { font-size: .84rem; color: var(--muted); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }

.slot {
  min-height: 46px;
  padding: .5rem .4rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font-size: .86rem;
  font-weight: 700;
  color: var(--navy);
  transition: all .16s var(--ease);
}

.slot:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-tint); }
.slot[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: #fff; }
.slot:disabled { color: var(--muted-soft); cursor: not-allowed; opacity: .6; }

/* success panel */
.success {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.success__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
}

.success pre {
  width: 100%;
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-x: auto;
}

.success__actions { display: flex; gap: .65rem; flex-wrap: wrap; }

/* contact aside */
.aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;                 /* don't stretch, so sticky can travel */
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
}

.aside__block {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.35rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.aside__block h2 { font-size: 1.05rem; }
.aside__block p { font-size: .9rem; line-height: 1.7; color: var(--muted); }

.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.map-frame .map { height: 220px; }

/* Placeholder that stands in for the Google embed until it is needed. */
.map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: grid;
  place-items: center;
  /* shown only while the deferred iframe is still arriving */
  background: var(--paper-tint);
}

.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* the homepage map column */
.visit__map .map { min-height: 340px; background: var(--navy-soft); }

/* ==========================================================================
   Footer — identical on every page
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: #b6c8d8;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) calc(1.6rem + env(safe-area-inset-bottom));
}

.site-footer a { color: #d3dfe9; }
.site-footer a:hover { color: #7fd6de; }

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.site-footer__brand { display: flex; flex-direction: column; gap: .85rem; }
.site-footer__brand > a { display: inline-flex; align-items: center; gap: .65rem; }
.site-footer__brand img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 50%; }
.site-footer__brand strong { font-family: var(--display); font-size: 1rem; color: #fff; font-weight: 700; }
.site-footer__brand p { font-size: .85rem; line-height: 1.7; color: #9fb5c9; max-width: 30ch; }

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.site-footer__col { display: flex; flex-direction: column; gap: .55rem; }

.site-footer__col h2 {
  font-family: var(--text);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7fd6de;
  margin-bottom: .2rem;
}

.site-footer__col a,
.site-footer__col p { font-size: .875rem; line-height: 1.65; }
.site-footer__col p { color: #9fb5c9; }

.site-footer__bottom {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8rem;
  color: #8ba2b6;
  display: flex;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  flex-wrap: wrap;
}

.site-footer__bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.site-footer__bottom a:hover { color: #fff; }

/* ==========================================================================
   Client-side navigation transition
   ========================================================================== */

#main { animation: page-in .34s var(--ease) both; }

body[data-navigating="true"] #main { opacity: .45; transition: opacity .18s var(--ease); }

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.route-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--teal), #7fd6de);
  z-index: 200;
  opacity: 0;
  transition: width .25s var(--ease), opacity .3s var(--ease);
}

.route-progress[data-active="true"] { opacity: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: flex; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }

  /* the phone link collapses to its icon so it survives on narrow bars */
  .header__tel {
    width: 46px;
    height: 46px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: #fff;
  }
  .header__tel span { display: none; }
}

/* Below this the brand + phone + CTA + burger no longer fit on one row, so the
   text CTA steps aside; the drawer carries it, full-width. */
@media (max-width: 700px) {
  .header__actions .btn { display: none; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__inner { max-width: none; }
  .hero__copy { padding-inline: var(--gutter); }
  .hero__media { min-height: 300px; order: -1; margin: 0; border-radius: 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--wide, .page-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  /* stacked: the sidebar is just the next block, nothing to stick to */
  .aside { position: static; }
  .split--flip > *:first-child { order: 2; }
  .visit__grid { grid-template-columns: minmax(0, 1fr); }
  .visit__map { min-height: 300px; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topbar__inner { justify-content: center; row-gap: .35rem; text-align: center; }
  .topbar__alert { font-size: .76rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .tile-wide { flex-direction: column; }
  .section__head { align-items: flex-start; }
  .btn--block-mobile { width: 100%; }
  .success__actions .btn { width: 100%; }
}

@media (max-width: 560px) {
  .site-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .hero__actions .btn { width: 100%; }
  .brand span { font-size: .95rem; }
  .brand img { width: 38px; height: 38px; }
}

/* ---------- mobile photo gallery ----------
   Stacked, the three who-we-are photos became ~440px each: 1300px of pictures
   in a row with no words between them. A snap-scrolling strip keeps them large
   and swipeable in ~300px, and the sliver of the next photo signals it moves. */
@media (max-width: 760px) {
  .gallery {
    display: flex;
    gap: .6rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* bleed to the screen edges, then pad back so photo 1 lines up with the text */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .gallery::-webkit-scrollbar { display: none; }

  .gallery > * {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }
  .gallery .frame--tall { aspect-ratio: 4 / 5; }
}

/* Tablets keep all three photos on one row; the generic .grid--3 drops to two
   columns at this width, which stacked them into a 1031px tower. */
@media (min-width: 761px) and (max-width: 980px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- compact mobile footer ----------
   Measured at 390px the footer was 1163px tall - 138% of the screen, a whole
   extra screen to scroll past. The Explore list alone was 333px because six
   44px links sat in a single ladder. Two-up columns keep the 44px tap targets
   while halving the height. */
@media (max-width: 760px) {
  .site-footer { padding-block: 2rem calc(1.2rem + env(safe-area-inset-bottom)); }
  .site-footer__top { gap: 1.2rem; }

  /* Stacked, the three groups ran together as one long ribbon of text.
     Hairlines give each one a visible start without adding height. */
  .site-footer__cols { gap: 0; }
  .site-footer__col + .site-footer__col {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: .95rem;
    padding-top: .95rem;
  }
  .site-footer__brand {
    gap: .6rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding-bottom: .95rem;
  }
  .site-footer__brand p { max-width: none; }
  .site-footer__col { gap: .1rem; }
  .site-footer__col h2 { margin-bottom: .35rem; }

  /* the nav list goes two-up instead of one long ladder */
  .site-footer__col--nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .1rem 1rem;
  }
  .site-footer__col--nav h2 { grid-column: 1 / -1; }

  .site-footer__bottom {
    margin-top: 1.4rem;
    padding-top: .9rem;
    gap: .5rem 1rem;
  }
}

/* ---------- compact mobile chrome ----------
   The top strip was wrapping to two rows (82px) and the bar added 73px more:
   155px, 18% of a 844px screen, gone before any content. On a phone the strip
   keeps only the thing that must never be hunted for - the emergency number.
   The office-status pill still shows in the footer (and in the contact /
   appointment sidebars), and EN/ES moves into the drawer, where it already is. */
@media (max-width: 760px) {
  .topbar [data-status],
  .topbar .lang { display: none; }

  .topbar { font-size: .78rem; }
  .topbar__inner {
    min-height: 0;
    padding-block: .15rem;
    justify-content: center;
    row-gap: 0;
  }
  .topbar__right { width: auto; justify-content: center; gap: 0; }

  .site-header__inner { min-height: 56px; }
  .brand { gap: .55rem; }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: .92rem; }
  .header__tel { width: 44px; height: 44px; }
  .burger { width: 44px; height: 44px; }
  .header__actions { gap: .5rem; }

  /* the drawer is now the only home for the language switch, so give it room */
  .drawer .lang button { min-width: 56px; }
}

/* ---------- phone accessibility floors ----------
   Audited at 320/360/390/412/430px: the 911 link was an 18x17px target, the
   EN/ES buttons 42x30, the logo link 38px tall, and the eyebrow labels 11.2px.
   Apple and WCAG both put the practical floor at 44px and ~12px. */
@media (max-width: 760px) {
  .eyebrow { font-size: .75rem; letter-spacing: .16em; }
  .person__role { font-size: .76rem; }

  .lang button { min-height: 44px; min-width: 48px; }
  .brand { min-height: 44px; }
  .drawer__close { width: 46px; height: 46px; }

  /* Grow the hit area of inline links without changing how they look — the
     emergency number especially must be easy to hit in a hurry. */
  /* The emergency number sits in a one-line flex row, so inline-flex here is
     safe and guarantees the 44px floor regardless of font metrics. */
  .topbar__alert a,
  .site-footer__bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: .5rem;
    margin-inline: -.5rem;
    margin-block: -.4rem;
  }

  /* These live inside multi-line paragraphs, where a 44px box would break the
     text flow. WCAG 2.5.8 exempts links inline in a sentence; padding still
     widens the hit area without disturbing the line box. */
  .alert a,
  .visit__plate a,
  .aside__block a {
    padding: .35rem .25rem;
    margin: -.35rem -.25rem;
  }

  /* chips, arrow links and footer nav were all 23-40px tall */
  .chip { min-height: 44px; }
  .slot { min-height: 46px; }
  .link-arrow { min-height: 44px; align-items: center; }
  .site-footer__col a { min-height: 44px; display: inline-flex; align-items: center; }
  .drawer nav a { min-height: 50px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  input, select, textarea { font-size: 16px; }
  .person-row { padding: .75rem .85rem; }
}

@media (max-width: 380px) {
  .topbar { font-size: .74rem; }
  .brand span { display: none; }
}

/* iOS: avoid the sticky header eating the viewport on short landscape screens */
@media (max-height: 460px) and (orientation: landscape) {
  .site-header { position: static; }
  .hero { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  #main { animation: none; }
}

@media print {
  .site-header, .topbar, .drawer, .site-footer, .burger, .route-progress { display: none !important; }
  body { color: #000; }
}
