/* ========================================
   PRC Medical Billing - Modern Design System
   ======================================== */

/* CSS Custom Properties (Design Tokens) */
:root {
  /* Client's Color Palette - Mint Green, Teal, Deep Blue, Light Blue-Gray */
  --color-primary: #0d9488;
  /* Teal - Primary brand color */
  --color-primary-600: #0f766e;
  /* Darker Teal - For hover states */
  --color-primary-700: #134e4a;
  /* Even darker for active states */

  --color-accent: #6ee7b7;
  /* Mint Green - Fresh accent color */
  --color-accent-600: #34d399;
  /* Darker Mint - For hover states */
  --color-accent-700: #10b981;
  /* Even darker for active states */

  --color-deep-blue: #1e40af;
  /* Deep Blue - Professional depth */
  --color-deep-blue-600: #1d4ed8;
  /* Darker Deep Blue */
  --color-deep-blue-700: #1e3a8a;
  /* Even darker Deep Blue */

  --color-light-blue-gray: #f1f5f9;
  /* Light Blue-Gray - Background color */
  --color-light-blue-gray-600: #e2e8f0;
  /* Darker Light Blue-Gray */
  --color-light-blue-gray-700: #cbd5e1;
  /* Even darker Light Blue-Gray */

  /* Status Colors */
  --color-success: #10b981;
  /* Success green */
  --color-warning: #f59e0b;
  /* Warning amber */
  --color-error: #ef4444;
  /* Error red */
  --color-info: #3b82f6;
  /* Info blue */

  /* Background Colors */
  --color-background-light: var(--color-light-blue-gray);
  /* Light blue-gray for backgrounds */
  --color-background-lighter: #f8fafc;
  /* Even lighter blue-gray */
  --color-background-white: #ffffff;
  /* Pure white */
  --color-background-dark: #0f172a;
  /* Dark background for contrast */

  /* Text Colors */
  --color-text-dark: #0f172a;
  /* Almost black for headings */
  --color-text-medium: #334155;
  /* Dark gray for body text */
  --color-text-light: #64748b;
  /* Medium gray for secondary text */
  --color-text-lighter: #94a3b8;
  /* Light gray for muted text */
  --color-border-light: #e2e8f0;
  /* Light border color */
  --color-border-lighter: #f1f5f9;
  /* Even lighter border */

  /* Modern Gradients */
  --gradient-primary: linear-gradient(135deg, #0d9488 0%, #6ee7b7 100%);
  --gradient-accent: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
  --gradient-hero: linear-gradient(135deg, #1e40af 0%, #0d9488 50%, #6ee7b7 100%);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  --gradient-deep-blue: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  /* Typography - Modern Sans-Serif Fonts */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --font-display: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.75rem;
  /* 28px */
  --text-3xl: 2.25rem;
  /* 36px */
  --text-4xl: 3rem;
  /* 48px */

  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  /* 4px */
  --space-sm: 0.5rem;
  /* 8px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-2xl: 3rem;
  /* 48px */
  --space-3xl: 4rem;
  /* 64px */

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 20px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.2);

  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========================================
   Decorative Medical Icons
   ======================================== */
.decorative-icon {
  position: absolute;
  color: rgba(13, 148, 136, 0.08);
  font-size: 5rem;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  transition: all 0.5s ease;
  display: block;
  visibility: visible;
}

/* Hero Section Icons - White with subtle glow */
.hero .decorative-icon {
  color: rgba(255, 255, 255, 0.15);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  z-index: 2;
}

/* Different icon sizes */
.decorative-icon.small {
  font-size: 3.5rem;
  opacity: 0.3;
}

.decorative-icon.large {
  font-size: 6.5rem;
  opacity: 0.5;
}

/* Rotations */
.rotate-15 {
  transform: rotate(15deg);
}

.rotate-n15 {
  transform: rotate(-15deg);
}

.rotate-30 {
  transform: rotate(30deg);
}

.rotate-n30 {
  transform: rotate(-30deg);
}

/* Ensure sections are positioning contexts */
.section,
.hero {
  position: relative;
  overflow: hidden;
}

/* ========================================
   Reset and Base Styles
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-background-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Sticky footer layout */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Prevent horizontal overflow */
  overflow-x: hidden;
  width: 100%;
}

/* Ensure main grows to push footer to bottom */
main {
  flex: 1 0 auto;
}

/* ========================================
   Typography
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--space-md);
  color: var(--color-text-dark);
  letter-spacing: -0.015em;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 500;
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-medium);
}

.text-large {
  font-size: var(--text-lg);
  color: var(--color-text-medium);
}

.text-small {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* ========================================
   Layout Components
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Ensure navbar and footer use same container width */
.header .container,
.footer .container {
  max-width: 1200px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* ========================================
   Button Components
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  background: none;
  min-height: 48px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Primary Button */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-background-white);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0f766e 0%, #6ee7b7 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.3);
}

/* Secondary Button */
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Ghost Button */
.btn-ghost {
  background-color: transparent;
  color: #ffffff;
  border-color: var(--color-border-light);
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--color-background-light);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--color-primary);
  color: var(--color-background-white);
  transform: translateY(-2px);
}

/* Button Sizes */
.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-small {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
}

/* ========================================
   Card Components
   ======================================== */

.card {
  background: var(--color-background-white);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  transition: all 0.3s ease-in-out;
  border: 1px solid var(--color-border-lighter);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--color-border-lighter);
}

.card-header {
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.2;
}

/* Consistent section title styling */
h1,
h2 {
  font-family: var(--font-heading);
  color: #111827;
  font-weight: 700;
  line-height: 1.2;
}

/* GLOBAL H3 consistency - applies to ALL h3 tags site-wide */
h3 {
  font-family: var(--font-heading);
  color: #111827 !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-bottom: 1rem !important;
}

/* Override for smaller h3 in cards */
.card h3,
.service-card h3 {
  font-size: 1.25rem !important;
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}

.card-text {
  color: var(--color-text-medium);
  margin-bottom: var(--space-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-xs);
  display: block;
}

/* ========================================
   Form Components
{{ ... }}
   ======================================== */

