/* Wealth Champions v2: private wealth redesign
   Palette: Deep Champion Navy #08182E, Estate Navy #0B1F3A,
   Muted Champion Gold #B9972F, Heritage Gold #C9A227, Warm Ivory #F7F3EB */

:root {
  --navy-deep: #08182E;
  --navy: #0B1F3A;
  --gold-muted: #B9972F;
  --gold: #C9A227;
  --ivory: #F7F3EB;
  --ivory-dim: #EFE9DB;
  --ink: #1C2733;
  --ink-soft: #46536A;
  --line: #DDD3BE;
  --line-gold: rgba(185, 151, 47, 0.45);
  --ivory-text-dim: #B9C2D4;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

::selection { background: var(--gold); color: var(--navy-deep); }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-muted); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-deep);
  color: var(--ivory);
  padding: 12px 20px;
  z-index: 200;
  font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--ivory); }

/* ---------- Monogram ---------- */
.monogram { width: 44px; height: 44px; flex: none; display: block; }
.monogram .ring-outer { fill: none; stroke: var(--gold); stroke-width: 1.6; }
.monogram .ring-inner { fill: none; stroke: var(--gold-muted); stroke-width: 0.8; }
.monogram .monogram-letters {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 31px;
  letter-spacing: 1px;
  fill: var(--gold);
}
.monogram-lg { width: 76px; height: 76px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 24, 46, 0.97);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ivory);
}
.brand:hover { color: var(--ivory); }
.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.brand-accent { color: var(--gold); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 30px;
}
.site-nav a {
  color: #D8DEE9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a.nav-cta {
  color: var(--navy-deep);
  background: var(--gold);
  padding: 10px 20px;
  letter-spacing: 0.1em;
  border: 1px solid var(--gold);
}
.site-nav a.nav-cta:hover { background: var(--gold-muted); border-color: var(--gold-muted); color: var(--navy-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 17px 34px;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-muted); border-color: var(--gold-muted); color: var(--navy-deep); }
.btn-outline { background: transparent; color: var(--ivory); border-color: rgba(247, 243, 235, 0.55); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); color: var(--gold); }

/* ---------- Eyebrows and headings ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
}
.eyebrow-dark { color: #846A1D; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  margin: 0;
}
h2 {
  font-size: clamp(34px, 4.2vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  max-width: 20em;
}
h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); }
h4 { font-family: var(--serif); font-weight: 500; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 720px 480px at 88% -10%, rgba(201, 162, 39, 0.16), transparent 65%),
    radial-gradient(ellipse 900px 620px at -10% 115%, rgba(185, 151, 47, 0.08), transparent 60%),
    repeating-linear-gradient(90deg, rgba(247, 243, 235, 0.022) 0 1px, transparent 1px 144px),
    linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 78%);
  color: var(--ivory);
  padding: 104px 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 72px;
  align-items: center;
}
.hero h1 {
  color: var(--ivory);
  font-size: clamp(44px, 5.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  font-weight: 500;
  max-width: 12.5em;
}
.hero-sub {
  margin: 32px 0 0;
  font-size: 18.5px;
  line-height: 1.8;
  color: var(--ivory-text-dim);
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 42px 0 0;
}
.hero-note {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  color: rgba(247, 243, 235, 0.72);
}
.hero-photo {
  margin: 0;
  position: relative;
  justify-self: end;
  width: min(100%, 400px);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  border: 1px solid var(--line-gold);
  pointer-events: none;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border: 1px solid rgba(201, 162, 39, 0.55);
  position: relative;
}

.cred-strip {
  margin-top: 96px;
  border-top: 1px solid rgba(201, 162, 39, 0.3);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cred-strip span {
  padding: 24px 28px 28px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 243, 235, 0.78);
}
.cred-strip span + span { border-left: 1px solid rgba(201, 162, 39, 0.22); }

/* ---------- Sections ---------- */
.section {
  padding: 112px 0;
  position: relative;
  background: var(--ivory);
}
.section-alt { background: var(--ivory-dim); }
.section-navy {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 85%);
  color: var(--ivory);
}
.section[data-num]::before {
  content: attr(data-num);
  position: absolute;
  top: 84px;
  right: max(32px, calc(50% - var(--wrap) / 2));
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  color: var(--gold-muted);
  opacity: 0.75;
  line-height: 1;
}
.section-head { margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 18px; }

