/* ═══════════════════════════════════════════════════════════════
   RadonResources Design System — components.css
   Reusable UI components. Requires design-tokens.css loaded first.
   ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────
   TOP BAR (phone number strip above header)
   Replicates production .headtop styling
   ───────────────────────────────────────────────────────────── */

.top-bar {
  background: url(../img/patternhover.jpg);
  border-bottom: 1px solid #565555;
  box-shadow: 0px 4px 8px #cfcfcf;
  color: #fff;
}
.top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--content-padding) 5px;
  text-align: left;
}
.top-bar-phone {
  margin: 0 0 10px;
  font-family: 'Open Sans', var(--font-body), sans-serif;
  font-size: 21px;
  line-height: 22px;
  font-weight: 600;
  color: #fff;
}
.top-bar-phone a {
  color: #fff;
  text-decoration: none;
}
.top-bar-phone a:hover {
  text-decoration: underline;
}
.top-bar-label {
  color: #fff;
}
.top-bar-number {
  color: #fff;
}
.top-bar-number a {
  color: #fff;
  text-decoration: none;
}
.top-bar-number a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────
   SITE HEADER (sticky, blurred)
   ───────────────────────────────────────────────────────────── */

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px var(--content-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-header .header-logo img {
  height: 84px;
  width: auto;
  max-width: none;
  display: block;
}

/* Right side of header: search above, nav below */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  flex: 1;
  margin-left: var(--space-8);
}

/* Desktop search form */
.header-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: flex-end;
}
.header-search-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  margin: 0;
}
.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 320px;
  width: 100%;
  overflow: visible;
}
.header-right,
.header-search-form {
  overflow: visible;
}
.header-search-input {
  width: 100%;
  padding: 8px 36px 8px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full, 999px);
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}
.header-search-input:focus {
  border-color: var(--accent);
}
.header-search-input::placeholder {
  color: var(--text-muted);
}
.header-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.header-search-btn:hover {
  color: var(--accent);
}
.header-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 200;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.header-search-results li {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.header-search-results li:hover,
.header-search-results li.selected_li {
  background: var(--accent-light, #f0f7ff);
}

.header-nav {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.header-nav a,
.header-nav a:visited,
.header-nav .header-dropdown-trigger,
.header-nav .header-dropdown-trigger:visited {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--duration-normal) var(--ease-default);
}
.header-nav a:hover,
.header-nav .header-dropdown-trigger:hover { color: var(--accent); }

/* CTA header button — high specificity to override Bootstrap/nav link colors */
.header-nav a.btn-header-cta,
a.btn-header-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  border: none;
  margin-left: var(--space-2);
  transition: background var(--duration-normal) var(--ease-default);
}
.header-nav a.btn-header-cta:hover,
a.btn-header-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

/* "What is Radon?" dropdown */
.header-dropdown {
  position: relative;
}
.header-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.header-dropdown-arrow {
  transition: transform 0.2s ease;
}
.header-dropdown:hover .header-dropdown-arrow {
  transform: rotate(180deg);
}
.header-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 200px;
  padding: 12px 12px 8px;
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 100;
}
.header-dropdown:hover .header-dropdown-menu {
  display: block;
}
.header-dropdown-menu a,
.header-dropdown-menu a:visited {
  display: block;
  padding: 9px 18px;
  font-size: var(--text-sm);
  white-space: nowrap;
  color: var(--text-primary);
}
.header-dropdown-menu a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* Hamburger button (hidden on desktop) */
.header-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.header-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.header-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.header-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu (hidden on desktop, toggled on mobile via JS) */
.header-mobile-menu {
  display: none;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 16px var(--content-padding) 20px;
}

