/* ============================================================
   BidTabs.us — Stylesheet
   ============================================================ */

:root {
  --navy:        #1B3A6B;
  --navy-dark:   #0D1E3A;
  --navy-light:  #2E5FA3;
  --red:         #CC2233;
  --red-dark:    #A01A27;
  --white:       #FFFFFF;
  --gold:        #F59E0B;
  --gold-dark:   #D97706;
  --green:       #059669;
  --green-dark:  #047857;
  --steel:       #5A6478;
  --sky:         #EBF2FC;
  --gray-50:     #F8FAFC;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-300:    #CBD5E1;
  --gray-600:    #475569;
  --gray-800:    #1E293B;

  --font-head: 'Arial Black', 'Franklin Gothic Heavy', Impact, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.12), 0 4px 6px -2px rgba(0,0,0,.07);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.12), 0 10px 10px -5px rgba(0,0,0,.05);

  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; font-size: 16px; }
body   { font-family: var(--font-body); color: var(--gray-800); background: var(--white); line-height: 1.6; }
img    { max-width: 100%; display: block; }
a      { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── Skip link (a11y) ── */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  background: var(--navy);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
  border-bottom: 2px solid rgba(255,255,255,.07);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; }

.nav-logo-wordmark { line-height: 1; }
.nav-logo-name {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.5px;
}
.nav-logo-name span { color: var(--red); }
.nav-logo-tag {
  font-size: .6rem;
  color: rgba(255,255,255,.55);
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .4px;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover           { color: var(--white); }
.nav-links a:hover::after    { transform: scaleX(1); }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: .55rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700 !important;
  letter-spacing: .3px;
  transition: background var(--transition), transform .12s !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Pipe separators centered between top nav links.
   The base .nav-links gap is zeroed so horizontal spacing comes entirely from
   the pipe's symmetric margins - that puts the glyph dead-center between each
   pair of links. The CTA (always the last <li>) gets no pipe, just a matching
   margin so it isn't glued to the last text link. Mobile re-adds its own gap
   via .nav-links.is-open and suppresses these pipes in the 768px block below. */
.nav-links { gap: 0; }
.nav-links li + li:not(:last-child)::before {
  content: "|";
  color: rgba(255,255,255,.28);
  font-weight: 300;
  margin: 0 1rem;
}
.nav-links li:last-child { margin-left: 1.5rem; }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .5rem;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Self-contained star field + horizon glow — no external image */
  background:
    radial-gradient(2px 2px at 12% 22%, rgba(255,255,255,.55), transparent),
    radial-gradient(2px 2px at 28% 12%, rgba(255,255,255,.40), transparent),
    radial-gradient(1.5px 1.5px at 46% 26%, rgba(255,255,255,.45), transparent),
    radial-gradient(2px 2px at 64% 14%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 82% 24%, rgba(255,255,255,.45), transparent),
    radial-gradient(2px 2px at 92% 10%, rgba(255,255,255,.30), transparent),
    radial-gradient(ellipse 120% 60% at 70% 100%, rgba(46,95,163,.45), transparent 70%);
  opacity: .9;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(8,18,42,.94)  0%,
    rgba(27,58,107,.70) 55%,
    rgba(8,18,42,.90)  100%
  );
}

/* Flag stripe ribbon below nav */
.hero-ribbon {
  position: absolute;
  top: 70px; left: 0; right: 0;
  height: 5px;
  display: flex;
}
.hero-ribbon div { flex: 1; }

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 2.5rem 80px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.38);
  color: var(--gold);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 820px;
}
.hero-title .hl { color: var(--gold); }

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.78);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2.5rem;
}

