/* Top Agent America — navy and gold nameplate */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0b1f3a;
  --navy-deep: #071427;
  --bg: #ffffff;
  --ink: #10151d;
  --muted: #4b5563;
  --gold: #c9a45c;
  --gold-strong: #a97f2f;
  --gold-deep: #8a6620;
  --mist: #eef1f5;
  --on-navy: #f4f1ea;
  --on-navy-dim: #b7c3d6;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --z-nav: 10;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3 {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
p { text-wrap: pretty; }
a { color: inherit; }

.measure { max-width: 68ch; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }
.measure-wide { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }

/* seal */
.seal {
  width: 38px; height: 38px; flex: none;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
  display: inline-flex; align-items: center; justify-content: center;
}
.seal span {
  transform: rotate(-45deg);
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.85rem; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* nav */
.nav {
  position: relative; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--navy);
}
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand-name {
  font-family: 'Spectral', Georgia, serif; font-weight: 600;
  color: var(--on-navy); font-size: 1.12rem; letter-spacing: 0.01em;
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.8rem); }
.nav-links a {
  color: var(--on-navy-dim); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  transition: color 150ms var(--ease);
}
.nav-links a:hover { color: var(--on-navy); }

/* buttons */
.btn {
  display: inline-block;
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  border: none; border-radius: 3px;
  padding: 0.85rem 1.7rem;
  transition: transform 150ms var(--ease), background 150ms var(--ease), color 150ms var(--ease);
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: #d9b876; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-nav { background: var(--gold); color: var(--navy-deep) !important; padding: 0.55rem 1.1rem; font-size: 0.92rem; }
.btn-nav:hover { background: #d9b876; }
.btn-gold-line {
  background: transparent; color: var(--on-navy);
  border: 2px solid var(--gold);
}
.btn-gold-line:hover { background: var(--gold); color: var(--navy-deep); }

/* hero */
.hero {
  background: radial-gradient(ellipse at 50% -30%, #16345e 0%, var(--navy) 48%, var(--navy-deep) 100%);
  border-bottom: 4px solid var(--gold);
}
.hero-inner {
  max-width: 1160px; margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 2rem) clamp(3.5rem, 7vw, 6rem);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero h1 {
  color: var(--on-navy);
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  max-width: 17ch;
  animation: rise 600ms var(--ease) both;
}
.hero-sub {
  color: var(--on-navy-dim);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 48ch; margin-top: 1.4rem;
  animation: rise 600ms var(--ease) 90ms both;
}
.hero-cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.2rem; animation: rise 600ms var(--ease) 180ms both; }
.hero-alt { color: var(--gold); font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; }
.hero-alt:hover { border-bottom-color: var(--gold); }
.hero-proof { color: var(--on-navy-dim); font-size: 0.9rem; margin-top: 2.4rem; animation: rise 600ms var(--ease) 260ms both; }
.hero-fig {
  margin: 0;
  animation: rise 600ms var(--ease) 200ms both;
}
.hero-fig img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 7 / 5; object-fit: cover;
  border: 1px solid rgba(201, 164, 92, 0.55);
  outline: 8px solid rgba(244, 241, 234, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* trust bar */
.trustbar { border-bottom: 1px solid var(--mist); }
.trustbar ul {
  list-style: none;
  max-width: 1120px; margin: 0 auto;
  padding: 1.1rem clamp(1.25rem, 4vw, 2rem);
  display: flex; justify-content: center; align-items: baseline;
  gap: 0.9rem 2.8rem; flex-wrap: wrap;
}
.trustbar li {
  color: var(--muted); font-size: 0.93rem; font-weight: 500;
  position: relative;
}
.trustbar li + li::before {
  content: ''; position: absolute; left: -1.55rem; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  transform: translateY(-50%) rotate(45deg);
  background: var(--gold);
}

/* how */
.how { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.6rem 0 1.6rem 4.2rem;
  border-top: 1px solid var(--mist);
}
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1.45rem;
  width: 2.5rem; height: 2.5rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Spectral', Georgia, serif; font-weight: 600; font-size: 1.1rem;
  color: var(--gold-deep);
}
.steps p { color: var(--muted); }

/* promise */
.promise { background: var(--mist); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.promise p { color: var(--ink); font-size: 1.06rem; }

/* cities */
.cities { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.cities-lede { color: var(--muted); max-width: 60ch; margin-bottom: 2rem; }
.city-list { list-style: none; columns: 2; column-gap: 3rem; }
.city-list li { break-inside: avoid; }
.city-list a {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding: 0.95rem 0.25rem;
  text-decoration: none;
  border-bottom: 1px solid var(--mist);
  transition: background 150ms var(--ease);
}
.city-list a:hover { background: #f7f4ee; }
.city-name { font-family: 'Spectral', Georgia, serif; font-weight: 600; font-size: 1.15rem; }
.city-county { color: var(--muted); font-size: 0.88rem; flex: 1; }
.city-arrow { color: var(--gold-strong); }

/* agents band */
.agents-band { background: var(--navy); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.agents-band h2 { color: var(--on-navy); }
.agents-band p { color: var(--on-navy-dim); margin-bottom: 1.8rem; max-width: 58ch; }

/* faq */
.faq { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: 'Spectral', Georgia, serif; font-weight: 600; font-size: 1.12rem;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0.3rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-strong); font-size: 1.4rem; font-family: 'Archivo', sans-serif;
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 1.3rem; max-width: 62ch; }

/* footer */
.footer { background: var(--navy-deep); color: var(--on-navy-dim); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap;
}
.footer-brand { max-width: 34ch; }
.footer-name { font-family: 'Spectral', Georgia, serif; font-weight: 600; color: var(--on-navy); margin: 1rem 0 0.5rem; font-size: 1.1rem; }
.footer-line { font-size: 0.9rem; }
.footer-cols { display: flex; gap: clamp(2rem, 5vw, 4rem); flex-wrap: wrap; }
.footer-cols a { display: block; color: var(--on-navy-dim); text-decoration: none; font-size: 0.92rem; padding: 0.22rem 0; }
.footer-cols a:hover { color: var(--on-navy); }
.footer-h { color: var(--on-navy); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.5rem; }
.footer-legal {
  max-width: 1120px; margin: 2.5rem auto 0;
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem) 0;
  border-top: 1px solid rgba(244, 241, 234, 0.12);
  font-size: 0.85rem;
}

/* city pages */
.city-hero { background: radial-gradient(ellipse at 50% -30%, #16345e 0%, var(--navy) 48%, var(--navy-deep) 100%); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); border-bottom: 4px solid var(--gold); }
.city-hero h1 { color: var(--on-navy); font-size: clamp(1.9rem, 4.5vw, 3.2rem); max-width: 22ch; }
.city-hero .hero-sub { margin-top: 0.9rem; }
.city-hero .hero-cta { margin-top: 1.8rem; }
.crumb { color: var(--on-navy-dim); font-size: 0.85rem; margin-bottom: 1.6rem; }
.crumb a { color: var(--on-navy-dim); }
.city-body { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.city-body p { margin-bottom: 1.1rem; color: var(--ink); }
.city-nearby { padding-top: 0; }

/* quiz */
.quiz-shell {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% -30%, #16345e 0%, var(--navy) 48%, var(--navy-deep) 100%);
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.quiz-brand { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.quiz-card {
  background: var(--bg); border-radius: 6px;
  width: min(560px, 100%);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
}
.quiz-progress { height: 4px; background: var(--mist); border-radius: 2px; margin-bottom: 2rem; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 20%; background: var(--gold); transition: width 300ms var(--ease); }
.qstep legend, .qdone h2 {
  font-family: 'Spectral', Georgia, serif; font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.2;
  margin-bottom: 1.4rem;
}
.qstep { border: none; animation: qin 220ms var(--ease) both; }
@keyframes qin { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.qhint { color: var(--muted); font-size: 0.95rem; margin: -0.9rem 0 1rem; }
.opts { display: flex; flex-direction: column; gap: 0.7rem; }
.opt {
  font-family: 'Archivo', sans-serif; font-size: 1.02rem; font-weight: 500;
  text-align: left; cursor: pointer;
  background: var(--bg); color: var(--ink);
  border: 1.5px solid #cfd6df; border-radius: 4px;
  padding: 0.95rem 1.15rem; min-height: 48px;
  transition: border-color 130ms var(--ease), background 130ms var(--ease);
}
.opt:hover, .opt:focus-visible { border-color: var(--gold-strong); background: #fdfaf4; }
.qlabel { display: block; font-weight: 600; font-size: 0.92rem; margin: 1rem 0 0.3rem; }
.qinput {
  width: 100%; font-family: 'Archivo', sans-serif; font-size: 1.05rem;
  padding: 0.8rem 1rem; min-height: 48px;
  border: 1.5px solid #cfd6df; border-radius: 4px;
  color: var(--ink);
}
.qinput:focus { outline: 2px solid var(--gold-strong); outline-offset: 1px; border-color: var(--gold-strong); }
.qinput::placeholder { color: #6b7280; }
.qstep .btn { margin-top: 1.4rem; width: 100%; }
.qconsent { color: var(--muted); font-size: 0.85rem; margin-top: 0.9rem; }
.qerror { color: #b3261e; font-size: 0.92rem; margin-top: 0.8rem; }
.qback {
  position: absolute; top: 100%; left: 0; margin-top: 1rem;
  background: none; border: none; cursor: pointer;
  color: var(--on-navy-dim); font-family: 'Archivo', sans-serif; font-size: 0.95rem;
}
.qback:hover { color: var(--on-navy); }
.qdone p { color: var(--muted); margin-bottom: 1.5rem; }
.qdone .hero-alt { color: var(--gold-deep); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-fig { max-width: 560px; }
  .hero-fig img { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .city-list { columns: 1; }
  .nav-links { gap: 0.9rem; font-size: 0.9rem; }
}

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