/* Mobile search */
.mobile-search-form {
  margin-bottom: 16px;
}
.mobile-search-wrap {
  position: relative;
}
.mobile-search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}
.mobile-search-input:focus {
  border-color: var(--accent);
}
.mobile-search-input::placeholder {
  color: var(--text-muted);
}
.mobile-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 50;
  display: none;
  max-height: 240px;
  overflow-y: auto;
}
.mobile-search-results li {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-search-results li:hover,
.mobile-search-results li.selected_li {
  background: var(--accent-light);
  color: var(--accent);
}

/* Mobile nav links */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav a,
.mobile-nav a:visited {
  display: block;
  padding: 13px 0;
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.15s ease;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover {
  color: var(--accent);
}
.mobile-nav a.mobile-nav-sub {
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
}
.mobile-nav-cta {
  margin-top: 8px;
  background: var(--accent);
  color: #fff !important;
  text-align: center;
  padding: 14px 0 !important;
  border-radius: var(--radius-md);
  font-weight: var(--weight-semibold) !important;
  border-bottom: none !important;
  transition: background 0.2s ease !important;
}
.mobile-nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
}


/* ─────────────────────────────────────────────────────────────
   BREADCRUMB
   ───────────────────────────────────────────────────────────── */

.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--content-padding) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.breadcrumb .sep { margin: 0 6px; }
.breadcrumb + .hero { margin-top: 4px; }
.breadcrumb + .hero h1 { margin-top: 0; }


/* ─────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-default);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

/* Primary — brand accent */
.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
  padding: 12px 24px;
  font-size: var(--text-md);
}
.btn-primary:hover { background: var(--accent-hover); }

/* Secondary — outlined */
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  padding: 10px 20px;
  font-size: var(--text-base);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Ghost — minimal */
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 8px 16px;
  font-size: var(--text-base);
}
.btn-ghost:hover { background: var(--accent-light); }

/* Small variant */
.btn-sm {
  padding: 8px 18px;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
}

/* ─────────────────────────────────────────────────────────────
   CARDS
   ───────────────────────────────────────────────────────────── */

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--duration-normal) var(--ease-default);
}

/* Hoverable card (links) */
.card-hover:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Elevated card */
.card-elevated {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}


/* ─────────────────────────────────────────────────────────────
   ZONE BADGES
   ───────────────────────────────────────────────────────────── */

.zone-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: var(--tracking-wide);
}
.zone-badge-1 {
  background: var(--zone1-bg);
  color: var(--zone1);
}
.zone-badge-2 {
  background: var(--zone2-bg);
  color: var(--zone2);
}
.zone-badge-3 {
  background: var(--zone3-bg);
  color: var(--zone3);
}


/* ─────────────────────────────────────────────────────────────
   ZONE ACCORDION (native <details>/<summary>)
   Counties grouped by EPA zone. Zone 1 open by default.
   ───────────────────────────────────────────────────────────── */

.zone-group {
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: var(--bg-surface);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: box-shadow var(--duration-normal);
}
.zone-group:hover { box-shadow: var(--shadow-sm); }

.zone-group summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.zone-group summary::-webkit-details-marker { display: none; }
.zone-group summary::marker { display: none; content: ''; }

.zone-summary {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  gap: var(--space-4);
  transition: background var(--duration-fast);
}
.zone-group:hover .zone-summary { background: var(--bg-surface-alt); }

.zone-indicator {
  width: 6px;
  height: 40px;
  border-radius: 3px;
  flex-shrink: 0;
}
.zone-indicator.z1 { background: var(--zone1); }
.zone-indicator.z2 { background: var(--zone2); }
.zone-indicator.z3 { background: var(--zone3); }

.zone-info { flex: 1; }
.zone-title {
  font-size: 16px;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 2px;
}
.zone-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.zone-count {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  white-space: nowrap;
}

.zone-chevron {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-slow);
}
.zone-chevron svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform var(--duration-slow);
}
.zone-group[open] .zone-chevron {
  background: var(--accent);
}
.zone-group[open] .zone-chevron svg {
  color: var(--text-inverse);
  transform: rotate(180deg);
}

.zone-content {
  border-top: 1px solid var(--border-light);
  padding: var(--space-4) var(--space-5) var(--space-5);
  background: var(--bg-surface-alt);
}


