/*
================================================================================
  24/7 BAIL BONDS - REFACTORED VIBRANT DESIGN SYSTEM & STYLESHEET
  Version: 2.0.0
  Description: High-energy visual refactor featuring vibrant Yellow (#FFCC00 / #FACC15) 
               and Crimson Red (#DC2626 / #E11D48) color scheme, balanced with sleek,
               harmonious slate and charcoal grays (#0F172A, #1E293B, #64748B, #F1F5F9).
================================================================================
*/

/* -----------------------------------------------------------------------------
   0. GOOGLE FONTS IMPORT
----------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* -----------------------------------------------------------------------------
   1. DESIGN SYSTEM VARIABLES
----------------------------------------------------------------------------- */
:root {
  /* Vibrant Yellow & Gold Palette */
  --color-yellow-50:  #fefce8;
  --color-yellow-100: #fef9c3;
  --color-yellow-300: #fef08a;
  --color-yellow-400: #fde047;
  --color-yellow-500: #facc15; /* Primary Vibrant Yellow */
  --color-yellow-600: #eab308;
  --color-yellow-700: #ca8a04;
  --color-yellow-800: #854d0e;
  --color-gold-500:   #ffcc00; /* Pure High-Energy Gold */
  --color-gold-600:   #ffd700;

  /* Backward Compatibility Aliases */
  --color-gold-400: var(--color-yellow-400);
  --color-gold-300: var(--color-yellow-300);
  --color-gold-100: var(--color-yellow-100);
  --color-gold-50:  var(--color-yellow-50);

  /* Bold Crimson Red Palette */
  --color-red-50:  #fef2f2;
  --color-red-100: #fee2e2;
  --color-red-300: #fca5a5;
  --color-red-400: #f87171;
  --color-red-500: #ef4444;
  --color-red-600: #dc2626; /* Primary Vibrant Crimson Red */
  --color-red-700: #b91c1c;
  --color-red-800: #991b1b;
  --color-red-900: #7f1d1d;
  --color-red-950: #450a0a;

  /* Harmonious Slate & Charcoal Grays (Neutral Base) */
  --color-slate-50:  #f8fafc; /* Ultra Light Surface */
  --color-slate-100: #f1f5f9; /* Cool Soft Light Gray */
  --color-slate-200: #e2e8f0; /* Crisp Gray Border */
  --color-slate-300: #cbd5e1; /* Subtle Input Border */
  --color-slate-400: #94a3b8; /* Muted Slate Text */
  --color-slate-500: #64748b; /* Medium Slate Gray */
  --color-slate-600: #475569; /* Body Text Slate */
  --color-slate-700: #334155; /* Rich Charcoal Surface */
  --color-slate-800: #1e293b; /* Dark Charcoal Base */
  --color-slate-900: #0f172a; /* Deep Night Charcoal Base */
  --color-slate-950: #090d16; /* Midnight Charcoal Base */

  /* Legacy Navy Mapping (Updated to Soft Charcoal Grays) */
  --color-navy-950: var(--color-slate-900);
  --color-navy-900: var(--color-slate-800);
  --color-navy-800: var(--color-slate-700);
  --color-navy-700: var(--color-slate-600);
  --color-navy-600: var(--color-slate-500);
  --color-navy-500: var(--color-slate-400);
  --color-navy-100: var(--color-slate-200);

  /* Neutrals & Functional Colors */
  --color-white: #ffffff;
  --color-bg-light: var(--color-slate-50);
  --color-bg-alt: var(--color-slate-200);
  --color-error: #dc2626;
  --color-error-light: #fef2f2;
  --color-success: #10b981;
  --color-success-light: #ecfdf5;
  --color-info: #0ea5e9;

  /* Glassmorphism Styles */
  --glass-bg-dark: rgba(15, 23, 42, 0.88);
  --glass-bg-light: rgba(255, 255, 255, 0.92);
  --glass-border-yellow: rgba(250, 204, 21, 0.35);
  --glass-border-red: rgba(220, 38, 38, 0.35);
  --glass-border-slate: rgba(226, 232, 240, 0.2);
  --glass-blur: 16px;

  /* Typography Variables */
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout Metrics */
  --max-width: 1280px;
  --header-height: 84px;
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;
  --border-radius-full: 9999px;

  /* Shadows & Ambient Halos */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.22);
  --shadow-yellow: 0 10px 28px -4px rgba(250, 204, 21, 0.45);
  --shadow-red: 0 10px 28px -4px rgba(220, 38, 38, 0.45);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Animation & Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -----------------------------------------------------------------------------
   2. CSS RESET & BASE STYLES