.form-group {
  margin-bottom: var(--space-lg);
  position: relative;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text-dark);
  position: relative;
  padding-left: 30px;
  user-select: none;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.radio-custom {
  position: absolute;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--color-background-white);
  border: 2px solid var(--color-border-light);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.radio-label:hover input~.radio-custom {
  border-color: var(--color-primary);
}

.radio-label input:checked~.radio-custom {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: inset 0 0 0 3px var(--color-background-white);
}

.radio-label input:focus~.radio-custom {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--color-text-dark);
  font-size: var(--text-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background-color: var(--color-background-white);
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.form-select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  padding-right: 2.5rem;
  /* space for arrow */
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background-color: var(--color-background-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23646c80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  background-size: 16px 16px;
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 180, 196, 0.1);
}

/* Placeholder/invalid styling for selects with placeholder option */
.form-select:invalid {
  color: var(--color-text-light);
}

/* Lead form container styling */
.lead-form {
  background: var(--color-background-white);
  border: 1px solid var(--color-border-lighter);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  max-width: 80%;
  margin: 0 auto;
}

.lead-form .form-group {
  margin-bottom: var(--space-lg);
}

/* Responsive grid fixes for inline-styled rows */
@media (max-width: 768px) {
  .lead-form div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }

  .lead-form {
    max-width: 100%;
  }
}

.form-input.error,
.form-select.error {
  border-color: var(--color-error);
}

.form-input.success,
.form-select.success {
  border-color: var(--color-success);
}

.error-message {
  color: var(--color-error);
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
  display: none;
}

.error-message.show {
  display: block;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-label a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ========================================
   Header Component
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-soft);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  min-height: 64px;
}

.logo img {
  height: 36px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.75rem;
}

.nav-link {
  display: block;
  padding: 0.35rem 0.6rem;
  color: var(--color-text-medium);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  transition: color var(--transition-normal);
  position: relative;
  white-space: nowrap;
  border-radius: 4px;
}

.nav-link:focus,
.nav-link:active {
  outline: none;
  border: none;
}

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

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-normal);
}

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

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.dropdown-arrow {
  font-size: 0.8em;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-background-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  min-width: 220px;
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: 1000;
  list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-medium);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  border-bottom: none;
}

.dropdown-menu a:hover {
  background-color: var(--color-background-light);
  color: var(--color-primary);
  transform: translateX(4px);
}

.dropdown-menu a::after {
  display: none;
}

/* Mobile dropdown styles */
@media (max-width: 768px) {

  /* Completely disable hover effects on mobile */
  .nav-dropdown:hover .dropdown-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
  }

  .nav-dropdown:hover .dropdown-arrow {
    transform: none !important;
  }

  /* Mobile-specific dropdown styling */
  .nav-dropdown .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: var(--color-background-lighter) !important;
    margin-left: var(--space-lg) !important;
    margin-top: var(--space-xs) !important;
    /* Use height instead of max-height for better visibility control */
    height: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    overflow: hidden !important;
    transition: height 0.4s ease-in-out, padding 0.4s ease-in-out !important;
  }

  .nav-dropdown.active .dropdown-menu {
    display: block !important;
    height: auto !important;
    min-height: 400px !important;
    max-height: none !important;
    padding: 12px 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #f3f4f6 !important;
  }

  /* Force visibility of active dropdown items */
  .nav-dropdown.active .dropdown-menu li {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
  }

  .nav-dropdown.active .dropdown-menu a {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-dropdown .dropdown-menu li {
    display: list-item !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
  }

  .nav-dropdown .dropdown-menu a {
    display: block !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #1f2937 !important;
    background-color: #f9fafb !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
  }

  .nav-dropdown .dropdown-menu li:last-child a {
    border-bottom: none !important;
  }

  .nav-dropdown .dropdown-menu a:hover,
  .nav-dropdown .dropdown-menu a:active {
    background: var(--color-background-light) !important;
    padding-left: calc(var(--space-md) + 8px) !important;
    transform: none !important;
  }

  .dropdown-arrow {
    display: inline-block !important;
    transition: transform 0.3s ease !important;
    margin-left: 4px !important;
  }

  .nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg) !important;
  }

  /* Ensure dropdown toggle is clickable */
  .dropdown-toggle {
    cursor: pointer !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Mobile Navigation Menu */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    gap: 4px;
    z-index: 1001;
  }

  .nav {
    position: fixed !important;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    padding: var(--space-lg);
  }

  .nav.active {
    transform: translateX(0) !important;
  }

  .nav-list {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }

  .nav-link {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--text-base);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    width: 100% !important;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-text-dark);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  color: #ffffff;
  padding: 120px 0 80px;
  min-height: 70vh;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 1;
  /* Default gradient background on all pages */
  background: linear-gradient(135deg,
      rgba(30, 64, 175, 0.95) 0%,
      rgba(16, 185, 129, 0.95) 100%);
}

@media (max-width: 1024px) {
  .hero {
    min-height: 65vh;
    padding: 100px 0 70px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: 90px 0 60px;
  }
}

/* Smooth scroll offset for fixed header */
section[id] {
  scroll-margin-top: 80px;
}

@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 70px;
  }
}

/* Smooth scrolling for all browsers */
html {
  scroll-padding-top: 80px;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Overlay fix for readability */
  background: linear-gradient(135deg,
      rgba(30, 64, 175, 0.9) 0%,
      rgba(16, 185, 129, 0.9) 100%);
  background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  z-index: 0;
  /* keep overlay behind content */
  pointer-events: none;
  /* do not block clicks/hover */
}

/* Home page specific styles */
body.home .hero {
  background: none;
}

body.home .hero::before {
  display: none;
}

