/* ============================================================
   TruArc Health - Design System
   Premium institutional: deep navy base, TruArc blue accent,
   Figtree display + body (matches the investor deck).
   Static, no dependencies.
   ============================================================ */

:root {
  /* Brand */
  --ink:        #0B1F33;   /* primary text / deep navy ink */
  --navy:       #081627;   /* darkest — hero/footer base */
  --navy-2:     #0E2742;   /* navy panel */
  --blue:       #0061F2;   /* primary accent */
  --blue-bright:#2E9DFF;   /* light accent / the TruArc dot */
  --blue-deep:  #0B4FBE;

  /* Neutrals */
  --slate:      #4F5B6B;   /* muted body text */
  --slate-2:    #7B8696;   /* secondary muted */
  --line:       #E4E9F0;   /* hairline borders */
  --line-dark:  rgba(255,255,255,.14);
  --bg:         #FFFFFF;
  --bg-soft:    #F5F8FC;   /* alternating section */
  --bg-tint:    #ECF3FE;   /* blue tint surface */

  /* Division accents */
  --gnosis:     #13A8BD;
  --gfh:        #DB4F97;
  --campus:     #F2A41E;

  /* Type */
  --serif: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans:  "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Shape */
  --radius:   14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(11,31,51,.06), 0 2px 8px rgba(11,31,51,.05);
  --shadow:    0 10px 30px rgba(11,31,51,.08), 0 2px 8px rgba(11,31,51,.05);
  --shadow-lg: 0 24px 60px rgba(8,22,39,.16);

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--blue-deep); }
h1,h2,h3,h4 { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--navy); color: #DCE6F2; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 600; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue);
  display: inline-flex; align-items: center; gap: .55em; margin-bottom: 1rem;
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--blue); display:inline-block; }
.center .eyebrow { justify-content: center; }
.section--ink .eyebrow { color: var(--blue-bright); }
.section--ink .eyebrow::before { background: var(--blue-bright); }

