/* ==========================================================================
   Lovely Allied Health — design tokens + components
   Brand colours sampled from the live site (coral #F47E71, navy #000080,
   peach #FFEEE6), softened for a calmer, modern clinical feel.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License, see /assets/fonts/OFL-*.txt).
   Served from this site so no third party sees visitors' requests. */
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/Jost-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/Jost-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/Jost-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --coral-50: #fff6f2;
  --coral-100: #ffe9e1;
  --coral-200: #ffd3c6;
  --coral-400: #f5897b;
  --coral-500: #ef7565;
  --coral-700: #b8453a; /* AA on white for small text */

  --navy-900: #141852;
  --navy-800: #1e2366;
  --navy-600: #3a3f86;

  --sage-100: #e6f2ed;
  --sage-500: #5f9c86;

  --ink: #1f2240;
  --muted: #5a5e7a;
  --line: #ebe4e0;
  --surface: #ffffff;
  --bg: #fffaf7;

  --font-display: "Jost", "Futura", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(20 24 82 / 0.06), 0 2px 8px rgb(20 24 82 / 0.05);
  --shadow: 0 10px 30px -12px rgb(20 24 82 / 0.18);
  --shadow-lg: 0 30px 60px -20px rgb(20 24 82 / 0.25);

  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--navy-800); text-underline-offset: 3px; }
a:hover { color: var(--coral-700); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--coral-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tint { background: var(--coral-50); }
.section--sage { background: var(--sage-100); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-700);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center .lead { margin-inline: auto; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.25s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--coral-500);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover::after { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  border-color: var(--navy-800);
}
.btn--ghost::after { background: var(--navy-800); }
.btn--ghost:hover { --btn-fg: #fff; }

.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-900); }
.btn--light::after { background: var(--coral-200); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy-800);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 250 247 / 0.78);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(20 24 82 / 0.4); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { width: 64px; height: 64px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li { position: relative; }
.nav-links a,
.nav-links button.nav-sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font: 500 0.98rem/1 var(--font-body);
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links button.nav-sub-toggle:hover { background: var(--coral-100); color: var(--navy-900); }
.nav-links a[aria-current="page"] { color: var(--coral-700); }
.nav-sub-toggle svg { width: 14px; height: 14px; transition: transform 0.25s; }

.has-sub .submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
}
.has-sub .submenu a { display: flex; width: 100%; border-radius: var(--radius-sm); padding: 0.75rem 0.9rem; }
.has-sub:hover .submenu,
.has-sub:focus-within .submenu,
.has-sub.is-open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.has-sub.is-open .nav-sub-toggle svg { transform: rotate(180deg); }

.nav-links a.nav-cta {
  margin-left: 0.5rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.nav-links a.nav-cta:hover { background: var(--btn-bg); color: var(--btn-fg); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  place-items: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav-menu {
    position: fixed;
    inset: 78px 0 auto 0;
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
    padding: 1rem 1rem 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav-links a,
  .nav-links button.nav-sub-toggle { width: 100%; justify-content: space-between; padding: 1rem; font-size: 1.1rem; }
  .has-sub .submenu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: var(--coral-50);
    margin-top: 0.25rem;
  }
  .has-sub.is-open .submenu { display: block; }
  .nav-menu .nav-cta { width: 100%; justify-content: center; margin-top: 1rem; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 .accent { color: var(--coral-500); display: block; }
.hero .lead { margin-block: 1.25rem 2rem; }

.hero-blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-blob--a { width: 520px; height: 520px; background: var(--coral-200); top: -140px; right: -120px; }
.hero-blob--b { width: 380px; height: 380px; background: var(--sage-100); bottom: -120px; left: -120px; animation-duration: 22s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 30px) scale(1.08); }
}

.hero-visual { position: relative; }
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 240px 240px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--coral-100);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* The signature animation: a single pulse line that flows into the brand heart */
.pulse-line {
  position: absolute;
  inset: auto -8% 14% -18%;
  width: 126%;
  height: auto;
  pointer-events: none;
  overflow: visible;
}
.pulse-line path {
  fill: none;
  stroke: var(--coral-500);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 3.2s var(--ease) 0.4s forwards;
  filter: drop-shadow(0 6px 10px rgb(239 117 101 / 0.35));
}
.pulse-line .pulse-dot {
  fill: var(--coral-500);
  opacity: 0;
  animation: dot-in 0.4s ease 3.4s forwards, beat 1.6s ease-in-out 3.8s infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot-in { to { opacity: 1; } }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.45); }
  30% { transform: scale(1); }
  45% { transform: scale(1.25); }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  line-height: 1.3;
  animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; color: var(--navy-900); }
