/* ==========================================================================
   US-LTN — site.css
   All design tokens live in :root below. Change a color or font once here
   and it updates everywhere.
   ========================================================================== */

:root {
  /* Colors */
  --green-deep: #173F30;   /* dark green — footer, bands, primary hover */
  --green:      #1E5B45;   /* primary green — buttons, links, accents */
  --green-soft: #9DB8A7;   /* muted green — text on dark backgrounds */
  --green-pale: #DCE8DF;   /* pale green — body text on dark backgrounds */
  --cream:      #FAF8F3;   /* page background */
  --white:      #FFFFFF;   /* alternate section background */
  --ink:        #1B2B22;   /* headings */
  --body:       #4E5A50;   /* body text */
  --muted:      #8A8374;   /* captions, fine print */
  --line:       #E8E3D8;   /* borders */
  --sand-1:     #EDE8DC;   /* photo placeholder stripes */
  --sand-2:     #E5DFD0;

  /* Fonts */
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans:  'Public Sans', system-ui, sans-serif;
  --font-label: 'Public Sans', system-ui, sans-serif;  /* eyebrows + small labels — swap here to restyle every label at once */
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  font-family: var(--font-sans);
  color: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: pretty;
}

h1 { font-size: 52px; line-height: 1.1; }
h2 { font-size: 38px; line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.3; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

/* Small uppercase monospace label above headings */
.eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.fine-print { font-size: 13px; color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary { background: var(--green); color: #FBF9F4; }
.btn-primary:hover { background: var(--green-deep); }

.btn-outline { border: 1.5px solid #C9C2B1; color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--green); color: var(--green); }

.btn-light { background: #FBF9F4; color: var(--green-deep); }

/* ---------- Announcement banner ---------- */

.banner {
  background: var(--green-deep);
  color: var(--green-pale);
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
}
.banner a { text-decoration: underline; }

/* ---------- Navigation ---------- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  gap: 26px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow .25s ease;
}
.site-nav.scrolled { box-shadow: 0 4px 18px rgba(23, 63, 48, 0.08); }

.site-nav .logo { display: flex; align-items: baseline; gap: 10px; }
.site-nav .logo strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--green-deep);
}
.site-nav .logo span {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;   /* keeps links + CTA together on the right on desktop */
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: #3C4A42;
}
.site-nav ul a:hover { color: var(--green); }
.site-nav ul a[aria-current="page"] { color: var(--green); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.site-nav .nav-cta[aria-current="page"] { text-decoration: none; color: #FBF9F4; background: var(--green-deep); }
.site-nav .nav-cta { background: var(--green); color: #FBF9F4; padding: 10px 20px; border-radius: 999px; font-weight: 600; }
.site-nav .nav-cta:hover { background: var(--green-deep); color: #FBF9F4; }

/* ---------- Sections ---------- */

.section { padding: 72px 48px; }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
.section--dark  { background: var(--green-deep); }

.section--dark h1, .section--dark h2, .section--dark h3 { color: #FBF9F4; }
.section--dark p { color: var(--green-pale); }

/* Section heading row: title on left, eyebrow on right */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  gap: 24px;
}

/* ---------- Grids ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Hero: text left, image right */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  padding: 72px 48px 64px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-copy p { font-size: 18px; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Cards ---------- */

.card {
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card--cream    { background: var(--cream); }
.card--white    { background: var(--white); border: 1px solid var(--line); }
.card--bordered { background: transparent; border: 1px solid var(--line); }
.card--dark     { background: var(--green-deep); }
.card--dark h3, .card--dark strong { color: #FBF9F4; }
.card--dark p   { color: var(--green-pale); }

.card .step-number { font-family: var(--font-serif); font-size: 30px; color: var(--green); }
.card strong { font-size: 17px; color: var(--ink); }
.card p { font-size: 14.5px; line-height: 1.55; }

a.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(23, 63, 48, 0.08); }
.card-link { font-weight: 600; font-size: 14.5px; color: var(--green); }

/* ---------- Photo placeholder (replace with real <img>) ---------- */

.photo-placeholder {
  border-radius: 16px;
  min-height: 340px;
  background: repeating-linear-gradient(-45deg, var(--sand-1) 0 14px, var(--sand-2) 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-placeholder span {
  font-family: var(--font-label);
  font-size: 12px;
  color: #7B7261;
  background: var(--cream);
  padding: 8px 14px;
  border-radius: 6px;
}

/* ---------- Trust strip (dark checkmark band) ---------- */

.trust-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 48px;
  background: var(--green-deep);
  color: var(--green-pale);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Physician revenue calculator ---------- */

.calculator {
  background: var(--green-deep);
  border-radius: 18px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.calculator .calc-head { display: flex; justify-content: space-between; align-items: baseline; color: #FBF9F4; }
.calculator .calc-head output { font-family: var(--font-serif); font-size: 30px; }
.calculator input[type="range"] { width: 100%; accent-color: var(--green-soft); }
.calculator .calc-row {
  display: flex; justify-content: space-between; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: var(--green-pale); font-size: 14.5px;
}
.calculator .calc-row output { color: #FBF9F4; font-weight: 600; font-size: 15px; }
.calculator .calc-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; }
.calculator .calc-total span { color: var(--green-soft); font-weight: 600; font-size: 15px; }
.calculator .calc-total output { font-family: var(--font-serif); font-size: 38px; color: #FBF9F4; }

/* ---------- Forms (appointments page) ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-card label { font-weight: 600; font-size: 13.5px; color: #3C4A42; display: block; margin-bottom: 8px; }
.form-card input[type="text"], .form-card input[type="tel"], .form-card input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #D8D2C4;
  border-radius: 10px;
  font: 400 15px var(--font-sans);
  background: var(--cream);
  color: var(--ink);
}
.form-card input:focus { outline: 2px solid var(--green); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px;
  border: 1px solid #D8D2C4;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  font-family: var(--font-sans);
  color: var(--body);
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.selected { border: 1.5px solid var(--green); background: #EFF3EE; color: var(--green); font-weight: 600; }

/* Info tooltip — a small "?" you can hover, focus, or tap for a
   plain-language explanation (tap toggle handled by js/site.js). */
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  padding: 0;
  margin-left: 4px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  font: 600 12px/1 var(--font-sans);
  cursor: pointer;
  vertical-align: middle;
}
.info-tip:hover { background: #EFF3EE; }
.info-tip .tip-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 270px;
  max-width: calc(100vw - 48px);
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--green-deep);
  color: var(--green-pale);
  font: 400 13.5px/1.55 var(--font-sans);
  font-weight: 400;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease;
  z-index: 30;
  pointer-events: none;
}
.info-tip .tip-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--green-deep);
}
.info-tip:hover .tip-bubble,
.info-tip:focus-visible .tip-bubble,
.info-tip.open .tip-bubble { opacity: 1; visibility: visible; }

/* ---------- CTA band ---------- */

.cta-band {
  padding: 72px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.cta-band p { max-width: 60ch; }

/* Lead-capture mini form inside CTA bands (physicians + systems pages).
   Inputs match the eligibility form's (.form-card) style. */
.cta-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 640px;
}
.cta-form input[type="email"],
.cta-form input[type="tel"] {
  flex: 1 1 210px;
  padding: 13px 16px;
  border: 1px solid #D8D2C4;
  border-radius: 10px;
  font: 400 15px var(--font-sans);
  background: var(--cream);
  color: var(--ink);
}
.cta-form input:focus { outline: 2px solid var(--green); }

/* ---------- Footer ---------- */

.site-footer { background: var(--green-deep); padding: 56px 48px 32px; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.site-footer .footer-brand strong { font-family: var(--font-serif); font-size: 20px; color: #FBF9F4; }
.site-footer .footer-brand p { color: var(--green-soft); font-size: 14px; max-width: 40ch; margin-top: 14px; }
.site-footer .footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--green-pale); }
.site-footer .footer-links .eyebrow { color: var(--green-soft); font-size: 11px; margin-bottom: 4px; }
.site-footer .footer-links a:hover { color: #FBF9F4; }
.site-footer .footer-meta {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--green-soft);
}
.newsletter { display: flex; gap: 10px; margin-top: 14px; }
.newsletter input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  font: 400 14px var(--font-sans);
  color: #FBF9F4;
}
.newsletter button { background: #FBF9F4; color: var(--green-deep); padding: 12px 22px; border-radius: 999px; font-weight: 600; border: none; cursor: pointer; font-family: var(--font-sans); }

/* ---------- Scroll reveal ----------
   Elements with class "reveal" fade up once when scrolled into view.
   Handled by js/site.js. Disabled for users who prefer reduced motion. */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s cubic-bezier(.2,.6,.2,1), transform .55s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive: stack grids on small screens ---------- */

@media (max-width: 960px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .hero, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section, .hero, .site-nav, .trust-strip, .site-footer { padding-left: 24px; padding-right: 24px; }

  /* Nav becomes two rows: logo + CTA pill on top, links wrapped below.
     Everything stays visible — no hidden hamburger menu. */
  .site-nav { position: static; flex-wrap: wrap; row-gap: 14px; padding-top: 16px; padding-bottom: 16px; }
  .site-nav .logo span { display: none; }          /* hide the small tagline */
  .site-nav .nav-cta { order: 2; padding: 9px 16px; font-size: 13px; }
  .site-nav ul { order: 3; width: 100%; margin-left: 0; justify-content: center; flex-wrap: wrap; column-gap: 20px; row-gap: 10px; }

  .site-footer .footer-grid { grid-template-columns: 1fr; }
}
