/* Air Quality Analysts — site styles
   Brand: blue #0B4A94, gold #DBB142, Poppins headings / Inter body */

:root {
  --blue: #0B4A94;
  --blue-dark: #072A55;
  --blue-darkest: #051E3E;
  --gold: #DBB142;
  --gold-dark: #7A5E0E;
  --ink: #1C2433;
  --ink-strong: #14213A;
  --muted: #4A5568;
  --muted-light: #5A6578;
  --line: #E3E8F0;
  --tint: #EAF1FA;
  --bg-alt: #F5F7FA;
  --pale: #D3DCEA;
  --danger: #8A2E05;
  --danger-bg: #FBEAE2;
  --warn: #7A4A06;
  --warn-bg: #FDF4E2;
  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { 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: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--ink-strong);
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.625rem); }
h3 { font-size: 1.375rem; }
p { margin: 0; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--blue { background: var(--blue-dark); color: #fff; }
.section--blue h2, .section--blue h3 { color: #fff; }

.eyebrow {
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-dark); margin: 0 0 12px;
}
.section--blue .eyebrow { color: var(--gold); }
.lede { font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.section--blue .lede { color: var(--pale); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn--gold { background: var(--gold); color: var(--ink-strong); }
.btn--gold:hover { background: #C79C2E; color: var(--ink-strong); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { border-color: var(--blue); color: var(--blue); background: #fff; font-weight: 600; }
.btn--ghost:hover { background: var(--tint); }
.btn--on-dark { border-color: rgba(255,255,255,.5); color: #fff; font-weight: 600; }
.btn--on-dark:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 22px; font-size: 0.9375rem; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; }

@media (max-width: 1000px) {
  .nav, .header-actions .btn--ghost { display: none; }
}
@media (max-width: 560px) {
  .brand img { height: 38px; }
  .header-actions .btn { padding: 0 16px; font-size: 0.9375rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--blue-dark); color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__media--mobile { display: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5,30,62,.95) 0%, rgba(5,30,62,.84) 46%, rgba(5,30,62,.4) 100%);
}
.hero__inner { padding: 80px 24px 88px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; }
.hero__copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold); }
.hero__lede { font-size: 1.1875rem; line-height: 1.55; color: var(--pale); max-width: 560px; }
.cert-flag {
  display: flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase;
}
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; max-width: 760px; }
.door {
  display: flex; flex-direction: column; gap: 5px; padding: 18px 20px; border-radius: 14px;
  text-decoration: none; border: 2px solid rgba(255,255,255,.35); background: rgba(5,30,62,.55); color: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}
.door:hover { border-color: var(--gold); color: #fff; }
.door--primary { background: #fff; color: var(--ink-strong); border-color: #fff; }
.door--primary:hover { color: var(--ink-strong); }
.door__title { font-family: Poppins, sans-serif; font-weight: 700; font-size: 1.0625rem; }
.door__sub { font-size: 0.875rem; color: var(--pale); line-height: 1.4; }
.door--primary .door__sub { color: var(--muted); }

.result-chip {
  flex: 0 1 260px; background: #fff; color: var(--ink-strong); border-radius: 14px;
  padding: 18px 22px; box-shadow: 0 18px 40px rgba(5,20,45,.35);
  display: flex; flex-direction: column; gap: 6px;
}
.result-chip__label { font-size: 0.75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-light); }
.result-chip__nums { display: flex; align-items: baseline; gap: 10px; font-family: Poppins, sans-serif; font-weight: 700; }
.result-chip__before { font-size: 1.75rem; color: #B4430C; }
.result-chip__after { font-size: 1.75rem; color: var(--blue); }
.result-chip__unit { font-size: .875rem; color: var(--muted-light); font-family: Inter, sans-serif; font-weight: 500; }
.result-chip__note { font-size: .8125rem; color: var(--muted); }

@media (max-width: 760px) {
  .hero__media--desktop { display: none; }
  .hero__media--mobile { display: block; }
  .hero::after { background: linear-gradient(180deg, rgba(5,30,62,.96) 0%, rgba(5,30,62,.9) 55%, rgba(5,30,62,.5) 100%); }
  .hero__inner { padding: 48px 24px 56px; }
}

/* ---------- trust badges ---------- */
.badges { border-bottom: 1px solid var(--line); }
.badges__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px; padding: 26px 0;
}
.badge { display: flex; gap: 14px; align-items: center; }
.badge__icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--tint);
  display: flex; align-items: center; justify-content: center;
}
.badge strong { font-size: 0.9375rem; display: block; }
.badge span { font-size: 0.875rem; color: var(--muted); }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.svc-card {
  border-radius: 18px; background: #fff; border: 2px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease;
}
.svc-card:hover { border-color: var(--blue); color: var(--ink); }
.svc-card img { width: 100%; height: 240px; object-fit: cover; }
.svc-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.svc-card__kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.svc-card__name { font-family: Poppins, sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--ink-strong); }
.svc-card p { font-size: .9375rem; color: var(--muted); line-height: 1.55; }
.svc-card__go { font-weight: 600; color: var(--blue); font-size: .9375rem; }

