/* ==========================================================================
   themes/medsurely.css — the MedSurely look.

   Loaded AFTER styles.css on every MedSurely page. Visual only: it changes
   colour, type, shape and layout, never copy. tools/check.js proves the
   visible text of every page still matches MedQuotify's line for line.

   Direction: warm editorial. Cream paper, deep teal, amber accents, a serif
   display face, square-cornered photography, rules instead of glass and glow.
   Image on the LEFT of the hero, coverage as a list, steps as a timeline,
   a light footer.
   ========================================================================== */

:root {
  /* The base palette tokens, re-pointed so every rule that uses them follows. */
  --navy-900: #0B4746;
  --navy-800: #0A3D3C;
  --navy-700: #0E5A58;
  --navy-600: #147270;
  --navy-500: #126866;
  --navy-400: #1F8A86;
  --blue-400: #2A9D98;

  --ink: #2B302F;
  --ink-strong: #232827;
  --ink-mid: #3C4443;
  --ink-soft: #4A5452;
  --ink-muted: #5F6A68;
  --ink-faint: #76817F;
  --link: #0E5A58;

  --green-400: #E8B04B;
  --green-500: #E0A33A;
  --green-600: #D4942B;
  --green-700: #8A5A12;
  --green-50: #FBF1DC;
  --green-100: #F5E3BE;
  --green-200: #EFD4A0;

  --surface-field: #FFFFFF;
  --surface-consent: #F6F0E6;
  --border-field: #D9CFC1;
  --border-consent: #E4DACB;
  --border-ghost: #CFC3B2;
  --border-footer: #E1D6C6;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  --paper: #FBF7F1;
  --paper-deep: #F3EDE3;
  --sand: #E9DFD0;
  --rule: #E1D7C8;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -30px rgba(43, 48, 47, .45);
}

/* ── Base ─────────────────────────────────────────────────────────────── */

html, body { background: var(--paper); }
body { font-size: 18px; }
a:hover { color: var(--navy-900); }
:focus-visible { outline-color: var(--navy-700); }
.skip-link { background: var(--navy-900); border-radius: 6px; }

.page { background: var(--paper); }
.grid-overlay { display: none; }

/* Serif display: a touch heavier and tighter than the sans it replaces. */
.h2, .hero__headline, .faq__title, .cta__title, .form-card__title,
.thanks__title, .legal__title { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.hero__headline { font-weight: 500; }

/* Eyebrows: a small-caps label with a short amber rule, not a pill. */
.eyebrow, .eyebrow--sm {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  color: var(--green-700);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  margin-bottom: 16px;
}
.eyebrow::before, .eyebrow--sm::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green-500);
}

.mono-label { color: var(--green-700); letter-spacing: .1em; }
.mono-label--light { color: var(--green-100); }

/* Buttons: solid teal, modest corners, no glow. */
.arrow-circle { border-radius: 8px; }
.arrow-circle--green { background: var(--green-400); }
.arrow-circle--green svg polyline { stroke: var(--navy-900); }
.arrow-circle--navy { background: var(--navy-900); }
.arrow-circle--navy svg polyline { stroke: var(--green-400); }
.chip__tick svg polyline, .benefit__tick svg polyline, .thanks__tick svg polyline { stroke: var(--green-700); }

.btn--navy, .btn--navy-sm {
  background: var(--navy-700);
  border-radius: var(--radius-sm);
  box-shadow: none;
  padding-left: 24px;
}
.btn--navy:hover { filter: none; background: var(--navy-900); transform: none; }

.btn--white {
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1.5px solid var(--rule);
  color: var(--navy-900);
}
.btn--white:hover { filter: none; border-color: var(--navy-700); }
.btn--white__tty { color: var(--ink-muted); }
.btn-ghost { border-radius: var(--radius-sm); color: var(--navy-700); border-color: var(--border-ghost); }

/* ── Top bar + header: flat, ruled, no capsule ────────────────────────── */

