/* TruckPermits.online ? Public Stylesheet
   Industrial trucking / logistics brand system */

:root {
  --navy: #0B1F33;
  --navy-mid: #122a42;
  --steel: #1E4D6B;
  --steel-light: #2a6a8f;
  --amber: #E8A317;
  --amber-dark: #c4890f;
  --amber-soft: rgba(232, 163, 23, 0.14);
  --off-white: #F5F7FA;
  --charcoal: #1a2330;
  --muted: #5a6b7d;
  --border: #d4dce6;
  --white: #ffffff;
  --success: #1a7a4c;
  --danger: #b42318;
  --radius: 6px;
  --shadow: 0 8px 28px rgba(11, 31, 51, 0.12);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", sans-serif;
  --header-h: 72px;
  --max: 1920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--charcoal);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(30, 77, 107, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(232, 163, 23, 0.08), transparent 50%),
    linear-gradient(165deg, #e8eef4 0%, var(--off-white) 40%, #eef2f6 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--steel);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--amber-dark);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; text-transform: uppercase; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ??? Header ??? */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-bottom: 3px solid var(--amber);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.site-header .container {
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover { color: var(--white); }

.brand-mark {
  width: 42px;
  height: 42px;
  border: 2px solid var(--amber);
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--steel) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 3px;
  background: var(--amber);
  bottom: 10px;
  left: 15%;
  box-shadow: 0 -6px 0 var(--amber), 0 -12px 0 rgba(232, 163, 23, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1;
  color: var(--white);
}

.brand-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
  font-weight: 600;
  margin-top: 0.12rem;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--amber);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.header-phone span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* ??? Buttons ??? */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: var(--navy);
  border-color: var(--amber-dark);
  box-shadow: 0 4px 14px rgba(232, 163, 23, 0.35);
}

.btn-primary:hover {
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(232, 163, 23, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-outline {
  background: var(--white);
  color: var(--steel);
  border-color: var(--steel);
}

.btn-outline:hover {
  background: var(--steel);
  color: var(--white);
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.95rem; }

/* ??? Layout shells ??? */
.main {
  flex: 1;
  padding: 0 0 3.5rem;
}

.page-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  align-items: start;
  padding-top: 1.75rem;
}

.page-shell.no-sidebar {
  grid-template-columns: 1fr;
}

/* ??? States sidebar ??? */
.states-sidebar {
  background: linear-gradient(180deg, var(--navy) 0%, #0e2740 100%);
  border-radius: var(--radius);
  color: var(--white);
  overflow: visible;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.states-sidebar-head {
  padding: 1.1rem 1.15rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(30, 77, 107, 0.5), transparent);
}

.states-sidebar-head h2 {
  color: var(--white);
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
}

.states-sidebar-head p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.states-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
}

.states-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  border-left: 3px solid transparent;
}

.states-list a:hover,
.states-list a.active {
  background: rgba(232, 163, 23, 0.12);
  color: var(--white);
  border-left-color: var(--amber);
}

.states-list .state-code {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--amber);
  min-width: 2ch;
}

.states-list .state-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.states-list .state-count {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  min-width: 1.6rem;
  text-align: center;
}

.states-list a.active .state-count,
.states-list a:hover .state-count {
  background: var(--amber);
  color: var(--navy);
}

/* ??? Hero ??? */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(11, 31, 51, 0.94) 0%, rgba(30, 77, 107, 0.88) 55%, rgba(11, 31, 51, 0.92) 100%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(255, 255, 255, 0.02) 12px,
      rgba(255, 255, 255, 0.02) 24px
    );
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
  animation: heroIn 0.7s ease both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(232, 163, 23, 0.22), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(42, 106, 143, 0.35), transparent 45%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -5%;
  bottom: -15%;
  width: 55%;
  height: 70%;
  background:
    linear-gradient(90deg, transparent 0%, rgba(232, 163, 23, 0.08) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cpath d='M20 140h60l20-40h80l30-50h90v90H20z' fill='none' stroke='%23E8A317' stroke-width='3' opacity='0.25'/%3E%3Ccircle cx='70' cy='145' r='18' fill='none' stroke='%23E8A317' stroke-width='3' opacity='0.3'/%3E%3Ccircle cx='200' cy='145' r='18' fill='none' stroke='%23E8A317' stroke-width='3' opacity='0.3'/%3E%3C/svg%3E") center bottom / contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.hero-brand-main {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1;
  color: var(--white);
  text-transform: none;
}