/* Search bar inside hero */
.hero-search {
  display: flex;
  gap: 0;
  max-width: 560px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.15);
}
.hero-search input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: none;
  background: rgba(255,255,255,.95);
  color: var(--gray-800);
  font-size: .95rem;
  font-family: var(--font-body);
  outline: none;
}
.hero-search input::placeholder { color: var(--steel); }
.hero-search button {
  padding: 1rem 1.5rem;
  background: var(--red);
  color: var(--white);
  border: none;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  transition: background var(--transition);
}
.hero-search button:hover { background: var(--red-dark); }

.hero-trust {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.62);
  font-size: .82rem;
}
.hero-trust-item .star { color: var(--gold); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--navy);
  border-bottom: 3px solid var(--red);
  padding: 2rem 2.5rem;
}
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item { padding: 1rem; }
.stat-value {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-suffix { color: var(--gold); }
.stat-label {
  font-size: .72rem;
  color: rgba(255,255,255,.6);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: .4rem;
}

/* ============================================================
   SHARED SECTION
   ============================================================ */
.section       { padding: 5rem 2.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .6rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: .9rem;
  line-height: 1.15;
}
.section-sub {
  font-size: 1rem;
  color: var(--steel);
  max-width: 580px;
  line-height: 1.75;
}

/* Road dash decoration */
.road-deco {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1rem;
}
.road-deco span {
  height: 4px;
  border-radius: 2px;
  background: var(--gold);
  display: block;
}
.road-deco span:nth-child(1) { width: 48px; }
.road-deco span:nth-child(2) { width: 14px; opacity: .5; }
.road-deco span:nth-child(3) { width: 8px;  opacity: .3; }

/* ============================================================
   FEATURES
   ============================================================ */
.section-features { background: var(--gray-50); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(27,58,107,.2);
}

.feature-icon {
  width: 52px; height: 52px;
  background: var(--sky);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}
.feature-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: .6rem;
}
.feature-desc {
  color: var(--steel);
  font-size: .9rem;
  line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.section-how { background: var(--white); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--red) 50%, var(--gold));
}

.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--navy);
}
.step:nth-child(2) .step-num { background: var(--red);        box-shadow: 0 0 0 3px var(--red); }
.step:nth-child(3) .step-num { background: var(--navy-light); box-shadow: 0 0 0 3px var(--navy-light); }
.step:nth-child(4) .step-num { background: var(--gold-dark);  box-shadow: 0 0 0 3px var(--gold-dark); }

.step-title {
  font-family: var(--font-head);
  font-size: .98rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: .4rem;
}
.step-desc { font-size: .85rem; color: var(--steel); line-height: 1.6; }

/* ============================================================
   RECENT BIDS TABLE
   ============================================================ */
.section-bids { background: var(--gray-50); }

.bids-table-wrap {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.bids-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: .88rem;
}
.bids-table thead { background: var(--navy); color: var(--white); }
.bids-table th {
  padding: 13px 20px;
  text-align: left;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: .75rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.bids-table tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition);
}
.bids-table tbody tr:last-child { border-bottom: none; }
.bids-table tbody tr:hover { background: var(--sky); }
.bids-table td { padding: 14px 20px; }

.state-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.bid-amount {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--navy);
  font-size: .92rem;
}
.bid-link {
  color: var(--navy);
  font-weight: 700;
  font-size: .8rem;
  transition: color var(--transition);
}
.bid-link:hover { color: var(--red); }

/* Sample table loading skeleton (shown while samples.php loads). */
.bids-table tbody tr.bids-skel-row:hover { background: transparent; }
.bids-skel {
  display: inline-block; height: 14px; border-radius: 6px; vertical-align: middle;
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 37%, var(--gray-200) 63%);
  background-size: 400% 100%;
  animation: bids-shimmer 1.3s ease-in-out infinite;
}
.bids-skel-badge { width: 38px; height: 22px; }
.bids-skel-line  { width: 78%; min-width: 150px; }
.bids-skel-pill  { width: 72px; }
.bids-skel-amt   { width: 60px; }
.bids-skel-sm    { width: 52px; }
.bids-skel-link  { width: 60px; }
.bids-status-row td {
  text-align: center; color: var(--gray-600); font-size: .85rem; font-weight: 600;
  padding: 14px 20px;
}
.bids-status-row:hover { background: transparent !important; }
.bids-spinner {
  display: inline-block; width: 14px; height: 14px; margin-right: .5rem; vertical-align: -2px;
  border: 2px solid var(--gray-300); border-top-color: var(--navy); border-radius: 50%;
  animation: bids-spin .7s linear infinite;
}
@keyframes bids-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes bids-spin    { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .bids-skel, .bids-spinner { animation: none; }
}

