/* USA All Maps — homepage fixes (Agent C).
   Overrides only; assets/style.css is untouched.
   Atlas system: navy #0a1f3d, parchment #f7f1e3, gold #c9a227,
   Zilla Slab headings, Public Sans body. */

/* ---------- safety: never allow horizontal scroll on the homepage ---------- */
body { overflow-x: hidden; }

/* ---------- ticker: first phrase fully visible at load ----------
   The span animates translateX over 92s, so a mid-scroll screenshot
   caught the first phrase half cut off. The 2s animation-delay holds the
   span at its natural translateX(0) state on load, and the left padding
   on the container (not the span, so the -50% loop stays seamless)
   keeps the text clear of the edge. */
.ticker { padding-left: 22px; }
.ticker span { animation-delay: 2s; }

/* ---------- rich hero ---------- */
.hero { padding: 40px 26px 30px; }
.hero-inner {
  position: relative;
  z-index: 1; /* sit above the .hero::after hatch overlay */
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 30px 36px;
  align-items: center;
}
.hero-copy .kicker { margin-bottom: 12px; }
.hero-copy h1 { max-width: none; }
.hero-copy p.lede { max-width: none; }
.hero-copy > p { max-width: none; color: #33424f; }
.hero-copy > p:last-of-type { margin-bottom: 0; }

/* CTA buttons */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-cta .btn { padding: 13px 24px; font-size: 16px; box-shadow: 0 4px 14px rgba(10, 31, 61, .18); }
.hero-cta .btn.gold { box-shadow: 0 4px 14px rgba(201, 162, 39, .35); }

/* Hero map visual: framed atlas plate */
.hero-map { margin: 0; }
.hero-map a { display: block; }
.hero-map img {
  width: 100%;
  height: auto;
  border: 2px solid var(--gold);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(10, 31, 61, .22);
}
.hero-map figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: #5a6b7c;
  font-style: italic;
  line-height: 1.5;
}
.hero-map figcaption a { font-style: normal; font-weight: 700; white-space: nowrap; }

/* Stats row, full hero width under the two columns */
.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 2px solid var(--gold);
}
.hero-stats .stat { text-align: center; }
.hero-stats .num {
  display: block;
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.hero-stats .lbl {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a6d1a;
}

/* ---------- cards & sections visual pass ---------- */
/* Roomier grid on desktop, stronger card presence and hover lift. */
@media (min-width: 900px) {
  .grid { gap: 22px; margin: 26px 0; }
}
.grid .card { box-shadow: 0 3px 12px rgba(10, 31, 61, .08); }
.grid .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(10, 31, 61, .2);
  border-color: #d9c48a;
}
.grid .card img { height: 165px; }
.grid .card .pad { padding: 15px 17px 17px; }
.grid .card h3 { font-size: 19px; }

/* "Browse all 149 maps" button: make it a clear gold call-to-action. */
.browse-all { margin: 6px 0 30px; }
.browse-all .btn {
  background: var(--gold);
  border-color: var(--gold);
  color: #231a05;
  padding: 14px 28px;
  font-size: 16px;
  box-shadow: 0 5px 16px rgba(201, 162, 39, .35);
}
.browse-all .btn:hover { background: var(--brass); }

/* Section headings: a little more air, crisper gold rule. */
article.content h2 { margin-top: 42px; font-size: 28px; }
article.content h2:first-child { margin-top: 0; }

/* Key Facts table: keep the numbers steady and readable. */
table.facts td {
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* ---------- footer polish on the homepage ---------- */
footer.site h4 {
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(201, 162, 39, .55);
}
footer.site li a:hover { color: #fff; }

/* ---------- mobile: hero stacks, stats 2-up, no overflow ---------- */
@media (max-width: 720px) {
  .hero { padding: 28px 18px 22px; }
  .hero-inner { grid-template-columns: 1fr; gap: 22px; }
  .hero-map { order: 2; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; padding-top: 20px; }
  .hero-stats .num { font-size: 30px; }
  .hero-cta .btn { flex: 1 1 auto; text-align: center; padding: 12px 16px; font-size: 15px; }
  .grid .card img { height: 120px; }
  article.content h2 { font-size: 24px; }
  .browse-all .btn { width: 100%; text-align: center; }
}