.hero-brand-sub {
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 0 0.85rem;
  max-width: 28ch;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
  margin: 0 0 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

.fade-up-delay { animation-delay: 0.15s; }
.fade-up-delay-2 { animation-delay: 0.3s; }

/* ??? Sections ??? */
.section {
  margin-top: 2.5rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head p {
  color: var(--muted);
  max-width: 55ch;
  margin: 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.how-step {
  position: relative;
  padding: 1.5rem 1.35rem 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 250, 0.9));
  border-top: 3px solid var(--amber);
  box-shadow: 0 2px 12px rgba(11, 31, 51, 0.06);
  animation: fadeUp 0.55s ease both;
}

.how-step:nth-child(2) { animation-delay: 0.12s; }
.how-step:nth-child(3) { animation-delay: 0.24s; }

.how-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.how-step h3 {
  margin-bottom: 0.4rem;
}

.how-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ??? Permit / content panels ??? */
.content-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  backdrop-filter: blur(4px);
}

.page-title-bar {
  margin-bottom: 1.25rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--border);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  align-items: center;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
}

.badge-amber {
  background: var(--amber-soft);
  color: var(--amber-dark);
  border: 1px solid rgba(232, 163, 23, 0.35);
}

.badge-steel {
  background: rgba(30, 77, 107, 0.1);
  color: var(--steel);
  border: 1px solid rgba(30, 77, 107, 0.2);
}

.badge-muted {
  background: #e8edf2;
  color: var(--muted);
}

.price-display {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.price-display small {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

/* Permit page layout */
.permit-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 1.75rem;
  align-items: start;
}

.order-form-panel {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.order-form-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.order-form-panel .form-intro {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.inactive-notice {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f4eb, #fff);
  border: 1px solid rgba(232, 163, 23, 0.4);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  text-align: center;
}

.inactive-notice h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.inactive-notice p {
  margin: 0;
  color: var(--muted);
}

.permit-info h2 {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 1.25rem;
}

.permit-info h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.permit-info .prose {
  color: var(--charcoal);
}

.prose ul {
  padding-left: 1.2rem;
  margin: 0 0 1em;
}

.prose li { margin-bottom: 0.35rem; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel);
}

.form-group label .req {
  color: var(--danger);
  margin-left: 0.15rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(30, 77, 107, 0.15);
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
}

.form-actions {
  margin-top: 1.15rem;
}

/* Search */
.search-bar {
  display: flex;
  gap: 0.65rem;
  max-width: 640px;
}

.search-bar .form-control {
  flex: 1;
}

.results-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.results-list li {
  border-bottom: 1px solid var(--border);
}

.results-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1rem 0.25rem;
  color: var(--charcoal);
}

.results-list a:hover {
  color: var(--steel);
}

.results-list .result-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.results-list .result-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Permit cards on state page */
.permit-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.permit-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.permit-row:hover {
  background: rgba(30, 77, 107, 0.04);
}

.permit-row h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  color: var(--navy);
}

.permit-row p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.permit-row .row-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--steel);
  white-space: nowrap;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  overflow: hidden;
}

.faq-item summary {
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--amber);
  font-weight: 700;
}

.faq-item[open] summary::after { content: "?"; }

.faq-item .faq-answer {
  padding: 0 1.1rem 1rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.related-list a {
  padding: 0.4rem 0.75rem;
  background: rgba(30, 77, 107, 0.08);
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 3px;
}

.related-list a:hover {
  background: var(--steel);
  color: var(--white);
}

/* Alerts */
.alert {
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  border-left: 4px solid;
  font-size: 0.98rem;
}

.alert-success {
  background: #e8f6ef;
  border-color: var(--success);
  color: #0f5132;
}

.alert-error {
  background: #fcebea;
  border-color: var(--danger);
  color: #7a1c16;
}

.alert-info {
  background: #e8f0f6;
  border-color: var(--steel);
  color: var(--navy);
}

/* Status pages */
.status-page {
  max-width: 640px;
  margin: 3rem auto;
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--amber);
}

.status-page.success { border-top-color: var(--success); }
.status-page.error { border-top-color: var(--danger); }

.status-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.status-icon.ok {
  background: #e8f6ef;
  color: var(--success);
}

.status-icon.fail {
  background: #fcebea;
  color: var(--danger);
}

.order-summary {
  text-align: left;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--off-white);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.order-summary dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
}