----------------------------------------------------------------------------- */
*, *::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);
  background-color: var(--color-bg-light);
  color: var(--color-slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-slate-900);
}
::-webkit-scrollbar-thumb {
  background: var(--color-slate-700);
  border-radius: var(--border-radius-full);
  border: 2px solid var(--color-slate-900);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-yellow-500);
}

/* Selection Color */
::selection {
  background-color: var(--color-yellow-500);
  color: var(--color-slate-950);
}

/* -----------------------------------------------------------------------------
   3. TYPOGRAPHY SYSTEM
----------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-slate-900);
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  position: relative;
}

/* Section Header Under-Bar Accent with Red to Yellow Dual Gradient */
h2.section-title {
  padding-bottom: 14px;
  margin-bottom: 24px;
}

h2.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 5px;
  background: linear-gradient(90deg, var(--color-red-600) 0%, var(--color-yellow-500) 100%);
  border-radius: var(--border-radius-full);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

h2.section-title.center {
  text-align: center;
}

h2.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 700;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--color-slate-600);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.text-lead {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--color-slate-600);
}

.text-gold, .text-yellow {
  color: var(--color-yellow-500) !important;
}

.text-red {
  color: var(--color-red-600) !important;
}

.text-light {
  color: var(--color-slate-100) !important;
}

.text-muted {
  color: var(--color-slate-400) !important;
}

/* Dynamic Gradient Highlight Text */
.highlight {
  background: linear-gradient(135deg, var(--color-yellow-400) 0%, var(--color-yellow-500) 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

/* -----------------------------------------------------------------------------
   4. LAYOUT & CONTAINERS
----------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.section {
  padding-top: 85px;
  padding-bottom: 85px;
  position: relative;
}

/* Dark Section with Rich Charcoal & Yellow/Red Accent Balancing */
.section-dark {
  background-color: var(--color-slate-900);
  color: var(--color-white);
}

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

.section-dark p {
  color: var(--color-slate-400);
}

/* Subtle Yellow/Red Grid Backdrop Accent */
.bg-accent-glow {
  position: relative;
}
.bg-accent-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.06) 0%, rgba(220, 38, 38, 0.04) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* -----------------------------------------------------------------------------
   5. NAVIGATION BAR
----------------------------------------------------------------------------- */
.header {
  height: var(--header-height);
  background-color: var(--color-white);
  border-top: 4px solid var(--color-red-600);
  border-bottom: 1px solid var(--color-slate-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  height: 72px;
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Styling */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--color-slate-900);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 28px;
}

.brand-logo svg {
  fill: var(--color-red-600);
  height: 34px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.3));
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.brand-logo:hover svg {
  transform: scale(1.08) rotate(-3deg);
}

.brand-logo span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-logo .brand-subtitle {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-red-600);
  margin-top: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav Menu */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-slate-700);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--color-red-600), var(--color-yellow-500));
  border-radius: var(--border-radius-full);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-red-600);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-slate-900);
  font-weight: 700;
}

.nav-link.active::after {
  width: 100%;
}

/* Premium Dropdown Navigation Menu */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-chevron {
  transition: transform var(--transition-normal);
  stroke: currentColor;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.has-dropdown:hover .dropdown-chevron,
.has-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

/* Hover Bridge Element */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 18px;
}

/* Desktop Dropdown Container - Right Aligned to prevent Viewport Overflow */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  left: auto;
  transform: translateY(8px);
  width: 480px;
  max-width: calc(100vw - 32px);
  background-color: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-yellow-500);
  border-top: 3px solid var(--color-red-600);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(250, 204, 21, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  z-index: 1100;
  pointer-events: none;
  overflow: hidden;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-header-title {
  padding: 12px 20px 8px 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-yellow-400);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px 20px;
}

.dropdown-col-heading {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-yellow-400);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(250, 204, 21, 0.25);
  padding-bottom: 6px;
}

.dropdown-col-heading svg {
  color: var(--color-yellow-500);
}

.dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--border-radius-sm);
  font-size: 0.86rem;
  color: var(--color-slate-200);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-yellow-400);
  transform: translateX(3px);
}

.dropdown-item.featured-link {
  font-weight: 700;
  color: var(--color-white);
}

.dropdown-badge.gold {
  background: linear-gradient(135deg, var(--color-yellow-500) 0%, var(--color-yellow-400) 100%);
  color: var(--color-slate-950) !important;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--border-radius-full);
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(250, 204, 21, 0.35);
  margin-left: 6px;
}