.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 64px;
  max-width: 1020px;
}
.editorial p { margin: 0; font-size: 17.5px; color: var(--ink-soft); }
.section-navy .editorial { grid-template-columns: minmax(0, 760px); }
.section-navy .editorial p { color: var(--ivory-text-dim); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--ivory); }

.topics-title {
  font-size: 24px;
  margin: 72px 0 8px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.section-navy .topics-title { border-top-color: rgba(201, 162, 39, 0.3); }

.topic-rows, .service-rows { counter-reset: row; }
.topic-row, .service-row {
  counter-increment: row;
  display: grid;
  grid-template-columns: 88px 300px 1fr;
  gap: 12px 36px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.service-row { grid-template-columns: 88px 340px 1fr; }
.topic-row::before, .service-row::before {
  content: counter(row, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--gold-muted);
  line-height: 1;
}
.topic-row h4, .service-row h4 { font-size: 22px; margin: 0; line-height: 1.3; }
.topic-row p, .service-row p { margin: 0; color: var(--ink-soft); font-size: 16.5px; }
.section-navy .topic-row { border-bottom-color: rgba(247, 243, 235, 0.16); }
.section-navy .topic-row p { color: var(--ivory-text-dim); }
.section-navy .inline-note { color: var(--ivory-text-dim); }
.section-navy .inline-note a { color: var(--gold); }

.service-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 72px;
}
.service-row { grid-template-columns: 56px 1fr; grid-template-rows: auto auto; }
.service-row::before { grid-row: 1 / span 2; }
.service-row h4 { font-size: 20.5px; }
.service-row p { grid-column: 2; }

.path-close {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy);
  max-width: 40em;
  margin: 56px 0 34px;
}
.section-navy .path-close { color: var(--ivory); }
.inline-note { color: var(--ink-soft); font-size: 15.5px; margin-left: 10px; }
.fine-note {
  margin-top: 44px;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 62em;
  border-left: 2px solid var(--line-gold);
  padding-left: 20px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 80px;
  align-items: start;
}
.about-photo-frame { margin: 0; position: relative; }
.about-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(-16px, 16px);
  border: 1px solid var(--line-gold);
  pointer-events: none;
}
.about-photo {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  border: 1px solid rgba(185, 151, 47, 0.5);
}
#about h2 { margin-bottom: 30px; }
#about p { color: var(--ink-soft); margin: 0 0 20px; font-size: 17.5px; }
#about .endorsement {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  color: var(--navy);
  border-left: 2px solid var(--gold);
  padding-left: 22px;
  margin: 34px 0;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 36px;
}
.steps li {
  counter-increment: step;
  border-top: 1px solid var(--line-gold);
  padding-top: 26px;
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--gold-muted);
  line-height: 1;
  margin-bottom: 18px;
}
.steps h3 { font-size: 19.5px; line-height: 1.35; margin: 0 0 12px; }
.steps p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0; }
.steps-cta { margin-top: 64px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--navy); }
.steps-cta .btn { margin-left: 18px; font-family: var(--sans); font-style: normal; vertical-align: middle; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 20.5px;
  font-weight: 500;
  color: var(--navy);
  padding: 26px 48px 26px 4px;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--gold-muted);
  transition: transform 0.3s ease;
}
.faq-list details[open ] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--gold-muted); }
.faq-list details p {
  margin: 0;
  padding: 0 48px 30px 4px;
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 46em;
}