/* ─────────────────────────────────────────────────────────────
   STAT CARDS (hero metrics)
   ───────────────────────────────────────────────────────────── */

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--accent);
  line-height: 1.2;
}
.stat-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-top: var(--space-1);
}


/* ─────────────────────────────────────────────────────────────
   MAP CARD
   ───────────────────────────────────────────────────────────── */

.map-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-legend {
  padding: var(--space-4) var(--space-5);
  display: flex;
  gap: var(--space-5);
  border-top: 1px solid var(--border-light);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.legend-item { display: flex; align-items: center; gap: 7px; }
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.legend-dot-z1 { background: var(--zone1); }
.legend-dot-z2 { background: var(--zone2); }
.legend-dot-z3 { background: var(--zone3); }


/* ─────────────────────────────────────────────────────────────
   TABLE OF CONTENTS BAR
   ───────────────────────────────────────────────────────────── */

.toc-bar {
  max-width: var(--max-width);
  margin: var(--space-10) auto 0;
  padding: 0 var(--content-padding);
}
.toc-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.toc-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-muted);
  margin-right: var(--space-2);
  white-space: nowrap;
}
.toc-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal);
  white-space: nowrap;
}
.toc-link:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.toc-sep {
  width: 1px;
  height: 18px;
  background: var(--border-default);
}


/* ─────────────────────────────────────────────────────────────
   FILTER BAR (zone filters, search)
   ───────────────────────────────────────────────────────────── */

.filter-bar {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-normal);
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-inverse);
}

.search-input {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 8px 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  outline: none;
  width: 240px;
  transition: border-color var(--duration-normal);
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }


/* ─────────────────────────────────────────────────────────────
   ALPHA FILTER (A-Z letter buttons)
   ───────────────────────────────────────────────────────────── */

.alpha-filter {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.alpha-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.alpha-btn:hover,
.alpha-btn.active {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
}


/* ─────────────────────────────────────────────────────────────
   DATA TABLE (professionals, rankings)
   ───────────────────────────────────────────────────────────── */

.data-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}
.data-table thead th {
  background: var(--bg-surface-alt);
  padding: 14px 18px;
  text-align: left;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
}
.data-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-surface-alt); }

/* ─────────────────────────────────────────────────────────────
   Legacy Table Redesign
   Targets .featured-table, .zebra-stripe, and generic content tables
   ───────────────────────────────────────────────────────────── */
.radon_mitigation,
.radon_testing,
.leftcont > article > .radon_mitigation,
article > div:has(> table.featured-table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
}

table.featured-table,
table.zebra-stripe,
.leftcont table,
article table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table.featured-table tr:first-child td,
table.featured-table thead td,
table.featured-table thead th,
table.zebra-stripe tr:first-child td,
table.zebra-stripe thead th,
.leftcont table thead th,
article table thead th {
  background: var(--bg-surface-alt) !important;
  padding: 14px 18px !important;
  text-align: left;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold) !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  border: none !important;
  border-bottom: 1px solid var(--border-default) !important;
  white-space: nowrap;
}

table.featured-table td,
table.featured-table th,
table.zebra-stripe td,
table.zebra-stripe th,
.leftcont table td,
.leftcont table th,
article table td,
article table th {
  padding: 14px 18px !important;
  border: none !important;
  border-bottom: 1px solid var(--border-light) !important;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.5;
  vertical-align: top;
}

table.featured-table tr:last-child td,
table.zebra-stripe tr:last-child td,
.leftcont table tr:last-child td,
article table tr:last-child td {
  border-bottom: none !important;
}

table.featured-table tr:hover,
table.zebra-stripe tr:hover,
.leftcont table tbody tr:hover,
article table tbody tr:hover {
  background: var(--bg-surface-alt);
}