.dropdown-footer {
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.dropdown-callout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--color-red-600) 0%, var(--color-red-700) 100%);
  color: var(--color-yellow-300);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-yellow-400);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.dropdown-callout-btn:hover {
  background: linear-gradient(135deg, var(--color-yellow-400) 0%, var(--color-yellow-500) 100%);
  color: var(--color-slate-950);
  border-color: var(--color-yellow-300);
  transform: translateY(-1px);
  box-shadow: var(--shadow-yellow);
}

/* Action Buttons in Nav */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 28px;
}

/* ============================================================================
   HEADER PHONE NUMBER COMPONENT (.header-phone-group)
   ============================================================================ */

.header-phone-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.header-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-heading);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-sizing: border-box;
}

.phone-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.phone-label-tag {
  font-size: 0.60rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 2px;
}

.phone-number {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Local County Office Phone Button */
.header-phone-btn.local-phone {
  background: var(--color-slate-900);
  color: var(--color-yellow-400);
  border: 1.5px solid var(--color-yellow-500);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.header-phone-btn.local-phone .phone-label-tag {
  color: var(--color-yellow-400);
}

.header-phone-btn.local-phone svg {
  fill: var(--color-yellow-500);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.header-phone-btn.local-phone:hover {
  background: var(--color-yellow-500);
  color: var(--color-slate-950);
  border-color: var(--color-yellow-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow);
}

.header-phone-btn.local-phone:hover .phone-label-tag {
  color: var(--color-slate-950);
}

.header-phone-btn.local-phone:hover svg {
  fill: var(--color-slate-950);
}

/* Emergency 24/7 Toll-Free Phone Button */
.header-phone-btn.emergency-phone {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: var(--color-white);
  border: 1.5px solid var(--color-red-500);
  box-shadow: var(--shadow-red);
}

.header-phone-btn.emergency-phone .phone-label-tag {
  color: var(--color-yellow-300);
}

.header-phone-btn.emergency-phone svg {
  fill: var(--color-yellow-400);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.header-phone-btn.emergency-phone:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: var(--color-yellow-300);
  border-color: var(--color-yellow-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -2px rgba(220, 38, 38, 0.55);
}

/* Viewport Adjustments for Medium Screens (1201px - 1380px) */
@media (min-width: 1201px) and (max-width: 1380px) {
  .header-phone-group {
    gap: 6px;
  }
  .header-phone-btn {
    height: 38px;
    padding: 0 10px;
    gap: 6px;
  }
  .phone-label-tag {
    font-size: 0.55rem;
  }
  .phone-number {
    font-size: 0.80rem;
  }
  .header-phone-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* Mobile Hamburger Menu */
.hamburger-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-slate-900);
  border-radius: var(--border-radius-full);
  transition: all var(--transition-normal);
}

.hamburger-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background-color: var(--color-yellow-500);
}

.hamburger-toggle.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background-color: var(--color-yellow-500);
}

/* Body Scroll Lock when Drawer Open */
body.nav-open {
  overflow: hidden !important;
}

/* Header Nav Layout Refinement for Medium Desktop Viewports */
@media (min-width: 1201px) and (max-width: 1380px) {
  .brand-logo {
    margin-right: 20px;
  }
  .navbar-nav {
    gap: 10px;
  }
  .nav-link {
    font-size: 0.84rem;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn {
    padding: 8px 12px !important;
    font-size: 0.84rem !important;
  }
}

/* Mobile Navigation Drawer */
@media (max-width: 1200px) {
  .brand-logo {
    margin-right: auto;
  }

  .hamburger-toggle {
    display: flex;
  }

  .navbar-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--color-slate-900);
    border-left: 3px solid var(--color-yellow-500);
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 28px 40px 28px;
    transition: right var(--transition-normal);
    z-index: 1050;
    gap: 20px;
  }

  .navbar-nav.active {
    right: 0;
  }

  .nav-link {
    color: var(--color-slate-100);
    font-size: 1.1rem;
    width: 100%;
  }

  .nav-link:hover {
    color: var(--color-yellow-400);
  }

  .has-dropdown {
    width: 100%;
    position: relative;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    opacity: 1;
    visibility: visible;
    display: none;
    background-color: rgba(9, 13, 22, 0.85);
    border: 1px solid var(--glass-border-yellow);
    border-top: 2px solid var(--color-yellow-500);
    margin-top: 10px;
    border-radius: var(--border-radius-md);
    box-shadow: none;
    pointer-events: auto;
  }

  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-columns {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 14px;
  }

  .dropdown-item {
    padding: 8px 10px;
    font-size: 0.92rem;
  }

  .nav-actions {
    display: none !important;
  }
}

