:root {
  --navy: #0b2341;
  --navy-2: #10304f;
  --navy-3: #16406b;
  --gold: #c9a227;
  --gold-light: #e0b93f;
  --blue: #2563a8;
  --blue-light: #3b82c4;
  --ink: #1b2733;
  --muted: #55657a;
  --bg: #f4f6f9;
  --card: #ffffff;
  --line: #dde4ec;
  --radius: 10px;
  --shadow: 0 3px 14px rgba(11, 35, 65, 0.09);
  --serif: Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: #071a33;
  color: #9db4cc;
  font-size: 0.8rem;
}
.utility-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.utility-bar a { color: #cfe0f0; }
.utility-bar .gold { color: var(--gold-light); font-weight: 600; }

/* ---------- Header ---------- */
header.main { background: var(--navy); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 50; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo:hover { text-decoration: none; }
.logo-mark {
  min-width: 62px; height: 46px;
  padding: 0 9px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.5px;
  color: var(--gold-light);
  background: linear-gradient(160deg, #0e2c52, #0b2341);
  flex-shrink: 0;
}
.logo-text { line-height: 1.22; }
.logo-text .name {
  font-family: var(--serif);
  font-size: 0.87rem; font-weight: 700; letter-spacing: 0.2px;
  display: block;
  /* The <br> in the markup sets the break; nowrap stops "America"
     from being pushed onto a third line at tighter widths. */
  white-space: nowrap;
}
.logo-text .tag {
  font-size: 0.64rem;
  color: var(--gold-light);
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-weight: 700;
}
.nav-links { display: flex; gap: 18px; align-items: center; }
@media (max-width: 1000px) {
  .logo-text .name { font-size: 0.78rem; }
  .nav-links { gap: 12px; font-size: 0.84rem; }
  .nav-links .btn-sm { padding: 7px 12px; font-size: 0.82rem; }
}
/* Below tablet the 56-character formal name costs more than it earns —
   the badge + NAPMA NETWORK lockup carries the brand instead. */
@media (max-width: 880px) {
  .logo-text .name { display: none; }
  .logo-text .tag { font-size: 0.78rem; letter-spacing: 2.6px; }
}
/* Standards stays reachable from the footer and inline links, so it is the
   first nav item to go when the bar runs out of room. */
@media (max-width: 820px) {
  .nav-links a[href$="/standards"] { display: none; }
}
/* Phones: the nav can't sit beside the logo without pushing the page wider
   than the viewport, so stack it underneath and let it wrap. Individual
   links keep white-space:nowrap so labels never break mid-phrase. */
@media (max-width: 700px) {
  .nav { flex-direction: column; gap: 12px; padding: 12px 16px; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
}
.nav-links a { color: #cfe0f0; font-weight: 600; font-size: 0.93rem; white-space: nowrap; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.active { color: var(--gold-light); }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-light); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { border-color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(160deg, rgba(11,35,65,0.97) 0%, rgba(16,48,79,0.95) 55%, rgba(22,64,107,0.94) 100%);
  color: #fff;
  padding: 88px 0 96px;
  text-align: center;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.18;
  max-width: 860px;
  margin: 0 auto 22px;
  font-weight: 700;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero p.sub {
  font-size: 1.15rem;
  color: #b9cbde;
  max-width: 680px;
  margin: 0 auto 38px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: 3px;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 26px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
section { padding: 74px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-kicker {
  text-align: center;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  text-align: center;
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 46px;
  font-size: 1.03rem;
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; font-size: 1.12rem; color: var(--navy); }
.card p { color: var(--muted); font-size: 0.96rem; }
.icon-badge {
  width: 46px; height: 46px;
  border-radius: 8px;
  background: #eef3f9;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-badge svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card.gold-accent { border-top-color: var(--gold); }
.card.gold-accent .icon-badge svg { stroke: var(--gold); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px 22px;
  position: relative;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -17px;
  left: 20px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.step h4 { margin: 6px 0 8px; color: var(--navy); }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Split CTA panels ---------- */
.split { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.panel {
  border-radius: var(--radius);
  padding: 42px 36px;
  color: #fff;
}
.panel.plumber { background: linear-gradient(150deg, var(--navy), var(--navy-3)); border-top: 4px solid var(--blue-light); }
.panel.contractor { background: linear-gradient(150deg, #2c2410, #5c4a14); border-top: 4px solid var(--gold); }
.panel .panel-kicker { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 8px; font-weight: 700; }
.panel h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 14px; }
.panel ul { list-style: none; margin: 0 0 26px; }
.panel li { padding: 6px 0 6px 28px; position: relative; color: #e8eef4; font-size: 0.96rem; }
.panel li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-light); font-weight: 800; }

/* ---------- Auction demo ---------- */
.demo-box {
  background: var(--navy);
  border: 1px solid var(--navy-3);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 36px;
  color: #fff;
  max-width: 780px;
  margin: 0 auto;
}
.demo-box label { display: block; font-size: 0.82rem; color: #9db4cc; margin-bottom: 6px; font-weight: 600; letter-spacing: 0.5px; }
.demo-controls { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; margin-bottom: 26px; }
.demo-box select {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #2a4a68;
  background: var(--navy-2);
  color: #fff;
  font-size: 0.98rem;
}
.bid-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  background: var(--navy-2);
  border: 1px solid #21405d;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 10px;
  font-size: 0.94rem;
}
.bid-row.winner { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.bid-row .name { font-weight: 700; }
.bid-row .tag {
  font-size: 0.73rem;
  padding: 2px 10px;
  border-radius: 3px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--gold-light);
  font-weight: 700;
  white-space: nowrap;
}
.bid-row .eff { color: var(--gold-light); font-weight: 700; white-space: nowrap; }
.demo-result {
  margin-top: 22px;
  padding: 18px 20px;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid var(--gold);
  border-radius: 6px;
  font-size: 0.98rem;
}
.demo-result strong { color: var(--gold-light); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: #fff; padding: 54px 0; border-bottom: 3px solid var(--gold); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; color: var(--gold-light); }
.stat .lbl { color: #9db4cc; font-size: 0.92rem; }

/* ---------- Coverage band ---------- */
.coverage {
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  color: #fff;
  text-align: center;
}
.coverage .section-title { color: #fff; }
.coverage .section-sub { color: #b9cbde; }
.state-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 860px; margin: 0 auto;
}
.state-strip span {
  border: 1px solid #2a4a68;
  background: var(--navy-2);
  color: #cfe0f0;
  border-radius: 3px;
  padding: 5px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.state-strip span.open { border-color: var(--gold); color: var(--gold-light); }

/* ---------- Tables ---------- */
table.pts { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.pts th, table.pts td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.pts th { background: var(--navy); color: #fff; font-size: 0.88rem; letter-spacing: 0.5px; }
table.pts td.num { font-weight: 700; color: var(--blue); white-space: nowrap; }
table.pts td.neg { color: #b03a2e; font-weight: 700; }

/* ---------- FAQ ---------- */
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
details summary { font-weight: 700; cursor: pointer; color: var(--navy); }
details p { margin-top: 10px; color: var(--muted); }

/* ---------- Waitlist form ---------- */
.waitlist {
  background: linear-gradient(160deg, var(--navy), var(--navy-3));
  color: #fff;
  text-align: center;
  border-top: 3px solid var(--gold);
}
.waitlist .section-title { color: #fff; }
.waitlist form {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 28px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist input, .waitlist select {
  flex: 1 1 240px;
  padding: 13px 16px;
  border-radius: 6px;
  border: 1px solid #2a4a68;
  background: var(--navy-2);
  color: #fff;
  font-size: 0.98rem;
}
.form-note { color: #9db4cc; font-size: 0.85rem; margin-top: 14px; }

/* ---------- Dual call CTA ---------- */
.call-options {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px auto 0;
  max-width: 720px;
}
.call-card {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 20px 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: center;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.call-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.09);
}
.call-card.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #2b2205;
}
.call-card.primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.call-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  opacity: 0.85;
}
.call-number {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.call-meta { font-size: 0.8rem; opacity: 0.75; }

/* On a light section the outline card needs dark ink to stay legible. */
section:not(.waitlist):not(.coverage) .call-card:not(.primary) {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}
section:not(.waitlist):not(.coverage) .call-card:not(.primary):hover {
  border-color: var(--gold);
  background: #fff;
}

/* ---------- Footer ---------- */
footer { background: #071a33; color: #8fa6bd; padding: 46px 0 36px; font-size: 0.88rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.footer-brand { font-family: var(--serif); color: #fff; font-size: 1.05rem; }
footer a { color: #b9cbde; }
.footer-legal { max-width: 1120px; margin: 26px auto 0; padding: 18px 24px 0; border-top: 1px solid #12304f; font-size: 0.78rem; color: #67809a; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 66px 0 58px; text-align: center; color: #fff; }
.page-hero.plumber-theme { background: linear-gradient(160deg, var(--navy), var(--navy-3)); }
.page-hero.contractor-theme { background: linear-gradient(160deg, #1d1808, #5c4a14); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 16px; }
.page-hero p { max-width: 640px; margin: 0 auto 30px; color: rgba(255,255,255,0.85); font-size: 1.08rem; }

.notice {
  max-width: 780px;
  margin: 0 auto;
  background: #fdf8ec;
  border: 1px solid #e3d3a1;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: #6b5a20;
}

@media (max-width: 640px) {
  .nav-links { gap: 12px; font-size: 0.85rem; }
  .bid-row { grid-template-columns: 1fr auto; }
  .bid-row .tag { display: none; }
  .utility-inner { justify-content: center; }
}
