/* ========================================
   Divorce Advice Guide - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
  --primary-color: #1a365d;
  --primary-light: #2c5282;
  --primary-dark: #0d1f3c;
  --secondary-color: #c53030;
  --accent-color: #2b6cb0;
  --text-color: #2d3748;
  --text-light: #4a5568;
  --text-muted: #718096;
  --bg-color: #ffffff;
  --bg-light: #f7fafc;
  --bg-dark: #edf2f7;
  --border-color: #e2e8f0;
  --success-color: #38a169;
  --warning-color: #d69e2e;
  --error-color: #c53030;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
}

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

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

a:hover {
  color: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

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

.btn-secondary {
  background: var(--bg-dark);
  color: var(--primary-color);
}

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

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

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
  background: var(--primary-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.logo:hover {
  color: white;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  border-radius: var(--radius);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: white;
  background: rgba(255,255,255,0.1);
}

/* Dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  z-index: 100;
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-color);
}

.dropdown-content a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  min-width: 600px;
}

.dropdown-column a {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.dropdown-small {
  min-width: 220px;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: white;
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.3);
  color: white;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* State Header */
.state-header {
  text-align: left;
}

.state-title {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.state-abbr-large {
  font-size: 3rem;
  font-weight: 800;
  background: rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.bg-light {
  background: var(--bg-light);
}

/* ========================================
   Features
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-light);
  margin: 0;
}

/* ========================================
   States
   ======================================== */
.states-map {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.region-group h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.state-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.state-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  color: var(--text-color);
  font-size: 0.875rem;
  transition: var(--transition);
}

.state-tag:hover {
  background: var(--primary-color);
  color: white;
}

/* States Full List */
.region-section {
  margin-bottom: 3rem;
}

.region-section h2 {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 1.5rem;
}

.state-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.state-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.state-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-color);
}

.state-abbr {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  min-width: 30px;
}

.state-name {
  color: var(--text-color);
}

/* ========================================
   State Page
   ======================================== */