.step { padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.step__num { font-family: Poppins, sans-serif; font-weight: 700; font-size: .9375rem; color: var(--gold-dark); }
.step p { font-size: 1rem; color: var(--muted); }

/* ---------- video players ---------- */
.player {
  position: relative; display: block; width: 100%; padding: 0; border: none;
  border-radius: 20px; overflow: hidden; background: var(--blue); cursor: pointer;
}
.player--vertical { aspect-ratio: 9 / 16; max-width: 340px; margin: 0 auto; border-radius: 24px; box-shadow: 0 24px 50px rgba(7,42,85,.22); }
.player--square { aspect-ratio: 1 / 1; }
.player video, .player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__play {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 80px; height: 80px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); pointer-events: none;
  transition: transform .15s ease;
}
.player:hover .player__play { transform: translate(-50%, -50%) scale(1.06); }
.player.is-playing .player__play, .player.is-playing .player__time { opacity: 0; pointer-events: none; }
.player__time {
  position: absolute; right: 16px; top: 16px; padding: 4px 10px; border-radius: 999px;
  background: rgba(5,30,62,.8); color: #fff; font-size: .8125rem; font-weight: 600; pointer-events: none;
}

/* ---------- guarantee ---------- */
.pay-row {
  display: flex; gap: 16px; align-items: center; border-radius: 14px; padding: 20px 22px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
}
.pay-row--gold { background: rgba(219,177,66,.14); border-color: rgba(219,177,66,.55); }
.pay-row__pct { font-family: Poppins, sans-serif; font-weight: 700; font-size: 2.125rem; min-width: 86px; color: #fff; }
.pay-row--gold .pay-row__pct { color: var(--gold); }
.pay-row span { font-size: 1rem; color: var(--pale); line-height: 1.45; }
.pay-row--gold span { color: #fff; }

/* ---------- level slider ---------- */
.level-card {
  background: var(--bg-alt); border-radius: 20px; border: 1px solid var(--line);
  padding: 36px; display: flex; flex-direction: column; gap: 26px;
}
.level-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.level-card__value { font-family: Poppins, sans-serif; font-weight: 700; font-size: 3rem; color: var(--ink-strong); line-height: 1; }
.level-card__value small { font-size: 1.125rem; color: var(--muted-light); font-weight: 600; }
.level-bar { position: relative; height: 14px; border-radius: 7px; overflow: hidden; display: flex; }
.level-bar i { display: block; height: 100%; }
.level-bar .low { width: 20%; background: #8FB3DD; }
.level-bar .mid { width: 20%; background: #E8B04B; }
.level-bar .high { width: 60%; background: #B4430C; }
input[type=range] { width: 100%; margin: 0; height: 30px; accent-color: var(--blue); }
.level-ticks { position: relative; height: 18px; font-size: .8125rem; color: var(--muted-light); }
.level-ticks span { position: absolute; }
.level-advice { border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.level-advice[hidden] { display: none; }
.level-advice strong { font-family: Poppins, sans-serif; font-size: 1.25rem; }
.level-advice p { font-size: 1rem; line-height: 1.55; }
.level-advice--low { background: var(--tint); }
.level-advice--low strong { color: var(--blue); }
.level-advice--low p { color: #33405A; }
.level-advice--mid { background: var(--warn-bg); }
.level-advice--mid strong, .level-advice--mid a { color: var(--warn); }
.level-advice--mid p { color: #4A3A1A; }
.level-advice--high { background: var(--danger-bg); }
.level-advice--high strong, .level-advice--high a { color: var(--danger); }
.level-advice--high p { color: #4A2412; }

/* ---------- readings ---------- */
.reading-card { border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.reading-card img { width: 100%; height: 240px; object-fit: cover; }
.reading-card__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.reading-card__place { font-size: .8125rem; font-weight: 600; color: var(--muted-light); letter-spacing: .04em; text-transform: uppercase; }
.ba { display: flex; gap: 12px; }
.ba__box { flex: 1; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.ba__box--before { background: var(--danger-bg); }
.ba__box--after { background: var(--tint); }
.ba__label { font-size: .75rem; font-weight: 600; }
.ba__box--before .ba__label, .ba__box--before .ba__num { color: var(--danger); }
.ba__box--after .ba__label, .ba__box--after .ba__num { color: var(--blue); }
.ba__num { font-family: Poppins, sans-serif; font-weight: 700; font-size: 1.75rem; }
.ba__num small { font-size: .8125rem; font-weight: 600; }
.ba__when { font-size: .75rem; color: var(--muted); }
.reading-card p { font-size: .9375rem; color: var(--muted); line-height: 1.5; }

.reading-card--dark { background: var(--blue-dark); color: #fff; padding: 32px 28px; gap: 16px; border: none; }
.reading-card--dark .reading-card__place { color: var(--gold); }
.big-number { font-family: Poppins, sans-serif; font-weight: 700; font-size: 5.5rem; line-height: .95; letter-spacing: -.03em; color: #fff; }
.big-number small { font-size: 1.25rem; font-weight: 600; color: var(--pale); margin-left: 8px; letter-spacing: 0; }
.scale { position: relative; height: 12px; border-radius: 6px; overflow: hidden; background: #C2531A; }
.scale i { position: absolute; left: 8.8%; top: 0; bottom: 0; width: 3px; background: #fff; }
.reading-card--dark p, .reading-card--dark span.note { font-size: .9375rem; color: var(--pale); line-height: 1.55; }
.reading-card--dark a { color: var(--gold); font-weight: 600; }

.reading-card--pending { border: 2px dashed #B9C4D6; padding: 32px 28px; justify-content: center; gap: 14px; }

/* ---------- certificate / area / faq ---------- */
.split { display: flex; flex-wrap: wrap; gap: 52px; align-items: center; }
.split > * { flex: 1 1 380px; min-width: 0; }
.split--top { align-items: flex-start; }
.split--wide-right > :last-child { flex: 1.35 1 480px; }

.spec { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: .9375rem; }
.spec dt { color: var(--muted-light); }
.spec dd { margin: 0; font-weight: 600; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid #D6DFEC;
  font-size: .875rem; font-weight: 600; color: var(--blue);
}
.zip-form { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.zip-form__row { display: flex; gap: 10px; flex-wrap: wrap; }
.zip-form input {
  flex: 1 1 180px; min-height: 48px; padding: 0 16px; border-radius: 10px;
  border: 1.5px solid #B9C4D6; font-size: 1rem; font-family: inherit; background: #fff;
}
.zip-form input:focus-visible { outline: 3px solid rgba(11,74,148,.35); outline-offset: 1px; }
.zip-msg { font-size: .9375rem; font-weight: 600; margin: 0; }
.zip-msg--yes { color: #1F6B3A; }
.zip-msg--no { color: var(--warn); }

.agent-box { border-radius: 20px; background: var(--blue-dark); color: #fff; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.agent-box h3 { font-size: 1.875rem; line-height: 1.2; }
.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: .9375rem; }
.check-list li { display: flex; gap: 10px; align-items: center; }
.includes-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 24px; font-size: .9375rem; }
.includes-list li { display: flex; gap: 10px; align-items: center; }
.includes-box { border-radius: 16px; background: #fff; border: 1px solid var(--line); padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.includes-box h3 { flex: 1 1 220px; font-size: 1.25rem; }
.includes-box .includes-list { flex: 3 1 560px; }

.review-box { border-radius: 18px; background: var(--bg-alt); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.review-box strong { font-family: Poppins, sans-serif; font-weight: 700; font-size: 1.375rem; line-height: 1.3; color: var(--ink-strong); }
.review-box p { font-size: .9375rem; line-height: 1.6; color: var(--muted); }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--bg-alt); border-radius: 14px; border: 1px solid var(--line); padding: 20px 24px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.0625rem; color: var(--ink-strong); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 12px; font-size: 1rem; line-height: 1.6; color: var(--muted); }

/* ---------- final CTA ---------- */
.cta { background: var(--blue); color: #fff; text-align: center; }
.cta .wrap { max-width: 820px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta h2 { color: #fff; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.cta__price { font-size: .9375rem; font-weight: 600; color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-darkest); color: var(--pale); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 32px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: .9375rem; }
.footer-col strong { color: #fff; font-size: .875rem; }
.site-footer a { color: var(--pale); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-about { flex: 1 1 280px; }
.footer-about img { height: 44px; width: auto; margin-bottom: 4px; }
.footer-about p { font-size: .875rem; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .8125rem; color: #A9B6CC;
}
.footer-bottom a { color: #A9B6CC; }

/* ---------- mobile sticky action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(5,20,45,.18);
  }
  .mobile-bar .btn { flex: 1; min-height: 50px; }
  .mobile-bar .btn--gold { flex: 1.5; }
  body { padding-bottom: 76px; }
  .section { padding: 64px 0; }
  .agent-box, .level-card { padding: 28px 24px; }
}

/* ---------- a11y ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--ink-strong);
  padding: 12px 20px; z-index: 100; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