/* Ensure carousel overlay is visible on home page */
body.home .hero-carousel::after {
  display: block;
  background: linear-gradient(135deg, rgba(5, 42, 70, 0.75) 0%, rgba(13, 148, 136, 0.65) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  /* Above icons and overlay */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

/* Make sure all text in hero is white and has good contrast */
.hero-title,
.hero-subtitle,
.hero-actions .btn {
  color: #fff !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* above overlay */

/* Force consistent white text inside hero */
.hero h1,
.hero h2,
.hero h3,
.hero p,
.hero a,
.hero .text-large,
.hero .hero-title,
.hero .hero-subtitle {
  color: #ffffff !important;
}

/* Improve readability */
.hero .hero-title,
.hero .hero-subtitle {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Make non-button links inside hero white */
.hero a:not(.btn) {
  color: #ffffff !important;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

/* Professional, consistent button styles in hero */
.hero .btn {
  color: #ffffff !important;
  border-radius: 8px;
  font-weight: 600;
}

.hero .btn-primary {
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  color: #ffffff !important;
}

.hero .btn-primary:hover {
  filter: brightness(1.1);
}

.hero .btn-secondary {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff !important;
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: var(--space-xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.95);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* Hero Carousel */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Behind everything in hero */
}

/* Dark overlay for better text visibility */
.hero-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 42, 70, 0.85) 0%, rgba(13, 148, 136, 0.85) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
  /* Ensure the image covers the full area without distortion */
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all 0.4s ease;
}

.carousel-dot.active {
  background: #ffffff;
  transform: scale(1.1);
}

.hero-actions .btn {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
}

.hero-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-actions .btn-primary {
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid white;
  backdrop-filter: blur(5px);
}

.hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ========================================
   Section Styles
   ======================================== */

.section {
  padding: var(--space-3xl) 0;
}

/* Additional professional sections styling */
.problem-section {
  background: var(--color-background-lighter);
  position: relative;
}

.problem-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: var(--space-2xl);
}

.problem-card {
  text-align: center;
  padding: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--space-2xl);
}

/* Legacy service card styles removed - see Services Section below */

.service-features {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
  flex-grow: 1;
}

.service-features li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--color-text-medium);
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: bold;
}

.referral-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.referral-benefits {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
}

.referral-benefits li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-lighter);
}

.referral-benefits li:last-child {
  border-bottom: none;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--space-2xl);
}

.testimonial-card {
  padding: 2rem;
  background: var(--color-background-white);
  position: relative;
}

.contact-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-deep-blue) 100%);
  color: white;
  text-align: center;
  padding: var(--space-3xl) 0;
}

.contact-section h2,
.contact-section p {
  color: white;
}

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

.contact-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

/* ========================================
   Why Choose Section - Modern Enhancements
   ======================================== */

.why-choose-section .stat-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.why-choose-section .stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.why-choose-section .stat-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--color-border-light);
}

.why-choose-section .stat-card:hover::before {
  transform: scaleX(1);
}

.why-choose-section .feature-card {
  transition: all 0.3s ease;
}

.why-choose-section .feature-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for Why Choose section */
@media (max-width: 768px) {
  .why-choose-section .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-choose-section .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-choose-section .card[style*="grid-template-columns: 1fr 2fr"] {
    display: block !important;
  }

  .why-choose-section .card[style*="grid-template-columns: 1fr 2fr"]>div:first-child {
    margin-bottom: 1.5rem;
  }
}

/* ========================================
   Referral Network Section - Modern Enhancements
   ======================================== */

.referral-section .card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.referral-section .card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--color-border-lighter);
}

/* Icon animation on hover */
.referral-section .card:hover div[style*="background: linear-gradient"] {
  transform: scale(1.08);
  transition: transform 0.3s ease;
}

