/* =========================================================
   Advocate Health Services — Voucher Marketplace
   Clean consumer-healthcare marketplace styling.
   Palette derived from the Advocate Health Services logo.
   ========================================================= */

:root {
  --navy:       #0F4D80;   /* ADVOCATE wordmark */
  --navy-dark:  #0B3A63;
  --teal:       #299DBE;   /* HEALTH SERVICES wordmark */
  --teal-dark:  #1F88A6;
  --teal-tint:  #e7f3f7;

  --ink:        #16303f;   /* dark heading text on white */
  --body:       #54636e;   /* body copy */
  --muted:      #8492a0;
  --line:       #e3eaef;
  --line-soft:  #eef3f6;

  --bg:         #ffffff;
  --bg-soft:    #f4f8fb;   /* tinted section background */
  --green:      #2E9E6B;   /* success / savings ticks */

  --radius:     12px;
  --radius-lg:  18px;
  --shadow:     0 1px 2px rgba(16,48,63,.04), 0 8px 24px rgba(16,48,63,.06);
  --shadow-lg:  0 18px 50px rgba(15,77,128,.14);

  --font:       'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display:    'Poppins', var(--font);
  --maxw:       1140px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.18; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.05rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.015em; }
h3 { font-size: 1.22rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #15728C;
  margin-bottom: .85rem;
  display: inline-block;
}
.lead { font-size: 1.18rem; color: var(--body); }
.muted { color: var(--muted); }
.center { text-align: center; }
.measure { max-width: 640px; }
.measure.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--teal-tint); outline-offset: 2px; }

.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 18px rgba(41,157,190,.28); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }

.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-dark); background: #fff; }

.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: #eef6fa; color: var(--navy); }

.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 16px;
}
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--ink); font-weight: 500; font-size: .98rem;
}
.nav-links a:hover { color: var(--teal-dark); text-decoration: none; }
.nav-links .btn { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #cfe2ee; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 84px; background:
  radial-gradient(1200px 500px at 85% -10%, var(--teal-tint), transparent 60%),
  linear-gradient(180deg, #fbfdfe, #ffffff); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 { color: var(--navy); margin-bottom: 1.1rem; }
.hero h1 span { color: var(--teal); }
.hero p.lead { margin-bottom: 1.8rem; max-width: 33ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px 26px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--body); font-weight: 500; }
.hero-trust svg { flex: none; }

/* ---------- Signature: voucher ticket ---------- */
.voucher {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.5deg);
}
.voucher::before, .voucher::after {
  content: ""; position: absolute; top: 152px;
  width: 26px; height: 26px; background: var(--bg-soft);
  border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line);
}
.hero .voucher::before, .hero .voucher::after { background: #fbfdfe; }
.voucher::before { left: -13px; }
.voucher::after  { right: -13px; }
.voucher-top {
  background: linear-gradient(125deg, var(--navy), var(--teal));
  color: #fff; padding: 26px 30px 30px;
}
.voucher-top .vlabel { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.voucher-top .vservice { font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin-top: 6px; line-height: 1.2; }
.voucher-perf { border-top: 2px dashed var(--line); }
.voucher-body { padding: 26px 30px 28px; }
.voucher-row { display: flex; justify-content: space-between; align-items: baseline; }
.voucher-row + .voucher-row { margin-top: 14px; }
.voucher-key { color: var(--muted); font-size: .9rem; }
.voucher-val { color: var(--ink); font-weight: 600; }
.voucher-price { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--navy); }
.voucher-foot {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px;
}

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.step-num {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  background: var(--teal-tint); color: var(--navy); margin-bottom: 18px;
}
.step h3 { color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 1rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d4e6ee; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--teal-tint); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card h3 { color: var(--navy); margin-bottom: 10px; }
.card p { font-size: .98rem; margin-bottom: 20px; }
.card-foot { margin-top: auto; }
.card-price {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px;
}
.card-price-amt { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--navy); line-height: 1; }
.card-price-cap { font-size: .82rem; color: var(--muted); }