table.zebra-stripe tr:nth-child(odd),
table.featured-table.zebra-stripe tr:nth-child(odd) {
  background: var(--bg-page);
}
table.zebra-stripe tr:nth-child(even),
table.featured-table.zebra-stripe tr:nth-child(even) {
  background: var(--bg-surface);
}
table.zebra-stripe tr:first-child,
table.featured-table.zebra-stripe tr:first-child {
  background: var(--bg-surface-alt) !important;
}

@media (max-width: 768px) {
  .radon_mitigation,
  .radon_testing,
  .leftcont > article,
  article {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table.featured-table,
  table.zebra-stripe,
  .leftcont table,
  article table {
    min-width: 600px;
  }
  table.featured-table td,
  table.featured-table th,
  table.zebra-stripe td,
  table.zebra-stripe th,
  .leftcont table td,
  .leftcont table th,
  article table td,
  article table th {
    padding: 10px 12px !important;
    font-size: 13px;
  }
}

/* ─────────────────────────────────────────────────────────────
   FAQ ACCORDION (native <details>/<summary>)
   No JavaScript required. Uses [open] attribute for styling.
   ───────────────────────────────────────────────────────────── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--duration-normal);
}
.faq-item:hover { border-color: var(--border-default); }

/* Remove native marker */
.faq-item summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  gap: var(--space-4);
}
.faq-question {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: 1.4;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-slow);
}
.faq-icon svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform var(--duration-slow);
}
.faq-item[open] .faq-icon {
  background: var(--accent);
}
.faq-item[open] .faq-icon svg {
  color: var(--text-inverse);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}


/* ─────────────────────────────────────────────────────────────
   CTA BANNER (dark, full-width)
   ───────────────────────────────────────────────────────────── */

.cta-banner {
  max-width: var(--max-width);
  margin: var(--space-14) auto 0;
  padding: 0 var(--content-padding);
}
.cta-inner {
  background: var(--dark-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.cta-inner h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-inverse);
  margin-bottom: var(--space-2);
}
.cta-inner p {
  font-size: var(--text-md);
  color: var(--dark-text);
}


/* ─────────────────────────────────────────────────────────────
   SITE FOOTER
   ───────────────────────────────────────────────────────────── */

/* ====== Free Quote Popup Modal ====== */
.quote-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.quote-modal-overlay.active {
  display: flex;
}
.quote-modal {
  background: #fff;
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  position: relative;
  animation: quoteModalIn 0.25s ease;
}
.quote-modal .sidebar-form {
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.quote-modal .quote-modal-close {
  z-index: 2;
  color: rgba(255,255,255,0.7);
}
.quote-modal .quote-modal-close:hover {
  color: #fff;
}
@keyframes quoteModalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.quote-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s ease;
}
.quote-modal-close:hover {
  color: var(--text-primary);
}
.quote-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  padding-right: 32px;
}
.quote-modal-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0 0 20px;
  line-height: 1.5;
}
.quote-modal fieldset {
  border: none;
  padding: 0;
  margin: 0 0 12px;
}
.quote-modal legend {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding: 0;
}
.quote-modal .form-group {
  margin-bottom: 12px;
}
.quote-modal label {
  display: block;
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.quote-modal .form-control {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md, 6px);
  background: var(--bg-page);
  color: var(--text-primary);
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}
.quote-modal .form-control:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}
.quote-modal select.form-control {
  appearance: auto;
}
.quote-modal .btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  font-size: 16px;
  font-weight: var(--weight-semibold);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md, 6px);
  cursor: pointer;
  transition: background 0.15s ease;
}
.quote-modal .btn:hover {
  background: var(--accent-hover);
}

@media (max-width: 480px) {
  .quote-modal {
    padding: 24px 20px 20px;
    max-height: 95vh;
    border-radius: var(--radius-md, 8px);
  }
  .quote-modal-title {
    font-size: 19px;
  }
}

.home-blog-posts a,
.home-blog-posts a:visited {
  color: var(--text-primary);
}
.home-blog-posts a:hover {
  color: var(--accent);
}