/* Responsive adjustments for Referral section */
@media (max-width: 768px) {
  .referral-section>div>div:first-child {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Testimonials Section - Modern Enhancements
   ======================================== */

.testimonials-section .testimonial-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.testimonials-section .testimonial-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Quote icon pulse on hover */
.testimonials-section .testimonial-card:hover .fa-quote-right {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.1;
  }

  50% {
    opacity: 0.15;
  }
}

/* Star rating hover effect */
.testimonials-section .fa-star {
  transition: transform 0.2s ease;
}

.testimonials-section .testimonial-card:hover .fa-star {
  transform: scale(1.1);
}

/* Author avatar hover effect */
.testimonials-section .testimonial-card div[style*="border-radius: 50%"] {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonials-section .testimonial-card:hover div[style*="border-radius: 50%"] {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for Testimonials */
@media (max-width: 768px) {
  .testimonials-section .testimonials {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .testimonials-section .testimonial-card {
    padding: 2rem !important;
  }
}

/* ========================================
   Footer - Modern, Professional Design
   ======================================== */

.footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  margin-top: var(--space-3xl);
  border-top: 3px solid var(--color-primary);
  flex-shrink: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-section {
  min-width: 0;
}

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

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer h3 {
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.footer p,
.footer li,
.footer a {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.footer a {
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer a:hover {
  color: var(--color-accent);
  transform: translateX(2px);
}

.footer .contact-info p {
  margin-bottom: var(--space-sm);
  color: #cbd5e1;
}

.footer .contact-info strong {
  color: #ffffff;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-xl) 0;
  margin-top: var(--space-xl);
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-legal p {
  margin-bottom: var(--space-xs);
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer .hipaa-note {
  color: #6ee7b7 !important;
  font-weight: 500;
  margin-top: var(--space-sm);
}

.footer .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.footer .legal-links a {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer .legal-links a:hover {
  color: var(--color-accent);
}

.footer .social-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.footer .social-links a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.footer .social-links img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

/* Mobile Footer Optimization */
@media (max-width: 768px) {
  footer.footer {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-2xl) 0;
    margin: 0 auto;
    max-width: 100%;
  }

  .footer-section {
    text-align: left;
    padding: 0 var(--space-sm);
  }

  .footer-bottom {
    padding: var(--space-lg) var(--space-sm);
    margin-top: var(--space-xl);
  }

  .footer-bottom-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-lg);
    padding: 0 var(--space-sm);
  }

  .footer-legal {
    width: 100%;
  }

  .footer .legal-links {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .footer .social-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .footer .container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ========================================
   Case Study Detail Pages - Modern Layout
   ======================================== */

.case-study-content {
  max-width: 900px;
  margin: 0 auto;
}

.case-study-section {
  background: var(--color-background-white);
  border: 1px solid var(--color-border-lighter);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.case-study-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 1.75rem);
  margin-bottom: var(--space-md);
  color: var(--color-text-dark);
  position: relative;
}

.case-study-section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.case-study-section p {
  font-size: 1.05rem;
  color: var(--color-text-medium);
}

.case-study-section ul {
  margin: var(--space-md) 0 0;
  padding-left: 1.25rem;
}

.case-study-section li {
  margin-bottom: 0.5rem;
  color: var(--color-text-medium);
}

@media (max-width: 640px) {
  .case-study-section {
    padding: var(--space-lg);
  }
}

.section-title {
  text-align: center;
  margin: 0 auto var(--space-2xl);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  width: 100%;
  position: relative;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.2;
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  animation: fadeInUp 0.6s ease;
  max-width: 100%;
}

/* Problem Section */
.problem-section {
  background-color: var(--color-background-light);
  padding: 100px 0;
}

/* Services Section */
.services-section {
  padding: 100px 0;
}

/* Referral Section */
.referral-section {
  background-color: var(--color-background-light);
  padding: 100px 0;
}

/* Social Proof Section */
.social-proof-section {
  padding: 100px 0;
}

/* Lead Magnet Section */
.lead-magnet-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #004080 100%);
  color: var(--color-background-white);
  padding: 100px 0;
  position: relative;
}

/* About Section */
.about-section {
  padding: 100px 0;
}

/* Contact Section */
.contact-section {
  background-color: var(--color-background-light);
  text-align: center;
  padding: 100px 0;
}

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

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

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

.problem-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
  animation: fadeInUp 0.6s ease;
  height: 100%;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.problem-card:nth-child(2)::before {
  background: linear-gradient(90deg, #0d9488, #10b981);
}

.problem-card:nth-child(3)::before {
  background: linear-gradient(90deg, #7c3aed, #8b5cf6);
}

.problem-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: var(--color-border-lighter);
}

.problem-icon {
  margin-bottom: var(--space-lg);
}

.problem-card h3 {
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
}

.problem-cta {
  text-align: center;
  animation: fadeInUp 0.6s ease 0.2s both;
}

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

.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 380px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d9488, #0ea5a8);
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--color-border-lighter);
}

.service-icon {
  margin-bottom: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, #0d9488 0%, #6ee7b7 100%);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transition: all 0.3s ease-in-out;
}

/* Consistent icon styling for all icons across site */
.problem-icon,
.feature-icon,
[class*="icon"]:not(.fa):not([class*="svg"]) {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d9488 0%, #6ee7b7 100%);
  border-radius: 16px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transition: all 0.3s ease-in-out;
}

/* Ensure all Font Awesome icons inside icon containers are white */
.service-icon i,
.problem-icon i,
.feature-icon i,
[class*="icon"] i {
  color: white !important;
  font-size: 2rem;
}

/* Consistent button styling for all buttons */
.btn,
button[class*="btn"],
a[class*="btn"] {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Consistent paragraph text color */
.card p,
.service-card p,
.problem-card p,
.testimonial-card p {
  color: #4b5563;
  line-height: 1.6;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

/* Pricing Cards - Equal Height & Middle Card Zoom */
#pricing .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

#pricing .services-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 550px;
  justify-content: space-between;
}

#pricing .services-grid .card .btn {
  margin-top: auto;
}

/* Middle card with border - slight zoom but aligned, NO margin */
#pricing .services-grid .card[style*="border: 2px solid"] {
  transform: scale(1.05);
  transition: all 0.3s ease-in-out;
  z-index: 1;
  margin-top: 0 !important;
  padding-top: 3rem;
}

#pricing .services-grid .card[style*="border: 2px solid"]:hover {
  transform: scale(1.08);
}

/* Ensure Most Popular badge stays visible */
#pricing .services-grid .card[style*="border: 2px solid"]>div[style*="position: absolute"] {
  top: -12px !important;
}

/* Mobile responsive for pricing cards */
@media (max-width: 768px) {
  #pricing .services-grid {
    grid-template-columns: 1fr;
  }

  #pricing .services-grid .card[style*="border: 2px solid"] {
    transform: scale(1);
  }

  #pricing .services-grid .card[style*="border: 2px solid"]:hover {
    transform: scale(1.02);
  }
}

.service-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
  color: white;
}

.service-card h3 {
  color: #111827;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Consistent h3 styling across all cards */
.card h3,
.problem-card h3,
.service-card h3,
.testimonial-card h3,
.feature-card h3 {
  color: #111827 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  line-height: 1.3 !important;
}

/* H4 consistency */
h4 {
  font-family: var(--font-heading);
  color: #111827;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card>p {
  font-size: 0.9rem;
  color: var(--color-text-medium);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  margin-bottom: auto;
  text-align: left;
  flex-grow: 1;
}

.service-features li {
  padding: 0.4rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text-medium);
  font-size: 0.85rem;
  line-height: 1.4;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-emerald);
  color: white;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  line-height: 1;
}

.service-card .mt-lg {
  margin-top: 1rem;
}

.service-card .btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
}

/* Referral Section */
.referral-section {
  background-color: var(--color-background-light);
}

.referral-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

/* Contact Page - Visit Our Office Section Top Alignment */
body .referral-content:has(.contact-info) {
  align-items: flex-start;
}

.referral-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  animation: fadeInLeft 0.8s ease;
}

.referral-text {
  animation: fadeInRight 0.8s ease;
}

.referral-text h2 {
  color: var(--color-text-dark);
  margin-bottom: var(--space-xl);
}

.referral-benefits {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.referral-benefits li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.referral-benefits li:last-child {
  border-bottom: none;
}

.referral-benefits strong {
  color: var(--color-text-dark);
  display: block;
  margin-bottom: var(--space-sm);
}

/* Social Proof Section */
.social-proof-section {
  padding: var(--space-3xl) 0;
}

/* Animated Logo Carousel */
.logo-carousel-container {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 10%,
      rgba(255, 255, 255, 1) 90%,
      rgba(255, 255, 255, 0) 100%);
  position: relative;
}

.logo-carousel {
  display: flex;
  gap: 4rem;
  animation: scroll-logos 30s linear infinite;
  width: fit-content;
}

.logo-carousel:hover {
  animation-play-state: paused;
}

.logo-slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 80px;
  padding: 0 1rem;
}