.float-card .icon-badge { flex: none; }
.float-card--a { top: 10%; left: -8%; }
.float-card--b { bottom: 4%; right: -4%; animation-delay: -3s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Icon badge */
.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--coral-100);
  color: var(--coral-700);
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--sage { background: var(--sage-100); color: #2f6b56; }
.icon-badge--navy { background: #e8e9f6; color: var(--navy-800); }

/* Trust strip ------------------------------------------------------------ */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.97rem;
  line-height: 1.35;
}
.trust-item strong { display: block; color: var(--navy-900); }

/* Split layout ----------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
  background: var(--coral-100);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media-frame:hover img { transform: scale(1.04); }
.media-frame--accent::before {
  content: "";
  position: absolute;
  inset: auto auto -18px -18px;
  width: 120px;
  height: 120px;
  border-radius: 30px;
  background: var(--coral-200);
  z-index: -1;
}

/* Cards ------------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--coral-200); }
.card h3 { margin-top: 1.25rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Service feature cards */
.service-feature {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.feature {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.feature-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--coral-100); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.05); }
.feature-body { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.feature-body h3 { font-size: 1.65rem; margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.tag-list li {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--coral-50);
  border: 1px solid var(--coral-100);
  font-size: 0.88rem;
  color: var(--navy-800);
}
.feature .link-arrow { margin-top: auto; padding-top: 0.5rem; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.check-list li::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--coral-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8453a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.check-list strong { color: var(--navy-900); font-weight: 600; }

/* Values grid */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

/* Physio journey timeline — line fills as you scroll */
.journey { position: relative; display: grid; gap: 1.25rem; max-width: 860px; margin-inline: auto; }
.journey::before,
.journey::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 32px;
  bottom: 32px;
  width: 3px;
  border-radius: 3px;
  background: var(--coral-100);
}
.journey::after {
  background: linear-gradient(var(--coral-400), var(--coral-500));
  transform-origin: top;
  transform: scaleY(var(--progress, 0));
}
.journey-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.journey-num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--coral-100);
  font: 500 1.35rem/1 var(--font-display);
  color: var(--coral-700);
  transition: background 0.4s, border-color 0.4s, color 0.4s, transform 0.4s var(--ease);
}
.journey-step.is-active .journey-num { background: var(--coral-500); border-color: var(--coral-500); color: #fff; transform: scale(1.06); }
.journey-body {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.journey-body h3 { margin: 0 0 0.25rem; }
.journey-body p { margin: 0; color: var(--muted); }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.page-hero .lead { margin-top: 1rem; }
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span[aria-hidden] { margin-inline: 0.4rem; }

.quote {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--coral-500);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.1rem;
}
.quote cite { display: block; margin-top: 0.5rem; font-size: 0.9rem; font-style: normal; color: var(--muted); }

/* CTA band */
.cta-band {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: #dfe1f5;
  overflow: hidden;
  isolation: isolate;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 56ch; }
.cta-band .btn-row { margin-top: 1.75rem; }
.cta-band .btn--ghost { --btn-fg: #fff; border-color: rgb(255 255 255 / 0.5); }
.cta-band .btn--ghost::after { background: #fff; }
.cta-band .btn--ghost:hover { --btn-fg: var(--navy-900); }
.cta-band svg.cta-heart {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 360px;
  z-index: -1;
  opacity: 0.18;
  animation: beat 2.4s ease-in-out infinite;
}

/* Forms ------------------------------------------------------------------ */
.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--navy-900); }
.field label .req { color: var(--coral-700); }
.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--coral-500); background: #fff; box-shadow: 0 0 0 4px var(--coral-100); }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form-status { margin-top: 1rem; font-weight: 600; color: #2f6b56; }
.form-status:empty { display: none; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
/* Spam trap: hidden from people and screen readers, visible to simple bots. */
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-fallback {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--coral-50);
  border: 1.5px solid var(--coral-200);
  border-radius: var(--radius);
}
.form-fallback:focus { outline: 3px solid var(--coral-500); outline-offset: 2px; }
.form-fallback h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--navy-900); }
.form-fallback p { margin: 0 0 1rem; }
.form-fallback .btn-row { margin-bottom: 0.5rem; }