/* ---------- Final CTA ---------- */
.cta {
  background:
    radial-gradient(ellipse 760px 420px at 50% -20%, rgba(201, 162, 39, 0.15), transparent 65%),
    linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 80%);
  color: var(--ivory);
  text-align: center;
  padding: 128px 0;
}
.cta h2 {
  color: var(--ivory);
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.14;
  margin: 0 auto;
  max-width: 16em;
}
.cta .sign-off {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 2.4vw, 26px);
  color: var(--gold);
  margin: 30px auto 0;
  max-width: 30em;
}
.cta .cta-body { color: var(--ivory-text-dim); max-width: 42em; margin: 26px auto 0; font-size: 17.5px; }
.cta .hero-actions { justify-content: center; margin-top: 46px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--ivory-text-dim);
  border-top: 1px solid var(--gold);
  padding: 88px 0 56px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1.1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(247, 243, 235, 0.14);
}
.footer-brand { grid-column: 1; grid-row: 1; }
.footer-nav { grid-column: 2; grid-row: 1; }
.footer-contact { grid-column: 3; grid-row: 1; margin: 0; line-height: 2; }
.footer-endorsement {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ivory);
  margin: 24px 0 0;
  max-width: 19em;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 11px; }
.footer-nav a, .footer-contact a { color: var(--ivory-text-dim); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); text-decoration: underline; }
.footer-legal {
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(185, 194, 212, 0.66);
  margin: 34px 0 0;
  max-width: 96em;
}
.footer-copy {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(185, 194, 212, 0.66);
  margin: 22px 0 0;
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .faq-list summary::after { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-photo { justify-self: start; width: min(100%, 360px); }
  .editorial { grid-template-columns: 1fr; gap: 18px; }
  .topic-row, .service-row { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; }
  .topic-row::before, .service-row::before { grid-row: 1 / span 2; }
  .topic-row p, .service-row p { grid-column: 2; }
  .service-rows { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo-frame { max-width: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; grid-row: auto; }
  .footer-nav { grid-column: auto; grid-row: auto; }
  .footer-contact { grid-column: auto; grid-row: auto; }
  .section[data-num]::before { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 22px; }
  .section { padding: 80px 0; }
  .hero { padding-top: 72px; }
  .header-inner { justify-content: center; text-align: center; }
  .brand { margin: 0 auto; }
  .site-nav { margin: 4px auto 0; }
  .site-nav ul { justify-content: center; gap: 4px 20px; }
  .cred-strip { grid-template-columns: 1fr 1fr; margin-top: 72px; }
  .cred-strip span { padding: 18px 14px 20px; }
  .cred-strip span:nth-child(3) { border-left: none; }
  .cred-strip span:nth-child(n+3) { border-top: 1px solid rgba(201, 162, 39, 0.22); }
  .steps { grid-template-columns: 1fr; }
  .steps-cta .btn { margin: 14px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta { padding: 88px 0; }
  .btn { padding: 16px 26px; }
}

/* ============================================================
   Wealth Champions v3 additions: stage doors, service blocks,
   alignment block, SLA lines, resources, tables, forms,
   calculators, quiz. Same palette and type system as v2.
   ============================================================ */

.sla {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  max-width: 46em;
  margin: 26px 0 0;
}
.sla-hero { color: rgba(247, 243, 235, 0.82); margin-top: 22px; }
.sla-cta { color: rgba(247, 243, 235, 0.88); margin: 26px auto 0; text-align: left; max-width: 44em; }
.booking-block .sla, .results .sla { margin-top: 20px; }

/* ---------- Stage doors ---------- */
.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 48px;
  margin-top: 8px;
}
.door {
  border-top: 2px solid var(--gold-muted);
  padding: 28px 0 8px;
}
.door-stage {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin: 0 0 12px;
}
.door h4 { font-size: 23px; margin: 0 0 14px; }
.door p { color: var(--ink-soft); font-size: 16px; margin: 0 0 14px; }
.door p:last-child { margin-bottom: 0; }
.door a { font-weight: 600; font-size: 15px; }

/* ---------- Service blocks ---------- */
.service-block { margin-top: 64px; }
.service-block:first-of-type { margin-top: 8px; }
.service-block-title {
  font-size: 30px;
  margin: 0;
  padding-top: 34px;
  border-top: 1px solid var(--line-gold);
}
.service-block-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18.5px;
  color: var(--ink-soft);
  margin: 10px 0 6px;
  max-width: 44em;
}
.service-block .service-rows { display: block; }
.service-block-link { margin: 22px 0 0; font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Alignment block ---------- */
.built-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.built-row { border-top: 1px solid var(--line-gold); padding-top: 26px; }
.built-row h3 { font-size: 21px; margin: 0 0 12px; }
.built-row p { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* ---------- Resources ---------- */
.resource-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
  margin-top: 56px;
}
.resource-card { border-top: 2px solid var(--gold-muted); padding-top: 22px; }
.resource-card h3 { font-size: 20.5px; margin: 0 0 10px; line-height: 1.35; }
.resource-card h3 a { text-decoration: none; }
.resource-card h3 a:hover { text-decoration: underline; }
.resource-card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* ---------- Subpage scaffolding ---------- */
.page-hero {
  background:
    radial-gradient(ellipse 720px 420px at 88% -10%, rgba(201, 162, 39, 0.14), transparent 65%),
    linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 80%);
  color: var(--ivory);
  padding: 84px 0 72px;
}
.page-hero h1 {
  color: var(--ivory);
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.1;
  max-width: 15em;
  margin-top: 18px;
}
.page-hero .lede {
  color: var(--ivory-text-dim);
  font-size: 18px;
  line-height: 1.8;
  max-width: 42em;
  margin: 24px 0 0;
}
.page-body { padding: 88px 0 96px; }
.page-body h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  margin: 64px 0 20px;
}
.page-body h2:first-child { margin-top: 0; }
.page-body p, .page-body li { color: var(--ink-soft); font-size: 16.5px; }
.page-body p { max-width: 48em; }
.page-body ul { max-width: 48em; padding-left: 22px; }
.page-body li { margin-bottom: 8px; }
.year-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--gold);
  padding: 4px 12px;
  margin-bottom: 18px;
}

