/* ==========================================================================
   Healthcare Straight Up, LLC — design system
   Palette sampled directly from the logo.
   Type sizes run large on purpose: the primary audience is older adults
   and their caregivers.
   ========================================================================== */

:root {
  /* Brand — exact values from logo */
  --sky:      #BBE3EF;
  --blue:     #71A1DF;
  --indigo:   #556DCF;
  --ink:      #272626;

  /* Derived, contrast-checked against white */
  --indigo-deep: #3E52A8;   /* 7.05:1  — links, headings */
  --navy:        #2B3A78;   /* 10.61:1 — footer, dark bands */
  --navy-deep:   #1F2A5C;   /* 13.6:1  */
  --muted:       #475569;   /*  7.58:1 — secondary text */

  /* Tints */
  --wash:   #F5F9FC;
  --card:   #E8F4F9;
  --line:   #DCE7EF;
  --white:  #FFFFFF;

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

  --step--1: clamp(0.94rem, 0.92rem + 0.1vw, 1rem);
  --step-0:  clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
  --step-1:  clamp(1.33rem, 1.24rem + 0.42vw, 1.6rem);
  --step-2:  clamp(1.6rem, 1.42rem + 0.9vw, 2.2rem);
  --step-3:  clamp(1.95rem, 1.6rem + 1.7vw, 3rem);
  --step-4:  clamp(2.3rem, 1.7rem + 2.9vw, 3.9rem);

  --measure: 68ch;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(31,42,92,.06), 0 8px 24px rgba(31,42,92,.07);
  --shadow-lg: 0 2px 4px rgba(31,42,92,.06), 0 18px 44px rgba(31,42,92,.12);
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; color: var(--navy-deep); font-weight: 750; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p  { margin: 0 0 1.1em; max-width: var(--measure); }
a  { color: var(--indigo-deep); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--navy); }
ul, ol { padding-left: 1.3em; max-width: var(--measure); }
li { margin-bottom: .5em; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--indigo-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .9rem 1.3rem;
  z-index: 999; border-radius: 0 0 var(--radius) 0; font-weight: 650;
}
.skip:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: min(1180px, 100% - (var(--gutter) * 2)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--wash { background: var(--wash); }
.section--tint { background: linear-gradient(180deg, var(--wash), var(--card)); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .11em; font-size: .78rem;
  font-weight: 750; color: var(--indigo-deep); margin: 0 0 .7rem;
}
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.9rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; min-height: 56px;
  border-radius: 999px; border: 2px solid transparent;
  font-size: var(--step-0); font-weight: 700; text-decoration: none;
  cursor: pointer; transition: background-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--indigo); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--indigo-deep); color: #fff; box-shadow: var(--shadow-lg); }
.btn--outline { background: transparent; color: var(--indigo-deep); border-color: var(--indigo); }
.btn--outline:hover { background: var(--indigo-deep); color: #fff; border-color: var(--indigo-deep); }
.btn--ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: #fff; color: var(--navy-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.6rem 0 0; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(160%) blur(9px);
  border-bottom: 1px solid var(--line);
}
.header__bar { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; }
.header__logo { display: flex; align-items: center; flex: 0 0 auto; }
.header__logo img { width: clamp(155px, 20vw, 205px); }
.header__spacer { flex: 1 1 auto; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .6rem .85rem; border-radius: 9px; text-decoration: none;
  color: var(--ink); font-weight: 620; font-size: 1.02rem; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--card); color: var(--navy-deep); }

.header .btn { padding: .7rem 1.25rem; min-height: 48px; font-size: 1.02rem; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: var(--card); border: 1px solid var(--line); color: var(--navy-deep);
  border-radius: 10px; padding: .65rem .9rem; font: inherit; font-weight: 700; cursor: pointer;
  min-height: 48px;
}

