/* ==========================================================================
   Ivy House — Caring in Partnership
   Colours are taken from the Caring in Partnership logo.
   ========================================================================== */

:root {
  /* Brand */
  --plum: #6b1d7a;
  --plum-700: #4f1259;
  --plum-100: #efe2f2;
  --plum-50: #f8f1f9;
  --orange: #f07d14;
  --orange-text: #a84d05;
  --orange-100: #fde8d4;
  --sun: #f7c21e;
  --sun-100: #fdf1c7;
  --sky: #1a73be;
  --sky-100: #dcebf8;
  --leaf: #4e9a2a;
  --leaf-700: #336b18;
  --leaf-100: #e1f0d6;

  /* Neutrals */
  --ink: #2b1b30;
  --muted: #5b4c62;
  --line: #e7dcea;
  --paper: #fbf8fc;
  --card: #ffffff;

  /* Type */
  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape */
  --r-panel: 40px;
  --r-card: 24px;
  --r-media: 18px;
  --shadow: 0 22px 44px -26px rgba(79, 18, 89, 0.45);
  --shadow-sm: 0 10px 24px -16px rgba(79, 18, 89, 0.4);

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
}

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--plum-700);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; max-width: 68ch; }

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: var(--plum);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; color: #fff; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tint { background: var(--plum-50); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.6; }

/* Inside content sections the opening paragraph uses the same font, size and
   colour as the paragraphs that follow it. The larger intro style stays only for
   page introductions and one-line section subtitles. */