.logo-slide img {
  max-width: 140px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.logo-slide:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive adjustments for logo carousel */
@media (max-width: 768px) {
  .logo-carousel {
    gap: 3rem;
    animation: scroll-logos 25s linear infinite;
  }

  .logo-slide {
    min-width: 120px;
    height: 60px;
  }

  .logo-slide img {
    max-width: 100px;
    max-height: 45px;
  }
}

@media (max-width: 480px) {
  .logo-carousel {
    gap: 2rem;
    animation: scroll-logos 20s linear infinite;
  }

  .logo-slide {
    min-width: 100px;
    height: 50px;
  }

  .logo-slide img {
    max-width: 80px;
    max-height: 35px;
  }
}

/* Legacy payer logos styles (kept for compatibility) */
.payer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.payer-logos img {
  opacity: 0.7;
  transition: opacity var(--transition-normal);
  height: 40px;
  width: auto;
  filter: grayscale(100%);
}

.payer-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

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

.testimonial-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
}

.testimonial-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
  flex: 1;
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.testimonial-content p {
  font-style: italic;
  color: var(--color-text-medium);
  font-size: var(--text-lg);
  margin: 0;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 5.4em;
  /* 3 lines of text (1.8em line-height * 3) */
  line-height: 1.8em;
  max-height: 5.4em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: 1.5rem;
}

.testimonial-author img {
  border-radius: var(--radius-full);
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.author-info h4 {
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
  font-size: var(--text-base);
}

.author-info p {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  margin: 0;
}

.author-photo {
  border-radius: var(--radius-full);
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 3px solid var(--color-accent);
  transition: all var(--transition-normal);
}

.author-photo:hover {
  transform: scale(1.05);
  border-color: var(--color-primary);
}

.view-case-study {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-top: auto;
  text-align: center;
}

.view-case-study:hover {
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.view-case-study:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Lead Magnet Section */
.lead-magnet-section {
  background: var(--color-background-light);
  color: var(--color-text-dark);
  padding: var(--space-3xl) 0;
  position: relative;
}

.lead-magnet-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.lead-magnet-content h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  color: var(--color-text-dark);
  animation: fadeInUp 0.6s ease;
}

.lead-magnet-subtitle {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2xl);
  color: var(--color-text-medium);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.lead-form {
  background: var(--color-background-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  border: 1px solid var(--color-border-light);
  text-align: left;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.form-disclaimer {
  font-size: var(--text-sm);
  opacity: 0.8;
  margin: 0;
  animation: fadeInUp 0.6s ease 0.6s both;
}

/* About Section */
.about-section {
  padding: var(--space-3xl) 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 0.6s ease;
}

.about-content h2 {
  color: var(--color-text-dark);
  margin-bottom: var(--space-xl);
}

.about-content p {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-medium);
}

/* Contact Section */
.contact-section {
  background-color: var(--color-background-light);
  text-align: center;
  padding: var(--space-3xl) 0;
}

.contact-content h2 {
  color: var(--color-text-dark);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease;
}

.contact-content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.contact-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.4s both;
}

/* ========================================
   Footer
   ======================================== */

footer.footer {
  background: #0f172a;
  /* Solid dark blue color */
  color: #e2e8f0;
  padding: var(--space-3xl) 0 0;
  position: relative;
  overflow: hidden;
  border-top: none;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

footer .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 640px) {
  footer .container {
    max-width: 640px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 768px) {
  footer .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  footer .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  footer .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  footer .container {
    max-width: 1536px;
  }
}

footer.footer::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -10%;
  width: 120%;
  height: 100px;
  background: var(--color-background-white);
  border-bottom-left-radius: 60% 100%;
  border-bottom-right-radius: 60% 100%;
}

footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

footer .footer-section h3 {
  color: #ffffff !important;
  margin-bottom: var(--space-md);
  font-size: var(--text-lg);
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

footer .footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #a0aec0;
}

footer

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
}

footer .footer-section ul li a:hover {
  color: #ffffff;
  transform: translateX(4px);
  text-decoration: none;
}

footer .contact-info p {
  margin-bottom: var(--space-sm);
  color: #cbd5e1;
  line-height: 1.6;
}

footer .contact-info strong {
  color: #ffffff;
  font-weight: 500;
}

footer .footer-bottom {
  background: rgba(5, 59, 47, 0.08);
  padding: var(--space-md) 0;
  margin-top: var(--space-2xl);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
}

footer .footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

footer .footer-legal p {
  margin-bottom: var(--space-sm);
  color: #cbd5e1;
  font-size: var(--text-sm);
  line-height: 1.6;
}

footer .hipaa-note {
  font-size: var(--text-xs) !important;
  color: #a0aec0 !important;
  line-height: 1.5;
  margin-top: var(--space-sm);
  display: block;
}

footer .legal-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

footer .legal-links a {
  color: #a0aec0;
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  padding: 4px 0;
}

footer .legal-links a:hover {
  color: #053b2f;
  text-decoration: none;
  transform: translateX(2px);
}

footer .footer-social {
  display: flex;
  gap: var(--space-md);
}