/* Shared pulsing-shield animation. */
@keyframes bt-shield-pulse {
  0%, 100% { transform: scale(1);    opacity: .85; }
  50%      { transform: scale(1.12); opacity: 1; }
}
/* Sample-table loading shield (replaces the old spinner). */
.bids-loader-shield {
  width: 22px; height: auto; margin-right: .55rem; vertical-align: -6px;
  animation: bt-shield-pulse 1.1s ease-in-out infinite;
}
/* Full-screen navigation loader (search -> results, result -> tab). */
.bt-nav-loader {
  position: fixed; inset: 0; z-index: 99990;
  display: none; align-items: center; justify-content: center;
  background: rgba(8, 18, 42, .72); backdrop-filter: blur(2px);
}
.bt-nav-loader.is-on { display: flex; }
.bt-nav-loader-shield {
  width: 92px; height: auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .45));
  animation: bt-shield-pulse 1.1s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .bids-loader-shield, .bt-nav-loader-shield { animation: none; }
}
/* Back-to-top control (bottom-centered, shared across all public pages). */
.bt-to-top {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  box-shadow: 0 6px 18px rgba(13, 30, 58, .42);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, background .2s ease, box-shadow .2s ease;
  z-index: 1200;
}
.bt-to-top:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  box-shadow: 0 8px 22px rgba(245, 158, 11, .45);
}
.bt-to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.bt-to-top.is-visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .bt-to-top { transition: opacity .15s ease; transform: translateX(-50%); }
  .bt-to-top.is-visible { transform: translateX(-50%); }
}
@media print { .bt-to-top { display: none !important; } }

/* ── State hub (/xx/) ─────────────────────────────────────────────── */
.bt-hub-head { padding: 1.25rem 0 .5rem; }
.bt-crumbs { font-size: .85rem; color: var(--steel); margin-bottom: .75rem; }
.bt-crumbs a { color: var(--navy); text-decoration: none; }
.bt-crumbs a:hover { text-decoration: underline; }
.bt-hub-badge { margin-bottom: .6rem; }
.bt-hub-title { font-family: var(--font-head); color: var(--navy); font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; margin: .25rem 0 .75rem; }
.bt-hub-intro { max-width: 70ch; color: #334155; font-size: 1.02rem; line-height: 1.6; }
.bt-hub-intro a { color: var(--navy); font-weight: 700; }
.bt-hub-search { margin-top: 1.25rem; }
.bt-hub-recent, .bt-hub-cta, .bt-hub-states { padding: 1.5rem 0; }
.bt-hub-h2 { font-family: var(--font-head); color: var(--navy); font-size: 1.4rem; margin: 0 0 1rem; }
.bt-hub-cta { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.bt-hub-cta p { max-width: 70ch; color: #334155; line-height: 1.6; }
.bt-hub-cta .btn { margin-top: .5rem; }
.bt-hub-statelist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.bt-hub-statelist a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .92rem; }
.bt-hub-statelist a:hover { text-decoration: underline; color: var(--red); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.view-all-center { text-align: center; margin-top: 2rem; }

/* ============================================================
   TRANSPARENCY BAND
   ============================================================ */
.transparency-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.transparency-band::before,
.transparency-band::after {
  content: '★ ★ ★ ★ ★ ★ ★ ★ ★ ★';
  position: absolute;
  font-size: 1.5rem;
  color: rgba(255,255,255,.05);
  white-space: nowrap;
  letter-spacing: 1.5rem;
}
.transparency-band::before { top: .5rem; left: -2rem; }
.transparency-band::after  { bottom: .5rem; right: -2rem; }

.tb-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.tb-quote {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: .75rem;
}
.tb-quote .hl { color: var(--gold); }
.tb-source { color: rgba(255,255,255,.55); font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.section-cta {
  background: var(--navy-dark);
  padding: 5rem 2.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.section-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold) 50%, var(--red));
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.cta-title .hl { color: var(--gold); }
.cta-sub {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  letter-spacing: .3px;
  transition: transform .15s, box-shadow .15s, background var(--transition);
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(204,34,51,.38);
}
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 6px 20px rgba(204,34,51,.5); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.28);
}
.btn-outline:hover { background: rgba(255,255,255,.08); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); }

