/* SiteLink website — brand tokens mirror EMR src/app/globals.css. Change tokens, not markup. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;   /* single theme: keep dark-mode browsers from painting dark chrome/controls */
  --page: #ecffff;      /* Forth */
  --card: #ffffff;
  --tint: #c0fdfd;      /* Third */
  --line: #80eded;      /* Second */
  --line-strong: #57d9d9;
  --ink: #2d3748;
  --mut: #64748b;
  --brand: #159b8b;     /* Main */
  --brand2: #159a9a;    /* Main1 */
  --aqua: #1ac4c4;      /* First */
  /* WCAG 4.5:1 variants of Main/Main1 for TEXT and for fills that carry white text.
     The design hexes above are 2.1–3.4:1 as text on light surfaces (they stay the
     token for fills, borders and hero/large accents). */
  --brand-strong: #0f7a6f;
  --brand-strong-hover: #0d635a;
  --mut-strong: #5b6980;
  /* inset card on a brand band */
  --card-on-brand: rgb(2 41 43 / .22);
  --onbrand: #ffffff;
  --danger: #e5484d;
  --ok: #159b5b;
  --warn: #d97706;
  --radius-btn: 8px;
  --radius-card: 12px;
  --shadow: 0 1px 2px rgb(2 41 43 / .06), 0 8px 24px rgb(2 41 43 / .08);
  --space: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: max(88px, 6rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 1rem/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--page);
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-strong-hover); }
:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; border-radius: 4px; }
.section-brand :focus-visible, .skip:focus-visible { outline-color: var(--onbrand); }
h1, h2, h3, h4 { color: var(--brand-strong); font-weight: 700; line-height: 1.2; margin: 0 0 calc(var(--space) * 2); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3, h4 { font-size: 1.125rem; color: var(--ink); }
p, ul { margin: 0 0 calc(var(--space) * 2); }
.small { font-size: .875rem; color: var(--mut-strong); }
.wrap { width: min(1120px, 100% - calc(var(--space) * 4)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brand-strong); color: var(--onbrand); padding: 8px 16px; border-radius: var(--radius-btn); z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: calc(var(--space) * 3); min-height: 72px; }
.brand { flex-shrink: 0; }
.brand img { width: 132px; height: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-direction: column; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--brand-strong); border-bottom-color: var(--aqua); }
.nav-toggle { display: flex; list-style: none; background: none; border: 1px solid var(--line-strong); color: var(--ink); border-radius: var(--radius-btn); padding: 8px 12px; font: inherit; cursor: pointer; align-items: center; gap: 8px; min-height: 44px; }
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle-bars { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; display: inline-block; }
.site-nav { position: absolute; top: 100%; left: 0; width: 100%; background: var(--page); padding: 16px; max-height: calc(100dvh - 80px); overflow-y: auto; border: 1px solid var(--line); }
.site-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nav-wide .nav-toggle { display: none; }
.nav-wide .site-nav { position: static; width: auto; padding: 0; max-height: none; overflow: visible; border: 0; background: none; }
.nav-wide .site-nav ul { flex-direction: row; gap: calc(var(--space) * 3); }
.nav-wide .site-nav a { padding: 6px 0; border-bottom: 2px solid transparent; }

/* Buttons */
.btn { display: inline-block; max-width: 100%; padding: 12px 20px; border-radius: var(--radius-btn); font-weight: 600; text-decoration: none; border: 1px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--brand-strong); color: var(--onbrand); }
.btn-primary:hover { background: var(--brand-strong-hover); color: var(--onbrand); }
.btn-secondary { background: var(--card); color: var(--brand-strong); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--tint); color: var(--brand-strong); }
.cta-row { display: flex; gap: calc(var(--space) * 2); flex-wrap: wrap; }

/* Sections */
.section { padding: calc(var(--space) * 9) 0; }
.section-tint { background: var(--tint); }
.section-brand { background: var(--brand-strong); color: var(--onbrand); }
.section-brand h2, .section-brand a { color: var(--onbrand); }
.section-brand .small { color: var(--onbrand); opacity: .95; }
.section-intro { font-size: 1.125rem; max-width: 62ch; color: var(--mut-strong); margin-bottom: calc(var(--space) * 5); }