.split .lead:not([style]),
.offer-detail .lead,
.clinician .lead,
.team-panel-copy .lead {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
}
.section-head--split > div { max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--plum);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn:hover { --btn-bg: var(--plum-700); color: var(--btn-fg); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--plum); border-color: currentColor; }
.btn--ghost:hover { --btn-bg: var(--plum); --btn-fg: #fff; border-color: var(--plum); }

.btn--sun { --btn-bg: var(--sun); --btn-fg: var(--ink); }
.btn--sun:hover { --btn-bg: #ffd54d; --btn-fg: var(--ink); }

.btn--white { --btn-bg: #fff; --btn-fg: var(--plum-700); }
.btn--white:hover { --btn-bg: var(--sun); --btn-fg: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--plum);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--sun);
  text-underline-offset: 6px;
  min-height: 44px;
}
.text-link:hover { text-decoration-color: var(--plum); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), box-shadow var(--t-med);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header's box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 248, 252, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -18px rgba(79, 18, 89, 0.6); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--plum-700);
  flex: none;
}
.brand img { width: 132px; height: auto; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}
.brand-name strong { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.brand-name span { font-size: 0.8rem; color: var(--muted); }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-list a:hover { background: var(--plum-100); color: var(--plum-700); }
.nav-list a[aria-current="page"] { background: var(--plum); color: #fff; }
.nav-list .nav-cta a { background: var(--sun); color: var(--ink); margin-left: 6px; padding-inline: 18px; }
.nav-list .nav-cta a:hover { background: #ffd54d; }
.nav-list .nav-cta a[aria-current="page"] { background: var(--plum); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--plum);
  background: transparent;
  color: var(--plum);
  font: 700 1rem var(--font-body);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--paper);
    padding: 24px var(--gutter) 40px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 6px; max-width: 520px; margin-inline: auto; }
  .nav-list a { font-size: 1.25rem; font-family: var(--font-display); font-weight: 500; padding: 12px 20px; min-height: 56px; }
  .nav-list .nav-cta a { margin: 12px 0 0; justify-content: center; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .brand img { width: 104px; }
  .brand-name strong { font-size: 1.1rem; }
  .brand-name span { display: none; }
}

/* ---------- Home hero ---------- */
.hero { padding: clamp(12px, 2vw, 24px) 0 0; }
.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-panel);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px) clamp(48px, 6vw, 80px);
  background:
    radial-gradient(60% 70% at 8% 10%, #f0d9f5 0%, transparent 60%),
    radial-gradient(50% 60% at 95% 0%, #ffe3c7 0%, transparent 65%),
    radial-gradient(55% 65% at 100% 100%, #d6f0e6 0%, transparent 60%),
    radial-gradient(50% 60% at 0% 100%, #dceaf8 0%, transparent 60%),
    #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--plum-700);
  margin-bottom: 24px;
}
.hero-kicker svg { width: 22px; height: 22px; color: var(--leaf); }
.hero-title {
  font-size: clamp(3.6rem, 10.5vw, 8.4rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--plum);
}
.hero-title span { display: block; }
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  color: var(--orange-text);
  margin-bottom: 20px;
  max-width: 30ch;
}
.hero-copy .lead { color: var(--ink); max-width: 46ch; margin-bottom: 32px; }

/* The fanned card stack — the tagline split across three photos */
.hero-fan {
  position: relative;
  height: clamp(400px, 46vw, 560px);
  isolation: isolate;
}
.fan-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(170px, 17vw, 230px);
  margin: 0;
  background: #fff;
  border-radius: 26px;
  padding: 10px 10px 0;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%) translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg));
  transition: transform 500ms var(--ease-out);
}
.fan-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
}
.fan-card figcaption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--plum-700);
  text-align: center;
  padding: 12px 6px 14px;
  line-height: 1.2;
}
.fan-card:nth-child(1) { --x: -56%; --y: 6%; --r: -9deg; z-index: 1; }
.fan-card:nth-child(2) { --x: 0%; --y: -4%; --r: 0deg; z-index: 3; width: clamp(190px, 19vw, 260px); }
.fan-card:nth-child(3) { --x: 56%; --y: 8%; --r: 8deg; z-index: 2; }
/* Side cards sit behind the centre card, so their captions hug the outer edge */
.fan-card figcaption { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.fan-card:nth-child(1) figcaption { text-align: left; padding-left: 12px; }
.fan-card:nth-child(3) figcaption { text-align: right; padding-right: 12px; }
.fan-card:nth-child(1) figcaption span { color: var(--sky); }
.fan-card:nth-child(2) figcaption span { color: var(--orange-text); }
.fan-card:nth-child(3) figcaption span { color: var(--leaf-700); }
.hero-fan:hover .fan-card:nth-child(1) { --x: -64%; --r: -12deg; }
.hero-fan:hover .fan-card:nth-child(3) { --x: 64%; --r: 11deg; }
.hero-tagline { text-wrap: balance; }

/* One orchestrated entrance on load */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise 700ms var(--ease-out) both; }
  .js .hero-copy > *:nth-child(2) { animation-delay: 80ms; }
  .js .hero-copy > *:nth-child(3) { animation-delay: 160ms; }
  .js .hero-copy > *:nth-child(4) { animation-delay: 240ms; }
  .js .hero-copy > *:nth-child(5) { animation-delay: 320ms; }
  .js .fan-card { animation: deal 900ms var(--ease-out) both; }
  .js .fan-card:nth-child(1) { animation-delay: 320ms; }
  .js .fan-card:nth-child(2) { animation-delay: 180ms; }
  .js .fan-card:nth-child(3) { animation-delay: 440ms; }
}
/* Entrances move from a visible state, so the page is complete even if animations never run */
@keyframes rise { from { transform: translateY(14px); } }
@keyframes deal {
  from { transform: translate(-50%, -38%) rotate(0deg) scale(0.94); }
}

.leaf-deco {
  position: absolute;
  color: var(--leaf);
  opacity: 0.9;
  pointer-events: none;
}
.leaf-deco--a { width: 70px; top: 26px; right: 30px; transform: rotate(18deg); }
.leaf-deco--b { width: 46px; bottom: 30px; left: 46%; transform: rotate(-30deg); color: var(--sun); }