/* -----------------------------------------------------------------------------
   6. HERO SECTIONS & AMBIENT GLOWS
----------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-slate-950);
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(220, 38, 38, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(250, 204, 21, 0.15) 0%, transparent 45%),
    linear-gradient(180deg, var(--color-slate-900) 0%, var(--color-slate-950) 100%);
  color: var(--color-white);
  padding: 85px 0;
}

/* Vibrant Dual Ambient Glow Orbs */
.hero-glow {
  position: absolute;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.18) 0%, rgba(220, 38, 38, 0.12) 45%, transparent 70%);
  top: -5%;
  right: -80px;
  border-radius: var(--border-radius-full);
  pointer-events: none;
  filter: blur(60px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  font-size: 1.22rem;
  color: var(--color-slate-300);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* High-Energy Yellow & Red Pill Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-yellow-500);
  background: linear-gradient(135deg, #ffcc00 0%, #facc15 100%);
  border: 2px solid var(--color-yellow-300);
  color: var(--color-slate-950);
  padding: 8px 20px;
  border-radius: var(--border-radius-full);
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  box-shadow: var(--shadow-yellow);
  transition: transform var(--transition-fast);
}

.hero-badge:hover {
  transform: translateY(-2px);
}

.hero-badge span.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-red-600);
  border-radius: var(--border-radius-full);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hero Media Wrap & Glassmorphic Accent Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrap {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(250, 204, 21, 0.3);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.hero-img-wrap:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 0 3px var(--color-yellow-500);
}

.hero-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Floating Glass Overlay Card */
.glass-overlay-card {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--glass-bg-dark);
  border: 2px solid var(--color-yellow-500);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--border-radius-md);
  padding: 22px;
  box-shadow: var(--shadow-xl), 0 0 20px rgba(250, 204, 21, 0.2);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 290px;
  animation: float 6s ease-in-out infinite;
}

.glass-overlay-card .icon-wrap {
  background: linear-gradient(135deg, var(--color-red-600) 0%, var(--color-red-700) 100%);
  color: var(--color-yellow-400);
  border: 1.5px solid var(--color-yellow-400);
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.glass-overlay-card .info {
  display: flex;
  flex-direction: column;
}

.glass-overlay-card .number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
}

.glass-overlay-card .label {
  font-size: 0.82rem;
  color: var(--color-yellow-400);
  font-weight: 600;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-badge {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 30px;
  }
  .glass-overlay-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -30px;
  }
  .hero-img-wrap {
    transform: none !important;
  }
}

/* -----------------------------------------------------------------------------
   7. BUTTONS & INTERACTIVE ELEMENTS
----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

/* Primary Vibrant Crimson Red Button */
.btn-primary {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-red);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: var(--color-yellow-300);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -4px rgba(220, 38, 38, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Charcoal Slate Button */
.btn-secondary {
  background-color: var(--color-slate-800);
  color: var(--color-white);
  border: 2px solid var(--color-slate-700);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--color-slate-700);
  border-color: var(--color-yellow-500);
  color: var(--color-yellow-400);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--color-slate-900);
  border: 2.5px solid var(--color-slate-900);
}

.btn-outline:hover {
  background-color: var(--color-slate-900);
  color: var(--color-yellow-400);
  border-color: var(--color-slate-900);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Vibrant Dedicated Jail Release Guide Button & Dark/Hero Section Outline Override */
.btn-guide,
.hero-section .btn-outline,
.section-dark .btn-outline {
  color: var(--color-yellow-400);
  font-weight: 700;
  border: 2px solid var(--color-yellow-500);
  background: rgba(250, 204, 21, 0.12);
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.3);
}

.btn-guide:hover,
.hero-section .btn-outline:hover,
.section-dark .btn-outline:hover {
  background: linear-gradient(135deg, var(--color-yellow-400), var(--color-yellow-500));
  color: var(--color-slate-950);
  border-color: var(--color-yellow-500);
  box-shadow: var(--shadow-yellow);
  transform: translateY(-3px);
}

/* High-Energy Yellow & Red Emergency Call Button */
.btn-emergency {
  background: linear-gradient(135deg, #ffcc00 0%, #facc15 100%);
  color: var(--color-red-700);
  border: 2px solid var(--color-red-600);
  font-weight: 800;
  box-shadow: var(--shadow-yellow);
}

.btn-emergency:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: var(--color-yellow-300);
  border-color: var(--color-yellow-400);
  box-shadow: var(--shadow-red);
  transform: scale(1.04) translateY(-2px);
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 575px) {
  .btn-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .btn-group .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 18px !important;
    font-size: 0.98rem !important;
    white-space: normal;
    text-align: center;
  }
}