footer .footer-social a {
  color: #4a5568;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

footer .footer-social a:hover {
  color: #ffffff;
  background: #4a5568;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

footer .social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all var(--transition-fast);
  color: #e2e8f0;
}

footer .social-links a:hover {
  background-color: transparent;
  /* keep clean look */
  transform: translateY(-2px);
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet and medium screen optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
  }

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

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

  .nav-link {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
  }
}

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

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-background-white);
    border-top: 1px solid var(--color-border-light);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
  }

  .nav.active {
    display: block;
    animation: slideDown 0.3s ease;
  }

  /* Ensure dropdown is visible when nav is active */
  .nav.active .nav-dropdown.active .dropdown-menu {
    display: block !important;
    max-height: 1000px !important;
    padding: var(--space-md) 0 !important;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-list {
    flex-direction: column;
    padding: var(--space-lg) var(--space-md);
    gap: 0;
  }

  .nav-list>li {
    border-bottom: 1px solid var(--color-border-lighter);
  }

  .nav-list>li:last-child {
    border-bottom: none;
  }

  /* Ensure dropdown items inside nav-list don't get the border */
  .nav-list .dropdown-menu li {
    border-bottom: none !important;
  }

  .nav-link {
    display: block;
    padding: 0.875rem 0.5rem;
    font-size: 1rem;
  }

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

  .hero {
    padding: 100px 0 60px;
    min-height: 60vh;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .problem-section,
  .services-section,
  .referral-section,
  .social-proof-section,
  .lead-magnet-section,
  .about-section,
  .contact-section {
    padding: var(--space-2xl) 0;
  }

  .hero-title {
    font-size: clamp(1.5rem, 4.5vw, 2.25rem);
    line-height: 1.2;
    padding: 0 0.5rem;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    padding: 0 0.5rem;
  }

  .hero-stats {
    margin-top: 2rem !important;
    gap: 1rem !important;
  }

  .hero-stats .stat-item {
    min-width: 100px;
  }

  .hero-stats .stat-item div:first-child {
    font-size: 1.25rem !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

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

  .btn-large {
    padding: 0.875rem 1.5rem;
  }

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

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

  .card {
    padding: 1.5rem;
  }

  .referral-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .referral-image {
    order: -1;
  }

  .payer-logos {
    gap: var(--space-md);
  }

  .payer-logos img {
    height: 28px;
  }

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

  .lead-magnet-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .lead-form {
    padding: 1.5rem;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    padding: 0 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  h3 {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  }

  /* Better card responsiveness */
  .card,
  .problem-card,
  .service-card,
  .testimonial-card {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Fix button overflow */
  .btn {
    white-space: normal;
    min-width: auto;
  }

  /* Improve form responsiveness */
  .form-input,
  .form-select {
    font-size: 16px;
    /* Prevent zoom on iOS */
  }

  /* Better table handling if any */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Fix grid layouts */
  .stats-grid,
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* Improve text readability */
  p,
  li {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Fix decorative icons on mobile */
  .decorative-icon {
    font-size: 3rem;
    opacity: 0.2;
  }

  .decorative-icon.large {
    font-size: 4rem;
  }

  .decorative-icon.small {
    font-size: 2.5rem;
  }

  /* Header improvements */
  .header-content {
    min-height: 60px;
    padding: 0.5rem 0;
  }

  .logo img {
    height: 32px;
  }

  .header-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* Mobile menu improvements */
  .mobile-menu-toggle {
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
  }
}

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

  .hero {
    padding: 80px 0 50px;
  }

  .hero-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    line-height: 1.25;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
  }

  .hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    padding: 0 0.25rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .lead-magnet-content h2 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }

  .card {
    padding: 1.25rem;
  }

  .problem-card,
  .service-card,
  .testimonial-card {
    padding: 1.25rem;
  }

  .lead-form {
    padding: 1.25rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
  }

  .hero-stats .stat-item {
    width: 100%;
  }

  .hero-actions {
    gap: 0.875rem;
  }

  .section {
    padding: 2rem 0;
  }

  /* Additional small screen improvements */
  .problem-icon img,
  .service-icon img {
    max-width: 100%;
    height: auto;
  }

  .service-icon {
    width: 64px;
    height: 64px;
  }

  /* Improve list spacing */
  .service-features li {
    font-size: 0.8rem;
    padding: 0.3rem 0;
  }

  /* Fix inline styles that might overflow */
  [style*="display: grid"] {
    grid-template-columns: 1fr !important;
  }

  /* Better spacing for small screens */
  .problem-section,
  .services-section,
  .referral-section {
    padding: 1.5rem 0 !important;
  }

  /* Carousel dots */
  .carousel-dots {
    bottom: 15px;
    gap: 8px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  /* Cookie consent responsive */
  #cookie-consent {
    padding: 12px !important;
  }

  #cookie-consent .container {
    flex-direction: column !important;
    gap: 8px !important;
  }

  #cookie-consent .btn {
    width: 100%;
    padding: 0.5rem 1rem !important;
  }
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
input:focus,
select:focus,
a:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    background-color: #000;
    border-color: #000;
  }

  .btn-secondary {
    color: #000;
    border-color: #000;
  }
}

/* ========================================
   Utility Classes
   ======================================== */

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

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

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

/* ========================================
   Modern Utility Classes
   ======================================== */

/* Layout utilities */
.text-center {
  text-align: center;
}

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

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

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.hidden {
  display: none;
}

/* Flexbox utilities */
.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Spacing utilities */
.gap-xs {
  gap: 0.5rem;
}

.gap-sm {
  gap: 0.75rem;
}

.gap-md {
  gap: 1rem;
}

.gap-lg {
  gap: 1.5rem;
}

.gap-xl {
  gap: 2rem;
}