/* Analyze CTA - green variant for cross-sell links to DOTestimate. Inherits
   the .btn base (inline-flex, gap, padding, transition), overrides only
   color + shadow. Keep .btn in the class list on the anchor. */
.btn-analyze {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(5,150,105,.30);
}
.btn-analyze:hover {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(5,150,105,.45);
}
.btn-analyze:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #060E1E;
  color: rgba(255,255,255,.65);
  padding: 4rem 2.5rem 2rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: .5rem;
}
.footer-brand-name span { color: var(--red); }
.footer-brand-desc {
  font-size: .85rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* mini flag stripes */
.footer-flag {
  display: flex;
  gap: 3px;
  margin-top: 1.25rem;
}
.footer-flag span {
  height: 4px;
  border-radius: 2px;
  flex: 1;
  display: block;
}

.footer-col-title {
  font-weight: 700;
  color: var(--white);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy   { font-size: .8rem; }
.footer-legal  { font-size: .74rem; color: rgba(255,255,255,.35); max-width: 520px; text-align: right; line-height: 1.6; }

/* ============================================================
   HERO — DECORATIVE ROAD + SEAL
   ============================================================ */
.hero-road {
  position: absolute;
  right: -4%;
  bottom: 0;
  width: 46%;
  max-width: 620px;
  height: 90%;
  z-index: 1;
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  right: 4.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(120px, 14vw, 190px);
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.45));
  pointer-events: none;
}

/* ============================================================
   FEATURE ICONS (inline SVG)
   ============================================================ */
.feature-icon {
  color: var(--navy);
}
.feature-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* ============================================================
   STATES COVERED
   ============================================================ */
.section-states { background: var(--white); }