/* -----------------------------------------------------------------------------
   8. CARD COMPONENTS
----------------------------------------------------------------------------- */
/* Service Cards with Yellow/Red Accent Top Borders */
.card-service {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-slate-200);
  border-top: 4px solid var(--color-yellow-500);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red-600), var(--color-yellow-500));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card-service:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 0 20px rgba(250, 204, 21, 0.15);
  border-color: var(--color-yellow-500);
}

.card-service:hover::before {
  opacity: 1;
}

.card-service .icon-box {
  width: 64px;
  height: 64px;
  background-color: var(--color-yellow-100);
  color: var(--color-red-600);
  border: 2px solid var(--color-yellow-400);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 26px;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 10px rgba(250, 204, 21, 0.2);
}

.card-service:hover .icon-box {
  background: linear-gradient(135deg, var(--color-red-600) 0%, var(--color-red-700) 100%);
  color: var(--color-yellow-300);
  border-color: var(--color-yellow-400);
  transform: rotate(6deg) scale(1.08);
  box-shadow: var(--shadow-red);
}

.card-service h3 {
  margin-bottom: 14px;
  color: var(--color-slate-900);
}

.card-service p {
  color: var(--color-slate-600);
  margin-bottom: 24px;
  font-size: 0.96rem;
  line-height: 1.65;
  flex-grow: 1;
}

.card-service .link-action {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-red-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-service .link-action svg {
  transition: transform var(--transition-fast);
}

.card-service:hover .link-action {
  color: var(--color-yellow-600);
}

.card-service:hover .link-action svg {
  transform: translateX(6px);
}

/* Testimonial Cards */
.card-testimonial {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-slate-200);
  border-left: 4px solid var(--color-red-600);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.card-testimonial:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--color-yellow-500);
}

.card-testimonial::before {
  content: '"';
  position: absolute;
  top: 15px;
  right: 28px;
  font-family: Georgia, serif;
  font-size: 6.5rem;
  color: var(--color-slate-200);
  line-height: 1;
  pointer-events: none;
}

.testimonial-rating {
  color: var(--color-yellow-500);
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.testimonial-text {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--color-slate-700);
  margin-bottom: 24px;
  line-height: 1.7;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-full);
  background-color: var(--color-slate-200);
  border: 2px solid var(--color-yellow-500);
  overflow: hidden;
  object-fit: cover;
}

.user-details h4 {
  font-size: 0.98rem;
  color: var(--color-slate-900);
}

.user-details span {
  font-size: 0.82rem;
  color: var(--color-slate-500);
}

/* Stats Cards */
.card-stat {
  background-color: var(--color-slate-800);
  color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--color-slate-700);
  border-bottom: 3px solid var(--color-red-600);
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-stat:hover {
  transform: translateY(-6px);
  border-color: var(--color-yellow-500);
  border-bottom-color: var(--color-yellow-500);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.4), 0 0 15px rgba(250, 204, 21, 0.2);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-yellow-500);
  line-height: 1;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-shadow: 0 2px 10px rgba(250, 204, 21, 0.3);
}

.stat-number::after {
  content: '+';
  font-size: 2.2rem;
  color: var(--color-red-500);
}

.stat-number.percentage::after {
  content: '%';
}

.stat-label {
  font-size: 0.88rem;
  color: var(--color-slate-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-top: 4px;
}

/* -----------------------------------------------------------------------------
   9. STEP-BY-STEP PROCESS TIMELINE
----------------------------------------------------------------------------- */
.process-timeline {
  position: relative;
  max-width: 920px;
  margin: 40px auto;
  padding: 20px 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 35px;
  width: 4px;
  background: linear-gradient(180deg, var(--color-yellow-500) 0%, var(--color-red-600) 100%);
  border-radius: var(--border-radius-full);
}

.process-step {
  position: relative;
  padding-left: 85px;
  margin-bottom: 48px;
}

.process-step:last-child {
  margin-bottom: 0;
}

/* Vibrant Yellow & Red Step Circle Badge */
.step-number {
  position: absolute;
  left: 10px;
  top: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius-full);
  background: linear-gradient(135deg, var(--color-yellow-400) 0%, var(--color-yellow-500) 100%);
  border: 3px solid var(--color-red-600);
  color: var(--color-slate-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.35rem;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-normal);
}

.process-step.active .step-number {
  border-color: var(--color-yellow-300);
  background: linear-gradient(135deg, var(--color-red-600) 0%, var(--color-red-700) 100%);
  color: var(--color-yellow-300);
  box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.3), var(--shadow-red);
}