.topbar {
  background: var(--navy-900);
  color: #E6F0EE;
  font-family: var(--font-body);
  font-size: 15.5px;
}
.topbar__hours { color: #B9D3CF; }

.site-header { padding: 0; }
.nav-pill {
  max-width: none;
  /* Full-bleed bar; the contents stay within the page column. */
  padding: 14px max(var(--gutter), calc((100% - var(--max-w)) / 2));
  border-radius: 0;
  background: rgba(251, 247, 241, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 0;
  border-bottom: 1px solid var(--rule);
  box-shadow: none;
}
.nav { font-family: var(--font-body); font-weight: 600; font-size: 16.5px; }
.nav__link { color: var(--ink-mid); }
.nav__link:hover { color: var(--navy-700); }
.nav__call {
  background: var(--navy-700);
  color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: none;
  padding-left: 18px;
}
.nav__call:hover { color: #fff; box-shadow: none; background: var(--navy-900); }
.nav__call-tty { color: #CFE3E0; }

/* ── Hero: open layout, photo on the left ─────────────────────────────── */

.section--hero {
  padding-top: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(36px, 5vw, 72px);
}
.hero {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero__copy {
  padding: 0;
  order: 2;
}
.hero__headline {
  margin-top: 0;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.02;
  color: var(--navy-900);
}
.hero__lede { color: var(--ink-soft); font-size: clamp(17px, 1.2vw, 20px); }
.hero__lede strong { color: var(--navy-900); }
.hero__callout { color: var(--navy-900); font-family: var(--font-body); }
.hero__callout:hover { color: var(--navy-700); }
.hero__callout-number { font-weight: 700; }
.hero__aep-notice { border-left-color: var(--green-400); }

.chip {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink-strong);
}
.chip__tick { background: var(--green-50); border-radius: 6px; }
.hero__disclaimer { color: var(--ink-faint); }

.hero__panel {
  order: 1;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--sand) 0%, #D9C9B3 100%);
  box-shadow: var(--shadow);
  /* Tall enough to show a 4:5 photograph without cropping the people. */
  min-height: clamp(420px, 50vw, 720px);
  overflow: hidden;
}
.hero__aurora { display: none; }
.hero__portrait--cutout img { filter: none; max-width: 104%; }
.hero__portrait--photo img { object-position: center 38%; }

.hero__float {
  border-radius: 6px;
  background: #fff;
  border-left: 4px solid var(--green-400);
  box-shadow: var(--shadow);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy-900);
  animation: none;
}
.hero__float--left { left: 18px; top: 24px; }
.hero__float--right { right: 18px; bottom: 112px; }

.hero__glassbar {
  left: 0; right: 0; bottom: 0;
  border-radius: 0;
  background: var(--navy-900);
  border: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 16px clamp(16px, 2.4vw, 28px);
}
.hero__glassbar-text { font-family: var(--font-body); font-weight: 700; }
.hero__glassbar-hours { color: #B9D3CF; }
.hero__glassbar .btn--white { border: 0; }

/* ── Lead form: a paper card with a teal header rule ──────────────────── */

.form-intro__lede { color: var(--ink-muted); }
.form-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 5px solid var(--navy-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-card__title { color: var(--navy-900); }
.form-card__sub { color: var(--ink-muted); }
.field label { color: var(--ink-strong); }
.field input, .field select {
  border-radius: 8px;
  border-color: var(--border-field);
  background: #fff;
}
.field input:focus, .field select:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(14, 90, 88, .14); }
.consent { border-radius: var(--radius-sm); background: var(--surface-consent); border-color: var(--border-consent); }
.consent__row input[type="checkbox"], .consent__entity input[type="checkbox"] { accent-color: var(--navy-700); }
.consent__text strong { color: var(--navy-900); }
.submit {
  background: var(--navy-700);
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-weight: 700;
}
.submit:hover:not(:disabled) { filter: none; background: var(--navy-900); }
.submit:disabled { background: #B9B1A5; }
.trust-line__icon { border-color: var(--green-700); }
.thanks__tick { background: var(--green-50); border-radius: 10px; }
.thanks__now { color: var(--navy-900); }

/* ── Coverage: a ruled list, photo beside each plan type ──────────────── */

.coverage-cards {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.cover-card, .cover-card--featured {
  display: grid;
  grid-template-columns: minmax(140px, 210px) 1fr;
  gap: 0 clamp(18px, 2.6vw, 36px);
  align-items: start;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: clamp(18px, 2.4vw, 28px) 0;
  box-shadow: none;
}
.cover-card:hover { transform: none; box-shadow: none; }
.cover-card--featured .cover-card__title { color: var(--navy-900); }
.cover-card--featured .cover-card__body { color: var(--ink-muted); }
.cover-card__badge, .cover-card__badge--white {
  top: 50%; right: 0; bottom: auto;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--green-400);
  box-shadow: none;
}
.cover-card__media, .cover-card__media--dark {
  grid-row: span 2;
  align-self: center;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--sand);
  margin: 0;
  box-shadow: none;
}
.cover-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.2vw, 30px);
  color: var(--navy-900);
  padding-right: 60px;
}
.cover-card__body { color: var(--ink-muted); padding-right: 60px; max-width: 52em; }

.coverage-split__frame { border-radius: var(--radius); background: var(--sand); box-shadow: var(--shadow); }
.coverage-split__tag {
  right: 0; bottom: -18px;
  border-radius: 6px;
  background: #fff;
  border: 0;
  border-left: 4px solid var(--green-400);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.coverage-split__tag-text { font-family: var(--font-body); font-weight: 700; }
.coverage-split__lede { color: var(--ink-soft); }
.coverage-split__phone a { color: var(--navy-900); font-family: var(--font-body); font-weight: 700; border-bottom-color: var(--green-400); }

/* ── Stats: a ruled strip, serif figures ──────────────────────────────── */

.stats {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  padding: clamp(22px, 3vw, 38px) 0;
  gap: 0;
}
.stats > div { padding: 6px clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--rule); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats__figure {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--navy-900);
}
.stats__label { color: var(--ink-muted); }

/* ── Steps: a vertical timeline ───────────────────────────────────────── */

.steps {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 820px;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: auto auto;
  column-gap: 22px;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0 0 clamp(26px, 3vw, 38px);
  box-shadow: none;
}
.step:hover { transform: none; box-shadow: none; }
.step::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 54px;
  bottom: 0;
  width: 2px;
  background: var(--rule);
}
.step:last-child::before { display: none; }
.step__num {
  grid-row: span 2;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--green-400);
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}
.step__title { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--navy-900); align-self: center; }
.step__body { color: var(--ink-muted); max-width: 46em; }