@media (max-width: 960px) {
  .hero-panel { grid-template-columns: 1fr; text-align: left; }
  .hero-fan { height: clamp(340px, 80vw, 460px); }
  .fan-card { width: clamp(150px, 34vw, 230px); }
  .fan-card:nth-child(2) { width: clamp(170px, 38vw, 250px); }
  .fan-card:nth-child(1) { --x: -56%; }
  .fan-card:nth-child(3) { --x: 56%; }
}
@media (max-width: 520px) {
  .hero-fan { height: clamp(290px, 82vw, 360px); }
  .fan-card { padding: 6px 6px 0; border-radius: 18px; }
  .fan-card img { border-radius: 13px; }
  .fan-card figcaption { font-size: 0.85rem; padding: 8px 4px 10px; }
  .leaf-deco { display: none; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
}
.trust-item svg { width: 40px; height: 40px; flex: none; }
.trust-item strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--plum-700); line-height: 1.2; }
.trust-item span { font-size: 0.95rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 860px) { .trust-strip { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(12px, 2vw, 24px) 0 0; }
.page-hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-panel);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 72px);
  background:
    radial-gradient(55% 80% at 0% 0%, var(--hero-a, #f0d9f5) 0%, transparent 65%),
    radial-gradient(55% 80% at 100% 100%, var(--hero-b, #ffe3c7) 0%, transparent 65%),
    #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.page-hero-panel.no-media { grid-template-columns: 1fr; }
.page-hero-panel h1 { margin-bottom: 16px; }
.page-hero-panel .lead { color: var(--ink); margin-bottom: 0; }
.page-hero-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  border: 8px solid #fff;
}
.crumbs { margin-bottom: 18px; font-size: 0.95rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--plum-700); font-weight: 700; }
@media (max-width: 860px) {
  .page-hero-panel { grid-template-columns: 1fr; }
  .page-hero-media { max-width: 460px; }
}

.theme-sky { --hero-a: #dceaf8; --hero-b: #e1f0d6; }
.theme-sun { --hero-a: #fdf1c7; --hero-b: #ffe3c7; }
.theme-leaf { --hero-a: #e1f0d6; --hero-b: #dceaf8; }
.theme-orange { --hero-a: #ffe3c7; --hero-b: #f0d9f5; }

/* ---------- Two-column feature ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split--media-left .split-media { order: -1; }
.split-media img,
.split-media video {
  width: 100%;
  border-radius: var(--r-card);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.split-media--tall img { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--media-left .split-media { order: 0; }
}

/* ---------- PACE ---------- */
.pace {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.pace li {
  background: var(--card);
  border-radius: 20px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
}
.pace-letter {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 6px;
}
.pace li:nth-child(1) .pace-letter { color: var(--sky); }
.pace li:nth-child(2) .pace-letter { color: var(--orange); }
.pace li:nth-child(3) .pace-letter { color: var(--leaf); }
.pace li:nth-child(4) .pace-letter { color: var(--plum); }
.pace-word { font-weight: 700; color: var(--ink); }
.pace-desc { display: block; font-size: 0.92rem; color: var(--muted); line-height: 1.45; margin-top: 4px; }
@media (max-width: 640px) { .pace { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* In a half-width column (home page) four tiles get too narrow for the descriptions */
.split .pace { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.value {
  --accent: var(--plum);
  --accent-bg: var(--plum-50);
  position: relative;
  background: var(--card);
  border-radius: var(--r-card);
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.value::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--accent-bg);
  z-index: 0;
}
.value > * { position: relative; z-index: 1; }
.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent-bg);
  color: var(--accent);
  margin-bottom: 18px;
}
.value-icon svg { width: 28px; height: 28px; }
.value h3 { color: var(--ink); margin-bottom: 8px; }
.value p { color: var(--muted); margin: 0; }
.value--sky { --accent: var(--sky); --accent-bg: var(--sky-100); }
.value--orange { --accent: var(--orange-text); --accent-bg: var(--orange-100); }
.value--leaf { --accent: var(--leaf-700); --accent-bg: var(--leaf-100); }
.value--sun { --accent: #8a6500; --accent-bg: var(--sun-100); }
.value--plum { --accent: var(--plum); --accent-bg: var(--plum-100); }
/* Nine values (and six perks) divide evenly into three columns, so keep three
   down to small tablets, then stack */
@media (max-width: 700px) { .values { grid-template-columns: 1fr; } }

/* ---------- Offer blocks ---------- */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.offer {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
a.offer:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.offer img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.offer-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.offer-body h3 { margin-bottom: 8px; }
.offer-body p { color: var(--muted); margin-bottom: 18px; }
.offer-body .text-link { margin-top: auto; }
.offer-tag {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.offer:nth-child(1) .offer-tag { background: var(--plum-100); color: var(--plum-700); }
.offer:nth-child(2) .offer-tag { background: var(--sky-100); color: #0f4f86; }
.offer:nth-child(3) .offer-tag { background: var(--leaf-100); color: var(--leaf-700); }
@media (max-width: 900px) { .offers { grid-template-columns: 1fr; } .offer { display: grid; grid-template-columns: 2fr 3fr; } .offer img { height: 100%; aspect-ratio: auto; } }
@media (max-width: 580px) { .offer { display: flex; } .offer img { aspect-ratio: 16 / 10; } }

/* Detailed offer (What we offer page) */
.offer-detail { padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.offer-detail:first-of-type { border-top: 0; padding-top: 0; }
.checks-title { font-size: 1.2rem; color: var(--plum-700); margin: 24px 0 0; }
.checks-title + .checks { margin-top: 14px; }
.checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 24px; height: 24px; flex: none; color: var(--leaf); margin-top: 2px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(140px, 15vw, 210px);
  grid-auto-flow: dense;
  gap: 14px;
}
.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: var(--r-media);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--plum-100);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item .play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--plum-700);
  font-weight: 700;
  font-size: 0.9rem;
}
.gallery-item .play svg { width: 22px; height: 22px; color: var(--orange); }
.gallery-item .play { transition: opacity var(--t-med); }

/* Silent preview while hovered */
.hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}
.gallery-item.is-playing .hover-video { opacity: 1; }
.gallery-item.is-playing .play { opacity: 0; }
.gallery-item.is-playing img { transform: none; }

.video-tile { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-card); }
.video-tile--square { aspect-ratio: 1; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 40vw, 220px); }
}

/* Larger privacy statement (Therapy page) */
.privacy-block {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--plum-50);
  border: 1px solid var(--line);
}
.privacy-block h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  margin: 0 0 10px;
}
.privacy-block h3 svg { width: 22px; height: 22px; flex: none; color: var(--plum); }
.privacy-block p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.6em; }

.privacy-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}
.privacy-note svg { width: 22px; height: 22px; flex: none; color: var(--plum); margin-top: 2px; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
  max-height: 92vh;
  width: 100%;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(43, 27, 48, 0.82); }