@media (max-width: 950px) {
  .nav-toggle { display: inline-flex; }
  .header__bar { flex-wrap: wrap; }
  .nav {
    order: 3; width: 100%; display: none;
    flex-direction: column; align-items: stretch; gap: .15rem;
    padding: .5rem 0 .9rem; border-top: 1px solid var(--line); margin-top: .6rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .85rem .6rem; font-size: 1.1rem; }
  .header__call { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 460px at 82% -12%, rgba(187,227,239,.62), transparent 62%),
    linear-gradient(180deg, var(--white), var(--wash));
  padding: clamp(2.8rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.hero__grid { display: grid; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { margin-bottom: .35em; }
.hero .lede { max-width: 46ch; }

.hero__photo {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4; object-fit: cover; width: 100%; background: var(--card);
}
.photo-placeholder {
  display: grid; place-content: center; text-align: center; gap: .5rem;
  border: 2px dashed var(--blue); color: var(--muted);
  border-radius: var(--radius-lg); aspect-ratio: 3 / 4; padding: 2rem;
  background: var(--card); font-size: var(--step--1);
}

.trust {
  display: flex; flex-wrap: wrap; gap: .55rem 1.5rem; align-items: center;
  margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--muted); font-weight: 600;
}
.trust span { display: inline-flex; align-items: center; gap: .45rem; }
.trust svg { flex: 0 0 auto; color: var(--indigo); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 1.9rem); box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 50px; height: 50px; border-radius: 13px; background: var(--card);
  display: grid; place-content: center; margin-bottom: 1rem; color: var(--indigo-deep);
}

/* Two-track split */
.track {
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex; flex-direction: column;
}
.track p { flex: 1 1 auto; }
.track--family { background: linear-gradient(155deg, var(--card), var(--wash)); border: 1px solid var(--line); }
.track--clinician { background: var(--navy); border: 1px solid var(--navy); color: #E7ECF8; }
.track--clinician h3, .track--clinician .eyebrow { color: #fff; }
.track--clinician .eyebrow { color: var(--sky); }

/* Numbered steps */
.steps { counter-reset: s; list-style: none; padding: 0; max-width: none; }
.steps li { counter-increment: s; position: relative; padding-left: 3.6rem; margin-bottom: 1.5rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -.1rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--indigo); color: #fff; font-weight: 750;
  display: grid; place-content: center; font-size: 1.15rem;
}
.steps h3 { margin-bottom: .2em; }

/* Price block */
.price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem;
  margin-bottom: .6rem;
}
.price b { font-size: var(--step-3); color: var(--navy-deep); letter-spacing: -.02em; }
.price span { color: var(--muted); font-weight: 600; }

.note {
  background: var(--card); border-left: 5px solid var(--indigo);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.35rem; font-size: var(--step--1); color: var(--muted);
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--navy-deep); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--navy-deep), var(--indigo));
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #DCE4F7; margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #C7D2E8; padding: clamp(2.8rem, 5vw, 4rem) 0 2rem; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: .8rem; letter-spacing: .01em; }
.footer a { color: #DDE5F5; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.footer__logo { width: 210px; margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: .55rem; }
.footer__legal {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.16);
  font-size: .93rem; color: #A9B7D4; line-height: 1.6;
}
.footer__legal p { max-width: 90ch; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.soon {
  margin: 0; padding: .7rem .95rem; border-radius: var(--radius);
  background: var(--wash); border: 1px dashed var(--line);
  color: var(--muted); font-size: var(--step--1); font-weight: 600;
}

/* ---------- Fixed 3-up grid (never leaves an orphan row) ---------- */
.grid--3fixed { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid--3fixed { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3fixed { grid-template-columns: repeat(3, 1fr); } }
.grid--3fixed > * { height: 100%; }

/* ---------- Chevron motif, lifted from the logo ---------- */
.chevrons { display: flex; justify-content: center; gap: 0; margin: 0 0 1.1rem; }
.chevrons svg { width: 54px; height: auto; }
.section--motif { position: relative; overflow: hidden; }
.section--motif::before {
  content: ""; position: absolute; inset: auto -8% -30% auto;
  width: 460px; height: 460px; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 410 474'%3E%3Cpath d='M72 196 L247 30 L422 196' fill='none' stroke='%23BBE3EF' stroke-width='60' stroke-linecap='round' stroke-linejoin='round' transform='translate(-175 0)'/%3E%3Cpath d='M72 320 L247 154 L422 320' fill='none' stroke='%2371A1DF' stroke-width='60' stroke-linecap='round' stroke-linejoin='round' transform='translate(-175 0)'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain; opacity: .17;
}

/* ---------- Richer cards ---------- */
.card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.card__icon {
  background: linear-gradient(145deg, var(--sky), var(--card));
  color: var(--navy-deep); box-shadow: inset 0 0 0 1px rgba(85,109,207,.14);
}
.card__tag {
  margin-top: auto; padding-top: 1rem; font-size: .86rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--indigo-deep);
}

/* ---------- Tracks, given more presence ---------- */
.tracks-lead { margin-top: -1px; }
.track { box-shadow: var(--shadow); }
.track--family { border: 1px solid var(--blue); }
.track--clinician { box-shadow: var(--shadow-lg); }
.track h3 { font-size: var(--step-2); }

/* ---------- Pull quote ---------- */
.pull {
  border-left: 6px solid var(--blue); padding: .4rem 0 .4rem 1.5rem;
  margin: 2rem 0; max-width: 60ch;
  font-size: var(--step-1); line-height: 1.5; color: var(--navy-deep);
}
.pull cite { display: block; margin-top: .7rem; font-size: var(--step--1); font-style: normal; color: var(--muted); font-weight: 650; }

/* ---------- Credential strip ---------- */
.creds { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); margin-top: 2.4rem; }
.creds div { text-align: center; padding: 1.2rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.creds b { display: block; font-size: var(--step-2); color: var(--indigo-deep); line-height: 1.1; letter-spacing: -.02em; }
.creds span { font-size: var(--step--1); color: var(--muted); font-weight: 600; }

/* 8 items land as an even 4 + 4 instead of 3 + 3 + 2 */
.grid--4fixed { grid-template-columns: 1fr; }
@media (min-width: 620px)  { .grid--4fixed { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grid--4fixed { grid-template-columns: repeat(4, 1fr); } }