.hero { padding: calc(var(--space) * 10) 0 calc(var(--space) * 9); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: calc(var(--space) * 5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); align-items: start; }
.hero-grid > *, .two-col > *, .three-col > *, .contact-grid > *, .footer-grid > * { min-width: 0; }
.lead { font-size: 1.2rem; max-width: 60ch; }
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: calc(var(--space) * 3); }
.facts { margin: 0; display: grid; gap: calc(var(--space) * 2); }
.facts div { border-bottom: 1px solid var(--line); padding-bottom: calc(var(--space) * 2); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.facts dd { margin: 0; font-weight: 500; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: calc(var(--space) * 3); box-shadow: var(--shadow); }
.card-muted { background: var(--page); box-shadow: none; }
.two-col, .three-col { display: grid; gap: calc(var(--space) * 3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }

ul.check, ul.cross { list-style: none; padding: 0; }
ul.check li, ul.cross li { padding-left: 28px; position: relative; margin-bottom: var(--space); }
ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
ul.cross li::before { content: "✕"; position: absolute; left: 0; color: var(--danger); font-weight: 700; }

.service-group { margin-top: calc(var(--space) * 5); }
.service-group > h3 { color: var(--brand-strong); }
.service-grid { list-style: none; padding: 0; display: grid; gap: calc(var(--space) * 3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.service-grid li { border-top: 1px solid var(--line-strong); padding-top: calc(var(--space) * 2); min-width: 0; }
.service-grid p { margin: 0; font-size: 1rem; }

.cro-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: calc(var(--space) * 2); }

.dash { margin: calc(var(--space) * 5) 0 0; }
.dash img { border-radius: var(--radius-card); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.dash figcaption { font-size: .85rem; color: var(--mut-strong); margin-top: var(--space); }

/* Phases + PMS points */
.phase-grid { display: grid; gap: calc(var(--space) * 3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.phase { border-top: 4px solid var(--brand-strong); }
.phase-num { color: var(--brand-strong); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: 4px; }
.phase h3 { color: var(--brand-strong); }
.phase ul { margin: 0; }
.pms-points { columns: 22rem; column-gap: calc(var(--space) * 4); margin-top: calc(var(--space) * 4); }
.pms-points li { break-inside: avoid; }
.visit-example { margin-top: calc(var(--space) * 5); border-top: 1px solid var(--line-strong); padding-top: calc(var(--space) * 3); }
.visit-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: calc(var(--space) * 4); list-style-position: inside; padding: 0; margin: 0; }
.visit-flow li { min-width: 0; }
.visit-flow li::marker { color: var(--brand-strong); font-weight: 700; }
.cro-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 8px 16px; font-weight: 500; }

/* FAQ — native <details>, no JS */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); margin-bottom: calc(var(--space) * 2); }
.faq summary { cursor: pointer; padding: calc(var(--space) * 2) calc(var(--space) * 3); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-strong); font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq summary h4 { margin: 0; min-width: 0; }
.faq-group-heading { margin-top: calc(var(--space) * 5); color: var(--brand-strong); }
.faq details p { padding: 0 calc(var(--space) * 3) calc(var(--space) * 3); margin: 0; }

.contact-grid { display: grid; gap: calc(var(--space) * 4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); align-items: center; }
.contact-card { background: var(--card-on-brand); border: 1px solid rgb(255 255 255 / .45); border-radius: var(--radius-card); padding: calc(var(--space) * 3); }
.contact-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; margin-bottom: 4px; }
.contact-value { font-size: 1.35rem; font-weight: 600; }
.contact-value a { text-decoration: underline; text-underline-offset: .2em; }
.contact-value a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: calc(var(--space) * 6) 0 calc(var(--space) * 3); font-size: .9rem; }
.footer-grid { display: grid; gap: calc(var(--space) * 4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.footer-brand { font-weight: 700; color: var(--brand-strong); font-size: 1.1rem; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--brand-strong); }
.footer-legal { border-top: 1px solid var(--line); margin-top: calc(var(--space) * 4); padding-top: calc(var(--space) * 3); color: var(--mut); font-size: .8rem; }
