/*
 * Oakridge Family Medical Centre - Modern Stylesheet
 * Version 2.0 - Professional Medical Website Design
 * 
 * Features:
 * - CSS Custom Properties (Variables) for consistent theming
 * - Modern Grid and Flexbox layouts
 * - Mobile-first responsive design
 * - Smooth animations and micro-interactions
 * - Accessibility-focused design
 * - Performance optimized
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Color Palette - Medical Professional Theme */
  --primary-900: #0c4a6e;    /* Deep medical blue - headings */
  --primary-700: #075985;    /* Primary blue - buttons */
  --primary-600: #0284c7;    /* Accent blue - links */
  --primary-50: #f0f9ff;     /* Light blue background */

  --teal-600: #0d9488;       /* Teal accent - CTAs */
  --teal-500: #14b8a6;       /* Teal hover states */
  --teal-50: #f0fdfa;        /* Teal light background */

  --slate-900: #0f172a;      /* Dark text */
  --slate-700: #334155;      /* Body text */
  --slate-500: #64748b;      /* Muted text */
  --slate-300: #cbd5e1;      /* Borders */
  --slate-100: #f1f5f9;      /* Light backgrounds */
  --slate-50: #f8fafc;       /* Very light bg */

  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Typography Scale - Modern medical aesthetic */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Inter', sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.8rem + 2vw, 3rem);
  --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  --header-height-mobile: 70px;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-medical: 0 4px 20px -2px rgba(13, 148, 136, 0.15);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--slate-700);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--teal-600);
}

ul, ol {
  list-style: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }

  /* On larger screens, allow the container to expand while still leaving breathing room on either side.
     Setting max-width to 90% of the viewport width creates generous margins instead of stretching edge-to-edge. */
  .container {
    max-width: 90%;
  }
}

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

.section-alt {
  background-color: var(--slate-50);
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  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;
}

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

.btn-primary {
  background-color: var(--primary-700);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--primary-900);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--teal-600);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background-color: var(--teal-500);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

.btn-ghost {
  background-color: transparent;
  color: var(--slate-700);
}

.btn-ghost:hover {
  background-color: var(--slate-100);
  color: var(--primary-700);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

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

.btn-full {
  width: 100%;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height-mobile);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  z-index: 1000;
  transition: all var(--transition-base);
}

@media (min-width: 768px) {
  .header {
    height: var(--header-height);
  }
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
  border-bottom-color: transparent;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary-900);
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.02);
  color: var(--primary-900);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--teal-600), var(--primary-600));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: var(--shadow-medical);
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-8);
  }
}

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

.nav-link {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--slate-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--teal-600);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-900);
  background-color: var(--slate-100);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-cta {
  margin-left: var(--space-4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  position: relative;
  z-index: 1001;
}

.menu-toggle:hover {
  background-color: var(--slate-100);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.hamburger {
  width: 24px;
  height: 2px;
  background-color: var(--slate-700);
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--slate-700);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.menu-toggle.open .hamburger {
  background-color: transparent;
}

.menu-toggle.open .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.open .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Navigation Overlay */
.nav-mobile {
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: var(--space-6);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-slow), opacity var(--transition-slow), visibility var(--transition-slow);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .nav-mobile {
    top: var(--header-height);
  }
}

.nav-mobile.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.nav-mobile-link {
  display: block;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--slate-700);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  background-color: var(--primary-50);
  color: var(--primary-700);
}

.nav-mobile-cta {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-6);
  text-align: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-height-mobile) + var(--space-12));
  padding-bottom: var(--space-16);
  background: linear-gradient(135deg, var(--slate-50) 0%, var(--primary-50) 50%, var(--teal-50) 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-top: calc(var(--header-height) + var(--space-16));
    padding-bottom: var(--space-24);
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

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

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--teal-600);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.hero-badge i {
  font-size: 0.875rem;
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-900);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--teal-600);
  position: relative;
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--slate-500);
  margin-bottom: var(--space-8);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}

.hero-image {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 640px) {
  .hero-image {
    width: 360px;
    height: 360px;
  }
}

@media (min-width: 1024px) {
  .hero-image {
    width: 440px;
    height: 440px;
  }
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-image:hover img {
  transform: scale(1.05);
}

.hero-image-frame {
  position: absolute;
  inset: -12px;
  border: 2px solid var(--teal-600);
  border-radius: calc(var(--radius-2xl) + 12px);
  opacity: 0.3;
  pointer-events: none;
}

.hero-stats {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-6);
  background-color: var(--white);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .hero-stats {
    /* Center the hero stats on larger screens instead of shifting them off to the left.
       This prevents the stats container from being clipped on the left edge. */
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
  }
}

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