/* ---------- Comparison tables ---------- */
.table-scroll { overflow-x: auto; margin: 28px 0 8px; border-top: 2px solid var(--gold-muted); }
table.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 15.5px;
  line-height: 1.6;
}
table.compare th, table.compare td {
  text-align: left;
  vertical-align: top;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
table.compare thead th {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--navy);
  background: var(--ivory-dim);
  border-bottom: 1px solid var(--line-gold);
}
table.compare tbody th {
  font-weight: 600;
  color: var(--navy);
  width: 22%;
}
table.compare td { color: var(--ink-soft); }
.table-note { font-size: 13.5px; color: var(--ink-soft); margin: 10px 0 0; }

/* ---------- Methodology and sources ---------- */
.methodology {
  border: 1px solid var(--line-gold);
  background: rgba(201, 162, 39, 0.05);
  padding: 30px 34px;
  margin: 56px 0 0;
}
.methodology h2 { margin-top: 0; font-size: 26px; }
.methodology p, .methodology li { font-size: 15px; }
.sources { font-size: 13.5px; color: var(--ink-soft); margin-top: 18px; }
.sources a { word-break: break-word; }

/* ---------- Booking block (in body) ---------- */
.booking-block {
  border-top: 2px solid var(--gold-muted);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 44px;
  margin: 64px 0 0;
}
.booking-block h2 { margin: 0 0 14px; font-size: 28px; }
.booking-block p { margin: 0 0 10px; }