h1.display { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2.display { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: .5em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--slate); line-height: 1.55; }
.section--ink .lead, .section--ink p { color: #AFC0D6; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .8em 1.5em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(0,97,242,.28); }
.btn--primary:hover { background: var(--blue-deep); color:#fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,97,242,.34); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--on-dark { background: #fff; color: var(--navy); }
.btn--on-dark:hover { background: var(--blue-bright); color: var(--navy); transform: translateY(-1px); }
.btn--outline-dark { background: transparent; color:#fff; border-color: var(--line-dark); }
.btn--outline-dark:hover { border-color:#fff; color:#fff; }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-row { display:flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content:center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Logo wordmark */
.logo { display:inline-flex; align-items: baseline; gap:.18em; font-family: var(--sans); text-decoration:none; line-height:1; }
.logo__tru { font-weight: 800; font-size: 1.42rem; letter-spacing: -0.02em; color: var(--ink); }
.logo__dot { color: var(--blue); }
.logo__health { font-weight: 500; font-size: 1.02rem; color: var(--slate-2); letter-spacing: .01em; }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a {
  color: var(--ink); font-weight: 500; font-size: .96rem; padding: .55em .85em; border-radius: 8px;
}
.nav__links a:hover { color: var(--blue); background: var(--bg-tint); }
.nav__links a.is-active { color: var(--blue); }
.nav__cta { display:flex; align-items:center; gap: 10px; }
.nav__toggle { display:none; background:none; border:0; cursor:pointer; padding:8px; }
.nav__toggle span { display:block; width:22px; height:2px; background: var(--ink); margin:5px 0; transition: .25s; border-radius:2px; }

/* Mobile nav (hidden on desktop) */
.mobile-nav { display: none; }
@media (max-width: 940px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display:block; }
  .mobile-nav {
    display: block;
    position: fixed; inset: var(--nav-h) 0 auto 0; background:#fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events:none; transition: .22s ease; z-index:55;
  }
  .mobile-nav.open { transform: translateY(0); opacity:1; pointer-events:auto; }
  .mobile-nav ul { list-style:none; padding: 14px var(--gutter) 22px; }
  .mobile-nav a { display:block; padding: 13px 8px; font-weight:600; color: var(--ink); border-bottom:1px solid var(--line); }
  .mobile-nav .btn { display:inline-flex; margin-top:16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color:#fff; overflow:hidden;
  background: linear-gradient(118deg, #06121f 0%, #0A1F38 46%, #103466 100%);
}
.hero__media { position:absolute; inset:0; z-index:0; }
.hero__media img { width:100%; height:100%; object-fit: cover; opacity:.20; }
.hero__media::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(118deg, rgba(6,18,31,.92) 0%, rgba(10,31,56,.82) 45%, rgba(16,52,102,.55) 100%);
}
.hero__inner { position: relative; z-index:1; padding: clamp(80px,12vw,150px) 0 clamp(72px,10vw,124px); }
.hero__grid { display:grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items:center; }
.hero h1 { color:#fff; }
.hero .lead { color:#C7D6EA; max-width: 40ch; }
.hero__eyebrow { color: var(--blue-bright); }
.hero__eyebrow::before { background: var(--blue-bright); }
.hero__pills { display:flex; flex-wrap:wrap; gap:10px; margin-top:30px; }
.pill {
  font-size:.82rem; font-weight:600; color:#CFE0F4; padding:.5em 1em; border-radius:999px;
  border:1px solid var(--line-dark); background: rgba(255,255,255,.04);
}
.hero__card {
  background: rgba(255,255,255,.05); border:1px solid var(--line-dark);
  border-radius: var(--radius); padding: 30px; backdrop-filter: blur(4px);
}
.hero__card h3 { color:#fff; font-size:1.1rem; }
.hero__statline { display:grid; grid-template-columns: repeat(2,1fr); gap: 22px 18px; margin-top: 6px; }
.hero__statline .num { font-family: var(--serif); font-size: 1.9rem; font-weight:600; color:#fff; line-height:1; }
.hero__statline .lbl { font-size:.8rem; color:#9FB4CE; margin-top:6px; }
@media (max-width: 860px){ .hero__grid{ grid-template-columns:1fr; gap:36px; } .hero__card{ order:2; } }

/* ---------- Stat band ---------- */
.statband { background: var(--navy-2); color:#fff; }
.statband .container { display:grid; grid-template-columns: repeat(4,1fr); gap: 28px; padding-block: 46px; }
.stat { text-align:center; }
.stat .num { font-family: var(--serif); font-size: clamp(2rem,3.4vw,2.7rem); font-weight:600; color:#fff; line-height:1; }
.stat .num span { color: var(--blue-bright); }
.stat .lbl { font-size:.86rem; color:#A9BBD3; margin-top:10px; letter-spacing:.01em; }
@media (max-width: 760px){ .statband .container{ grid-template-columns: repeat(2,1fr); gap:34px 18px; } }

/* ---------- Division cards ---------- */
.divisions { display:grid; grid-template-columns: repeat(2,1fr); gap: 26px; margin-top: 52px; max-width: 920px; margin-inline: auto; }
.dcard {
  position:relative; background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px 30px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  display:flex; flex-direction:column;
}
.dcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.dcard__top { height:4px; border-radius:999px; width:48px; margin-bottom:22px; background: var(--accent, var(--blue)); }
.dcard__img { width:96px; height:96px; border-radius:50%; margin-bottom:20px; box-shadow: var(--shadow-sm); }
.dcard h3 { font-size: 1.5rem; margin-bottom:.35em; }
.dcard p { color: var(--slate); font-size: .99rem; margin-bottom: 1.3em; }
.dcard .more { margin-top:auto; font-weight:600; font-size:.95rem; color: var(--accent, var(--blue)); display:inline-flex; align-items:center; gap:.4em; }
.dcard .more .arr { transition: transform .18s ease; }
.dcard:hover .more .arr { transform: translateX(4px); }
.dcard[data-accent="gnosis"]{ --accent: var(--gnosis); }
.dcard[data-accent="gfh"]{ --accent: var(--gfh); }
.dcard[data-accent="campus"]{ --accent: var(--campus); }
.dcard__sub { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .93rem; }
.dcard__sub .tag { display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--gfh); margin-bottom:4px; }
.dcard__sub p { margin: 0 0 6px; color: var(--slate); font-size: .93rem; }
.dcard__sub a { font-weight: 600; font-size: .92rem; color: var(--gfh); display:inline-flex; align-items:center; gap:.35em; }
@media (max-width: 920px){ .divisions{ grid-template-columns:1fr; gap:18px; } .dcard{ flex-direction:row; align-items:flex-start; gap:22px; flex-wrap:wrap; } .dcard__img{ margin-bottom:0; } .dcard__body{ flex:1; min-width:240px; } .dcard__top{ display:none; } }

/* ---------- Feature / split rows ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,6vw,72px); align-items:center; }
.split--rev .split__media { order:2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width:100%; }
.split__media .circle { width: min(360px,80%); margin-inline:auto; box-shadow:none; }
@media (max-width: 860px){ .split{ grid-template-columns:1fr; gap:34px; } .split--rev .split__media{ order:0; } }

/* Checklist */
.ticklist { list-style:none; display:grid; gap: 14px; margin: 6px 0 0; }
.ticklist li { position:relative; padding-left: 34px; color: var(--slate); }
.ticklist li strong { color: var(--ink); font-weight:600; }
.ticklist li::before {
  content:""; position:absolute; left:0; top:3px; width:20px; height:20px; border-radius:50%;
  background: var(--accent, var(--blue));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/15px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/15px no-repeat;
}

/* Mini metric grid (interior pages) */
.metrics { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 12px; }
.metric { background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; box-shadow: var(--shadow-sm); }
.metric .num { font-family: var(--serif); font-size: 2rem; font-weight:600; color: var(--ink); line-height:1; }
.metric .num span { color: var(--accent, var(--blue)); }
.metric .lbl { font-size:.88rem; color: var(--slate); margin-top:8px; }
@media (max-width: 760px){ .metrics{ grid-template-columns:1fr; } }

/* Page hero (interior) */
.pagehero { background: var(--navy); color:#fff; padding: clamp(72px,10vw,120px) 0 clamp(48px,7vw,84px); position:relative; }
.pagehero .accentbar { width:54px; height:4px; border-radius:999px; background: var(--accent, var(--blue-bright)); margin-bottom:24px; }
.pagehero[data-accent="gnosis"]{ --accent: var(--gnosis); }
.pagehero[data-accent="gfh"]{ --accent: var(--gfh); }
.pagehero[data-accent="campus"]{ --accent: var(--campus); }
.pagehero h1 { color:#fff; font-size: clamp(2.2rem,4.4vw,3.4rem); }
.pagehero .lead { color:#B9C9DE; max-width: 56ch; }
.pagehero .crumb { font-size:.82rem; color:#7E91AB; letter-spacing:.04em; margin-bottom:18px; }
.pagehero .crumb a { color:#9FB4CE; }

/* ---------- Leadership ---------- */
.people { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 44px; }
.person { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.person .avatar {
  width:60px; height:60px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family: var(--serif); font-weight:600; font-size:1.3rem; color:#fff; background: linear-gradient(135deg, var(--blue), var(--blue-bright)); margin-bottom:16px;
}
.person .avatar--photo { width:72px; height:72px; object-fit:cover; object-position:top; padding:0; background:var(--bg-tint); box-shadow: var(--shadow-sm); }
.person h3 { font-size:1.18rem; margin-bottom:.15em; }
.person .role { font-size:.86rem; font-weight:600; color: var(--blue); margin-bottom:.9em; letter-spacing:.01em; }
.person p { font-size:.92rem; color: var(--slate); margin:0; }
@media (max-width: 900px){ .people{ grid-template-columns:1fr 1fr; } }
@media (max-width: 600px){ .people{ grid-template-columns:1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px,5vw,64px); align-items:start; }
.contact-info .row { display:flex; gap:14px; padding: 18px 0; border-bottom:1px solid var(--line); }
.contact-info .row:last-child{ border-bottom:0; }
.contact-info .k { font-size:.78rem; text-transform:uppercase; letter-spacing:.1em; color:var(--slate-2); font-weight:600; }
.contact-info .v { font-size:1.02rem; color:var(--ink); }
.ico { width:40px; height:40px; flex:none; border-radius:10px; background:var(--bg-tint); display:flex; align-items:center; justify-content:center; }
.ico svg { width:20px; height:20px; fill: var(--blue); }
.form-frame { background:#fff; border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow:hidden; }
.form-frame iframe { width:100%; border:0; display:block; min-height: 740px; }
@media (max-width: 860px){ .contact-grid{ grid-template-columns:1fr; } }

/* ---------- Native contact form ---------- */
.cform-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 16px; }
.cform-field { display:flex; flex-direction:column; gap:6px; margin-bottom: 14px; }
.cform-grid .cform-field { margin-bottom: 0; }
.cform-field label { font-size:.85rem; font-weight:600; color: var(--ink); }
.cform-field input, .cform-field select, .cform-field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .7em .9em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease; width: 100%;
}
.cform-field textarea { resize: vertical; min-height: 130px; }
.cform-field input:focus, .cform-field select:focus, .cform-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,97,242,.14);
}
.cform-hp { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.cform-status { margin: 12px 0 0; font-size: .95rem; }
.cform-status.is-success { color: #157347; font-weight: 600; }
.cform-status.is-error { color: #B42318; font-weight: 600; }
#cf-submit:disabled { opacity:.65; cursor: default; transform:none; }
@media (max-width: 680px){ .cform-grid { grid-template-columns: 1fr; } }

/* IR callout */
.ir-note { background: var(--bg-tint); border:1px solid #D6E6FD; border-radius: var(--radius); padding: 26px 28px; }
.ir-note h3 { font-size:1.15rem; }
.ir-note p { color: var(--slate); margin-bottom:0; font-size:.96rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(118deg,#0A1F38 0%, #103466 100%); color:#fff; border-radius: clamp(16px,3vw,28px); padding: clamp(40px,6vw,68px); text-align:center; }
.cta-band h2 { color:#fff; }
.cta-band p { color:#B9C9DE; max-width: 56ch; margin-inline:auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color:#9FB1C8; padding: 64px 0 30px; }
.footer-grid { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .logo__tru { color:#fff; }
.site-footer .logo__health { color:#8DA1BC; }
.footer-about { font-size:.93rem; color:#8DA1BC; max-width: 34ch; margin-top:16px; }
.footer-col h4 { font-family: var(--sans); color:#fff; font-size:.82rem; text-transform:uppercase; letter-spacing:.1em; margin-bottom:16px; font-weight:600; }
.footer-col ul { list-style:none; display:grid; gap:11px; }
.footer-col a { color:#9FB1C8; font-size:.94rem; }
.footer-col a:hover { color: var(--blue-bright); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top:1px solid var(--line-dark); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.83rem; color:#7E91AB; }
.footer-bottom a { color:#7E91AB; }
@media (max-width: 820px){ .footer-grid{ grid-template-columns:1fr 1fr; gap:30px; } }
@media (max-width: 480px){ .footer-grid{ grid-template-columns:1fr; } }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
/* Hidden only when JS is active; otherwise content always shows. */
html.js .reveal { opacity:0; transform: translateY(18px); }
.reveal { transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ html.js .reveal, html.js .reveal.in { opacity:1; transform:none; transition:none; } html{ scroll-behavior:auto; } }

/* Disclosure / fine print */
.finecaption { font-size:.8rem; color: var(--slate-2); margin-top: 10px; }
.section--ink .finecaption { color:#8097B2; }