/* Referral form ---------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-section { margin: 0 0 1.75rem; padding: 0; border: 0; min-width: 0; }
.form-section legend {
  width: 100%;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  font-family: var(--font-display, inherit);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-900);
  border-bottom: 1.5px solid var(--line);
}
.field-label { font-weight: 600; font-size: 0.95rem; color: var(--navy-900); }
.field-label .req { color: var(--coral-700); }
.field-hint { margin: 0; font-size: 0.85rem; color: var(--muted); }
.field-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.field select { appearance: auto; }
.field { min-width: 0; }
.field input[type="file"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.75rem;
  font: inherit;
  background: var(--bg);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
}
.field input[type="file"]:focus-visible { outline: 3px solid var(--coral-500); outline-offset: 2px; }
.choice-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.choice { display: inline-flex; align-items: flex-start; gap: 0.55rem; font-size: 0.98rem; cursor: pointer; }
.choice input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; flex: none; accent-color: var(--coral-700); }
.choice input:focus-visible { outline: 3px solid var(--coral-500); outline-offset: 2px; }
.consent-box {
  margin: 0 0 1.5rem;
  padding: 1.25rem;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}
.consent-box h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--navy-900); }
.consent-box p { margin: 0 0 0.75rem; font-size: 0.95rem; }
.consent-box .choice { font-weight: 600; color: var(--navy-900); }
.consent-box .req { color: var(--coral-700); }
.form-success {
  padding: 1.25rem;
  background: #eef6f2;
  border: 1.5px solid #9ccab5;
  border-radius: var(--radius);
}
.form-success:focus { outline: 3px solid var(--coral-500); outline-offset: 2px; }
.form-success h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: #2f6b56; }
.form-success p { margin: 0; }

.info-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: 1rem; align-items: center; }
.info-list a { font-weight: 600; text-decoration: none; }
.info-list small { display: block; color: var(--muted); font-size: 0.85rem; }

/* Policy */
.prose { max-width: 720px; }
.prose p { font-size: 1.1rem; }
/* Long-form policy pages (privacy policy) */
.policy-doc h2 { font-size: 1.45rem; margin: 2.5rem 0 0.75rem; }
.policy-doc ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.policy-doc li { margin-bottom: 0.5rem; font-size: 1.05rem; }
.policy-meta { color: var(--muted); font-size: 0.95rem !important; }
/* Unconfirmed draft text. CI fails while any remain (scripts/check_site.py). */
mark.todo { background: var(--coral-100); color: var(--coral-700); padding: 0 0.25em; border-radius: 4px; font-weight: 600; }
.policy-list { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 2rem 0; counter-reset: p; }
.policy-list li {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: p;
}
.policy-list li::before {
  content: counter(p);
  position: absolute;
  left: 1.25rem;
  top: 1.2rem;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral-100);
  color: var(--coral-700);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding-block: 4rem 2rem;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.footer-grid h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--coral-700); text-decoration: underline; }
.footer-brand img { width: 88px; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

/* Scroll reveal ---------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="left"] { transform: translateX(-28px); }
.js [data-reveal="right"] { transform: translateX(28px); }
.js [data-reveal="zoom"] { transform: scale(0.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid,
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .hero-visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
  .service-feature { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .values,
  .field-row,
  .footer-grid { grid-template-columns: 1fr; }
  .float-card--a { left: 0; top: 4%; }
  .float-card--b { right: 0; }
  .float-card { font-size: 0.85rem; padding: 0.7rem 0.9rem; }
  .journey::before, .journey::after { left: 23px; }
  .journey-step { grid-template-columns: 48px 1fr; gap: 0.9rem; }
  .journey-num { width: 48px; height: 48px; font-size: 1.1rem; }
}

/* Motion safety ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .pulse-line path { stroke-dashoffset: 0; }
  .pulse-line .pulse-dot { opacity: 1; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
