/* Healthinnova — site styles
   Layout concept: the logo's circuit-tree. Thin "traces" with ring nodes mark headings,
   a single trunk line carries the philosophy, and the four leaf colours tag the four services. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #112949;          /* logo wordmark navy */
  --muted: #4d5d76;
  --line: #d9e1ec;
  --orange: #c84d0c;       /* leaf colours, darkened slightly for text contrast */
  --gold: #a87c14;
  --green: #3e8a2c;
  --blue: #3a66b0;
  --band: #112949;         /* contact band */
  --band-ink: #eef3fa;
  --band-muted: #b7c4d8;
  --focus: #3a66b0;

  --font: "Space Grotesk", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.4vw, 3.7rem);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --trace: linear-gradient(90deg, #d8560f, #c09326 30%, #6cb43d 60%, #4674bf);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1628;
    --surface: #10213a;
    --ink: #e9eff8;
    --muted: #a5b3c8;
    --line: #223858;
    --orange: #f07a3a;
    --gold: #e0b345;
    --green: #8fcc63;
    --blue: #7fa4e6;
    --band: #0d1d34;
    --band-ink: #eef3fa;
    --band-muted: #a9b8cf;
    --focus: #7fa4e6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1628;
  --surface: #10213a;
  --ink: #e9eff8;
  --muted: #a5b3c8;
  --line: #223858;
  --orange: #f07a3a;
  --gold: #e0b345;
  --green: #8fcc63;
  --blue: #7fa4e6;
  --band: #0d1d34;
  --band-ink: #eef3fa;
  --band-muted: #a9b8cf;
  --focus: #7fa4e6;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after { content: ""; display: block; height: 2px; background: var(--trace); opacity: .85; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand-word { font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em; color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-size: var(--step--1); font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font-size: 0.95rem; font-weight: 500; color: var(--muted);
}
.site-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.site-nav a[aria-current="page"] { color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .site-nav a { padding: 12px 8px; border-radius: 6px; font-size: 1.05rem; }
}

/* ---------- Section scaffolding ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 48px); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
/* a circuit trace: line ending in a ring node */
.eyebrow::before {
  content: ""; width: 34px; height: 2px; background: var(--trace);
}
.eyebrow::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--blue); order: -1; margin-right: -10px; display: none;
}
.section-head h2 { font-size: var(--step-3); font-weight: 700; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* ---------- Hero (always on the brand navy) ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); position: relative; overflow: hidden; background: var(--band); color: var(--band-ink); }
.hero .eyebrow { color: var(--band-muted); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.03em; color: #ffffff; }
.hero h1 .amp { color: #8fcc63; }
.hero .lede { font-size: var(--step-1); line-height: 1.55; max-width: 34em; color: var(--band-ink); }
.hero p:not(.lede):not(.hero-word):not(.hero-tag) { color: var(--band-muted); max-width: 38em; }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); display: grid; justify-items: center; }
.hero-art img { width: min(100%, 320px); }
.hero-word { margin-top: 18px; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1; color: #ffffff; }
.hero-tag { margin-top: 10px; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); font-weight: 400; color: #c9d6ea; letter-spacing: 0.01em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1.5px solid var(--ink); transition: background .2s, color .2s;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.hero .btn { border-color: #ffffff; }
.hero .btn-solid { background: #ffffff; color: #112949; }
.hero .btn-solid:hover { background: transparent; color: #ffffff; }
.hero .btn-ghost { color: #ffffff; }
.hero .btn-ghost:hover { background: #ffffff; color: #112949; }
.btn svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(80%, 300px); }
}

/* ---------- Services ---------- */
.services { background: var(--surface); border-block: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.service {
  --c: var(--blue);
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px);
  display: grid; gap: 16px; align-content: start; background: var(--bg); position: relative; min-width: 0;
}
.service::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; background: var(--c); border-radius: 0 3px 3px 0; }
.service.orange { --c: var(--orange); }
.service.gold { --c: var(--gold); }
.service.green { --c: var(--green); }
.service.blue { --c: var(--blue); }
.service-top { display: flex; align-items: center; gap: 14px; }
.service-icon { width: 48px; height: 48px; flex: none; color: var(--c); }
.service h3 { font-size: var(--step-2); font-weight: 600; }
.service .q-label { font-size: var(--step--1); color: var(--muted); font-weight: 500; }
.service ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.service li { position: relative; padding-left: 22px; line-height: 1.5; }
.service li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--c);
}
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Philosophy: a trunk with four branches ---------- */
.trunk { position: relative; display: grid; gap: clamp(28px, 4vw, 44px); padding-left: 44px; max-width: 900px; }
.trunk::before {
  content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #d8560f, #c09326 33%, #6cb43d 66%, #4674bf);
}
.principle { position: relative; display: grid; gap: 10px; min-width: 0; }
.principle::before {
  content: ""; position: absolute; left: -38px; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--c, var(--blue));
}
.principle.orange { --c: var(--orange); }
.principle.gold { --c: var(--gold); }
.principle.green { --c: var(--green); }
.principle.blue { --c: var(--blue); }
.principle h3 { font-size: var(--step-2); font-weight: 600; }
.principle p { color: var(--muted); max-width: 68ch; }

