/* =========================================================
   PROSPERITY RECOVERY SERVICES — Design System
   ---------------------------------------------------------
   To customize: edit the CSS variables in the :root block.
   All colors, fonts, spacing, and radii are tokens.
   ========================================================= */

:root {
  /* ---- Colors ---- */
  --color-primary: #2B2D42;
  --color-secondary: #3D405B;
  --color-accent: #118AB2;
  --color-accent-hover: #0E7297;
  --color-success: #06D6A0;
  --color-bg: #F8F9FA;
  --color-surface: #FFFFFF;
  --color-border: #E2E5EA;
  --color-text: #1F2233;
  --color-text-muted: #5C6275;
  --color-text-inverse: #FFFFFF;

  /* ---- Typography ---- */
  --font-heading: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ---- Spacing ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* ---- Radius ---- */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 3px rgba(43, 45, 66, 0.06), 0 1px 2px rgba(43, 45, 66, 0.04);
  --shadow-md: 0 1px 3px rgba(43, 45, 66, 0.08), 0 4px 16px rgba(43, 45, 66, 0.06);
  --shadow-lg: 0 4px 12px rgba(43, 45, 66, 0.1), 0 16px 32px rgba(43, 45, 66, 0.08);

  /* ---- Layout ---- */
  --container-max: 1200px;
  --container-narrow: 800px;
  --reading-width: 65ch;
}

/* =========================================================
   Reset & Base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  margin-bottom: var(--space-5);
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
}

p {
  margin-bottom: var(--space-4);
  max-width: var(--reading-width);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: var(--reading-width);
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  display: block;
}

ul, ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
}

li {
  margin-bottom: var(--space-2);
}

blockquote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-secondary);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-5);
  margin: var(--space-6) 0;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-7);
}

.section-header p {
  margin-left: auto;
  margin-right: auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-4);
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  color: var(--color-text-inverse);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-text-inverse);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  text-decoration: none;
}

.btn-light {
  background-color: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-surface);
}

.btn-light:hover {
  background-color: transparent;
  color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
  text-decoration: none;
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.0625rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  line-height: 1.1;
}

.brand:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  flex-shrink: 0;
}

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

.brand-text small {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  position: relative;
}

.primary-nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.primary-nav a.active {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .primary-nav {
    position: fixed;
    top: 73px;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-5);
    border-left: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .primary-nav.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: var(--space-5);
  }
  .primary-nav li {
    border-bottom: 1px solid var(--color-border);
    margin: 0;
  }
  .primary-nav a {
    display: block;
    padding: var(--space-4) 0;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: linear-gradient(135deg, #fdfdfd 0%, #f3f4f8 100%);
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(17, 138, 178, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-content h1 {
  margin-bottom: var(--space-5);
}

.hero-content .lead {
  margin-bottom: var(--space-6);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-5);
}

.hero-note {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  position: relative;
}

.hero-card-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-success);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.hero-card-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(6, 214, 160, 0.2);
}

.hero-card h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-3);
}

.hero-card-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
}

.hero-card-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--color-text);
}

.hero-card-list li:last-child {
  border-bottom: none;
}

.hero-card-list svg {
  color: var(--color-success);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .hero-visual {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* =========================================================
   Trust bar
   ========================================================= */
.trust-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) 0;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
}

.trust-item-icon {
  width: 40px;
  height: 40px;
  background: rgba(17, 138, 178, 0.1);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

/* =========================================================
   Section variants
   ========================================================= */
.section-light {
  background: var(--color-surface);
}

.section-dark {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-text-inverse);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.85);
}

.section-dark .eyebrow {
  color: var(--color-success);
}

/* =========================================================
   Cards / process steps
   ========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
  border-color: var(--color-accent);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}

.card h3 {
  margin-bottom: var(--space-3);
}

.card p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* =========================================================
   Two-column content blocks
   ========================================================= */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.content-grid img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* =========================================================
   Urgency section
   ========================================================= */
.urgency-block {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.urgency-block::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 214, 160, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.urgency-block h2,
.urgency-block h3 {
  color: var(--color-text-inverse);
}

.urgency-block p {
  color: rgba(255, 255, 255, 0.9);
}

/* =========================================================
   FAQ Accordion
   ========================================================= */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-primary);
  list-style: none;
  transition: background-color 0.2s ease;
}

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

.faq-question:hover {
  background: rgba(17, 138, 178, 0.04);
}

.faq-toggle-icon {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.faq-item[open] .faq-toggle-icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-inverse);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-text);
}

.faq-answer p {
  margin-bottom: var(--space-3);
}

/* =========================================================
   Forms
   ========================================================= */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.form-field {
  margin-bottom: var(--space-4);
}

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.form-field .hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-left: var(--space-2);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 50px;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-body);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 138, 178, 0.15);
}

/* Checkbox override — prevents the .form-field input { width:100%; ... }
   rule from sizing the SMS opt-in checkbox like a full-width text input. */
.form-field input[type="checkbox"],
.form-field input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  accent-color: var(--color-accent);
  flex-shrink: 0;
}