.lightbox-inner { position: relative; }
.lightbox img,
.lightbox video {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 20px;
  background: #1a0f1e;
  margin-inline: auto;
}
.lightbox-caption { color: #fff; text-align: center; margin: 12px auto 0; }
.lightbox-close {
  position: absolute;
  top: -18px;
  right: -10px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--plum-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.lightbox-close svg { width: 22px; height: 22px; }
@media (max-width: 600px) { .lightbox-close { top: -56px; right: 0; } }

/* ---------- Statement band (success) ---------- */
.statement {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--plum);
  color: #fff;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
}
.statement h2,
.statement h3 { color: #fff; }
.statement p { color: #f3e7f6; }
.statement-lines {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 28px;
}
.statement-lines span { display: block; }
.statement-lines span:nth-child(1) { color: var(--sun); }
.statement-lines span:nth-child(2) { color: #ffb978; }
.statement-lines span:nth-child(3) { color: #fff; }
.statement .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.statement-media img { border-radius: var(--r-card); aspect-ratio: 1; object-fit: cover; width: 100%; }
.milestones { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.milestones li {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 700;
  font-size: 0.95rem;
}
@media (max-width: 860px) { .statement .grid { grid-template-columns: 1fr; } .statement-media { max-width: 420px; } }

/* ---------- Stories (filterable) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 700 0.95rem var(--font-body);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chip:hover { border-color: var(--plum); }
.chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }

.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.story {
  --accent: var(--plum);
  --accent-bg: var(--plum-100);
  background: #fff;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.story[hidden] { display: none; }
.story-cat {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  margin-bottom: 16px;
}
.story h3 { font-size: 1.3rem; color: var(--ink); }
.story p { color: var(--muted); margin-bottom: 0; }
.story--sky { --accent: #0f4f86; --accent-bg: var(--sky-100); }
.story--leaf { --accent: var(--leaf-700); --accent-bg: var(--leaf-100); }
.story--orange { --accent: var(--orange-text); --accent-bg: var(--orange-100); }
.story--sun { --accent: #7a5900; --accent-bg: var(--sun-100); }
.stories-status { margin-top: 16px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) { .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stories { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.person {
  background: #fff;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Portrait: same square frame for every manager, tinted in their accent colour */
.person-portrait {
  position: relative;
  margin: 0;
  padding: 12px 12px 0;
  background: var(--avatar-bg, var(--plum-100));
}
.person-portrait img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px 16px 0 0;
  background: #fff;
  transition: transform 500ms var(--ease-out);
}
.person-label {
  position: absolute;
  left: 24px;
  bottom: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--avatar-fg, var(--plum));
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.person { transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med); }
.person-portrait { overflow: hidden; }
@media (hover: hover) {
  .person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .person:hover .person-portrait img { transform: scale(1.03); }
}
.person-name { font-size: clamp(1.3rem, 2vw, 1.55rem); color: var(--ink); margin: 0 0 14px; }

/* Our team panel */
.team-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  background: var(--card);
  border-radius: var(--r-panel);
  padding: clamp(24px, 4vw, 56px);
  box-shadow: var(--shadow-sm);
}
.team-panel-media { margin: 0; }
.team-panel-media img { width: 100%; max-width: 100%; height: auto; }
.team-panel-copy > :last-child { margin-bottom: 0; }
.team-panel-close {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--plum-700);
  border-left: 4px solid var(--sun);
  padding-left: 16px;
}
.team-roles { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.team-roles li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--plum-50);
  color: var(--plum-700);
  font-weight: 700;
  font-size: 0.92rem;
}
.team-roles svg { width: 18px; height: 18px; flex: none; }
.team-roles li:nth-child(2) { background: var(--leaf-100); color: var(--leaf-700); }
.team-roles li:nth-child(3) { background: var(--sky-100); color: #0f4f86; }
.team-roles li:nth-child(4) { background: var(--orange-100); color: var(--orange-text); }
@media (max-width: 900px) {
  .team-panel { grid-template-columns: 1fr; }
  .team-panel-media { max-width: 520px; margin-inline: auto; }
}

.team-mini .avatar--photo { background: var(--plum-50); }
.person-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.person-role { color: var(--orange-text); font-weight: 700; margin-bottom: 4px; }
.person-facts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.person-facts li { display: flex; gap: 10px; font-size: 0.97rem; line-height: 1.45; }
.person-facts svg { width: 20px; height: 20px; flex: none; color: var(--plum); margin-top: 2px; }
.person details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.person summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--plum);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.person summary::-webkit-details-marker { display: none; }
.person summary svg { width: 22px; height: 22px; transition: transform var(--t-med) var(--ease-out); }
.person details[open] summary svg { transform: rotate(45deg); }
.person details p { color: var(--muted); margin: 8px 0 0; }
.person--sky { --avatar-bg: var(--sky-100); --avatar-fg: var(--sky); }
.person--orange { --avatar-bg: var(--orange-100); --avatar-fg: var(--orange-text); }
.person--leaf { --avatar-bg: var(--leaf-100); --avatar-fg: var(--leaf-700); }
/* Tablet: three cards don't split evenly into two columns, so stack them
   full-width with the portrait beside the details */
@media (max-width: 960px) {
  .team { grid-template-columns: 1fr; }
  .person { display: grid; grid-template-columns: minmax(180px, 34%) minmax(0, 1fr); }
  .person-portrait { padding: 12px 0 12px 12px; }
  .person-portrait img { border-radius: 16px; height: 100%; }
}
@media (max-width: 620px) {
  .team { grid-template-columns: 1fr; }
  .person { display: grid; grid-template-columns: 1fr; }
  .person-portrait { padding: 12px 12px 0; }
  .person-portrait img { border-radius: 16px 16px 0 0; height: auto; }
}

/* Compact team (home) */
.team-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.team-mini li {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.team-mini .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  background: var(--avatar-bg, var(--plum-100));
  color: var(--avatar-fg, var(--plum));
  overflow: hidden;
}
.team-mini .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-mini strong { display: block; color: var(--ink); line-height: 1.25; }
.team-mini span { font-size: 0.92rem; color: var(--muted); line-height: 1.35; display: block; }
@media (max-width: 1000px) { .team-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team-mini { grid-template-columns: 1fr; } }

/* ---------- Therapy ---------- */
.clinician {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.clinician-card {
  position: sticky;
  top: 100px;
  background: #fff;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: 14px 14px 22px;
  text-align: center;
}
.clinician-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 18px;
  background: var(--plum-100);
}
.clinician-card h2 { font-size: 1.6rem; margin-bottom: 4px; }
.clinician-card .person-role { margin-bottom: 14px; }
/* Illustration sits on the card's white, so show it whole rather than cropped */
.clinician-card .clinician-illustration {
  aspect-ratio: 5 / 4;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  max-width: 100%;
}
.clinician-card h2 { margin-bottom: 14px; }

/* PACE words highlighted inside running text, coloured to match the PACE tiles */
.pace-inline b { font-weight: 700; }
.pace-inline .p { color: var(--sky); }
.pace-inline .a { color: var(--orange-text); }
.pace-inline .c { color: var(--leaf-700); }
.pace-inline .e { color: var(--plum); }
.hero-more { margin: 16px 0 0; color: var(--muted); }

.team-mini .avatar svg { width: 28px; height: 28px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: 0.88rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--plum-50); color: var(--plum-700); }
.approaches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0; list-style: none; padding: 0; }
.approaches li { background: var(--plum-50); border-radius: 20px; padding: 18px; }
.approaches strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--plum-700); font-size: 1.1rem; margin-bottom: 4px; line-height: 1.2; }
.approaches span { font-size: 0.93rem; color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 900px) {
  .clinician { grid-template-columns: 1fr; }
  .clinician-card { position: static; max-width: 360px; }
  .approaches { grid-template-columns: 1fr; }
}