.order-summary dt {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.order-summary dd {
  margin: 0;
  font-weight: 600;
}

/* Static pages */
.static-page {
  max-width: 800px;
  margin: 2rem auto 0;
}

.static-page .content-panel {
  padding: 2rem 2.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-block h3 {
  margin-bottom: 0.35rem;
}

.contact-block p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
  border-top: 3px solid var(--amber);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .brand-name {
  color: var(--white);
  font-size: 1.4rem;
  text-transform: none;
}

.footer-brand .brand-tag {
  color: var(--amber);
  margin-top: 0.15rem;
  margin-bottom: 0;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  max-width: 36ch;
}

.footer-col h4 {
  color: var(--amber);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.45rem; }

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

/* ??? Responsive ??? */
@media (max-width: 1024px) {
  .page-shell {
    grid-template-columns: 240px 1fr;
  }

  .permit-layout {
    grid-template-columns: 1fr;
  }

  .order-form-panel {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 3px solid var(--amber);
    gap: 0.85rem;
  }

  .nav-main.open { display: flex; }

  .header-phone { display: none; }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .states-sidebar {
    position: static;
    max-height: none;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .permit-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero {
    min-height: 360px;
  }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .search-bar { flex-direction: column; }
  .order-summary dl { grid-template-columns: 1fr; }
}

/* ??? Interactive US map ??? */
.us-map-section {
  margin: 0 0 2.5rem;
}

.us-map-panel {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(30, 77, 107, 0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f0f5f9 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.us-map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 77, 107, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 77, 107, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.7;
}

.us-map-legend {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.us-map-legend .legend-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  font-weight: 700;
  margin-right: 0.35rem;
}

.legend-swatch {
  width: 1.15rem;
  height: 0.7rem;
  border-radius: 2px;
  display: inline-block;
  border: 1px solid rgba(11, 31, 51, 0.15);
}

.legend-swatch.low { background: #1E4D6B; }
.legend-swatch.mid { background: #2a6a8f; }
.legend-swatch.high { background: #E8A317; }

.us-map {
  position: relative;
  z-index: 1;
  width: 100%;
  background: transparent;
}

.us-map svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  filter: drop-shadow(0 10px 24px rgba(11, 31, 51, 0.12));
}

.us-map .us-state {
  stroke: #ffffff;
  stroke-width: 0.9;
  cursor: pointer;
  transition: fill 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
  outline: none;
}

.us-map .us-state--empty {
  cursor: default;
  pointer-events: none;
}

.us-map .us-state-borders {
  stroke: #ffffff;
  stroke-width: 1.15;
  stroke-linejoin: round;
  stroke-linecap: round;
  fill: none;
  pointer-events: none;
}

.us-map .us-state--active:hover,
.us-map .us-state--active.is-hover,
.us-map .us-state--active:focus {
  fill: #c4890f !important;
  stroke: #0B1F33;
  stroke-width: 1.5;
  filter: brightness(1.05);
}

.us-map .us-state-label .us-label-code {
  fill: #ffffff;
  font-family: var(--font-display), sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  paint-order: stroke;
  stroke: rgba(11, 31, 51, 0.35);
  stroke-width: 2px;
}

.us-map .us-state-label .us-label-count {
  fill: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body), sans-serif;
  font-size: 9px;
  font-weight: 600;
  paint-order: stroke;
  stroke: rgba(11, 31, 51, 0.3);
  stroke-width: 2px;
}

.us-map-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 160px;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(165deg, var(--navy) 0%, #122a42 100%);
  color: #fff;
  border-radius: 6px;
  border-left: 3px solid var(--amber);
  box-shadow: 0 12px 28px rgba(11, 31, 51, 0.28);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.us-map-tooltip[hidden] {
  display: none !important;
}

.us-map-tooltip strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.us-map-tooltip span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.us-map-tooltip em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--amber);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.us-map-hint {
  position: relative;
  z-index: 1;
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.us-map-fallback {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 860px) {
  .us-map svg {
    max-height: none;
  }

  .us-map .us-state-label .us-label-code {
    font-size: 9px;
  }

  .us-map .us-state-label .us-label-count {
    font-size: 8px;
  }
}

/* ??? Live support chat ??? */
.live-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  font-family: var(--font-body);
}

.live-chat-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 2px solid var(--amber);
  cursor: pointer;
  background: linear-gradient(145deg, var(--navy) 0%, var(--steel) 100%);
  color: #fff;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  box-shadow:
    0 14px 34px rgba(11, 31, 51, 0.38),
    0 0 0 0 rgba(232, 163, 23, 0.35);
  font-weight: 600;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  animation: liveChatPulseRing 2.8s ease-out infinite;
}

.live-chat-toggle:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.live-chat-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.live-chat-toggle-label {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

@keyframes liveChatPulseRing {
  0% { box-shadow: 0 14px 34px rgba(11, 31, 51, 0.38), 0 0 0 0 rgba(232, 163, 23, 0.4); }
  70% { box-shadow: 0 14px 34px rgba(11, 31, 51, 0.38), 0 0 0 12px rgba(232, 163, 23, 0); }
  100% { box-shadow: 0 14px 34px rgba(11, 31, 51, 0.38), 0 0 0 0 rgba(232, 163, 23, 0); }
}

.live-chat-panel {
  position: absolute;
  right: 0;
  bottom: 4.35rem;
  width: min(370px, calc(100vw - 2rem));
  height: min(500px, calc(100vh - 7rem));
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(11, 31, 51, 0.32);
  border: 1px solid rgba(212, 220, 230, 0.95);
  transform-origin: bottom right;
  animation: liveChatPanelIn 0.28s ease;
}

.live-chat.is-open .live-chat-panel,
.live-chat-panel:not([hidden]) {
  display: flex;
}

.live-chat-panel[hidden] {
  display: none !important;
}

@keyframes liveChatPanelIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.live-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  background:
    linear-gradient(135deg, rgba(232, 163, 23, 0.16) 0%, transparent 42%),
    linear-gradient(180deg, var(--navy) 0%, #122a42 100%);
  color: #fff;
}

.live-chat-agent {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.live-chat-avatar {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.live-chat-avatar.sm {
  width: 1.55rem;
  height: 1.55rem;
  font-size: 0.62rem;
  margin-top: 0.1rem;
}

.live-chat-avatar.is-thinking {
  animation: liveChatAvatarPulse 1.1s ease-in-out infinite;
}

@keyframes liveChatAvatarPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.12); }
}

.live-chat-head strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1.1;
}

.live-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.12rem;
}

.live-chat-status i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.55);
  animation: liveChatOnline 1.8s ease-out infinite;
}