/* ---------- Forms ---------- */
.tool-form, .lead-form {
  max-width: 760px;
  margin-top: 30px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 8px;
}
.field .hint { font-weight: 400; font-size: 13.5px; color: var(--ink-soft); display: block; margin-top: 2px; }
.field input[type="number"], .field input[type="text"],
.field input[type="email"], .field input[type="tel"] {
  width: 100%;
  font: inherit;
  font-size: 16.5px;
  color: var(--ink);
  background: #FFFDF8;
  border: 1px solid var(--line);
  padding: 13px 16px;
}
.field input:focus { border-color: var(--gold-muted); outline: 2px solid var(--gold); outline-offset: 1px; }
.field input[type="range"] { width: 100%; accent-color: var(--gold-muted); }
.range-value { font-family: var(--serif); font-size: 19px; color: var(--navy); }
.check-field { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.check-field input[type="checkbox"] { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--gold-muted); flex: none; }
.check-field label { font-size: 15px; color: var(--ink-soft); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }

/* ---------- Results ---------- */
.results {
  border: 1px solid var(--line-gold);
  background: #FFFDF8;
  padding: 34px 38px;
  margin: 40px 0 0;
}
.results h2, .results h3 { margin-top: 0; }
.results[hidden] { display: none; }
table.figures { border-collapse: collapse; width: 100%; font-size: 16px; margin: 12px 0 6px; }
table.figures th, table.figures td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.figures thead th { font-family: var(--serif); font-weight: 500; color: var(--navy); font-size: 17px; }
table.figures td.num, table.figures th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.figures td { color: var(--ink-soft); }
table.figures td.num { color: var(--navy); font-weight: 600; }
.result-note { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Quiz ---------- */
.quiz-progress { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-muted); margin: 0 0 8px; }
.quiz-bar { height: 3px; background: var(--line); margin: 0 0 36px; max-width: 760px; }
.quiz-bar-fill { height: 100%; background: var(--gold); width: 0; transition: width 0.4s ease; }
.quiz-step { max-width: 760px; }
.quiz-step[hidden] { display: none; }
.quiz-step legend, .quiz-q {
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 29px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 26px;
  padding: 0;
}
.quiz-options { display: grid; gap: 12px; margin-bottom: 30px; }
.quiz-option {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line);
  background: #FFFDF8;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 16.5px;
  color: var(--ink);
}
.quiz-option:hover { border-color: var(--gold-muted); }
.quiz-option input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold-muted); flex: none; }
.quiz-nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn-ghost {
  background: transparent; color: var(--navy); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 17px 30px; cursor: pointer; font-family: var(--sans);
}
.btn-action {
  background: var(--navy); color: var(--ivory); border: 1px solid var(--navy);
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 17px 34px; cursor: pointer; font-family: var(--sans);
}
.btn-action:hover { background: var(--navy-deep); color: var(--gold); }
.btn-action:disabled { opacity: 0.45; cursor: not-allowed; }
.gap-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin: 26px 0 8px; }
.gap-area { border-top: 2px solid var(--line-gold); padding-top: 18px; }
.gap-area.flagged { border-top-color: var(--gold); }
.gap-area h3 { font-size: 20px; margin: 0 0 8px; }
.gap-area p { font-size: 15.5px; margin: 0; }
.gap-flag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--navy-deep); background: var(--gold);
  padding: 3px 10px; margin-bottom: 10px;
}
.gap-ok {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line);
  padding: 3px 10px; margin-bottom: 10px;
}

/* ---------- Subpage footer resources ---------- */
.footer-resources { grid-column: 2; grid-row: 1; }
.footer-grid-4 { grid-template-columns: 1fr 0.8fr 0.95fr 1fr; }
.footer-grid-4 .footer-brand { grid-column: 1; }
.footer-grid-4 .footer-nav { grid-column: 2; }
.footer-grid-4 .footer-resources { grid-column: 3; }
.footer-grid-4 .footer-contact { grid-column: 4; }