.hero-stat-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-900);
  display: block;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   TRUST BLOCK
   ============================================ */
.trust-section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-100);
}

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

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.trust-item:hover {
  background-color: var(--slate-50);
  transform: translateY(-4px);
}

.trust-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-50), var(--teal-50));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  font-size: 1.5rem;
  transition: all var(--transition-base);
}

.trust-item:hover .trust-icon {
  background: linear-gradient(135deg, var(--teal-600), var(--primary-600));
  color: var(--white);
  transform: scale(1.1);
}

.trust-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--primary-900);
}

.trust-text {
  font-size: var(--text-sm);
  color: var(--slate-500);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-12);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background-color: var(--teal-600);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--slate-500);
  line-height: 1.6;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.about-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}

.about-image {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--white);
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .about-image {
    width: 360px;
    height: 360px;
  }
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.08);
}

.about-image-ring {
  position: absolute;
  inset: -20px;
  border: 2px dashed var(--teal-200);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@media (min-width: 1024px) {
  .about-content {
    text-align: left;
  }
}

.about-name {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: var(--space-2);
}

.about-role {
  font-size: var(--text-base);
  color: var(--teal-600);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.about-text {
  font-size: var(--text-base);
  color: var(--slate-600);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

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

@media (min-width: 640px) {
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  text-align: left;
}

.about-feature i {
  width: 24px;
  height: 24px;
  background-color: var(--teal-50);
  color: var(--teal-600);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-feature span {
  font-size: var(--text-sm);
  color: var(--slate-600);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

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

.service-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-600), var(--primary-600));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.service-card:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-medical);
  transform: translateY(-8px);
}

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

.service-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary-50), var(--teal-50));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--teal-600);
  font-size: 1.75rem;
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--teal-600), var(--primary-600));
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--primary-900);
  margin-bottom: var(--space-3);
}

.service-description {
  font-size: var(--text-sm);
  color: var(--slate-500);
  line-height: 1.6;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  position: relative;
}

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

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }

  .process-grid::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-600), var(--primary-600));
    z-index: 0;
  }
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-6);
  background-color: var(--white);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--slate-300);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.process-step:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--teal-200);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--teal-600), var(--primary-600));
  color: var(--white);
  font-size: var(--text-xl);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-medical);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--teal-200);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

.step-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--primary-900);
  margin-bottom: var(--space-3);
}

.step-description {
  font-size: var(--text-sm);
  color: var(--slate-500);
  line-height: 1.6;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-container {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--slate-300);
}

.faq-item.active {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-medical);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--primary-900);
  transition: all var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--slate-50);
  color: var(--teal-600);
}

.faq-icon {
  width: 24px;
  height: 24px;
  background-color: var(--slate-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  font-size: 0.75rem;
  transition: all var(--transition-base);
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.faq-item.active .faq-icon {
  background-color: var(--teal-600);
  color: var(--white);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--slate-600);
  line-height: 1.7;
}

/* ============================================
   FEES TABLE
   ============================================ */
.fees-container {
  overflow-x: auto;
  margin-bottom: var(--space-12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  font-size: var(--text-sm);
}

.fees-table thead {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
  color: var(--white);
}

.fees-table th {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-xs);
}

.fees-table td {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
}

.fees-table tbody tr {
  transition: background-color var(--transition-fast);
}

.fees-table tbody tr:hover {
  background-color: var(--slate-50);
}

.fees-table tbody tr:last-child td {
  border-bottom: none;
}

.fee-amount {
  font-weight: 700;
  color: var(--teal-600);
  font-size: var(--text-base);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.contact-card:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-50), var(--teal-50));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-card:hover .contact-icon {
  background: linear-gradient(135deg, var(--teal-600), var(--primary-600));
  color: var(--white);
}

.contact-details h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--primary-900);
  margin-bottom: var(--space-1);
}

.contact-details p,
.contact-details a {
  font-size: var(--text-sm);
  color: var(--slate-600);
}

.contact-details a:hover {
  color: var(--teal-600);
}

/* Map */
.map-container {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--slate-100), var(--slate-200));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-placeholder {
  text-align: center;
  color: var(--slate-500);
}

