/* ==========================================================================
   Volt Health — site styles (v3: visual parity with volthealth.ca production)
   Light theme, Roboto, blue CTAs (#00b0f4), gray panel cards, rounded-xl.
   ========================================================================== */

/* ---- Fonts (self-hosted) ------------------------------------------------ */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/roboto-400.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/roboto-500.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/roboto-700.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/roboto-condensed-700.woff2') format('woff2'); }

/* ---- Tokens & reset ------------------------------------------------------ */
:root {
  --ink: #1c1c1c;        /* prod neutral-950 */
  --ink-2: #414141;      /* prod neutral-800 */
  --ink-3: #2b2b2b;
  --paper: #ffffff;
  --paper-2: #f2f2f2;    /* prod neutral-25 */
  --line: #e3e3e3;
  --volt: #ffc124;       /* brand yellow (logo accents) */
  --volt-2: #ffd64f;
  --blue: #00b0f4;       /* prod bricks info — CTA buttons */
  --blue-2: #009ad6;
  --muted: #5f5f5f;
  --muted-on-dark: #c9c9c9;
  --radius: 12px;
  --radius-l: 20px;
  --radius-xl: 28px;
  --shadow: 0 10px 30px rgba(20, 20, 20, .08);
  --wrap: 1240px;
  --display: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.wrap.prose { max-width: 860px; }
.prose h2 { margin-top: 1.6em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Type scale ----------------------------------------------------------- */
h1 { font-size: clamp(1.9rem, 4.2vw + .8rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.9vw + .7rem, 2.8rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.3rem, 1.4vw + .6rem, 1.7rem); }
h1, h2, h3 { text-wrap: balance; }
.h3x { font-size: clamp(1.5rem, 2.5vw, 1.8rem); }
.lead { font-size: 1.15rem; }
.muted { color: var(--muted); }

/* Width/rhythm utilities */
.narrow    { max-width: 56em; margin-left: auto; margin-right: auto; }
.narrow-md { max-width: 52em; margin-left: auto; margin-right: auto; }
.narrow-sm { max-width: 44em; margin-left: auto; margin-right: auto; }
.mb-xl  { margin-bottom: 2.5em; }
.mb-xxl { margin-bottom: 3em; }
.center-row { justify-content: center; }
.footnote { margin-top: 2em; font-size: .9rem; }
[id] { scroll-margin-top: 90px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Kicker — prod style: small bold plain text above headings */
.kicker {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .9em;
  color: var(--ink);
}
.on-dark .kicker, .hero-full .kicker { color: #fff; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  font: 500 1rem/1.2 var(--body);
  padding: .85em 1.6em;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); border-color: var(--blue-2); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--paper-2); border-color: var(--ink); color: var(--ink); }
.on-dark .btn-outline, .btn-outline.on-dark { color: #fff; border-color: #fff; background: transparent; }
.on-dark .btn-outline:hover, .btn-outline.on-dark:hover { background: #fff; color: var(--ink); }
.btn-sm { font-size: .85rem; padding: .55em 1.2em; }
.btn-arrow::after { content: '\2192'; margin-left: .55em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4em; }

/* ---- Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(20,20,20,.09); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { width: 240px; height: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav .sub { display: none; }
.main-nav a {
  display: block; padding: .55em .9em; text-decoration: none;
  font-weight: 500; font-size: .98rem; border-radius: 8px;
}
.main-nav > ul > li > a:hover { background: var(--paper-2); }
.main-nav a.is-active, .main-nav .is-active-branch > a { font-weight: 700; }
.main-nav .nav-cta a.btn { padding: .7em 1.5em; font-size: .95rem; margin-left: 10px; }
.main-nav .nav-cta a.btn:hover { transform: none; box-shadow: none; }

.has-sub { position: relative; }
.sub-toggle {
  border: 0; background: none; cursor: pointer; padding: 6px; line-height: 0; vertical-align: middle;
}
.sub-toggle::after {
  content: ''; display: inline-block; width: 8px; height: 8px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
@media (min-width: 981px) {
  .has-sub { display: flex; align-items: center; }
  .has-sub:hover .sub, .has-sub:focus-within .sub {
    display: block; position: absolute; top: 100%; left: 0; min-width: 270px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow); padding: 8px; z-index: 60;
  }
  .sub li { display: block; }
  .sub a { padding: .55em .8em; border-radius: 8px; font-size: .93rem; }
  .sub a:hover { background: var(--paper-2); }
}

.nav-toggle { display: none; border: 0; background: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block; position: fixed; inset: 64px 0 0 0; background: var(--paper);
    overflow-y: auto; z-index: 90; padding: 18px 22px 40px;
  }
  .main-nav.is-open ul { display: block; }
  .main-nav.is-open > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav.is-open a { padding: 1em .2em; font-size: 1.05rem; }
  .main-nav.is-open .has-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .main-nav.is-open .has-sub > a { flex: 1; }
  .main-nav.is-open .sub-toggle { padding: 14px; }
  .main-nav.is-open .sub-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
  .main-nav.is-open .sub { display: none; width: 100%; padding-left: 1em; }
  .main-nav.is-open .sub.is-open { display: block; }
  .main-nav.is-open .nav-cta { border-bottom: 0; padding-top: 16px; }
  .main-nav.is-open .nav-cta a.btn { margin-left: 0; text-align: center; }
}
body.nav-open { overflow: hidden; }
@media (max-width: 980px) { .main-nav { overscroll-behavior: contain; } }

/* ---- Sections -------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .muted { color: var(--muted-on-dark); }
.section-dark h2 { color: #fff; }
.center { text-align: center; }
.section-head { max-width: 780px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head > p, .section-head .muted { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---- Full-bleed hero (home) ------------------------------------------------- */
.hero-full {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: min(78vh, 780px);
  padding: clamp(72px, 12vw, 140px) 0;
  overflow: hidden;
  color: #fff;
}
.hero-full .hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  z-index: 0;
}
.hero-full::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: rgba(6, 8, 6, .68);
}
.hero-full .hero-inner { position: relative; z-index: 2; text-align: center; max-width: 1080px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.hero-full .kicker { font-size: 1.02rem; margin-bottom: 1em; }
.hero-full h1 { color: #fff; margin-bottom: .45em; }
.hero-full p { color: #f1f1f1; font-size: 1.1rem; max-width: 34em; margin: 0 auto 1em; }
.hero-full .btn-row { justify-content: center; margin-top: 1.6em; }
.hero-full .btn { font-size: .95rem; padding: .7em 1.3em; border-radius: 6px; }

/* Slim page hero (interior pages) — prod style: light, centered */
.page-hero { background: var(--paper); color: var(--ink); padding: clamp(44px, 6vw, 72px) 0 clamp(8px, 2vw, 16px); text-align: center; }
.page-hero h1 { color: var(--ink); max-width: 22em; margin-left: auto; margin-right: auto; }
.page-hero p { color: var(--muted); max-width: 46em; font-size: 1.12rem; margin-left: auto; margin-right: auto; }
.page-hero .kicker { color: var(--ink); }
.page-hero .btn-row { justify-content: center; }

/* Split hero used by service pages (photo + copy + map) */
.hero {
  background: var(--paper);
  color: var(--ink);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px);
  align-items: center; padding: clamp(40px, 6vw, 72px) 0;
}
.hero h1 { margin-bottom: .4em; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-l); width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.hero-media.portrait img { max-height: 560px; object-fit: cover; }
.hero-media.panel { background: #fff; border-radius: var(--radius-l); padding: 32px; border: 1px solid var(--line); }
.hero-media.panel img { box-shadow: none; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---- Partner logo strip ------------------------------------------------------ */
.logo-strip { padding: clamp(26px, 4vw, 40px) 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.logo-strip .logo-track {
  display: flex; align-items: center; gap: clamp(40px, 6vw, 88px);
  width: max-content;
  animation: logo-scroll 40s linear infinite;
}
.logo-strip img { height: clamp(38px, 5vw, 58px); width: auto; max-width: none; }
.logo-strip:hover .logo-track { animation-play-state: paused; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-strip .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---- Tabs (home services) ------------------------------------------------------ */
.tabs-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.tabs-media img { border-radius: var(--radius-l); width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.tabs-head h2 { margin-bottom: .8em; }
.tab-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.6em; padding: 0; list-style: none; }
.tab-btn {
  font: 500 1rem/1.2 var(--body);
  padding: .9em 1.5em; border-radius: 8px; cursor: pointer;
  background: #fff; color: var(--ink); border: 1.5px solid var(--line);
  transition: background .15s, color .15s, border-color .15s;
}
.tab-btn:hover { border-color: var(--ink); }
.tab-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .35s ease; }
.tab-panel .checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; margin: 1.3em 0 1.6em; }
@media (max-width: 980px) {
  .tabs-grid { grid-template-columns: 1fr; }
  .tabs-media { order: -1; }
  .tabs-media img { aspect-ratio: 16 / 10; }
  .tab-panel .checklist { grid-template-columns: 1fr; }
}

/* ---- Checklist (black circle + white check, prod style) ------------------------- */
.checklist { list-style: none; padding: 0; margin: 1.2em 0; }
.checklist li { padding: .35em 0 .35em 2.1em; position: relative; font-weight: 400; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .52em;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--ink);
}
.checklist li::after {
  content: ''; position: absolute; left: 5px; top: .52em; margin-top: 5px;
  width: 9px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* Timeline date badge (about page) */
.time-badge {
  display: inline-block; background: var(--paper-2); color: var(--ink-2);
  font-weight: 700; font-size: .85rem; letter-spacing: .04em;
  padding: .35em 1em; border-radius: 999px; margin-bottom: 1.1em;
}

/* ---- Feature rows (image + copy, alternating) ------------------------------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 5vw, 56px) 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.flip .feature-media { order: -1; }
.feature-row.no-top { padding-top: 0; }
.feature-row.bare { border: 0; padding: 0; }
.feature-media img { border-radius: var(--radius-l); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.feature-media.natural img { aspect-ratio: auto; }
.feature-media.tall img { aspect-ratio: auto; max-height: 560px; object-fit: cover; width: 100%; }
.rounded-img { border-radius: var(--radius-l); }
.badge-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 22px; }
.badge-card img { box-shadow: none; aspect-ratio: auto; }
.feature-copy h2, .feature-copy h3 { margin-top: 0; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .feature-media { order: 0; }
}

.hero-grid > *, .feature-row > *, .contact-grid > *, .footer-grid > *,
.stats-grid > *, .callout > *, .tabs-grid > *, .locate-grid > * { min-width: 0; }

/* ---- Stats band (prod: light, hairline-bordered 4-col) -------------------------- */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div {
  padding: clamp(28px, 3.5vw, 48px) clamp(20px, 2.8vw, 40px);
  border-right: 1px solid var(--line);
}
.stats-grid > div:last-child { border-right: 0; }
.stat h3, .stats-grid h2 { font-size: clamp(1.35rem, 1.5vw + .6rem, 1.75rem); margin-bottom: .8em; }
.stat p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }
.stats-grid h2 + p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }
.stats-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.img-banner { width: 100%; max-height: 420px; object-fit: cover; }
@media (max-width: 980px) {
  .stats-grid, .stats-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .stats-grid > div:nth-child(2n) { border-right: 0; }
  .stats-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid > div { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .stats-grid > div:last-child { border-bottom: 0; }
}

/* ---- Photo cards (More than rehabilitation) -------------------------------------- */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 36px); margin-top: clamp(32px, 5vw, 56px); }
.photo-card {
  background: var(--paper-2); border-radius: var(--radius-l); overflow: hidden;
  display: flex; flex-direction: column;
}
.photo-card img { width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; }
.photo-card .photo-info { padding: clamp(22px, 3vw, 34px); }
.photo-card h3 { margin-bottom: .5em; }
.photo-card p { color: var(--ink-2); font-size: .98rem; margin-bottom: 0; }
@media (max-width: 780px) { .photo-grid { grid-template-columns: 1fr; } }

/* ---- Map embeds -------------------------------------------------------------------- */
.map-embed {
  border: 0; width: 100%; border-radius: var(--radius-l); display: block;
  min-height: 320px; background: var(--paper-2);
}
.hero-map { height: clamp(300px, 34vw, 420px); margin: clamp(8px, 2vw, 20px) 0 clamp(36px, 5vw, 56px); }
.locate-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.locate-grid .map-embed { height: clamp(360px, 42vw, 480px); }
@media (max-width: 860px) { .locate-grid { grid-template-columns: 1fr; } }
.locate-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
.locate-list h4 { font-size: 1.25rem; margin: .35em 0 .15em; }
.locate-list li { padding: 0; }
.locate-list .loc-icon { width: 22px; height: 22px; }
.locate-list a { text-decoration: none; color: var(--ink-2); }
.locate-list a:hover { text-decoration: underline; }

/* ---- Icon strip (Facilities / Staff / Resources / Careers) -------------------------- */
.icon-strip {
  background: var(--paper-2); border-radius: var(--radius-xl);
  padding: clamp(10px, 1.4vw, 14px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 14px);
}
.icon-cell {
  background: #fff; border-radius: var(--radius-l);
  padding: clamp(22px, 3vw, 34px) clamp(20px, 2.6vw, 30px);
  text-align: center;
}
.icon-cell svg { width: 44px; height: 44px; margin: .4em auto .9em; display: block; }
.icon-cell h3 { font-size: 1.2rem; }
.icon-cell p { text-align: left; color: var(--ink-2); font-size: .93rem; margin-bottom: 0; }
.icon-cell p + p { margin-top: 1em; }
@media (max-width: 980px) { .icon-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .icon-strip { grid-template-columns: 1fr; } }

/* ---- Card grid (legacy interior pages) ------------------------------------------ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: var(--paper-2); border-radius: var(--radius-l);
  padding: 28px 26px;
  display: flex; flex-direction: column;
}
.card:hover { transform: none; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--ink-2); font-size: .97rem; margin-bottom: 0; }
.card .card-link { margin-top: auto; padding-top: 1.2em; font-weight: 700; text-decoration: none; color: var(--ink); }
.section-dark .card { background: var(--ink-2); }
.section-dark .card p { color: var(--muted-on-dark); }
.section-dark .card h3, .section-dark .card .card-link { color: #fff; }

/* ---- Numbered steps ---------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
  counter-increment: step;
  background: var(--paper-2); border-radius: var(--radius-l);
  padding: 30px 26px 26px; position: relative;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-weight: 700; font-size: 2rem;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  padding: .1em .4em;
  display: inline-block;
  margin-bottom: .6em;
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--ink-2); font-size: .96rem; margin: 0; }

/* ---- Detail blocks (service pillars) ------------------------------------------------ */
.pillars { display: grid; gap: 22px; }
.pillar {
  background: var(--paper-2);
  border-radius: var(--radius-l);
  padding: 28px 32px;
}
.pillar h3 { margin-bottom: .4em; }
.pillar p:last-child, .pillar ul:last-child { margin-bottom: 0; }
.pillar ul li { margin: .3em 0; }

/* Dark stat callout inside service pages (prod card-faq-15) */
.callout {
  background: var(--ink); color: #fff; border-radius: var(--radius-l);
  padding: clamp(28px, 5vw, 48px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
}
.callout .big {
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.4rem); color: #fff; line-height: 1;
}
.callout h3 { color: #fff; }
.callout p { color: var(--muted-on-dark); margin-bottom: 0; }
.callout .btn { border-color: #fff; background: #fff; color: var(--ink); }
.callout .btn:hover { background: var(--paper-2); }
@media (max-width: 700px) { .callout { grid-template-columns: 1fr; } }

/* ---- Testimonials (prod: card carousel w/ avatar + stars) --------------------------- */
.t-carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(92%, 880px);
  gap: clamp(18px, 2.5vw, 30px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 6px 22px;
  scrollbar-width: thin;
}
.t-card {
  scroll-snap-align: center;
  background: var(--paper-2); border-radius: var(--radius-l);
  padding: clamp(24px, 3.4vw, 44px);
  display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.t-card blockquote { margin: 0; font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.75; }
.t-card .t-who { margin-top: 1.6em; }
.t-card .t-who strong { display: block; font-size: 1.05rem; }
.t-card .t-who span { font-size: .85rem; color: var(--muted); }
.t-card .t-who a { color: inherit; }
.t-stars { display: inline-flex; gap: 3px; margin-top: .8em; }
.t-stars svg { width: 20px; height: 20px; fill: var(--ink); }
.t-card .t-img { background: #fff; border-radius: var(--radius); overflow: hidden; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.t-card .t-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.t-nav { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.t-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; font-size: 1.2rem; line-height: 1;
  transition: background .15s, border-color .15s;
}
.t-nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 780px) {
  .t-card { grid-template-columns: 1fr; }
  .t-card .t-img { max-height: 300px; }
}

/* legacy single-quote testimonials (kept for pages not yet converted) */
.testimonials { position: relative; }
.t-slide { display: none; }
.t-slide.is-active { display: block; animation: fadeUp .45s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.t-quote { max-width: 820px; margin: 0 auto; text-align: center; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; }
.t-quote::before { content: '\201C'; display: block; font-size: 4rem; line-height: .6; color: var(--ink); margin-bottom: .3em; }
.t-meta { text-align: center; margin-top: 1.2em; font-weight: 700; }
.t-meta span { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.section-dark .t-meta span { color: var(--muted-on-dark); }
.t-dots { display: flex; justify-content: center; gap: 10px; margin-top: 1.6em; }
.t-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; cursor: pointer; padding: 0; }
.t-dots button.is-active { background: var(--ink); }

/* ---- Team grid ------------------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.team-card { background: var(--paper-2); border-radius: var(--radius-l); overflow: hidden; }
.team-card img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: top center; }
.team-card .team-info { padding: 20px 22px 24px; }
.team-card h3 { margin-bottom: .15em; font-size: 1.3rem; }
.team-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---- Contact page ------------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list.spaced { margin: 1.6em 0; }
.info-list li { padding-left: 2.2em; position: relative; }
.info-list li strong { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.info-list li::before {
  content: ''; position: absolute; left: 0; top: .45em;
  width: 14px; height: 14px; background: var(--ink); border-radius: 50%;
}
.info-list a { color: var(--ink); }

form.contact-form { display: grid; gap: 16px; background: var(--paper-2); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: .35em; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: .7em .9em; background: #fff;
  transition: border-color .15s, background .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-msg { padding: 1em 1.2em; border-radius: 8px; font-weight: 500; }
.form-msg.ok { background: #e8f6ec; border: 1px solid #bfe5cb; }
.form-msg.err { background: #fdecec; border: 1px solid #f3c2c2; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* ---- Footer (prod: light gray rounded panel + bottom bar) --------------------------------- */
.site-footer { background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 48px) 0 0; }
.footer-panel {
  background: var(--paper-2); border-radius: var(--radius-l);
  padding: clamp(26px, 4vw, 44px);
  display: grid; grid-template-columns: 1.35fr .95fr .8fr 1.1fr; gap: clamp(26px, 3.5vw, 48px);
}
.footer-logo { width: 210px; height: auto; margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; color: var(--ink-2); }
.footer-social { list-style: none; display: flex; gap: 18px; padding: 0; margin: 1.2em 0 0; }
.footer-social a { display: inline-flex; padding: 4px; color: var(--ink); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-social a:hover { color: var(--ink-2); }
.footer-col h2 {
  font-size: .95rem; color: var(--ink); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 1em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-map .map-embed { height: 100%; min-height: 220px; border-radius: var(--radius); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 20px; padding-bottom: 24px;
  font-size: .92rem;
}
.footer-bottom p { margin: 0; color: var(--ink-2); }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; font-weight: 500; padding: .4em .7em; border-radius: 6px; }
.footer-nav a:hover { background: var(--paper-2); }
@media (max-width: 980px) { .footer-panel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-panel { grid-template-columns: 1fr; } }

/* ---- Mobile refinements ------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .brand img { width: 158px; }
  .header-inner { min-height: 64px; }
  .btn-row { gap: 10px; }
  .btn-row .btn { flex: 1 1 100%; text-align: center; }
  .hero-grid { padding: 40px 0 48px; gap: 26px; }
  .page-hero { padding: 44px 0; }
  .section { padding: 48px 0; }
  .section-tight { padding: 36px 0; }
  .feature-row { padding: 28px 0; gap: 26px; }
  .callout { padding: 26px 20px; }
  .card { padding: 22px 20px; }
  .pillar { padding: 20px 22px; }
  .step { padding: 24px 20px 20px; }
  .contact-grid { gap: 36px; }
  .footer-panel { padding: 22px 20px; }
  .footer-logo { width: 180px; }
  .t-card { padding: 20px 18px; }
}

/* ---- Misc -------------------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .t-slide.is-active, .tab-panel.is-active { animation: none; }
  .btn, .card { transition: none; }
  .logo-strip .logo-track { animation: none; }
}

/* ===== Campus (research knowledge base) ==================================== */
.kb-filter { display:flex; flex-wrap:wrap; gap:.75rem; align-items:center; margin:0 0 2rem; }
.kb-search { flex:1 1 260px; max-width:420px; padding:.65em 1em; border:1px solid #d9d9d9;
  border-radius:8px; font:inherit; font-size:.95rem; background:#fff; color:var(--ink); }
.kb-search:focus { outline:2px solid var(--blue); outline-offset:1px; border-color:var(--blue); }
.kb-chips { display:flex; flex-wrap:wrap; gap:.5rem; }
.kb-chip { border:1px solid #d9d9d9; background:#fff; color:var(--ink); font:inherit;
  font-size:.85rem; font-weight:600; padding:.45em 1em; border-radius:999px; cursor:pointer;
  transition:background .15s,border-color .15s; }
.kb-chip:hover { border-color:var(--ink); }
.kb-chip.is-on { background:var(--ink); border-color:var(--ink); color:#fff; }
.kb-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; }
@media (max-width: 980px){ .kb-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 640px){ .kb-grid { grid-template-columns:1fr; } }
.kb-card { display:flex; flex-direction:column; gap:.6rem; background:var(--paper-2);
  border-radius:var(--radius-l); padding:1.5rem 1.5rem 1.35rem; color:inherit;
  text-decoration:none; transition:transform .15s ease, box-shadow .15s ease; }
.kb-card:hover { transform:translateY(-3px); box-shadow:0 10px 24px rgba(0,0,0,.08); }
.kb-card h3 { margin:0; font-size:1.08rem; line-height:1.35; }
.kb-card p { margin:0; font-size:.92rem; color:#444; }
.kb-badge { align-self:flex-start; font-size:.72rem; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; padding:.3em .85em; border-radius:999px; background:#fff; color:var(--ink); }
.kb-badge.physiotherapy { box-shadow:inset 0 0 0 1px #0e7c3a33; color:#0e7c3a; }
.kb-badge.massage-therapy { box-shadow:inset 0 0 0 1px #8a2be233; color:#6a1fb0; }
.kb-badge.kinesiology { box-shadow:inset 0 0 0 1px #00b0f433; color:#0077a8; }
.kb-badge.sport-medicine { box-shadow:inset 0 0 0 1px #c2410c33; color:#c2410c; }
.kb-meta { margin-top:auto; font-size:.8rem; color:#666; }
.kb-empty { display:none; padding:2.5rem 0; text-align:center; color:#666; }
.article-meta { display:flex; flex-wrap:wrap; gap:.5rem 1.4rem; font-size:.85rem; color:#555;
  margin:0 0 2rem; padding-bottom:1.2rem; border-bottom:1px solid #e5e5e5; }
.cite-box { background:var(--paper-2); border-radius:var(--radius-l); padding:1.4rem 1.6rem;
  margin:2.2rem 0 0; font-size:.9rem; }
.cite-box h2 { font-size:1rem; margin:0 0 .5rem; }
.cite-box p { margin:0 0 .8rem; color:#444; }
.kb-disclaimer { font-size:.8rem; color:#777; margin-top:2.2rem; }

/* ===== Campus v2: list view, comments, mobile polish ======================= */
.kb-view { display:flex; gap:.35rem; margin-left:auto; }
.kb-view-btn { border:1px solid #d9d9d9; background:#fff; color:#555; font-size:1rem;
  line-height:1; padding:.5em .7em; border-radius:8px; cursor:pointer; }
.kb-view-btn.is-on { background:var(--ink); border-color:var(--ink); color:#fff; }
.kb-grid.is-list { grid-template-columns:1fr; gap:.85rem; }
.kb-grid.is-list .kb-card { flex-direction:row; align-items:center; flex-wrap:wrap;
  gap:.4rem 1.2rem; padding:1.1rem 1.4rem; }
.kb-grid.is-list .kb-card h3 { flex:1 1 100%; order:2; font-size:1.02rem; }
.kb-grid.is-list .kb-card p { flex:1 1 100%; order:3; font-size:.88rem; }
.kb-grid.is-list .kb-badge { order:1; }
.kb-grid.is-list .kb-meta { order:1; margin:0 0 0 auto; }
.kb-flash { padding:.8em 1.1em; border-radius:10px; font-size:.92rem; margin:0 0 1.4rem; }
.kb-flash.ok  { background:#e7f6ec; color:#0e7c3a; }
.kb-flash.err { background:#fdeeee; color:#b3261e; }
.kb-comments { list-style:none; margin:0 0 2.2rem; padding:0; }
.kb-comment { background:#fff; border:1px solid #e5e5e5; border-radius:14px;
  padding:1.1rem 1.3rem; margin:0 0 .9rem; }
.kb-comment p { margin:.45rem 0 0; font-size:.94rem; color:#333; overflow-wrap:anywhere; }
.kb-comment-head { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; font-size:.9rem; }
.kb-del { margin-left:auto; }
.kb-del-btn { border:1px solid #d9d9d9; background:#fff; color:#b3261e; font-size:.78rem;
  font-weight:600; padding:.3em .8em; border-radius:999px; cursor:pointer; }
.kb-del-btn:hover { background:#b3261e; border-color:#b3261e; color:#fff; }
.kb-comment-form { max-width:560px; }
.kb-comment-form input[type=text], .kb-comment-form textarea { width:100%;
  padding:.6em .9em; border:1px solid #d9d9d9; border-radius:8px; font:inherit;
  font-size:.95rem; background:#fff; color:var(--ink); }
.kb-comment-form input[type=text]:focus, .kb-comment-form textarea:focus {
  outline:2px solid var(--blue); outline-offset:1px; border-color:var(--blue); }
.kb-comment-form .form-row { margin:0 0 1rem; }
.cite-box .cite-ref { font-style:italic; color:#333; }
@media (max-width: 720px) {
  .kb-filter { gap:.6rem; }
  .kb-search { flex-basis:100%; max-width:none; }
  .kb-chips { flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch;
    padding-bottom:.25rem; max-width:calc(100% - 5.5rem); }
  .kb-chip { flex:0 0 auto; }
  .kb-card { padding:1.2rem 1.2rem 1.1rem; }
  .kb-grid.is-list .kb-card { padding:1rem 1.1rem; }
  .article-meta { gap:.4rem 1rem; font-size:.8rem; }
  .cite-box { padding:1.1rem 1.2rem; }
  .kb-comment-form { max-width:none; }
}

/* ---------------------------------------------------------------------------
   Campus v3 (knowledge net): tag chips + connected-research panel
--------------------------------------------------------------------------- */
.kb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 26px; }
.kb-tag {
  display: inline-block; padding: 4px 13px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid #e3e3e3;
  color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none;
}
.kb-tag:hover { border-color: var(--blue); color: var(--blue); }
.kb-connected {
  border: 1px solid #e3e3e3; border-left: 4px solid var(--blue);
  border-radius: var(--radius-l); padding: 24px 28px; margin: 34px 0;
}
.kb-connected h2 { margin: 0 0 4px; }
.kb-connected-label {
  font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #666; margin: 18px 0 4px;
}
.kb-connected ul { list-style: none; margin: 0; padding: 0; }
.kb-connected li { padding: 9px 0; border-bottom: 1px solid #efefef; }
.kb-connected li:last-child { border-bottom: 0; }
.kb-connected li a { font-weight: 600; text-decoration: none; }
.kb-connected li a:hover { color: var(--blue); }
.kb-connected li .muted { display: block; font-size: 13px; margin-top: 2px; }
@media (max-width: 720px) {
  .kb-connected { padding: 18px 18px; }
  .kb-tags { margin: 12px 0 20px; }
}