.site-footer {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding: 0 var(--content-padding);
  border-top: 1px solid var(--border-default);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 40px 0 32px;
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: 16px;
}
.footer-col a,
.footer-col a:visited {
  font-size: var(--text-sm);
  color: var(--text-primary);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--accent); }

.footer-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-logos img {
  height: 60px;
  width: auto;
  max-width: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.footer-logos img:hover { opacity: 1; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.footer-bottom a,
.footer-bottom a:visited {
  color: var(--text-primary);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--accent); }
.footer-legal {
  display: flex;
  gap: 20px;
}


/* ─────────────────────────────────────────────────────────────
   METRO CARD
   ───────────────────────────────────────────────────────────── */

.metro-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: var(--space-5);
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: all var(--duration-normal);
}
.metro-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.metro-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.metro-icon svg { width: 22px; height: 22px; color: var(--accent); }


/* ─────────────────────────────────────────────────────────────
   LINK STYLES
   ───────────────────────────────────────────────────────────── */

.link-accent {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--weight-medium);
  transition: color var(--duration-fast);
}
.link-accent:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.link-phone {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--weight-medium);
}
.link-phone:hover { text-decoration: underline; }


/* ─────────────────────────────────────────────────────────────
   FORM ELEMENTS (quote forms, contact forms)
   ───────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: var(--space-4);
}
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}
.form-label .required {
  color: var(--accent);
  margin-left: 2px;
}
.form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 10px 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  outline: none;
  transition: border-color var(--duration-normal);
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-input::placeholder { color: var(--text-muted); }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238A8983' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────
   SIDEBAR LEAD FORM
   ───────────────────────────────────────────────────────────── */

.sidebar-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.form-header {
  background: var(--dark-bg);
  padding: 22px 24px;
}
.form-header h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.form-header p {
  font-size: 13px;
  color: var(--dark-text);
}
.form-body {
  padding: 24px;
}
.form-step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  margin-top: 6px;
}
.form-step-label:first-child {
  margin-top: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.req {
  color: var(--accent);
}
.form-consent {
  margin: 14px 0;
}
.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.form-consent a {
  color: var(--accent);
  text-decoration: underline;
}
.form-submit {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-inverse);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  padding: 13px;
  cursor: pointer;
  transition: background var(--duration-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-submit:hover {
  background: var(--accent-hover);
}
.form-required-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ─────────────────────────────────────────────────────────────
   SIDEBAR PHONE & LINKS
   ───────────────────────────────────────────────────────────── */

/* Thin, subtle scrollbar for sticky sidebars */
.city-sidebar,
.metro-sidebar,
.sidebar-form-wrap {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.3s ease;
}
.city-sidebar:hover,
.metro-sidebar:hover,
.sidebar-form-wrap:hover {
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}
.city-sidebar::-webkit-scrollbar,
.metro-sidebar::-webkit-scrollbar,
.sidebar-form-wrap::-webkit-scrollbar {
  width: 4px;
}
.city-sidebar::-webkit-scrollbar-track,
.metro-sidebar::-webkit-scrollbar-track,
.sidebar-form-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.city-sidebar::-webkit-scrollbar-thumb,
.metro-sidebar::-webkit-scrollbar-thumb,
.sidebar-form-wrap::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}
.city-sidebar:hover::-webkit-scrollbar-thumb,
.metro-sidebar:hover::-webkit-scrollbar-thumb,
.sidebar-form-wrap:hover::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
}

