/* Rhea Health: site styles */
/* Nunito Sans, self-hosted (SIL Open Font License, see assets/fonts/OFL-LICENSE.txt) */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../fonts/nunito-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../fonts/nunito-sans-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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --teal: #1FB6A6;
  --blue: #0077B6;
  --navy: #002857;
  --navy-2: #0B3A6E;
  --grey: #8E9190;
  --grey-light: #C7C7C7;
  --ink: #1B2430;
  --muted: #3A4552;
  --mint: #EEF8F7;
  --mist: #F5F8FA;
  --line: #DDE6EE;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Nunito Sans', Avenir, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #FFFFFF;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 900; }
p { margin: 0; }
sup a { text-decoration: none; font-weight: 700; }
sup.tm { font-size: 0.5em; vertical-align: super; line-height: 0; letter-spacing: 0; margin-left: 1px; font-weight: 700; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #FFFFFF; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--mist { background: var(--mist); }
.section--mint { background: var(--mint); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.intro { max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.note { font-size: 15px; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(150%) blur(6px); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 700; }
.nav a { color: var(--navy); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--blue); }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px;
               border: 0; border-radius: 10px; background: none; color: var(--navy); cursor: pointer; }
.menu-toggle:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.menu-toggle path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.menu-toggle .cross, .menu-open .menu-toggle .bars { display: none; }
.menu-open .menu-toggle .cross { display: inline; }

/* Hero */
.hero { background: var(--navy); color: #FFFFFF; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.hero__copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 2.4px; color: var(--teal); text-transform: uppercase; }
.hero h1 { color: #FFFFFF; font-size: clamp(40px, 6vw, 60px); font-weight: 900; letter-spacing: -1px; }
.hero__lead { font-size: clamp(18px, 2vw, 20px); color: #E3EAF2; max-width: 620px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.btn--primary { background: var(--teal); color: var(--navy); }
.btn--primary:hover { background: #3CC7B8; color: var(--navy); }
.btn--ghost { border: 2px solid #FFFFFF; color: #FFFFFF; }
.btn--ghost:hover { background: #FFFFFF; color: var(--navy); }
.stat-card { flex: 1 1 320px; min-width: 0; background: var(--navy-2); color: #FFFFFF; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.stat-card svg { width: 100%; height: auto; max-height: 120px; }
.stat-card__num { font-size: 52px; font-weight: 900; line-height: 1; color: #FFFFFF; }
.stat-card__text { font-size: 16px; color: #E3EAF2; }
.stat-card__text sup a { color: var(--teal); }

/* What is carrier screening */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split__main { flex: 999 1 480px; min-width: 0; }
.split__side { flex: 1 1 340px; min-width: 0; }
.panel { background: var(--mint); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.panel__title { font-size: 18px; font-weight: 800; color: var(--navy); }
.odds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; margin: 0; padding: 0; list-style: none; }
.odds li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; line-height: 1.3; }
.dot { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--navy); background: #FFFFFF; }
.dot--carrier-l { background: linear-gradient(90deg, var(--teal) 50%, #FFFFFF 50%); }
.dot--carrier-r { background: linear-gradient(90deg, #FFFFFF 50%, var(--teal) 50%); }
.dot--affected { background: var(--blue); }
.odds .affected { font-weight: 800; color: var(--blue); }

/* Panels and conditions */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tier { background: var(--navy); color: #FFFFFF; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.tier__label { font-size: 17px; font-weight: 800; letter-spacing: 0.3px; color: var(--teal); }
.tier__num { font-size: 40px; font-weight: 900; line-height: 1; }
.tier__text { font-size: 15px; color: #E3EAF2; }
.subhead { font-size: 18px; font-weight: 800; color: var(--navy); }
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; align-items: center; }
.thumb { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.thumb--icon { background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.item__title { font-size: 18px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.item__text { font-size: 15px; line-height: 1.45; }
.option { display: flex; gap: 14px; align-items: flex-start; }
.option .item__title { font-size: 17px; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps li { border-top: 4px solid var(--teal); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.steps__n { font-size: 14px; font-weight: 800; color: var(--blue); letter-spacing: 1.5px; }
.steps__title { font-size: 20px; font-weight: 800; color: var(--navy); }
.steps__text { font-size: 16px; }

/* Limits */
.limits { border: 2px solid var(--grey-light); border-radius: 20px; padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.limits h2 { font-size: clamp(26px, 3.5vw, 32px); }
.limits ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }

.emphasis { font-size: clamp(20px, 2.4vw, 24px); font-weight: 800; color: var(--navy); }

/* References */
.refs { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-size: 18px; font-weight: 800; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin-top: 10px; }

/* Get tested */
.route { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }

/* Clinicians page */
.page-hero { background: var(--navy); color: #FFFFFF; }
.page-hero .wrap { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { color: #FFFFFF; font-size: clamp(34px, 5vw, 48px); font-weight: 900; letter-spacing: -0.8px; }
.page-hero p { color: #E3EAF2; font-size: clamp(17px, 2vw, 19px); max-width: 760px; }
.facts { width: 100%; border-collapse: collapse; font-size: 16px; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.facts th { width: 30%; color: var(--navy); font-weight: 800; background: var(--mist); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.prose { max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* Footer */
.site-footer { background: var(--navy); color: #E3EAF2; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-start; padding-top: 48px; padding-bottom: 40px; }
.site-footer .brand { flex: 1 1 240px; }
.site-footer .brand img { height: auto; width: 220px; }
.site-footer__about { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__about strong { color: #FFFFFF; }
.site-footer a { color: #FFFFFF; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero .wrap { padding-top: 48px; padding-bottom: 48px; gap: 32px; }
  .site-header { position: static; }
  .stat-card__num { font-size: 44px; }

  /* Header: smaller logo */
  .site-header .wrap { padding-top: 10px; padding-bottom: 4px; gap: 4px; }
  .brand img { height: 40px; }

  /* Without JavaScript: menu on one line that scrolls sideways */
  html:not(.js) .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
         width: calc(100% + 48px); margin: 0 -24px; padding: 0 24px; gap: 0 20px; font-size: 15px;
         -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  html:not(.js) .nav::-webkit-scrollbar { display: none; }
  html:not(.js) .nav a { white-space: nowrap; padding: 10px 0; }
  html:not(.js) .nav a:last-child { padding-right: 32px; }

  /* With JavaScript: compact header pinned to the top, menu behind a button */
  html.js .site-header { position: sticky; }
  html.js .site-header .wrap { padding-top: 8px; padding-bottom: 8px; }
  html.js .menu-toggle:not([hidden]) { display: inline-flex; }
  html.js .nav { display: none; }
  html.js .menu-open .nav { display: flex; flex-direction: column; flex-wrap: nowrap; width: 100%; gap: 0;
         padding: 4px 0 8px; border-top: 1px solid var(--line); max-height: calc(100vh - 64px); overflow-y: auto; }
  html.js .menu-open .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  html.js .menu-open .nav a:last-child { border-bottom: 0; }
  html.js [id] { scroll-margin-top: 72px; }

  /* Hero buttons full width */
  .buttons .btn { flex: 1 1 100%; justify-content: center; }

  /* Panel cards: keep "110 conditions" on one line */
  .tier__num { font-size: 34px; }

  /* Easier to tap */
  .faq summary { padding: 8px 0; }
  .footer-links a { display: inline-block; padding: 10px 0; }
  .odds li { font-size: 14px; }

  /* Clinicians table: label above value instead of side by side */
  .facts, .facts tbody, .facts tr, .facts th, .facts td { display: block; width: 100%; }
  .facts th { padding: 14px 18px 4px; border-bottom: 0; background: none; }
  .facts td { padding: 0 18px 14px; }
  .facts tr { border-bottom: 1px solid var(--line); }
  .facts tr:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