.breadcrumb {
  background: var(--bg-light);
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb span {
  color: var(--text-color);
}

.state-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

.state-main {
  min-width: 0;
}

/* Quick Facts */
.quick-facts {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.quick-facts h2 {
  margin-bottom: 1.5rem;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.fact-item {
  display: flex;
  flex-direction: column;
}

.fact-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.fact-value {
  font-weight: 600;
  color: var(--primary-color);
}

/* Info Sections */
.info-section {
  margin-bottom: 2.5rem;
}

.info-section h2 {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.info-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* Highlight Box */
.highlight-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

/* Process Steps */
.process-steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.process-steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
  counter-increment: step;
}

.process-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.process-steps strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.process-steps p {
  margin: 0;
  color: var(--text-light);
}

/* Sidebar */
.state-sidebar,
.guide-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

.sidebar-section {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.sidebar-section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 0.5rem;
}

.sidebar-links a {
  display: block;
  padding: 0.5rem;
  color: var(--text-color);
  border-radius: var(--radius);
}

.sidebar-links a:hover {
  background: var(--bg-dark);
  color: var(--primary-color);
}

.nearby-states {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nearby-states a {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: white;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

/* Legal Disclaimer */
.legal-disclaimer {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.legal-disclaimer h3 {
  color: #92400e;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.legal-disclaimer p {
  color: #92400e;
  margin: 0;
  font-size: 0.875rem;
}

/* ========================================
   Guides
   ======================================== */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.guide-card {
  display: block;
  padding: 2rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.guide-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.guide-card h3 {
  margin-bottom: 0.5rem;
}

.guide-card p {
  color: var(--text-light);
  margin: 0;
}

/* Guide Content */
.guide-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
}

.guide-main {
  min-width: 0;
}

.guide-section {
  margin-bottom: 3rem;
}

.guide-section h2 {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Table of Contents */
.table-of-contents {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.table-of-contents h3 {
  margin-bottom: 1rem;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
}

.table-of-contents a {
  color: var(--text-color);
}

.table-of-contents a:hover {
  color: var(--primary-color);
}

/* Tables */
.info-table,
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.info-table th,
.info-table td,
.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.info-table th,
.comparison-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--primary-color);
}

.info-table tr:hover,
.comparison-table tr:hover {
  background: var(--bg-light);
}

/* Tips List */
.tips-list {
  list-style: none;
  padding: 0;
  counter-reset: tip;
}

.tips-list li {
  position: relative;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  counter-increment: tip;
}

.tips-list strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.tips-list p {
  margin: 0;
  color: var(--text-light);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  background: var(--bg-light);
}

.cta-box {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}

.cta-box h2 {
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ========================================
   Info Columns
   ======================================== */
.info-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-column h3 {
  margin-bottom: 1rem;
}

/* ========================================
   Content Narrow
   ======================================== */
.content-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.content-narrow h2 {
  margin-top: 2rem;
}

.content-narrow h2:first-child {
  margin-top: 0;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.value-item {
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.value-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.value-item p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* ========================================
   Contact
   ======================================== */
.contact-methods {
  margin: 2rem 0;
}

.contact-method {
  margin-bottom: 1rem;
}

.contact-method h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.faq-list {
  margin-top: 2rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-light);
}

/* ========================================
   Error Pages
   ======================================== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.error-content h1 {
  font-size: 6rem;
  color: var(--primary-color);
  margin-bottom: 0;
  line-height: 1;
}

.error-content h2 {
  margin-bottom: 1rem;
}

.error-content p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section h3 {
  font-size: 1.25rem;
}

.footer-section h4 {
  font-size: 1rem;
}

.footer-section p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-section .disclaimer {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 1rem;
}

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

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .state-content,
  .guide-content {
    grid-template-columns: 1fr;
  }

  .state-sidebar,
  .guide-sidebar {
    position: static;
  }

  .dropdown-grid {
    grid-template-columns: repeat(2, 1fr);
    min-width: 400px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 0.75rem 1rem;
  }

  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0,0,0,0.1);
    border-radius: 0;
    margin-top: 0.5rem;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .dropdown-grid {
    grid-template-columns: 1fr 1fr;
    min-width: auto;
  }

  .dropdown-content a {
    color: rgba(255,255,255,0.9);
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero .btn {
    width: 100%;
  }

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

  .state-title {
    flex-direction: column;
    text-align: center;
  }

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

  .info-table,
  .comparison-table {
    font-size: 0.875rem;
  }

  .info-table th,
  .info-table td,
  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

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

  .state-cards {
    grid-template-columns: 1fr;
  }

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

/* ========================================
   Accessibility - Skip Link
   ======================================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
  color: white;
}

/* ========================================
   Legal Pages
   ======================================== */
.legal-content {
  line-height: 1.8;
}

.legal-content h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-color);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.75rem;
}

.legal-nav {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.legal-nav h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.legal-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-nav li {
  margin: 0;
}

.legal-nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: var(--radius);
  color: var(--text-color);
  font-size: 0.875rem;
}

.legal-nav a:hover {
  background: var(--primary-color);
  color: white;
}

.warning-box {
  background: #fef3c7;
  border-left-color: #f59e0b;
}

.warning-box h2 {
  color: #92400e;
  margin: 0 0 1rem 0;
  padding: 0;
  border: none;
}

.warning-box p {
  color: #92400e;
}

/* Footer Legal Links */
.footer-legal {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.legal-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
}

.legal-links a:hover {
  color: white;
}

.legal-links .separator {
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .legal-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .legal-links .separator {
    display: none;
  }

  .legal-nav ul {
    flex-direction: column;
  }
}

/* ============================================
   LAWYER DIRECTORY STYLES
   ============================================ */

/* Lawyer Intro Section */
.lawyer-intro {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.intro-content h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.intro-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.intro-features {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.intro-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
}

.intro-feature svg {
  color: var(--accent-color);
}

/* States Grid for Lawyer Directory */
.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.state-card-link {
  text-decoration: none;
}

.state-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.state-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.state-card .state-abbr {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.state-card .state-name {
  font-size: 0.95rem;
  color: var(--text-color);
  font-weight: 500;
}

.state-card .lawyer-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.benefit-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.benefit-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.benefit-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.faq-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.faq-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Disclaimer Box */
.disclaimer-box {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 2rem auto;
  max-width: var(--max-width);
}

.disclaimer-box p {
  color: #92400e;
  font-size: 0.9rem;
  margin: 0;
}

/* State Header Badge */
.state-header-badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* Average Rating */
.avg-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-light);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 500;
  color: var(--text-color);
  margin-top: 1rem;
}

/* City Filter Tags */
.cities-filter {
  padding: 1.5rem 0;
}

.cities-filter h2 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.city-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.city-tag:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.city-tag.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Lawyers Grid */
.lawyers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

/* Lawyer Card */
.lawyer-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.lawyer-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.lawyer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.lawyer-name {
  font-size: 1.15rem;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.3;
}

.lawyer-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-color);
}

.lawyer-rating svg {
  flex-shrink: 0;
}

.review-count {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.lawyer-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.lawyer-address,
.lawyer-phone {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.4;
}

.lawyer-address svg,
.lawyer-phone svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-muted);
}

.lawyer-phone a {
  color: var(--accent-color);
  text-decoration: none;
}

.lawyer-phone a:hover {
  text-decoration: underline;
}

.lawyer-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lawyer-actions .btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

/* Sidebar Content Layout */
.sidebar-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.main-content h2 {
  margin-bottom: 1rem;
}

.main-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.sidebar-box {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.sidebar-box h3 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.state-links,
.resource-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.state-links li,
.resource-links li {
  margin-bottom: 0.5rem;
}

.state-links a,
.resource-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 0.25rem 0;
  transition: var(--transition);
}

.state-links a:hover,
.resource-links a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

.view-all-link {
  display: block;
  margin-top: 1rem;
  color: var(--accent-color);
  font-size: 0.9rem;
  text-decoration: none;
}

.view-all-link:hover {
  text-decoration: underline;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .sidebar-content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  .sidebar-box {
    margin-bottom: 0;
  }
}

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

  .lawyer-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .lawyer-actions {
    flex-direction: column;
  }

  .lawyer-actions .btn {
    width: 100%;
  }

  .intro-features {
    flex-direction: column;
    gap: 1rem;
  }

  .states-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   FAQ STYLES
   ============================================ */

/* FAQ Category Cards */
.faq-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.faq-category-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
}

.faq-category-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.faq-category-card h2 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question span {
  flex: 1;
  padding-right: 1rem;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-accordion-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-accordion-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* FAQ Page Layout */
.faq-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.faq-main {
  min-width: 0;
}

.faq-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-links li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.category-links li:last-child {
  border-bottom: none;
}

.category-links li.active a {
  color: var(--primary-color);
  font-weight: 600;
}

.category-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.category-links a:hover {
  color: var(--primary-color);
}

.category-links .count {
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
}

.sidebar-box.highlight {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
}

.sidebar-box.highlight h3 {
  color: white;
  border-bottom-color: rgba(255,255,255,0.2);
}

.sidebar-box.highlight p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.sidebar-box.highlight .btn-primary {
  background: white;
  color: var(--primary-color);
}

.sidebar-box.highlight .btn-primary:hover {
  background: var(--bg-light);
}

.text-center {
  text-align: center;
}

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

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

  .faq-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
}

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

  .faq-question {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

/* ============================================
   GLOSSARY STYLES
   ============================================ */

/* Letter Navigation */
.letter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.letter-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.letter-link:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Glossary Container */
.glossary-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.glossary-section {
  scroll-margin-top: 100px;
}

.glossary-letter {
  font-size: 2.5rem;
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.glossary-terms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.glossary-term-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.glossary-term-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.glossary-term-card h3 {
  margin-bottom: 0.75rem;
}

.glossary-term-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.glossary-term-card h3 a:hover {
  text-decoration: underline;
}

.glossary-term-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.read-more {
  color: var(--accent-color);
  font-size: 0.9rem;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* Term Article Page */
.term-article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.term-header {
  margin-bottom: 2rem;
}

.term-category {
  display: inline-block;
  background: var(--bg-light);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.term-header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.term-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.term-main {
  min-width: 0;
}

.definition-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
}

.definition-box h2 {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.definition-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.related-terms-section {
  margin-bottom: 2rem;
}

.related-terms-section h2 {
  margin-bottom: 1rem;
}

.related-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.related-term-link {
  display: block;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.related-term-link:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.related-term-link strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.related-term-link p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.term-nav {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.term-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.term-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.term-links li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-color);
}

.term-links li:last-child {
  border-bottom: none;
}

.term-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.term-links a:hover {
  color: var(--primary-color);
}

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

  .term-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
}

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

  .letter-link {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .term-header h1 {
    font-size: 1.75rem;
  }
}

/* ============================================
   CALCULATOR STYLES
   ============================================ */

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.calculator-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.calculator-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.calculator-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.calculator-card h2 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.calculator-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Calculator Form */
.calculator-container {
  max-width: 800px;
  margin: 0 auto;
}

.calculator-form {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-help {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.calculator-result {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 2rem;
}

.result-amount {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.result-label {
  font-size: 1rem;
  opacity: 0.9;
}

.result-disclaimer {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

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

  .result-amount {
    font-size: 2rem;
  }
}

/* ============================================
   LAWYERS PAGE ENHANCED STYLES
   ============================================ */

/* Lawyers Hero Section */
.lawyers-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, #4a7ab0 100%);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lawyers-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.lawyers-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.lawyers-hero h1 {
  color: white;
  font-size: 2.75rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.lawyers-hero .hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Hero Search */
.hero-search {
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box .search-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.25rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  box-shadow: 0 4px 25px rgba(0,0,0,0.25);
  transform: scale(1.02);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.trust-badge svg {
  color: var(--accent-color);
}

/* States Header */
.states-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

/* Region Filter */
.region-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.region-btn {
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  background: white;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.region-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.region-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* States Grid Enhanced */
#statesGrid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.state-card .view-btn {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 500;
  opacity: 0;
  transform: translateY(5px);
  transition: var(--transition);
}

.state-card:hover .view-btn {
  opacity: 1;
  transform: translateY(0);
}

/* No Results Message */
.no-results {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Steps Grid (How It Works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.step-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* Popular States */
.popular-states {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.popular-states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.popular-state-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.popular-state-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.popular-state-img {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.popular-state-info {
  padding: 1.25rem;
  text-align: center;
}

.popular-state-info h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.popular-state-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Benefit Icon */
.benefit-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* CTA Section Enhanced */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  padding: 4rem 1.5rem;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.cta-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-content p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.cta-buttons .btn-secondary:hover {
  background: rgba(255,255,255,0.3);
  color: white;
}

/* Responsive adjustments for lawyers page */
@media (max-width: 900px) {
  .lawyers-hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .lawyers-hero {
    padding: 3rem 1rem;
  }

  .lawyers-hero h1 {
    font-size: 1.75rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .trust-badges {
    gap: 1rem;
  }

  .trust-badge {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 140px;
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  .trust-badge svg {
    width: 24px;
    height: 24px;
  }

  .region-filter {
    width: 100%;
  }

  .region-btn {
    flex: 1;
    min-width: 80px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .popular-states-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .popular-state-img {
    height: 80px;
    font-size: 2rem;
  }

  .popular-state-info {
    padding: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}