.map-placeholder i {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  color: var(--slate-400);
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .contact-form-wrapper {
    padding: var(--space-10);
  }
}

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

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

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--slate-900);
  background-color: var(--slate-50);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--slate-400);
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(135deg, var(--slate-900), var(--primary-900));
  color: var(--white);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

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

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-4);
  text-decoration: none;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--teal-600), var(--primary-600));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.footer-description {
  font-size: var(--text-sm);
  color: var(--slate-300);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

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

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--teal-600);
  color: var(--white);
  transform: translateY(-4px);
}

.footer-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-5);
}

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

.footer-link {
  font-size: var(--text-sm);
  color: var(--slate-300);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-link::before {
  content: '→';
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition-fast);
  color: var(--teal-500);
}

.footer-link:hover {
  color: var(--white);
  padding-left: var(--space-2);
}

.footer-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--slate-300);
}

.footer-contact-item i {
  color: var(--teal-500);
  margin-top: 4px;
  width: 16px;
}

.footer-contact-item a {
  color: var(--slate-300);
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-hours-item {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--slate-300);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-hours-day {
  color: var(--white);
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

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

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--slate-400);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--text-sm);
  color: var(--slate-400);
}

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

/* ============================================
   Medical Aid Logos Strip & Disclaimer Styles
   ============================================ */
/* Horizontal strip for major medical aid logos. Ensures logos scale responsively and align nicely across devices. */
.medical-aid-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.medical-aid-logos img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .medical-aid-logos img {
    height: 40px;
  }
}

/* Disclaimer text styling. Keeps the disclaimer subtle yet readable and ensures it wraps cleanly on all screen sizes. */
.footer-disclaimer {
  font-size: var(--text-xs);
  color: var(--slate-400);
  line-height: 1.5;
  margin-top: var(--space-4);
  max-width: 800px;
}

/* When the footer bottom switches to row layout on larger screens, allow items to wrap so the disclaimer sits on its own line. */
@media (min-width: 768px) {
  .footer-bottom {
    flex-wrap: wrap;
  }
  .footer-bottom .footer-disclaimer {
    flex-basis: 100%;
    text-align: center;
    margin-top: var(--space-4);
  }
}

/* ============================================
   UTILITY COMPONENTS
   ============================================ */

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-700), var(--teal-600));
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.cta-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.cta-text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  background-color: var(--white);
  color: var(--primary-900);
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  box-shadow: var(--shadow-lg);
}

.cta-btn:hover {
  background-color: var(--slate-100);
  color: var(--primary-900);
  transform: translateY(-2px);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
  padding-top: calc(var(--header-height-mobile) + var(--space-12));
  padding-bottom: var(--space-12);
  text-align: center;
}

@media (min-width: 768px) {
  .page-header {
    padding-top: calc(var(--header-height) + var(--space-16));
    padding-bottom: var(--space-16);
  }
}

.page-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.page-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Content Section */
.content-section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .content-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

.content-wrapper {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.content-text {
  font-size: var(--text-base);
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.content-list {
  list-style: disc;
  margin-left: var(--space-6);
  margin-bottom: var(--space-6);
}

.content-list li {
  font-size: var(--text-base);
  color: var(--slate-600);
  margin-bottom: var(--space-3);
  line-height: 1.6;
}

.content-heading {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--primary-900);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

/* Service Detail Page */
.service-detail {
  margin-bottom: var(--space-12);
  padding: var(--space-8);
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.service-detail:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--teal-200);
}

.service-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.service-header-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--teal-600), var(--primary-600));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.service-header h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--primary-900);
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Smooth Scroll Behavior */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Focus Visible Styles for Accessibility */
:focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: 2px;
}

/* Selection Color */
::selection {
  background-color: var(--teal-100);
  color: var(--primary-900);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .header,
  .footer,
  .menu-toggle,
  .btn,
  .hero-actions {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  .hero {
    padding-top: 2rem;
    background: none;
  }

  a {
    text-decoration: underline;
    color: #000;
  }
}

/* ===================================
   SVG ICON SIZING (replaces Font Awesome)
   =================================== */

/* Base reset: all decorative SVGs are inline by default */
svg[aria-hidden="true"] {
  display: inline-block;
  vertical-align: -0.125em;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
}

/* ── Named icon containers ── */
.logo-icon svg,
.footer-logo-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.trust-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.faq-icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

.footer-contact-item svg {
  width: 1rem;
  height: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--teal-500);
}

.service-header-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ── Inline / contextual icons ── */
/* Buttons, badges, feature lists — 1em tracks the font size */
.btn svg,
.hero-badge svg,
.about-feature svg {
  width: 1em;
  height: 1em;
}