/* ── FAQ: a paper rail and a ruled list ───────────────────────────────── */

.faq__rail {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: none;
}
.faq__title { color: var(--navy-900); }
.faq__lede { color: var(--ink-soft); }
.faq__rail .btn--white { background: var(--navy-700); color: #fff; border: 0; }
.faq__rail .btn--white:hover { background: var(--navy-900); color: #fff; }
.faq__rail .btn--white__tty { color: #CFE3E0; }
.faq__rail-foot { border-top-color: var(--rule); }
.faq__rail .mono-label--light { color: var(--green-700); }
.faq__rail-note { color: var(--ink-mid); }
.faq__rail-note a, .faq__rail-note a:hover { color: var(--navy-700); }

.faq__list { column-width: auto; }
.faq__item {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 20px 0 22px;
  margin: 0;
  box-shadow: none;
}
.faq__item:first-child { padding-top: 4px; }
.faq__item:hover { transform: none; box-shadow: none; }
.faq__q { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--navy-900); }
.faq__a { color: var(--ink-muted); max-width: 60em; }

/* ── Final CTA: a solid teal block ────────────────────────────────────── */

.cta {
  background: var(--navy-900);
  border-radius: var(--radius);
  box-shadow: none;
}
.cta__lede { color: #CFE3E0; }
.cta__btn {
  background: var(--green-400);
  color: var(--navy-900);
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.cta__btn:hover { filter: none; background: var(--green-500); transform: none; }
.cta__foot { color: #CFE3E0; }
.cta__foot a, .cta__foot a:hover { color: var(--green-200); }

/* ── Benefits (marketing page) ────────────────────────────────────────── */

.benefit { border-radius: var(--radius-sm); background: #fff; border-color: var(--rule); }
.benefit__tick { background: var(--green-50); }

/* ── Footer: light paper, dark text ───────────────────────────────────── */

.site-footer {
  background: var(--paper-deep);
  color: var(--ink-mid);
  border-top: 1px solid var(--rule);
}
.footer-nav { border-bottom-color: var(--border-footer); }
.footer-nav a { color: var(--navy-700); }
.footer-nav a:hover { color: var(--navy-900); }
.footer-legal p { color: var(--ink-mid); }
.footer-legal strong { color: var(--navy-900); }
.footer-adline { color: var(--ink-faint); }
.footer-meta { border-top-color: var(--border-footer); color: var(--ink-muted); }

/* ── Mobile call bar ──────────────────────────────────────────────────── */

.mobile-bar { background: var(--navy-900); border-top: 0; }
.mobile-bar__btn { background: var(--green-400); color: var(--navy-900); border-radius: var(--radius-sm); }

/* ── Legal pages ──────────────────────────────────────────────────────── */

.legal__title, .legal__h2 { color: var(--navy-900); }
.legal-form { border-radius: var(--radius); background: #fff; border-color: var(--rule); }

/* ── Narrow viewports ─────────────────────────────────────────────────── */

@media (max-width: 760px) {
  /* Headline first on a phone; the photo follows. */
  .hero__copy { order: 1; }
  .hero__panel { order: 2; min-height: 440px; }
  .hero__float--right { bottom: 96px; }
  .cover-card, .cover-card--featured { grid-template-columns: 1fr; }
  .cover-card__media, .cover-card__media--dark { grid-row: auto; aspect-ratio: 16 / 9; }
  .cover-card__badge, .cover-card__badge--white { top: 28px; right: 10px; transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}
