/* =========================================================
   Everest Health Agency — styles
   ========================================================= */

:root {
  --navy-900: #0a1c2e;
  --navy-800: #0f2a44;
  --navy-700: #173a5c;
  --glacier: #3a7bbf;
  --glacier-light: #dbe8f5;
  --summit: #e8743b;
  --summit-dark: #cf5f28;
  --snow: #ffffff;
  --mist: #f3f6f9;
  --stone: #5b6b7c;
  --ink: #142233;
  --line: #e2e8ef;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(10, 28, 46, .08);
  --shadow-lg: 0 24px 60px rgba(10, 28, 46, .18);

  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--glacier); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy-800); }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--summit);
  margin-bottom: .9rem;
}
.eyebrow--light { color: #ffb48a; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.35rem;
  border-radius: 6px;
  border: 2px solid transparent;
  font: 600 .95rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 1rem 1.75rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--summit); color: #fff; box-shadow: 0 6px 18px rgba(232, 116, 59, .35); }
.btn--primary:hover { background: var(--summit-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--text { background: none; color: var(--stone); padding-left: 0; padding-right: 0; }
.btn--text:hover { color: var(--navy-800); transform: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: #b9c7d6; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar__phone { display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; }
.topbar__phone svg { width: 15px; height: 15px; fill: var(--summit); }
.topbar__phone strong { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1.5rem; }

.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo__img { width: auto; height: 56px; }
/* Logo artwork is navy-on-transparent, so give it a light plate on dark backgrounds */
.logo--light { background: #fff; padding: 10px 14px; border-radius: var(--radius-sm); }
.logo--light .logo__img { width: 220px; height: auto; }

.nav { display: flex; gap: 2rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--summit); transform: scaleX(0); transition: transform .2s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(170deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
  padding: 90px 0 200px;
}
.hero__bg { position: absolute; inset: auto 0 0 0; height: 230px; pointer-events: none; }
.hero__bg svg { width: 100%; height: 100%; }
.hero__bg .m1 { fill: #1f4a73; opacity: .55; }
.hero__bg .m2 { fill: #183d61; opacity: .8; }
.hero__bg .m3 { fill: #ffffff; }
.hero__bg .snow { fill: #e8f0f8; opacity: .5; }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: #ffb48a; }
.hero__lead { font-size: 1.15rem; color: #cbd8e6; max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1.75rem; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .92rem; color: #dbe5ef; }
.hero__trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__trust svg { width: 18px; height: 18px; fill: #7fd1a7; }

.quick-quote {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.quick-quote__title { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .25rem; }
.quick-quote__sub { color: var(--stone); font-size: .95rem; margin-bottom: 1.5rem; }
.quick-quote__fine { font-size: .82rem; color: var(--stone); text-align: center; margin: 1rem 0 0; }

/* ---------- Form fields ---------- */
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--navy-800); margin-bottom: .4rem; }
.field input, .field select {
  width: 100%;
  padding: .8rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--glacier); box-shadow: 0 0 0 3px var(--glacier-light); }
.field.has-error input, .field.has-error select { border-color: #d64545; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* ---------- Value strip ---------- */
.values { margin-top: -70px; position: relative; z-index: 2; }
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 0;
}
.value { padding: 28px 24px; text-align: center; border-right: 1px solid var(--line); }
.value:last-child { border-right: 0; }
.value strong { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--navy-800); line-height: 1.1; }
.value span { font-size: .9rem; color: var(--stone); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--tint { background: var(--mist); }
.section--dark { background: var(--navy-800); color: #cbd8e6; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head p:last-child { color: var(--stone); font-size: 1.08rem; }
.section__head--light h2 { color: #fff; }

/* ---------- Coverage cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--glacier-light);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; fill: var(--navy-800); }
.card p { color: var(--stone); font-size: .95rem; flex: 1; }
.card a:not(.btn) { color: var(--summit-dark); font-weight: 700; font-size: .92rem; text-decoration: none; }
.card a:not(.btn):hover { text-decoration: underline; }
.card--feature {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  border: 0;
  justify-content: center;
}
.card--feature h3 { color: #fff; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; }
.card--feature p { color: #cbd8e6; flex: 0; margin-bottom: 1.5rem; }
.card--feature .btn { align-self: flex-start; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 32px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--glacier) 0 8px, transparent 8px 16px);
  opacity: .5;
}
.step { text-align: center; position: relative; padding: 0 12px; }
.step__num {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: var(--navy-800); color: #fff;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  box-shadow: 0 0 0 8px var(--mist);
  position: relative;
}
.step p { color: var(--stone); }

/* ---------- Paths ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.path {
  display: flex; flex-direction: column;
  padding: 36px 32px;
  border-radius: 20px;
  text-decoration: none;
  background: var(--glacier-light);
  color: var(--ink);
  min-height: 300px;
  transition: transform .25s, box-shadow .25s;
}
.path:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.path h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; margin-top: auto; }
.path p { color: var(--stone); }
.path__tag {
  align-self: flex-start;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: #fff; color: var(--navy-800);
  padding: .35rem .8rem; border-radius: 999px;
  margin-bottom: 2.5rem;
}
.path__go { font-weight: 700; color: var(--summit-dark); }
.path--alt { background: #fde9df; }
.path--dark { background: var(--navy-800); }
.path--dark h3 { color: #fff; }
.path--dark p { color: #cbd8e6; }
.path--dark .path__go { color: #ffb48a; }

/* ---------- Carriers ---------- */
.carriers { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.carriers__title { text-align: center; color: var(--stone); font-size: .95rem; font-weight: 600; margin-bottom: 1.75rem; }
.carriers__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem;
}
.carriers__list li {
  font-weight: 700; font-size: 1.15rem; color: #8a9aab; letter-spacing: -.01em;
  transition: color .2s;
}
.carriers__list li:hover { color: var(--navy-800); }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; }
.why__intro p { color: var(--stone); font-size: 1.08rem; margin-bottom: 2rem; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why__item { padding: 28px; border-radius: var(--radius); background: var(--mist); }
.why__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--summit); display: grid; place-items: center; margin-bottom: 1rem; }
.why__icon svg { width: 22px; height: 22px; fill: #fff; }
.why__item p { color: var(--stone); font-size: .95rem; margin: 0; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  margin: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
}
.stars { color: #ffc24b; letter-spacing: .15em; font-size: 1.1rem; margin-bottom: 1rem; }
.review blockquote { margin: 0 0 1.5rem; color: #e6edf4; font-size: 1.02rem; flex: 1; }
.review figcaption strong { display: block; color: #fff; }
.review figcaption span { font-size: .88rem; color: #9fb2c6; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: center; }
.about__photo {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--glacier-light), #c4d8ec);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  color: var(--navy-700);
}
.about__photo svg { width: 96px; }
.about__photo span { font-size: .9rem; font-weight: 600; opacity: .7; }
.about__copy p { color: var(--stone); font-size: 1.05rem; }
.about__sig { margin-top: 1.75rem; padding-left: 1rem; border-left: 3px solid var(--summit); }
.about__sig strong { display: block; color: var(--navy-800); font-size: 1.1rem; }
.about__sig span { color: var(--stone); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 60px 22px 26px;
  font-weight: 700;
  color: var(--navy-800);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--glacier-light); color: var(--navy-800);
  display: grid; place-items: center;
  font-size: 1.2rem; font-weight: 600; line-height: 1;
  transition: transform .2s, background .2s;
}
.faq details[open] summary::after { content: "–"; background: var(--summit); color: #fff; }
.faq details p { padding: 0 26px 22px; margin: 0; color: var(--stone); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #cbd8e6; padding: 80px 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; right: -60px; bottom: -40px; width: 520px; height: 260px;
  background: rgba(255,255,255,.04);
  clip-path: polygon(0 100%, 35% 20%, 50% 45%, 70% 0, 100% 100%);
}
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; }
.cta h2 { color: #fff; margin-bottom: .35em; }
.cta p { margin: 0; font-size: 1.08rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #9fb2c6; padding: 72px 0 32px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand p { margin-top: 1.25rem; max-width: 22em; }
.footer h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .6rem; }
.footer a { color: #9fb2c6; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__legal { padding-top: 28px; font-size: .8rem; color: #73879c; }
.footer__legal p { max-width: 900px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 28, 46, .65); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal__panel {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 44px 36px 32px;
  box-shadow: var(--shadow-lg);
  animation: pop .25s ease;
}
.modal__close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--stone); cursor: pointer;
}
.modal__close:hover { color: var(--navy-800); }

.progress { height: 6px; background: var(--mist); border-radius: 999px; overflow: hidden; margin-bottom: 28px; }
.progress span { display: block; height: 100%; width: 33%; background: var(--summit); border-radius: inherit; transition: width .3s ease; }

.step-pane { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.step-pane.is-active { display: block; animation: fade .25s ease; }
.step-pane legend { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--navy-800); margin-bottom: 1.4rem; padding: 0; line-height: 1.2; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; align-items: center; min-height: 58px;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .93rem; color: var(--navy-800);
  transition: border-color .15s, background .15s;
}
.choice:hover span { border-color: var(--glacier); }
.choice input:checked + span { border-color: var(--summit); background: #fff4ee; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--glacier-light); }

.consent { font-size: .78rem; color: var(--stone); margin: .5rem 0 0; }

.modal__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.75rem; }
.modal__nav[hidden] { display: none; }

.step-pane--done { text-align: center; padding: 12px 0; }
.done-icon {
  width: 72px; height: 72px; margin: 0 auto 1.25rem;
  border-radius: 50%; background: #e3f6ec; color: #2f9e64;
  display: grid; place-items: center; font-size: 2rem; font-weight: 700;
}
.step-pane--done h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; }
.step-pane--done p { color: var(--stone); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 1.4rem; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .header__actions .btn { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - 76px);
    flex-direction: column; gap: 0;
    background: #fff;
    padding: 16px 24px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 1.5rem; border-bottom: 0 !important; }

  .hero { padding: 64px 0 170px; }
  .hero__bg { height: 150px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(2) { border-right: 0; }
  .value:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .steps, .paths, .reviews { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .path { min-height: 0; }
  .path__tag { margin-bottom: 1.5rem; }

  .why, .about { grid-template-columns: 1fr; gap: 48px; }
  .about__photo { max-width: 360px; aspect-ratio: 1; }

  .cta__inner { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .topbar__hours { display: none; }
  .topbar__inner { justify-content: center; }
  .section { padding: 72px 0; }
  .cards, .why__grid { grid-template-columns: 1fr; }
  .quick-quote { padding: 24px; }
  .form-row, .choice-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .modal__panel { padding: 40px 20px 24px; }
  .hero__ctas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