/* ---------- Organization cards ---------- */
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; max-width: 760px; margin: 0 auto; }
.org-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px 32px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.org-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d4e6ee; }
.org-card.is-disabled { opacity: .55; }
.org-logo {
  height: 88px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.org-logo img { max-height: 70px; width: auto; }
.org-card h3 { color: var(--navy); font-size: 1.35rem; margin-bottom: 6px; }
.org-card p { font-size: .96rem; margin-bottom: 22px; }
.org-card .btn { margin-top: auto; }
.soon-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); background: var(--line-soft);
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- Interior page header ---------- */
.page-head { padding: 48px 0 8px; }
.crumbs { font-size: .92rem; margin-bottom: 18px; color: var(--muted); }
.crumbs a { color: var(--teal-dark); }
.crumbs span { color: var(--muted); padding: 0 6px; }
.head-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.head-logo { height: 56px; }
.head-logo img { height: 56px; width: auto; }
.head-divider { width: 1px; height: 48px; background: var(--line); }

/* ---------- Form embed ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.form-wrap iframe { display: block; width: 100%; border: 0; }
.aside-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.aside-card h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 16px; }
.aside-steps { list-style: none; counter-reset: a; }
.aside-steps li { position: relative; padding-left: 36px; margin-bottom: 16px; font-size: .96rem; }
.aside-steps li:last-child { margin-bottom: 0; }
.aside-steps li::before {
  counter-increment: a; content: counter(a);
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: .82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-family: var(--display);
}

/* ---------- Callouts ---------- */
.callout {
  background: var(--teal-tint); border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; color: var(--ink);
}
.callout strong { color: var(--navy); }
.callout--amber { background: #fdf3e7; border-left-color: #E0913E; }

/* ---------- Thank-you / confirmation ---------- */
.confirm { max-width: 720px; margin: 0 auto; text-align: center; }
.confirm-badge {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 26px;
}
.confirm h1 { color: var(--navy); }
.confirm .lead { margin: 14px auto 0; }
.steps-list {
  text-align: left; max-width: 600px; margin: 40px auto 0;
  list-style: none; counter-reset: s;
}
.steps-list li {
  position: relative; padding: 22px 22px 22px 70px; margin-bottom: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.steps-list li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 22px; top: 22px;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--teal-tint); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700;
}
.steps-list li strong { color: var(--navy); display: block; font-family: var(--display); margin-bottom: 2px; }
.steps-list li p { font-size: .98rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(125deg, var(--navy), var(--teal)); color: #fff; border-radius: var(--radius-lg); padding: 54px 48px; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #e3f0f6; max-width: 520px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b9d2e2; padding: 52px 0 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.wordmark { font-family: var(--display); font-weight: 700; letter-spacing: .02em; font-size: 1.35rem; line-height: 1; }
.wordmark b { color: #fff; font-weight: 700; }
.wordmark span { color: var(--teal); }
.footer p { font-size: .95rem; color: #9fc0d4; max-width: 340px; margin-top: 12px; }
.footer-col h4 { color: #fff; font-family: var(--display); font-size: .95rem; margin-bottom: 12px; letter-spacing: .02em; }
.footer-col a, .footer-col span { display: block; color: #b9d2e2; font-size: .95rem; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); margin-top: 38px; padding-top: 22px; font-size: .86rem; color: #8fb2c8; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Reveal on load ---------- */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .6s ease forwards; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero .voucher { max-width: 380px; margin: 0 auto; transform: rotate(-1deg); }
  .steps { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 60px 0; }
  .hero p.lead { max-width: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .cta-band { padding: 40px 24px; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .card:hover, .org-card:hover { transform: none; }
}

/* ---------- Legal / policy pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; color: var(--navy); margin: 34px 0 12px; letter-spacing: -.01em; }
.legal > *:first-child { margin-top: 0; }
.legal p { margin-bottom: 16px; }
.legal ul { margin: 0 0 18px; padding: 0; list-style: none; }
.legal li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.legal li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.footer-base a { color: #b9d2e2; }
.footer-base a:hover { color: #fff; text-decoration: none; }