.step-content {
  background-color: var(--color-white);
  padding: 30px 34px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-slate-200);
  border-left: 4px solid var(--color-yellow-500);
  transition: all var(--transition-normal);
}

.process-step.active .step-content {
  border-left-color: var(--color-red-600);
  box-shadow: var(--shadow-xl);
}

.step-content h3 {
  margin-bottom: 12px;
  color: var(--color-slate-900);
}

.step-content p {
  margin-bottom: 0;
  font-size: 0.98rem;
  color: var(--color-slate-600);
}

/* Alternating Process Layout for Large Displays */
@media (min-width: 768px) {
  .process-timeline-alt::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .process-timeline-alt .process-step {
    padding-left: 0;
    width: 50%;
    margin-bottom: 60px;
  }

  .process-timeline-alt .process-step:nth-child(odd) {
    padding-right: 55px;
    text-align: right;
  }

  .process-timeline-alt .process-step:nth-child(even) {
    margin-left: auto;
    padding-left: 55px;
  }

  .process-timeline-alt .step-number {
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
  }
}

/* -----------------------------------------------------------------------------
   10. SEARCH & FILTER BAR
----------------------------------------------------------------------------- */
.search-filter-bar {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-slate-200);
  border-top: 3px solid var(--color-yellow-500);
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

@media (min-width: 768px) {
  .search-filter-bar {
    flex-direction: row;
    align-items: center;
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
}

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

.filter-control-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-control-wrap svg {
  position: absolute;
  left: 14px;
  color: var(--color-slate-500);
  pointer-events: none;
}

.filter-control {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background-color: var(--color-slate-50);
  border: 1.5px solid var(--color-slate-300);
  border-radius: var(--border-radius-md);
  color: var(--color-slate-900);
  transition: all var(--transition-fast);
}

.filter-control:focus {
  outline: none;
  border-color: var(--color-yellow-500);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3.5px rgba(250, 204, 21, 0.35);
}

.search-filter-bar .btn {
  align-self: flex-end;
  height: 52px;
  width: 100%;
}

@media (min-width: 768px) {
  .search-filter-bar .btn {
    width: auto;
  }
}

/* Active Pill Filter Tabs */
.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pill-tab {
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--color-slate-300);
  background-color: var(--color-white);
  color: var(--color-slate-700);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.pill-tab:hover {
  background-color: var(--color-yellow-100);
  color: var(--color-slate-950);
  border-color: var(--color-yellow-400);
}

.pill-tab.active {
  background: linear-gradient(135deg, var(--color-red-600) 0%, var(--color-red-700) 100%);
  color: var(--color-yellow-300);
  border-color: var(--color-red-600);
  box-shadow: var(--shadow-red);
}

/* -----------------------------------------------------------------------------
   11. PREMIUM CONTACT FORM
----------------------------------------------------------------------------- */
.contact-card-form {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-slate-200);
  border-top: 5px solid var(--color-red-600);
}

.section-dark .contact-card-form {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(var(--glass-blur));
  border-color: var(--color-slate-700);
  border-top: 5px solid var(--color-yellow-500);
}

.form-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 22px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-slate-900);
}

.section-dark .form-label {
  color: var(--color-slate-100);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--border-radius-md);
  border: 1.5px solid var(--color-slate-300);
  background-color: var(--color-slate-50);
  color: var(--color-slate-900);
  transition: all var(--transition-fast);
  font-size: 0.98rem;
}

.section-dark .form-control {
  background-color: rgba(15, 23, 42, 0.6);
  border-color: var(--color-slate-700);
  color: var(--color-white);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-red-600);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3.5px rgba(220, 38, 38, 0.25);
}

.section-dark .form-control:focus {
  background-color: rgba(15, 23, 42, 0.85);
  border-color: var(--color-yellow-500);
  box-shadow: 0 0 0 3.5px rgba(250, 204, 21, 0.3);
}

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

/* Checkbox Row */
.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 26px;
}

.form-checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-red-600);
  margin-top: 2px;
  cursor: pointer;
}

.form-checkbox-row label {
  font-size: 0.88rem;
  color: var(--color-slate-600);
}

.section-dark .form-checkbox-row label {
  color: var(--color-slate-400);
}

.form-checkbox-row a {
  color: var(--color-yellow-500);
  font-weight: 600;
}

.form-checkbox-row a:hover {
  text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   12. FOOTER
----------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-slate-950);
  color: var(--color-white);
  padding-top: 85px;
  padding-bottom: 35px;
  border-top: 4px solid var(--color-yellow-500);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 991px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
}

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