/* Inline quote CTA box (reusable component) */
.inline-quote-box {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-default, #e0e0e0);
  border-radius: var(--radius-lg, 12px);
  padding: 24px 28px 24px 28px;
  margin: 4px 0 24px 24px;
  float: right;
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}
.inline-quote-box-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent, #9B2423);
  border-radius: var(--radius-lg, 12px) 0 0 var(--radius-lg, 12px);
}
.inline-quote-box h4 {
  font-family: var(--font-heading, 'Fraunces', serif);
  font-size: 18px;
  font-weight: var(--weight-semibold, 600);
  color: var(--text-primary, #1A1A18);
  margin: 0 0 14px;
  line-height: 1.35;
}
.inline-quote-box-phones {
  margin-bottom: 16px;
}
.inline-quote-box-phones p {
  font-size: var(--text-sm, 14px);
  color: var(--text-secondary, #555);
  margin: 0 0 4px;
  line-height: 1.5;
}
.inline-quote-box-label {
  font-weight: var(--weight-medium, 500);
  color: var(--text-primary, #1A1A18);
}
.inline-quote-box-phones a {
  color: var(--accent, #9B2423);
  font-weight: var(--weight-semibold, 600);
  text-decoration: none;
}
.inline-quote-box-phones a:hover {
  text-decoration: underline;
}
.inline-quote-box-btn {
  display: inline-block;
  font-size: var(--text-sm, 14px);
  font-weight: var(--weight-semibold, 600);
  padding: 10px 24px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .inline-quote-box {
    float: none;
    margin: 0 0 24px;
    max-width: 100%;
  }
}

.sidebar-phone {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 14px;
  text-align: center;
}
.sidebar-phone-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.sidebar-phone-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.sidebar-phone-num a {
  color: var(--accent);
  text-decoration: none;
}
.sidebar-phone-num a:hover {
  text-decoration: underline;
}
.sidebar-phone-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.sidebar-links {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 14px;
}
.sidebar-links h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.sidebar-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 500;
}
.sidebar-link-item:last-child {
  border-bottom: none;
}
.sidebar-link-item a {
  color: var(--accent);
  text-decoration: none;
}
.sidebar-link-item a:hover {
  text-decoration: underline;
}
.sidebar-link-item svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   METRO LEAD FORM / QUOTE SECTION
   ───────────────────────────────────────────────────────────── */

.quote-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}
.quote-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--zone3);
  background: var(--zone3-bg);
  padding: 5px 12px;
  border-radius: 5px;
  margin-bottom: 16px;
}
.quote-content h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.quote-content > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}
.trust-signals {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
}
.trust-item svg {
  color: var(--zone3);
  flex-shrink: 0;
}
.phone-cta {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
}
.phone-number {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.phone-number:hover {
  text-decoration: underline;
}
.phone-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.quote-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .quote-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}


/* ─────────────────────────────────────────────────────────────
   SERVICE AREAS PAGE
   ───────────────────────────────────────────────────────────── */

.page-header-block {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px var(--content-padding) 0;
}
.page-header-block h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0 0 16px;
}
.page-header-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 0 8px;
}

.service-areas-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px var(--content-padding) 48px;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-surface);
}
.state-grid-item,
.state-grid-item:visited {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  transition: background 0.15s ease, color 0.15s ease;
}
.state-grid-item:nth-child(4n) {
  border-right: none;
}
.state-grid-item:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.state-grid-arrow {
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.state-grid-item:hover .state-grid-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.service-areas-cta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding) 64px;
}


/* ═══════════════════════════════════════════════════════════════
   BOOTSTRAP COMPATIBILITY LAYER
   Minimal replacements for Bootstrap 3 classes used by legacy pages.
   Replaces bootstrap.css and bootstrap-theme.css entirely.
   ═══════════════════════════════════════════════════════════════ */