.m-0 {
  margin: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

.mt-sm {
  margin-top: 0.75rem;
}

.mt-md {
  margin-top: 1rem;
}

.mt-lg {
  margin-top: 1.5rem;
}

.mt-xl {
  margin-top: 2rem;
}

.mb-sm {
  margin-bottom: 0.75rem;
}

.mb-md {
  margin-bottom: 1rem;
}

.mb-lg {
  margin-bottom: 1.5rem;
}

.mb-xl {
  margin-bottom: 2rem;
}

.p-0 {
  padding: 0;
}

.pt-sm {
  padding-top: 0.75rem;
}

.pt-md {
  padding-top: 1rem;
}

.pt-lg {
  padding-top: 1.5rem;
}

.pb-sm {
  padding-bottom: 0.75rem;
}

.pb-md {
  padding-bottom: 1rem;
}

.pb-lg {
  padding-bottom: 1.5rem;
}

/* Size utilities */
.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.w-12 {
  width: 3rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-12 {
  height: 3rem;
}

/* Border radius utilities */
.rounded-sm {
  border-radius: 4px;
}

.rounded-md {
  border-radius: 8px;
}

.rounded-lg {
  border-radius: 12px;
}

.rounded-full {
  border-radius: 50%;
}

/* Text utilities */
.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Color utilities */
.text-primary {
  color: var(--color-primary);
}

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

.text-yellow-400 {
  color: #fbbf24;
}

/* Margin right utility */
.mr-sm {
  margin-right: 0.75rem;
}

.mr-md {
  margin-right: 1rem;
}

.mb-5 {
  margin-bottom: var(--space-xl);
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: var(--space-xs);
}

.mt-2 {
  margin-top: var(--space-sm);
}

.mt-3 {
  margin-top: var(--space-md);
}

.mt-4 {
  margin-top: var(--space-lg);
}

.mt-5 {
  margin-top: var(--space-xl);
}

.p-0 {
  padding: 0;
}

.p-1 {
  padding: var(--space-xs);
}

.p-2 {
  padding: var(--space-sm);
}

.p-3 {
  padding: var(--space-md);
}

.p-4 {
  padding: var(--space-lg);
}

.p-5 {
  padding: var(--space-xl);
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.opacity-0 {
  opacity: 0;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-100 {
  opacity: 1;
}

/* ---- Global image defaults ---- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- Footer link appearance ---- */
.footer .footer-section ul li a,
.footer .legal-links a {
  color: #cbd5e1;
  /* slate-300 */
  text-decoration: none;
  border-bottom: none;
}

.footer .footer-section ul li a:hover,
.footer .legal-links a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ---- Payer logos (Trusted by Healthcare Providers Nationwide) ---- */
.payer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  justify-content: center;
  margin-top: var(--space-xl);
}

.payer-logos img {
  max-height: 40px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.9;
}

.payer-logos img:hover {
  filter: none;
  opacity: 1;
}

/* Service Icons */
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 16px;
  color: white;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transition: all 0.3s ease;
}

/* Remove any pseudo-elements that might interfere with SVG icons */
.service-icon::before,
.service-icon::after,
.services-grid .service-card .service-icon::before,
.services-grid .service-card .service-icon::after {
  content: none !important;
}

/* SVG Icons */
.service-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
  color: white;
  fill: white;
  stroke: currentColor;
}

/* Hover effects */
.service-card:hover .service-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

/* Problem Icons - Removed emoji pseudo-elements to prevent duplicate icons */

/* Problem Icons */

.modal-content {
  background-color: var(--color-background-white);
  margin: 2% auto;
  border: none;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-large);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--brand-teal) 100%);
  color: white;
}

.modal-header h2 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 600;
}

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: opacity var(--transition-fast);
}

.close:hover,
.close:focus {
  opacity: 0.7;
}

.close-modal:hover,
.close-modal:focus {
  opacity: 0.7;
}

.modal-body {
  padding: 0;
  height: 630px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 85vh;
  }

  .modal-body {
    height: 500px;
  }

  .modal-header {
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .modal-header h2 {
    font-size: var(--text-lg);
  }
}

/* ========================================
   Enhanced Design System - Global Improvements
   ======================================== */

/* Smooth animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Scroll reveal animation classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   Referral Network Section - Complete Redesign
   ======================================== */

#referral {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

#referral::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

/* Section header styling */
#referral .section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, var(--color-deep-blue) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

/* Referral partnership cards - modern redesign */
.referral-partnership-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 50%, #f0f9ff 100%);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(13, 148, 136, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.referral-partnership-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-deep-blue) 100%);
  border-radius: 24px 0 0 24px;
}

.referral-partnership-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.referral-partnership-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(13, 148, 136, 0.18), 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(13, 148, 136, 0.25);
}

.referral-partnership-card h4 {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: var(--color-deep-blue) !important;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.3;
  width: auto;
  flex-wrap: nowrap;
}

.referral-partnership-card h4 .icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.referral-partnership-card:hover h4 .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.referral-partnership-card h5 {
  font-size: 1.2rem !important;
  color: var(--color-primary) !important;
  font-weight: 600 !important;
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--color-primary);
}

.referral-partnership-card p {
  color: var(--color-text-medium);
  line-height: 1.8;
  font-size: 1rem;
}

.referral-partnership-card h6 {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--color-text-dark) !important;
  margin: 2rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(13, 148, 136, 0.2);
  display: inline-block;
}

.referral-partnership-card ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.referral-partnership-card ul li {
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  position: relative;
  color: var(--color-text-medium);
  line-height: 1.7;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.04) 0%, rgba(110, 231, 183, 0.03) 100%);
  border-radius: 12px;
  border: 1px solid rgba(13, 148, 136, 0.06);
  transition: all 0.2s ease;
}

.referral-partnership-card ul li:hover {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(110, 231, 183, 0.08) 100%);
  transform: translateX(6px);
  border-color: rgba(13, 148, 136, 0.15);
}

.referral-partnership-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #10b981 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  box-shadow: 0 3px 8px rgba(13, 148, 136, 0.35);
}

/* SEO Benefits box redesign */
.seo-benefits-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 1.5rem;
  border-radius: 16px;
  margin-top: 2rem;
  border-left: 4px solid var(--color-primary);
  position: relative;
  overflow: hidden;
}

.seo-benefits-box::before {
  content: '🎯';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 3rem;
  opacity: 0.15;
}

.seo-benefits-box h6 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  margin-bottom: 0.75rem !important;
}

.seo-benefits-box h6::before {
  display: none;
}

.seo-benefits-box p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-medium);
}

/* Referral section headings */
#referral h3.section-subheading {
  font-size: 1.75rem !important;
  text-align: center;
  margin: 3rem 0 2rem;
  color: var(--color-text-dark) !important;
  position: relative;
  display: inline-block;
  width: 100%;
}

#referral h3.section-subheading::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Tracking section card */
.tracking-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.tracking-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.tracking-card ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  list-style: none !important;
  padding: 0 !important;
  margin: 2rem 0;
  text-align: left;
}

.tracking-card ul li {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  border-radius: 12px;
  position: relative;
  color: var(--color-text-medium);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.tracking-card ul li:hover {
  background: white;
  border-color: var(--color-primary);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
}

.tracking-card ul li::before {
  content: '📊';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
}

.tracking-card ul li:nth-child(2)::before {
  content: '📅';
}

.tracking-card ul li:nth-child(3)::before {
  content: '💰';
}

.tracking-card ul li:nth-child(4)::before {
  content: '🤝';
}

/* Why Choose card */
.why-choose-card {
  background: linear-gradient(135deg, var(--color-deep-blue) 0%, var(--color-primary) 100%);
  border-radius: 20px;
  padding: 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.why-choose-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.why-choose-card ul {
  list-style: none !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.why-choose-card ul li {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem 1rem 3rem;
  border-radius: 10px;
  position: relative;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.why-choose-card ul li:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.why-choose-card ul li::before {
  content: '★';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 1rem;
}

/* CTA section */
.referral-cta {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(13, 148, 136, 0.1);
}

.referral-cta::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='%230d9488' fill-opacity='0.03'%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;
}

.referral-cta h3 {
  font-size: 1.75rem !important;
  color: var(--color-deep-blue) !important;
  margin-bottom: 1rem;
  position: relative;
}

.referral-cta p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  color: var(--color-text-medium);
  font-size: 1.1rem;
  line-height: 1.7;
  position: relative;
}

.referral-cta .btn {
  position: relative;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
  transition: all 0.3s ease;
}

.referral-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.4);
}