.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo-wrap p {
  font-size: 0.92rem;
  color: var(--color-slate-400);
  line-height: 1.7;
}

/* Social Buttons */
.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--color-yellow-500);
  border-color: var(--color-yellow-500);
  color: var(--color-slate-950);
  transform: translateY(-3px);
  box-shadow: var(--shadow-yellow);
}

/* Footer Link Columns */
.footer-column h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-white);
  position: relative;
  display: inline-block;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 35px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-yellow-500), var(--color-red-600));
  border-radius: var(--border-radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link {
  font-size: 0.92rem;
  color: var(--color-slate-400);
  transition: all var(--transition-fast);
}

a.footer-link:hover,
li.footer-link > a:hover {
  color: var(--color-yellow-400);
}

ul.footer-links > li:not(.footer-contact-item):hover {
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-item:hover {
  padding-left: 0 !important;
}

.footer-contact-icon {
  margin-right: 0 !important;
  color: var(--color-gold-500);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-link svg {
  margin-right: 8px;
  color: var(--color-yellow-500);
}

/* Footer Bottom Section */
.footer-bottom {
  border-top: 1px solid var(--color-slate-800);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--color-slate-400);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-link {
  font-size: 0.88rem;
  color: var(--color-slate-400);
}

.footer-legal-link:hover {
  color: var(--color-yellow-400);
}

/* -----------------------------------------------------------------------------
   13. COMPONENT HELPERS & BADGES
----------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-gold, .badge-yellow {
  background-color: var(--color-yellow-100);
  color: var(--color-slate-950);
  border: 1px solid var(--color-yellow-400);
}

.badge-red {
  background-color: var(--color-red-100);
  color: var(--color-red-700);
  border: 1px solid var(--color-red-300);
}

.badge-navy, .badge-slate {
  background-color: var(--color-slate-700);
  color: var(--color-white);
  border: 1px solid var(--color-slate-600);
}

/* Fixed Floating Emergency Call Action Widget */
.emergency-fixed-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 990;
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-full);
  background: linear-gradient(135deg, var(--color-red-600) 0%, var(--color-red-700) 100%);
  color: var(--color-yellow-300);
  border: 2px solid var(--color-yellow-400);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.6);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.emergency-fixed-btn:hover {
  background: linear-gradient(135deg, var(--color-yellow-400) 0%, var(--color-yellow-500) 100%);
  color: var(--color-red-700);
  border-color: var(--color-red-600);
  transform: scale(1.12);
  box-shadow: var(--shadow-yellow);
}

.emergency-fixed-btn svg {
  width: 26px;
  height: 26px;
}

.emergency-fixed-btn .pulse-ring-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: 2.5px solid var(--color-red-500);
  animation: pulse-ring 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* -----------------------------------------------------------------------------
   14. KEYFRAME ANIMATIONS
----------------------------------------------------------------------------- */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* -----------------------------------------------------------------------------
   15. SUCCESS OVERLAY MODAL
----------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 13, 22, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 44px;
  max-width: 490px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-slate-200);
  border-top: 5px solid var(--color-yellow-500);
  text-align: center;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-card .icon-success {
  width: 76px;
  height: 76px;
  background-color: var(--color-success-light);
  color: var(--color-success);
  border-radius: var(--border-radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  margin: 0 auto 24px auto;
  border: 2px solid var(--color-success);
}

.modal-card h3 {
  margin-bottom: 12px;
  font-size: 1.85rem;
  color: var(--color-slate-900);
}

.modal-card p {
  color: var(--color-slate-600);
  font-size: 1.02rem;
  margin-bottom: 26px;
}

/* -----------------------------------------------------------------------------
   16. COMPARISON TABLES
----------------------------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 0.96rem;
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-slate-200);
}

th, td {
  padding: 18px 22px;
  text-align: left;
}

th {
  background-color: var(--color-slate-900);
  color: var(--color-yellow-400);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  border-bottom: 3px solid var(--color-red-600);
}

tr {
  border-bottom: 1px solid var(--color-slate-200);
  transition: background-color var(--transition-fast);
}

tr:last-child {
  border-bottom: none;
}

tr:hover {
  background-color: var(--color-yellow-50);
}

td strong {
  color: var(--color-slate-900);
}

@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* -----------------------------------------------------------------------------
   17. COUNTY DIRECTORY, FACILITY CARDS & LOCAL LANDING PAGE STYLES
----------------------------------------------------------------------------- */
.county-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 35px;
}

.county-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--color-slate-200);
  border-top: 4px solid var(--color-yellow-500);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.county-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), 0 0 20px rgba(250, 204, 21, 0.15);
  border-color: var(--color-yellow-500);
}