/* ---------- Accordion ---------- */
.accordion { border-top: 2px solid var(--line); }
.accordion details { border-bottom: 2px solid var(--line); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--plum-700);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { width: 24px; height: 24px; flex: none; transition: transform var(--t-med) var(--ease-out); }
.accordion details[open] summary svg { transform: rotate(45deg); }
.accordion details > div { padding: 0 4px 20px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quotes-carousel { position: relative; }
.quote-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(560px, 86%);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 4px 12px;
  scrollbar-width: none;
}
.quote-track::-webkit-scrollbar { display: none; }
.quote {
  scroll-snap-align: start;
  margin: 0;
  background: #fff;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
}
.quote-mark { width: 44px; height: 44px; color: var(--quote-c, var(--orange)); margin-bottom: 16px; }
.quote blockquote { margin: 0 0 20px; font-size: 1.1rem; line-height: 1.6; color: var(--ink); }
.quote blockquote p { margin-bottom: 0.8em; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote figcaption strong { display: block; color: var(--plum-700); line-height: 1.25; }
.quote figcaption span { display: block; font-size: 0.92rem; color: var(--muted); }
.quote-source {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--quote-bg, var(--orange-100));
  color: var(--quote-c, var(--orange-text));
}
.quote-source svg { width: 22px; height: 22px; }
.quote--sky { --quote-c: var(--sky); --quote-bg: var(--sky-100); }
.quote--leaf { --quote-c: var(--leaf-700); --quote-bg: var(--leaf-100); }
.quote--plum { --quote-c: var(--plum); --quote-bg: var(--plum-100); }
.quote--sun { --quote-c: #8a6500; --quote-bg: var(--sun-100); }
.quote--feature { background: var(--plum); border-color: var(--plum); }
.quote--feature blockquote { color: #fff; font-size: 1.15rem; }
.quote--feature figcaption { border-color: rgba(255, 255, 255, 0.2); }
.quote--feature figcaption strong { color: #fff; }
.quote--feature figcaption span { color: #ecdcf0; }
.quote--feature .quote-mark { color: var(--sun); }
.quote--feature .quote-source { background: var(--sun); color: var(--plum-700); }

.carousel-controls { display: flex; gap: 10px; }
.icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--plum);
  background: #fff;
  color: var(--plum);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--plum); color: #fff; }
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; background: #fff; color: var(--plum); }
.icon-btn svg { width: 22px; height: 22px; }

.quotes-grid { columns: 2 380px; column-gap: 20px; }
.quotes-grid .quote { break-inside: avoid; margin-bottom: 20px; }
.quotes-grid .quote[hidden] { display: none; }

/* ---------- Work with us ---------- */
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .perks { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
}
.steps li::before {
  content: counter(step);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
}
.steps strong { display: block; color: var(--plum-700); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.steps span { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-panel);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 72px);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(247, 194, 30, 0.35) 0%, transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(240, 125, 20, 0.35) 0%, transparent 60%),
    var(--plum);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 28px 48px;
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #f3e7f6; margin: 0; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }

/* "All CVs must be sent to…" notice on Work with us */
.cv-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--sun-100);
  border-left: 4px solid var(--sun);
  font-weight: 700;
  color: var(--ink);
  max-width: none;
}
.cv-notice svg { width: 22px; height: 22px; flex: none; color: var(--plum); margin-top: 2px; }
.cv-notice a { overflow-wrap: anywhere; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-card);
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--t-fast), transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
  min-width: 0;
}
.contact-card:hover { border-color: var(--plum); transform: translateY(-3px); box-shadow: var(--shadow-sm); color: var(--ink); }
.contact-card .ic {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  flex: none;
}
.contact-card .ic svg { width: 30px; height: 30px; }
.contact-card:nth-child(1) .ic { background: var(--leaf-100); color: var(--leaf-700); }
.contact-card:nth-child(2) .ic { background: var(--sky-100); color: var(--sky); }
.contact-card small { display: block; color: var(--muted); font-size: 0.95rem; }
.contact-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: var(--plum-700);
  overflow-wrap: anywhere;
  line-height: 1.2;
}
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }

.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.route {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.route h3 { color: var(--ink); }
.route p { color: var(--muted); }
.route .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .routes { grid-template-columns: 1fr; } }

.socials { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.socials a:hover { border-color: var(--plum); }
.socials svg { width: 24px; height: 24px; color: var(--plum); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--section);
  background: var(--plum-700);
  color: #eadcee;
  padding: clamp(48px, 6vw, 80px) 0 32px;
  border-radius: var(--r-panel) var(--r-panel) 0 0;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sun); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.footer-logo { background: #fff; border-radius: 20px; padding: 12px 16px; display: inline-block; margin-bottom: 18px; }
.footer-logo img { width: 190px; }
.site-footer h2 { color: #fff; font-size: 1.2rem; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.footer-contact a { display: inline-flex; gap: 10px; align-items: center; min-height: 40px; overflow-wrap: anywhere; }
.footer-contact svg { width: 20px; height: 20px; flex: none; color: var(--sun); }
.footer-social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.footer-social a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--t-fast);
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.22); }
.footer-social svg { width: 22px; height: 22px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}
.footer-bottom p { margin: 0; max-width: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal (used sparingly) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transform: translateY(18px); transition: transform 700ms var(--ease-out); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

@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; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