/* ========================================
   Enhanced Card Hover Effects - All Pages
   ======================================== */

.card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Problem section cards enhancement */
.problem-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 5rem 0;
}

.problem-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-error) 0%, #f97316 100%);
}

.problem-card:hover {
  transform: translateY(-10px);
}

.problem-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.problem-card:hover .problem-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Service cards enhancement */
.service-card {
  border-radius: 20px;
  padding: 2.5rem;
  background: white;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(13, 148, 136, 0.15);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
}

/* Trust badges section */
.trust-badges-section .card {
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
}

.trust-badges-section .card:hover {
  transform: translateY(-10px) scale(1.02);
}

/* ========================================
   Enhanced Section Titles
   ======================================== */

.section-title {
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

/* ========================================
   Improved Button Styles
   ======================================== */

.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f766e 100%);
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0f766e 0%, var(--color-primary) 100%);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

/* ========================================
   Enhanced Footer Design
   ======================================== */

.footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.footer::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.02'%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");
  pointer-events: none;
}

/* ========================================
   Page-specific Enhancements
   ======================================== */

/* About page */
.about-hero {
  position: relative;
}

/* Services page */
.services-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Contact page form */
.contact-form-container {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 3rem;
}

/* ========================================
   Responsive Enhancements
   ======================================== */

@media (max-width: 768px) {
  .referral-partnership-card {
    padding: 1.75rem;
  }

  .tracking-card {
    padding: 2rem;
  }

  .tracking-card ul {
    grid-template-columns: 1fr;
  }

  .why-choose-card ul {
    grid-template-columns: 1fr;
  }

  .referral-cta {
    padding: 2rem;
  }

  .section-title::after {
    width: 60px;
    margin-top: 1rem;
  }
}

/* ========================================
   About Page Enhancements
   ======================================== */

.about-stats-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.about-stats-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(13, 148, 136, 0.15);
}

.about-stats-card h3 {
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-deep-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

/* Value cards */
.value-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.value-card .value-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Leadership cards */
.leadership-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.leadership-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-deep-blue) 100%);
  opacity: 0.1;
}

.leadership-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(13, 148, 136, 0.15);
}

.leadership-card img {
  border: 4px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.leadership-card:hover img {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Services Page Enhancements
   ======================================== */

.service-detail-card {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.service-detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--gradient-primary);
}

.service-detail-card:hover {
  transform: translateX(10px);
  box-shadow: 0 20px 60px rgba(13, 148, 136, 0.12);
}

/* Pricing cards */
.pricing-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.pricing-card:hover::before {
  transform: scaleX(1);
}

.pricing-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(13, 148, 136, 0.2);
  border-color: rgba(13, 148, 136, 0.2);
}

.pricing-card.featured {
  background: linear-gradient(135deg, var(--color-deep-blue) 0%, var(--color-primary) 100%);
  color: white;
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.08) translateY(-10px);
}

.pricing-card.featured h3,
.pricing-card.featured h4,
.pricing-card.featured p,
.pricing-card.featured li {
  color: white !important;
}

/* ========================================
   Specialties Page Enhancements
   ======================================== */

.specialty-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.specialty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.specialty-card:hover::before {
  transform: scaleX(1);
}

.specialty-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(13, 148, 136, 0.15);
}

.specialty-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(110, 231, 183, 0.1) 100%);
  transition: all 0.3s ease;
}

.specialty-card:hover .specialty-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--gradient-primary);
  color: white;
}

/* ========================================
   Case Studies Page Enhancements
   ======================================== */

.case-study-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-study-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(13, 148, 136, 0.15);
}

.case-study-card .card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--color-deep-blue) 0%, var(--color-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.case-study-card .card-image::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.case-study-card .card-content {
  padding: 2rem;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(110, 231, 183, 0.1) 100%);
  border-radius: 50px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* ========================================
   Resources Page Enhancements
   ======================================== */

.resource-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-border-light);
}

.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}

.resource-card:hover::before {
  transform: scaleY(1);
}

.resource-card:hover {
  transform: translateX(10px);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.1);
  border-color: transparent;
}

.resource-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(110, 231, 183, 0.1) 100%);
  transition: all 0.3s ease;
}

.resource-card:hover .resource-icon {
  background: var(--gradient-primary);
}

.resource-card:hover .resource-icon i {
  color: white;
}

/* ========================================
   Contact Page Enhancements
   ======================================== */

.contact-info-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid var(--color-border-light);
}

.contact-info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.12);
  border-color: var(--color-primary);
}

.contact-info-card .icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.contact-info-card:hover .icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
}

/* Contact form styling */
.enhanced-form {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

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

.enhanced-form .form-input,
.enhanced-form .form-select,
.enhanced-form textarea {
  border: 2px solid var(--color-border-light);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.enhanced-form .form-input:focus,
.enhanced-form .form-select:focus,
.enhanced-form textarea:focus {
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

/* ========================================
   Global Animation Classes
   ======================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.stagger-5 {
  transition-delay: 0.5s;
}

.stagger-6 {
  transition-delay: 0.6s;
}

/* Hover lift effect */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-deep-blue) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass card effect */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
}

/* Pulse animation for CTAs */
.pulse-animation {
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(13, 148, 136, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
  }
}

/* Icon bounce on hover */
.icon-bounce:hover i,
.icon-bounce:hover .fa,
.icon-bounce:hover .fas {
  animation: bounce 0.5s ease;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}