/* ── Base Reset & Global Typography ── */
*, *:before, *:after { box-sizing: border-box; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-page);
  margin: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', var(--font-body), sans-serif;
  color: var(--text-primary);
  line-height: var(--leading-snug);
  margin-top: 0;
}
h1 { font-size: var(--text-4xl); font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); margin-bottom: 16px; }
h2 { font-size: 20px; font-weight: var(--weight-bold); letter-spacing: var(--tracking-snug); margin-bottom: 12px; }
h3 { font-size: 18px; font-weight: var(--weight-semibold); margin-bottom: 10px; }
h4 { font-size: var(--text-xl); font-weight: var(--weight-semibold); margin-bottom: 8px; }
h5 { font-size: var(--text-lg); font-weight: var(--weight-semibold); margin-bottom: 6px; }
h6 { font-size: var(--text-md); font-weight: var(--weight-semibold); margin-bottom: 4px; }

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 16px;
}
a {
  color: #0088cc;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:visited {
  color: #0088cc;
}
a:hover { color: #006da3; }

ul, ol { padding-left: 20px; }
blockquote {
  margin: 0 0 16px;
  padding: 12px 20px;
  border-left: 4px solid var(--border-default);
  color: var(--text-secondary);
}
hr {
  border: none;
  border-top: 1px solid var(--border-default);
  margin: 24px 0;
}
label {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin-bottom: 4px;
  display: inline-block;
}


/* ── Grid System (12-column) ── */
.container {
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}
.row {
  margin-left: -15px;
  margin-right: -15px;
}
.row:before, .row:after { content: " "; display: table; }
.row:after { clear: both; }

[class*="col-"] {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
  float: left;
}

.col-xs-12 { width: 100%; }

.col-sm-4, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-12 { width: 100%; }

.col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-11, .col-md-12 { width: 100%; }


/* ── Forms ── */
.form-group {
  margin-bottom: 15px;
}
.form-control {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857;
  color: #555;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus {
  border-color: #66afe9;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.075), 0 0 8px rgba(102,175,233,0.6);
}
textarea.form-control { height: auto; }
select.form-control { cursor: pointer; }


/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.42857;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-default {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}
.btn-default:hover { background-color: #e6e6e6; border-color: #adadad; }

.btn-primary {
  color: #fff;
  background-color: #990000;
  border-color: #800000;
}
.btn-primary:hover { background-color: #800000; border-color: #660000; }

.btn-success {
  color: #fff;
  background-color: #5cb85c;
  border-color: #4cae4c;
}
.btn-success:hover { background-color: #449d44; border-color: #398439; }

.btn-danger {
  color: #fff;
  background-color: #d9534f;
  border-color: #d43f3a;
}
.btn-danger:hover { background-color: #c9302c; border-color: #ac2925; }

.btn-warning {
  color: #fff;
  background-color: #f0ad4e;
  border-color: #eea236;
}
.btn-warning:hover { background-color: #ec971f; border-color: #d58512; }

.btn-info {
  color: #fff;
  background-color: #5bc0de;
  border-color: #46b8da;
}
.btn-info:hover { background-color: #31b0d5; border-color: #269abc; }

.btn-link {
  color: #990000;
  background: transparent;
  border: none;
}
.btn-link:hover { color: #660000; text-decoration: underline; }

.btn-lg { padding: 10px 16px; font-size: 18px; border-radius: 6px; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 3px; }
.btn-xs { padding: 1px 5px; font-size: 12px; border-radius: 3px; }
.btn-block { display: block; width: 100%; }


/* ── Tables ── */
.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
  border-spacing: 0;
}
.table > thead > tr > th,
.table > tbody > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td {
  padding: 8px;
  line-height: 1.42857;
  vertical-align: top;
  border-top: 1px solid #ddd;
}
.table > thead > tr > th {
  vertical-align: bottom;
  border-bottom: 2px solid #ddd;
  font-weight: bold;
  text-align: left;
}
.table-bordered { border: 1px solid #ddd; }
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td {
  border: 1px solid #ddd;
}
.table-striped > tbody > tr:nth-child(odd) { background-color: #f9f9f9; }
.table-responsive {
  min-height: 0.01%;
  overflow-x: auto;
}


/* ── Panels ── */
.panel {
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.panel-heading {
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
  border-radius: 3px 3px 0 0;
}
.panel-body { padding: 15px; }
.panel-default > .panel-heading { background-color: #f5f5f5; color: #333; }
.panel-primary { border-color: #990000; }
.panel-primary > .panel-heading { background-color: #990000; color: #fff; border-color: #990000; }


/* ── Alerts ── */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.alert-success { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; }
.alert-danger  { color: #a94442; background-color: #f2dede; border-color: #ebccd1; }
.alert-warning { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; }
.alert-info    { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; }


/* ── Wells ── */
.well {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
}


/* ── Thumbnails / List Groups ── */
.thumbnail {
  display: block;
  padding: 4px;
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border 0.2s ease;
}
.thumbnail:hover { border-color: #990000; }

.list-group { padding-left: 0; margin-bottom: 20px; }
.list-group-item {
  position: relative;
  display: block;
  padding: 10px 15px;
  margin-bottom: -1px;
  background-color: #fff;
  border: 1px solid #ddd;
}
.list-group-item:first-child { border-radius: 4px 4px 0 0; }
.list-group-item:last-child { border-radius: 0 0 4px 4px; margin-bottom: 0; }


/* ── Utilities ── */
.clearfix:before, .clearfix:after { content: " "; display: table; }
.clearfix:after { clear: both; }
.pull-left { float: left; }
.pull-right { float: right; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* ── Navbar compat (used by blp/clp/glp landers) ── */
.navbar-header { float: left; }
.navbar-toggle {
  display: none;
  float: right;
  padding: 9px 10px;
  margin-top: 8px;
  margin-right: 15px;
  margin-bottom: 8px;
  background-color: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}
.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background-color: #888;
}
.navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; }
.navbar-collapse { overflow: visible; }
.navbar-nav { margin: 0; padding-left: 0; list-style: none; }
.navbar-nav > li { float: left; }
.navbar-nav > li > a { display: block; padding: 15px; }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

/* ── SM breakpoint (≥768px): grid columns ── */
@media (min-width: 768px) {
  .col-sm-4  { width: 33.33333%; }
  .col-sm-6  { width: 50%; }
  .col-sm-7  { width: 58.33333%; }
  .col-sm-8  { width: 66.66667%; }
  .col-sm-9  { width: 75%; }
  .col-sm-12 { width: 100%; }
}

/* ── MD breakpoint (≥992px): grid columns ── */
@media (min-width: 992px) {
  .col-md-3  { width: 25%; }
  .col-md-4  { width: 33.33333%; }
  .col-md-6  { width: 50%; }
  .col-md-8  { width: 66.66667%; }
  .col-md-11 { width: 91.66667%; }
  .col-md-12 { width: 100%; }
}

/* ── Mobile nav toggle (≤767px) ── */
@media (max-width: 767px) {
  .navbar-header { float: none; }
  .navbar-toggle { display: block; }
  .navbar-collapse { display: none; }
  .navbar-collapse.in { display: block; }
  .navbar-nav > li { float: none; }
  .navbar-nav > li > a { padding: 10px 15px; }
}

/* ── Site design breakpoints ── */
@media (max-width: 860px) {
  .top-bar-inner { text-align: left; }
  .top-bar-phone { font-size: 16px; }
  .header-right { display: none; }
  .header-hamburger { display: flex; }
  .header-mobile-menu.active { display: block; }
  .cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .footer-legal { justify-content: center; }
  .toc-inner { gap: 4px; }
  .toc-link { padding: 6px 10px; font-size: var(--text-xs); }
  .state-grid { grid-template-columns: repeat(2, 1fr); }
  .state-grid-item:nth-child(4n) { border-right: 1px solid var(--border-light); }
  .state-grid-item:nth-child(2n) { border-right: none; }
  .page-header-block { padding-top: 32px; }
}

@media (max-width: 600px) {
  :root { --content-padding: 16px; }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input { width: 100%; }
  .state-grid { grid-template-columns: 1fr; }
  .state-grid-item { border-right: none; }
  .page-header-block h1 { font-size: 24px; }
}

/* Blog article content */
.entry-content { font-size: 16px; line-height: 1.8; }
.entry-content p { font-size: 16px; line-height: 1.8; }
.entry-content h3, .comment-content h3 { font-size: 18px; line-height: 1.4; }
.entry-content ul, .entry-content ol { margin: 20px 0 22px 25px; }
.entry-content li { margin-bottom: 10px; font-size: 16px; line-height: 1.7; }