@keyframes liveChatOnline {
  0% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(61, 214, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
}

.live-chat-close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.live-chat-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.live-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.75rem;
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(30, 77, 107, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 35% at 0% 100%, rgba(232, 163, 23, 0.07), transparent 50%),
    linear-gradient(180deg, #eef3f8 0%, #f7f9fc 100%);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  scroll-behavior: smooth;
}

.live-chat-welcome {
  align-self: stretch;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(30, 77, 107, 0.12);
  border-left: 3px solid var(--amber);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 249, 252, 0.98) 100%);
  box-shadow: 0 4px 12px rgba(11, 31, 51, 0.05);
}

.live-chat-welcome-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.2;
}

.live-chat-welcome-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}

.live-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  max-width: 100%;
}

.live-chat-row.user {
  justify-content: flex-end;
}

.live-chat-row.is-enter {
  animation: liveChatBubbleIn 0.28s ease;
}

@keyframes liveChatBubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.live-chat-bubble {
  max-width: 86%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.42;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 3px 10px rgba(11, 31, 51, 0.05);
}

.live-chat-bubble.bot {
  background: #fff;
  border: 1px solid rgba(212, 220, 230, 0.95);
  color: var(--charcoal);
  border-bottom-left-radius: 5px;
}

.live-chat-bubble .live-chat-link {
  color: var(--steel);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.live-chat-bubble .live-chat-link:hover {
  color: var(--amber-dark);
}

.live-chat-bubble.user {
  background: linear-gradient(145deg, var(--steel) 0%, var(--steel-light) 100%);
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 8px 18px rgba(30, 77, 107, 0.22);
}

.live-chat-bubble.thinking {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 9.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.live-chat-think-label {
  font-style: italic;
  letter-spacing: 0.01em;
}

.live-chat-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.live-chat-dots i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--steel);
  opacity: 0.35;
  animation: liveChatDot 1.2s ease-in-out infinite;
}

.live-chat-dots i:nth-child(2) { animation-delay: 0.18s; }
.live-chat-dots i:nth-child(3) { animation-delay: 0.36s; }

@keyframes liveChatDot {
  0%, 80%, 100% { opacity: 0.28; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); background: var(--amber); }
}

.live-chat-bubble.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: var(--amber);
  animation: liveChatCaret 0.75s steps(1) infinite;
}

@keyframes liveChatCaret {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.live-chat-form {
  padding: 0.6rem 0.65rem 0.7rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.live-chat-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  align-items: end;
  padding: 0.28rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.live-chat-composer:focus-within {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(30, 77, 107, 0.12);
  background: #fff;
}

.live-chat-form textarea {
  resize: none;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.55rem;
  font: inherit;
  color: var(--charcoal);
  min-height: 72px;
  height: 72px;
  max-height: 160px;
  outline: none;
  line-height: 1.45;
  overflow-y: hidden;
}

.live-chat-send {
  width: 2.55rem;
  height: 2.55rem;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: linear-gradient(145deg, var(--amber) 0%, var(--amber-dark) 100%);
  box-shadow: 0 6px 14px rgba(232, 163, 23, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.live-chat-send:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.live-chat-send:disabled {
  opacity: 0.55;
  cursor: wait;
}

.live-chat.is-busy .live-chat-send svg {
  animation: liveChatSendPulse 1s ease-in-out infinite;
}

@keyframes liveChatSendPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(0.92); }
}

@media (max-width: 480px) {
  .live-chat {
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .live-chat-toggle-label {
    display: none;
  }
  .live-chat-panel {
    bottom: 3.7rem;
    width: min(400px, calc(100vw - 1.5rem));
  }
}