.county-card.featured {
  background: linear-gradient(180deg, var(--color-slate-900) 0%, var(--color-slate-950) 100%);
  color: var(--color-white);
  border: 2px solid var(--color-yellow-500);
  border-top: 5px solid var(--color-red-600);
  box-shadow: var(--shadow-xl), 0 0 25px rgba(220, 38, 38, 0.25);
}

.county-card.featured:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 0 35px rgba(250, 204, 21, 0.35);
  border-color: var(--color-yellow-400);
}

.county-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}

.county-card h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: var(--color-slate-900);
}

.county-card.featured h3 {
  color: var(--color-white);
}

.county-seat {
  font-size: 0.88rem;
  color: var(--color-slate-500);
  font-weight: 600;
}

.county-card.featured .county-seat {
  color: var(--color-yellow-400);
}

.county-meta {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.county-meta li {
  font-size: 0.92rem;
  color: var(--color-slate-600);
  display: flex;
  align-items: center;
  gap: 8px;
}

.county-card.featured .county-meta li {
  color: var(--color-slate-300);
}

.county-meta svg {
  color: var(--color-red-600);
  flex-shrink: 0;
}

.county-card.featured .county-meta svg {
  color: var(--color-yellow-500);
}

/* Facility Cards (Jail & Courts) */
.facility-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 34px 30px;
  border: 1px solid var(--color-slate-200);
  border-top: 4px solid var(--color-red-600);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), 0 0 20px rgba(220, 38, 38, 0.15);
  border-top-color: var(--color-yellow-500);
}

.facility-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, var(--color-red-600) 0%, var(--color-red-700) 100%);
  color: var(--color-yellow-400);
  border: 1.5px solid var(--color-yellow-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
  box-shadow: var(--shadow-red);
}

.facility-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--color-slate-900);
}

.facility-address {
  font-size: 0.95rem;
  color: var(--color-slate-700);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.facility-address svg {
  color: var(--color-red-600);
  margin-top: 3px;
  flex-shrink: 0;
}

.facility-details {
  font-size: 0.92rem;
  color: var(--color-slate-600);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* High-Energy Promo Banner Card */
.promo-banner-card {
  background: linear-gradient(135deg, var(--color-slate-900) 0%, var(--color-slate-950) 100%);
  border: 2px solid var(--color-yellow-500);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  color: var(--color-white);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(250, 204, 21, 0.25);
  position: relative;
  overflow: hidden;
}

.promo-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.promo-content {
  position: relative;
  z-index: 1;
}

/* Local Area Chips Grid */
.area-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.area-chip {
  background-color: var(--color-slate-100);
  border: 1px solid var(--color-slate-300);
  color: var(--color-slate-800);
  padding: 10px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.area-chip:hover {
  background-color: var(--color-yellow-500);
  border-color: var(--color-yellow-600);
  color: var(--color-slate-950);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.area-chip svg {
  color: var(--color-red-600);
  width: 14px;
  height: 14px;
}

.area-chip:hover svg {
  color: var(--color-slate-950);
}

/* -----------------------------------------------------------------------------
   18. APPLICATION FORM RESPONSIVE OVERRIDES
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Override main structure grids to stack vertically */
  .digital-application-form .form-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  .digital-application-form .form-group[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }
  
  /* Form groups that are grids (e.g. 1fr 1fr, 2fr 1fr) */
  .digital-application-form .form-group[style*="display: grid"] {
    grid-template-columns: 1fr !important;
  }

  /* Specific nested simple grids that should stack */
  .digital-application-form .wizard-step > div > div[style*="grid-template-columns: 1fr 1fr"],
  .digital-application-form .wizard-step > div > div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Make tabular data sections (Offenses, Children, etc.) scrollable */
  

    .digital-application-form div[style*="grid-template-columns: 2fr 1fr 1fr 1fr 1fr"],
  .digital-application-form div[style*="grid-template-columns: 1fr 3fr 2fr 1.5fr"],
  .digital-application-form div[style*="grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr"],
  .digital-application-form div[style*="grid-template-columns: 3fr 1fr"],
  .digital-application-form .offense-row,
  .digital-application-form .child-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  /* Hide headers on mobile because we will use placeholders */
  .mobile-header-row {
    display: none !important;
  }
  
  /* Make inline tables and wrapping containers scrollable/responsive */
  .digital-application-form table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    width: 100% !important;
  }

  #nextBtn {
    margin-left: auto;
  }
}
.offense-row input, .child-row input { width: 100% !important; }