@media (max-width: 1020px) {
  .doors, .built-rows, .resource-cards { grid-template-columns: 1fr; gap: 34px 0; }
  .gap-areas { grid-template-columns: 1fr; }
  .footer-grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid-4 .footer-brand { grid-column: 1 / -1; }
  .footer-grid-4 .footer-nav, .footer-grid-4 .footer-resources, .footer-grid-4 .footer-contact { grid-column: auto; }
}
@media (max-width: 680px) {
  .form-grid { grid-template-columns: 1fr; }
  .results { padding: 26px 22px; }
  .methodology { padding: 24px 22px; }
  .page-body { padding: 64px 0 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-bar-fill { transition: none; }
}

/* ============================================================
   Mobile header fix (Oct 23, 2026): compact bar with a Menu
   toggle. On phones the full nav used to wrap into a tall
   stacked block that ate the first screen and covered content.
   ============================================================ */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.6);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
}
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle-bars span { display: block; width: 18px; height: 2px; background: var(--gold); }

section[id], footer[id] { scroll-margin-top: 84px; }

@media (max-width: 920px) {
  .header-inner { flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { display: none; flex-basis: 100%; margin: 6px 0 4px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; flex-wrap: nowrap; }
  .site-nav li { border-top: 1px solid rgba(201, 162, 39, 0.18); }
  .site-nav a { display: block; padding: 13px 4px; font-size: 13.5px; }
  .site-nav a.nav-cta { text-align: center; margin: 12px 0 8px; padding: 15px 20px; }
}

@media (max-width: 680px) {
  .header-inner { justify-content: space-between; text-align: left; }
  .brand { margin: 0; }
  .brand-name { font-size: 19px; }
  .monogram { width: 42px; height: 42px; }
  .site-nav { margin: 6px 0 4px; }
  .site-nav ul { justify-content: flex-start; }
  .hero { padding-top: 48px; }
  .hero-photo { width: min(100%, 340px); }
}

/* ---------- Tonight optimization pass (Oct 23, 2026) ---------- */

/* Task 14: select fields match text inputs */
.field select {
  width: 100%;
  font: inherit;
  font-size: 16.5px;
  color: var(--ink);
  background: #FFFDF8;
  border: 1px solid var(--line);
  padding: 13px 16px;
}
.field select:focus { border-color: var(--gold-muted); outline: 2px solid var(--gold); outline-offset: 1px; }

/* Task 20: anchor targets clear the sticky header on every page */
section[id], footer[id], div[id], form[id] { scroll-margin-top: 84px; }

/* Task 11: sticky mobile bottom bar, Book and Call always one tap away */
.mobile-bar { display: none; }
@media (max-width: 680px) {
  body { padding-bottom: 62px; }
  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--navy-deep);
    border-top: 1px solid rgba(201, 162, 39, 0.5);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    flex: 1;
    text-align: center;
    padding: 15px 8px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .mobile-bar-book { background: var(--gold); color: var(--navy-deep); }
  .mobile-bar-call { background: var(--navy-deep); color: var(--ivory); }
}

/* Task 18: print stylesheet for guides and calculator results */
@media print {
  .site-header, .site-footer, .cta, .mobile-bar, .skip-link,
  .lead-form, .tool-form, .hero-actions, .cred-strip, .nav-toggle { display: none !important; }
  body { font-size: 12pt; background: #fff; color: #000; padding-bottom: 0; }
  .wrap { max-width: none; padding: 0; }
  .hero, .section, .page-body { padding: 14px 0; background: #fff !important; }
  .section-navy, .hero { color: #000; }
  .section-navy h2, .section-navy h3, .section-navy h4, .hero h1 { color: #000; }
  .section-navy p, .hero p, .hero-sub { color: #000 !important; }
  h1, h2, h3, h4 { color: #000; page-break-after: avoid; }
  a { color: #000; text-decoration: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .booking-block, .results, .gap-area, .door, .topic-row, .service-row { page-break-inside: avoid; }
  table.figures tr { page-break-inside: avoid; }
  .sla { border-left-color: #000; color: #000; }
}