/* ---------- Team ---------- */
.team { background: var(--surface); border-block: 1px solid var(--line); }
.team-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.team-intro .section-head { margin-bottom: 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.member { text-decoration: none; display: grid; gap: 12px; align-content: start; min-width: 0; }
.photo {
  margin: 0; aspect-ratio: 1 / 1; max-width: 100%; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(150deg, color-mix(in srgb, var(--blue) 22%, var(--bg)), color-mix(in srgb, var(--green) 20%, var(--bg)));
}
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .4s ease, filter .4s ease; }
.member:hover .photo img, .member:focus-visible .photo img, .bio:hover .photo img { filter: grayscale(0); }
.member:hover .photo img { transform: scale(1.035); }
.photo.nophoto img { display: none; }
.photo.nophoto::after {
  content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.4rem; font-weight: 700; letter-spacing: .02em; color: var(--ink); opacity: .75;
}
.member h3 { font-size: 1.08rem; font-weight: 700; }
.member .role { font-weight: 500; color: var(--ink); font-size: .98rem; }
.member .spec { color: var(--muted); font-size: var(--step--1); line-height: 1.45; }
.member:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--green); }

/* ---------- Clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.client {
  background: var(--bg); padding: 22px 22px 24px; text-decoration: none; display: grid; gap: 8px; align-content: start; min-width: 0;
  transition: background .2s;
}
.client:hover { background: var(--surface); }
.client h3 { font-size: 1.05rem; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.client h3 svg { width: 14px; height: 14px; flex: none; margin-top: 5px; color: var(--muted); transition: transform .2s, color .2s; }
.client:hover h3 svg { transform: translate(2px, -2px); color: var(--blue); }
.client p { color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
/* client logos sit on their own white plate so they read correctly in both themes */
.client-logo { display: block; background: #ffffff; border-radius: 8px; height: 120px; padding: 8px 14px; margin-bottom: 8px; border: 1px solid var(--line); overflow: hidden; }
.client-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Contact band ---------- */
.contact { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.contact .eyebrow { color: var(--band-muted); }
.contact .section-head p { color: var(--band-muted); }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-item {
  border: 1px solid color-mix(in srgb, var(--band-ink) 18%, transparent); border-radius: var(--radius);
  padding: 22px; display: grid; gap: 8px; align-content: start; text-decoration: none; min-width: 0; transition: border-color .2s, background .2s;
}
a.contact-item:hover { border-color: color-mix(in srgb, var(--band-ink) 45%, transparent); background: color-mix(in srgb, var(--band-ink) 5%, transparent); }
.contact-item .label { font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--band-muted); font-weight: 600; }
.contact-item .value { font-size: 1.1rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-item svg { width: 22px; height: 22px; color: #8fcc63; }
.contact-art { position: absolute; right: -60px; bottom: -80px; width: 340px; opacity: .08; pointer-events: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-art { display: none; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: 40px 48px; border-top: 1px solid var(--line); }
/* accreditations: six equal white tiles spread across the full width */
.badges { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); margin-bottom: 32px; }
.badge {
  display: flex; align-items: center; justify-content: center; background: #ffffff; border: 1px solid var(--line); border-radius: 8px;
  height: clamp(84px, 8vw, 108px); min-width: 0; padding: 12px 14px; overflow: hidden; text-decoration: none; transition: border-color .2s, transform .2s;
}
a.badge:hover { border-color: var(--blue); transform: translateY(-2px); }
.badge img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.badge-text { font-size: var(--step--1); color: #4d5d76; text-align: center; line-height: 1.3; }
@media (max-width: 760px) { .badges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); font-size: var(--step--1); }
.footer-row a { color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 1rem; }
.footer-brand img { width: 26px; }

/* ---------- Bios page ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 40px); }
.page-hero h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.03em; margin-top: 14px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a {
  text-decoration: none; font-size: var(--step--1); font-weight: 500; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
}
.jump a:hover { color: var(--ink); border-color: var(--ink); }
.bios { padding-top: 8px; }
.bio {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line);
}
.bio .photo { position: sticky; top: 100px; align-self: start; }
.bio-body { display: grid; gap: 14px; min-width: 0; max-width: 70ch; }
.bio h2 { font-size: var(--step-3); font-weight: 700; }
.bio .role { font-size: var(--step-1); font-weight: 500; }
.bio .spec { color: var(--muted); font-size: .98rem; }
.bio .spec strong { color: var(--ink); font-weight: 600; }
.bio .divider { height: 2px; width: 56px; background: var(--trace); margin-block: 6px; }
.bio-body p:not(.role):not(.spec) { color: var(--ink); opacity: .92; }
.back-top { font-size: var(--step--1); color: var(--muted); text-decoration: none; justify-self: start; margin-top: 6px; }
.back-top:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 720px) {
  .bio { grid-template-columns: 1fr; }
  .bio .photo { position: static; width: min(220px, 60%); }
}

/* ---------- Privacy policy ---------- */
.policy { padding-top: 8px; }
.policy-body { max-width: 72ch; display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 44px); }
.policy-body h2 { font-size: var(--step-2); font-weight: 600; margin-top: 22px; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body a { color: var(--blue); text-underline-offset: 3px; overflow-wrap: anywhere; }
.policy-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.policy-body li { position: relative; padding-left: 22px; }
.policy-body li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--green); }
.policy-body strong { font-weight: 600; }
.policy-contact { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 0; }
.policy-contact dt { color: var(--muted); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding-top: 3px; }
.policy-contact dd { margin: 0; }
.policy-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; display: grid; gap: 8px; }
.policy-card .label { font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.policy-card address { font-style: normal; line-height: 1.6; }
@media (max-width: 520px) { .policy-contact { grid-template-columns: 1fr; gap: 2px; } .policy-contact dd { margin-bottom: 10px; } }