.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  list-style: none;
}
.state-chip {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1.1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.state-chip:hover {
  transform: translateY(-3px);
  background: var(--white);
  border-color: rgba(27,58,107,.25);
  box-shadow: var(--shadow-lg);
}
.state-chip-abbr {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: .85rem;
  letter-spacing: .5px;
  border-bottom: 3px solid var(--red);
}
.state-chip:hover .state-chip-abbr { background: var(--navy-light); }
.state-chip-name {
  font-weight: 700;
  font-size: .92rem;
  color: var(--navy);
}

/* ============================================================
   CTA BADGE
   ============================================================ */
.cta-badge {
  display: block;
  margin: 0 auto 1.25rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.4));
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid    { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .hero-badge    { display: none; }
  .hero-road     { width: 62%; opacity: .55; }
  .states-grid   { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav            { padding: 0 1.25rem; }
  .nav-links      { display: none; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 2px solid var(--red);
    box-shadow: 0 12px 30px rgba(0,0,0,.45);
  }
  .nav-links.is-open li { width: 100%; }
  .nav-links.is-open a  { display: block; padding: .65rem 0; }
  .nav-links.is-open .nav-cta { text-align: center; margin-top: .5rem; }
  /* No pipes / CTA inset in the stacked mobile menu */
  .nav-links li + li:not(:last-child)::before { content: none; }
  .nav-links li:last-child { margin-left: 0; }
  .nav-hamburger  { display: flex; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .features-grid  { grid-template-columns: 1fr; }
  .steps-grid     { grid-template-columns: 1fr 1fr; }
  .states-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom  { flex-direction: column; }
  .footer-legal   { text-align: left; max-width: 100%; }
  .bids-table th:nth-child(4),
  .bids-table td:nth-child(4) { display: none; }
}

@media (max-width: 480px) {
  .section        { padding: 3.5rem 1.25rem; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .steps-grid     { grid-template-columns: 1fr; }
  .hero-actions   { flex-direction: column; }
  .hero-search    { max-width: 100%; }
  .cta-btns       { flex-direction: column; align-items: stretch; }
  .bids-table th:nth-child(5),
  .bids-table td:nth-child(5) { display: none; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0   rgba(245,158,11,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(245,158,11,.0); }
}

.anim { opacity: 0; animation: fadeInUp .6s ease forwards; }
.d1   { animation-delay: .1s; }
.d2   { animation-delay: .22s; }
.d3   { animation-delay: .34s; }
.d4   { animation-delay: .46s; }

.pulse { animation: pulse-gold 2s infinite; }

/* ============================================================
   PUBLIC PAGES — search.php & tab.php (anonymous, no login)
   ============================================================ */
body.bt-public { background: var(--gray-50); display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.bt-main  { padding-top: 94px; min-height: 60vh; flex: 1 0 auto; }
.bt-wrap  { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

.bt-search-head { background: var(--sky); border-bottom: 1px solid var(--gray-200); padding: 1.75rem 0; }
.bt-h1   { font-family: var(--font-head); color: var(--navy); font-size: 1.8rem; margin: 0; }
.bt-lede { color: var(--steel); margin: .35rem 0 1.2rem; max-width: 720px; }

.bt-search-form { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; }
.bt-field { display: flex; flex-direction: column; gap: .25rem; }
.bt-field label { font-size: .68rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--navy); }
.bt-field input, .bt-field select {
  box-sizing: border-box; height: 42px;
  padding: 0 .6rem; border: 1px solid var(--gray-300); border-radius: 6px;
  font: inherit; line-height: normal; min-width: 150px; background: #fff;
}
.bt-field-submit .btn {
  box-sizing: border-box;
  width: 100px;
  height: 42px;
  padding: 0;
  font-size: .85rem;
  justify-content: center;
}
.bt-field-submit {
  flex-basis: 100%;
  flex-direction: row;
  justify-content: center;
  gap: .5rem;
  margin-top: .6rem;
}
/* Analyze button carries a longer label ("Analyze IL bids") than Search/Clear,
   so it opts out of the fixed 100px sibling width. Wins on specificity (.btn
   + .btn-analyze both matched) and by source order. */
.bt-field-submit .btn.btn-analyze {
  width: auto;
  min-width: 160px;
  padding: 0 1rem;
  white-space: nowrap;
}

.bt-results { padding: 1.5rem 0 3rem; }
.bt-resultcount { color: var(--navy); margin: .25rem 0 1rem; }
.bt-table-wrap { overflow-x: auto; }
/* Search results span the full page width (responsive: up to 1680px or 95vw),
   breaking out of the 1100px .bt-wrap cap so every column - including the
   View Tab column - fits. The Description cell wraps (and breaks long words)
   so the long Alabama-style descriptions take the room without overflowing.
   Scoped to .bt-results / .bt-table-wrap so the homepage samples table
   (.bids-table-wrap) is untouched. */
.bt-results .bt-wrap { max-width: min(1680px, 95vw); }
.bt-table-wrap .bids-table td:nth-child(4) {
  white-space: normal;
  overflow-wrap: anywhere;
}
.bt-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.ta-r { text-align: right; }

.bt-note { background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; padding: 1rem 1.2rem; color: var(--steel); }
.bt-note-warn { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }

.state-badge { display: inline-block; background: var(--navy); color: #fff; font-weight: 800;
  font-size: .72rem; padding: 2px 7px; border-radius: 4px; letter-spacing: .5px; }

/* ── tab.php viewer (per-bidder block layout) ── */
.bt-doc { padding: 1.5rem 0 3rem; }
/* The bid tabulation uses the full page width (the matrix scrolls within it),
   while staying fluid on smaller devices. Other public pages keep .bt-wrap's
   centered 1100px cap. */
.bt-wrap.bt-doc { max-width: 100%; padding-left: 1.5rem; padding-right: 1.5rem; }
.bt-doc-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; gap: 1rem; }
.bt-back { color: var(--navy); font-weight: 700; text-decoration: none; }
.bt-back:hover { text-decoration: underline; }

/* Contract header card - a distinct panel, not a ruled DOTestimate header */
.bt-doc-head {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 5px solid var(--navy);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.5rem;
}
.bt-doc-eyebrow { display: flex; align-items: center; gap: .5rem; color: var(--steel); font-weight: 700; font-size: .82rem; letter-spacing: .3px; }
.bt-doc-contract { font-family: var(--font-head); color: var(--navy); font-size: 1.55rem; margin: .5rem 0 .35rem; }
.bt-doc-desc { color: var(--gray-800); margin: 0 0 1rem; max-width: 70ch; }
.bt-doc-facts { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin: .6rem 0 0; }
.bt-doc-facts div { display: flex; flex-direction: column; }
.bt-doc-facts dt { color: var(--steel); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.bt-doc-facts dd { margin: .1rem 0 0; color: var(--navy); font-weight: 700; font-size: 1rem; }

/* Roster: apparent low bid noted plainly, then the rest. No green, no tags. */
.bt-roster { margin-bottom: 2rem; }
.bt-low-callout {
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
  background: var(--sky); border: 1px solid var(--navy-light);
  border-radius: 10px; padding: .9rem 1.2rem;
}
.bt-low-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--navy); }
.bt-low-name { font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.bt-low-total { margin-left: auto; font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.bt-roster-list { margin-top: .9rem; padding: 0 .3rem; }
.bt-roster-head { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--steel); margin-bottom: .5rem; }
.bt-roster-item {
  display: inline-flex; align-items: baseline; gap: .5rem;
  border: 1px solid var(--gray-200); border-radius: 999px;
  padding: .3rem .85rem; margin: 0 .5rem .5rem 0; background: var(--white);
}
.bt-roster-name { font-weight: 600; color: var(--gray-800); }
.bt-roster-total { color: var(--steel); font-size: .88rem; }

.bt-doc-h2 { font-family: var(--font-head); color: var(--navy); font-size: 1.2rem; margin: 1.8rem 0 1rem; }
.bt-doc-h2-sub { font-family: var(--font-body); font-weight: 400; color: var(--steel); font-size: .85rem; }

/* Bid Items matrix: shared reference columns on the left, one column
   per bidder (unit price). Distinct from the DOTestimate grid - no
   winner styling, navy bidder headers, sticky item column on scroll. */
.bt-matrix-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: 12px; }
/* Floating header clone: appears fixed below the nav while the table is
   scrolled past, hides (revealing the contract details) when scrolled to top. */
.bt-matrix-float { position: fixed; top: 70px; left: 0; z-index: 40; overflow: hidden; visibility: hidden; pointer-events: none; box-shadow: 0 8px 14px -8px rgba(15,23,42,.35); }
.bt-matrix-float.is-visible { visibility: visible; }
.bt-matrix-float-table { border-collapse: collapse; margin: 0; }
/* Sticky horizontal scrollbar that rides with the floating header. */
.bt-matrix-scroll-sticky { position: fixed; left: 0; z-index: 41; margin-bottom: 0; visibility: hidden; background: #fff; box-shadow: 0 6px 12px -8px rgba(15,23,42,.35); }
.bt-matrix-scroll-sticky.is-visible { visibility: visible; }
/* Contractor column show/hide (roster checkboxes). */
.bt-col-hidden { display: none; }
.bt-col-toggle { margin-right: .45rem; vertical-align: middle; cursor: pointer; accent-color: var(--navy); width: 16px; height: 16px; flex: 0 0 auto; }
/* Select / unselect all contractors. */
.bt-roster-actions { margin-top: .9rem; }
.bt-toggle-all { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem .5rem .8rem; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--navy), #2b416a); color: #fff; font: 600 .85rem/1 inherit; letter-spacing: .01em; cursor: pointer; box-shadow: 0 4px 14px -5px rgba(15,23,42,.55), inset 0 1px 0 rgba(255,255,255,.14); transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; }
.bt-toggle-all:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 9px 22px -7px rgba(15,23,42,.6), inset 0 1px 0 rgba(255,255,255,.2); }
.bt-toggle-all:active { transform: translateY(0); box-shadow: 0 3px 9px -4px rgba(15,23,42,.55); }
.bt-toggle-all:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.bt-toggle-all-ic { display: inline-flex; }
.bt-toggle-all svg { display: block; }
.bt-ta-box { fill: rgba(255,255,255,.16); stroke: rgba(255,255,255,.9); stroke-width: 1.4; transition: fill .18s ease; }
.bt-ta-check { fill: none; stroke: #fff; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 0; transition: stroke-dashoffset .22s ease; }
.bt-toggle-all:not(.is-all) .bt-ta-box { fill: transparent; }
.bt-toggle-all:not(.is-all) .bt-ta-check { stroke-dashoffset: 16; }
/* Mirrored horizontal scrollbar above the matrix (built/synced by JS in
   bt-layout.php). Sits below the "Bid Items" title, hidden when not needed. */
.bt-matrix-scroll-top { overflow-x: auto; overflow-y: hidden; margin-bottom: .4rem; }
.bt-matrix-scroll-top .bt-matrix-scroll-rail { height: 1px; }
.bt-matrix { border-collapse: collapse; width: 100%; font-size: .85rem; }
.bt-matrix thead th {
  background: var(--navy); color: #fff; text-align: left;
  padding: .6rem .8rem; vertical-align: bottom; white-space: nowrap;
  border-left: 1px solid var(--navy-light);
}
.bt-matrix thead th:first-child { border-left: none; }
/* Item / Description / Qty / UOM header reads as one solid navy block;
   the divider after UOM comes from the first contractor's .bt-m-grp. */
.bt-matrix thead th.bt-m-fixed { border-left: none; }
/* Fixed columns (Item/Description/Qty/UOM) render as one solid block with no
   inner borders; opaque backgrounds so scrolling bidder columns pass cleanly
   behind them; a single divider sits after the LAST fixed column (UOM). */
.bt-matrix tbody td.bt-m-fixed { border-left: none; background: var(--white); }
.bt-matrix tbody tr:nth-child(even) td.bt-m-fixed { background: var(--gray-200); }
.bt-matrix thead th.bt-m-fixed-last { box-shadow: 2px 0 0 0 #000; }
.bt-matrix tbody td.bt-m-fixed-last { box-shadow: 2px 0 0 0 #000; }
.bt-matrix thead th.bt-m-bidder { text-align: center; vertical-align: top; }
.bt-m-bidder-name { display: block; font-size: .8rem; line-height: 1.2; max-width: 12rem; margin: 0 auto; text-align: center; white-space: normal; }
.bt-m-bidder-total { display: block; font-size: .68rem; font-weight: 700; color: var(--gray-300); margin-top: .15rem; text-align: center; }
.bt-matrix tbody td { padding: .5rem .8rem; border-bottom: 1px solid var(--gray-100); border-left: 1px solid var(--gray-100); vertical-align: top; }
.bt-matrix tbody td:first-child { border-left: none; }
.bt-matrix tbody tr:nth-child(even) td { background: var(--gray-200); }
.bt-matrix tbody tr:last-child td { border-bottom: none; }
.bt-m-item { font-weight: 700; color: var(--navy); white-space: nowrap; }
.bt-m-desc { color: var(--gray-800); min-width: 11rem; max-width: 22rem; }
.bt-m-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bt-m-ext { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--gray-600); }
.bt-m-subhead { font-size: .68rem; font-weight: 600; letter-spacing: .2px; text-transform: uppercase; vertical-align: top; padding-top: 0; padding-bottom: .45rem; color: #fff; }
/* Divider marking the start of each bidder's Unit Price + Extension pair. */
/* Contractor-area column lines are black: 1px within each contractor
   (Unit Price | Extension) and a heavier 2px between contractors. */
.bt-matrix thead th.bt-m-bidder,
.bt-matrix thead th.bt-m-subhead,
.bt-matrix tbody td.bt-m-price,
.bt-matrix tbody td.bt-m-ext { border-left: 1px solid #555; }
.bt-matrix thead th.bt-m-grp { border-left: 2px solid #000; }
.bt-matrix tbody td.bt-m-grp  { border-left: 2px solid #000; }
/* Right edge of the last contractor. */
.bt-matrix thead tr th:last-child,
.bt-matrix tbody tr td:last-child { border-right: 1px solid #000; }
.bt-m-nobid { color: var(--gray-300); }
.ta-r { text-align: right; }
.bt-star { color: var(--gold); }

/* Sticky item column so the row stays identifiable while scrolling
   bidder columns horizontally. */
.bt-m-sticky { position: sticky; left: 0; z-index: 2; }
.bt-matrix thead th.bt-m-sticky { background: var(--navy); }
.bt-matrix tbody td.bt-m-sticky { background: var(--white); }
.bt-matrix tbody tr:nth-child(even) td.bt-m-sticky { background: var(--gray-200); }

.bt-doc-source { color: var(--steel); font-size: .8rem; margin-top: 1.4rem; }
.bt-doc-upsell { margin-top: 2rem; background: var(--navy); color: #fff; padding: 1.2rem 1.5rem;
  border-radius: 10px; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.bt-doc-upsell .btn { margin-left: auto; }
.bt-locked { -webkit-user-select: none; user-select: none; }

.footer-slim { padding: 1.4rem 0; flex-shrink: 0; }
.footer-slim .footer-copy { text-align: center; }

/* ── print / save-as-PDF ── */
@media print {
  .nav, .no-print, .bt-doc-toolbar, .bt-doc-upsell, .footer, .footer-slim { display: none !important; }
  body.bt-public { background: #fff; }
  .bt-main { padding-top: 0 !important; }
  .bt-wrap { max-width: 100%; padding: 0; }
  .bt-doc-head { background: #fff !important; border-color: #000; }
  .bt-low-callout { background: #fff !important; border-color: #000; }
  .bt-matrix-wrap { overflow: visible; border-color: #000; }
  .bt-matrix { font-size: 10px; }
  .bt-matrix thead th {
    background: #fff !important; color: #000 !important;
    border-bottom: 2px solid #000; border-left-color: #999;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .bt-m-bidder-total { color: #444 !important; }
  .bt-m-sticky { position: static; }
  .bt-matrix tbody td.bt-m-sticky,
  .bt-matrix tbody tr:nth-child(even) td.bt-m-sticky { background: transparent !important; }
  a[href]::after { content: ""; }
}

/* ── public pages responsive ── */
@media (max-width: 640px) {
  .bt-search-form { flex-direction: column; align-items: stretch; }
  .bt-field-submit { margin-left: 0; }
  .bt-field input, .bt-field select { min-width: 0; width: 100%; }
  .bt-low-total { margin-left: 0; }
}