/* About page: credential card icons (block, above heading) */
.about-content > div svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--teal-600);
}

/* Philosophy circle icons (about page) */
div[style*="border-radius: 50%"] svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Map placeholder */
.map-placeholder svg {
  width: 3rem;
  height: 3rem;
  color: var(--slate-400);
  display: block;
  margin: 0 auto 1rem;
}

/* ── Inline text icons: h2, h3, h4, p, li ──
   These appear next to text and should match the font size. */
h2 svg, h3 svg, h4 svg, p svg, li svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  margin-right: 0.3em;
  flex-shrink: 0;
}

/* Emergency notice icon (larger circle container) */
div[style*="#fecaca"] svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ===================================
   MOBILE RESPONSIVENESS FIXES
   =================================== */

/* ── Hero: prevent stats from overflowing on small screens ── */
@media (max-width: 480px) {
  .hero-stats {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: var(--space-6);
    left: auto;
    bottom: auto;
    flex-wrap: wrap;
    gap: var(--space-4);
    border-radius: var(--radius-lg);
  }

  .hero-image-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    width: 240px;
    height: 240px;
  }
}

/* ── Hero actions: full-width buttons on mobile ── */
@media (max-width: 639px) {
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Fees table: horizontal scroll on mobile ── */
@media (max-width: 640px) {
  .fees-container {
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
    border-radius: 0;
  }

  .fees-table th,
  .fees-table td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
  }

  .fee-amount {
    font-size: var(--text-sm);
    white-space: nowrap;
  }
}

/* ── Process page tip boxes: inline icon + text side by side ── */
.process-step > div svg {
  display: inline;
  vertical-align: -0.125em;
  width: 1em;
  height: 1em;
  margin-right: 0.3em;
}

/* ── "What to Bring" list items ── */
.process-step ul li svg,
ul[style] li svg {
  display: inline;
  vertical-align: -0.125em;
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  color: var(--teal-600);
}

/* ── Fees info cards (h4 with icon) ── */
h4 svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  margin-right: 0.3em;
}

/* ── Contact page: stack form nicely on mobile ── */
@media (max-width: 640px) {
  .contact-form-wrapper {
    padding: var(--space-6);
    border-radius: var(--radius-xl);
  }

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

/* ── Services grid: single column on very small screens ── */
@media (max-width: 479px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: var(--space-6);
  }
}

/* ── Trust grid: always 2 columns minimum ── */
@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .trust-item {
    padding: var(--space-3);
  }

  .trust-icon {
    width: 44px;
    height: 44px;
  }

  .trust-title {
    font-size: var(--text-sm);
  }
}

/* ── About grid: ensure image doesn't overflow ── */
@media (max-width: 480px) {
  .about-image {
    width: 220px;
    height: 220px;
  }
}

/* ── Footer grid: single column on mobile ── */
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    max-width: 100%;
  }
}

/* ── Footer bottom: wrap gracefully ── */
@media (max-width: 479px) {
  .footer-bottom {
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
  }
}

/* ── Process steps: full padding on small screens ── */
@media (max-width: 640px) {
  .process-step {
    padding: var(--space-5);
  }
}

/* ── Section headers: tighten on mobile ── */
@media (max-width: 480px) {
  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .page-title {
    font-size: var(--text-2xl);
  }

  .cta-title {
    font-size: var(--text-2xl);
  }
}

/* ── Navigation: ensure logo text doesn't overflow on tiny screens ── */
@media (max-width: 360px) {
  .logo span {
    font-size: var(--text-base);
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }
}

/* ── Contact card: prevent horizontal scroll from hover transform ── */
@media (max-width: 768px) {
  .contact-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }
}

/* ── About features grid: single column on mobile ── */
@media (max-width: 480px) {
  .about-features {
    grid-template-columns: 1fr;
  }
}

/* ── CTA section padding ── */
@media (max-width: 480px) {
  .cta-section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .cta-btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ── FAQ: question text wraps properly ── */
.faq-question span:first-child {
  flex: 1;
  min-width: 0;
}

/* ── Hero badge: wraps if needed ── */
@media (max-width: 360px) {
  .hero-badge {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
  }
}

/* ── Inline "What to Bring" list (process page) ── */
section ul[style*="list-style: none"] li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

section ul[style*="list-style: none"] li svg {
  margin-top: 2px;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--teal-600);
}