.form-field.sms-consent {
  background: rgba(17, 138, 178, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: var(--space-4);
}

.form-field.sms-consent label {
  margin-bottom: 0;
  font-weight: 400;
}

.form-privacy {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  text-align: center;
}

.form-success {
  background: rgba(6, 214, 160, 0.1);
  border: 1.5px solid var(--color-success);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
}

.form-success h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-progress {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.form-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.form-progress-fill {
  height: 100%;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   US Map (geographic, with side panel)
   ========================================================= */
.map-section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.map-wrapper {
  position: relative;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: var(--space-5);
  align-items: start;
}

@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
}

.map-pane {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.5vw, 28px);
  box-shadow: var(--shadow-sm);
  position: relative;
  min-height: 320px;
}

.map-pane-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

#us-map-svg-host {
  width: 100%;
}

.us-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Tile-grid map ---- */
.us-map-svg .state-tile {
  cursor: pointer;
  outline: none;
}

.us-map-svg .state-tile-rect {
  fill: #E2EAEE;
  stroke: var(--color-surface);
  stroke-width: 1.5;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.us-map-svg .state-tile-label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  fill: var(--color-primary);
  pointer-events: none;
  user-select: none;
  transition: fill 0.15s ease;
}

.us-map-svg .state-tile:hover .state-tile-rect,
.us-map-svg .state-tile:focus-visible .state-tile-rect,
.us-map-svg .state-tile.selected .state-tile-rect {
  fill: var(--color-accent);
  stroke: var(--color-primary);
}

.us-map-svg .state-tile:hover .state-tile-label,
.us-map-svg .state-tile:focus-visible .state-tile-label,
.us-map-svg .state-tile.selected .state-tile-label {
  fill: #FFFFFF;
}

.us-map-svg .state-tile:focus-visible .state-tile-rect {
  stroke-width: 2.5;
}

.us-map-inset-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--color-text-muted);
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.map-legend-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #E2EAEE;
  border: 1px solid var(--color-border);
}

.map-loading,
.map-fallback {
  padding: var(--space-7) var(--space-5);
  text-align: center;
  color: var(--color-text-muted);
}

.map-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.map-search {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.map-search-label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.map-search input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.map-search input:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 138, 178, 0.15);
}

#state-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: var(--space-5);
  right: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-top: 4px;
  display: none;
  z-index: 20;
  max-height: 280px;
  overflow-y: auto;
}

#state-search-results.open {
  display: block;
}

#state-search-results li {
  margin: 0;
}

#state-search-results a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--color-border);
}

#state-search-results li:last-child a {
  border-bottom: none;
}

#state-search-results a:hover,
#state-search-results a:focus {
  background: var(--color-bg);
  color: var(--color-accent);
  text-decoration: none;
}

#state-search-results span {
  color: var(--color-text-muted);
  font-weight: 500;
}

.map-side-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.map-side-card-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.map-side-card h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-3);
  line-height: 1.25;
}

.map-side-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-4);
}

.map-side-card .btn {
  margin-top: var(--space-2);
}

.map-side-card-empty h3 {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

.map-side-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.map-side-tag.tag-reviewed {
  background: rgba(6, 214, 160, 0.12);
  color: #04825f;
}

.map-side-tag.tag-general {
  background: rgba(218, 165, 32, 0.12);
  color: #8a6300;
}

.map-help-text {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: var(--space-5);
}

.state-list {
  margin-top: var(--space-7);
}

.state-list h3 {
  margin-bottom: var(--space-4);
  text-align: center;
}

.state-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-2);
  list-style: none;
  padding: 0;
}

.state-list-grid li {
  margin: 0;
}

.state-list-grid a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--color-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.state-list-grid a:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
  text-decoration: none;
}

/* =========================================================
   Page hero (smaller hero for inner pages)
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-text-inverse);
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
}

.page-hero h1 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-4);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.breadcrumb {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-3);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   State page
   ========================================================= */
.state-page-section {
  margin-bottom: var(--space-7);
}

.state-page-section h2 {
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.info-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
}

.info-item h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.info-item p {
  margin-bottom: 0;
  color: var(--color-text);
}

.alert-banner {
  background: #fff8e6;
  border: 1px solid #f0d07a;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  font-size: 0.9375rem;
  color: #6b5410;
}

.alert-banner strong {
  color: #4a3a08;
}

/* =========================================================
   CTA block (reusable)
   ========================================================= */
.cta-block {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(17, 138, 178, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block h2 {
  color: var(--color-text-inverse);
  position: relative;
}

.cta-block p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--space-5);
  position: relative;
  font-size: 1.125rem;
}

.cta-block .btn {
  position: relative;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-8) 0 var(--space-5);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-4);
}

.footer-brand .brand-text small {
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: var(--space-3);
}

.footer-col h4 {
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

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

.footer-col li {
  margin-bottom: var(--space-3);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-text-inverse);
  text-decoration: none;
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-5);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-disclaimer p {
  max-width: none;
  margin-bottom: var(--space-3);
  color: inherit;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--space-5);
  font-size: 0.8125rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Utilities
   ========================================================= */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.mt-7 { margin-top: var(--space-7) !important; }

.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;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
