/* ============================================
   MODERN UI/UX DESIGN SYSTEM
   Florida Foot & Ankle Institute
   Version: 2.0 MODERN | Date: 2026-02-03
   
   Changes from v1.0:
   - ✓ Softer, more readable color palette (reduced harsh contrast)
   - ✓ Modern micro-interactions & smooth animations
   - ✓ Mobile-first optimization
   - ✓ Floating calendar booking button (FAB)
   - ✓ Touch-friendly (44px+ targets)
   - ✓ SEO-optimized typography
   ============================================ */

/* ============================================
   1. CSS RESET
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2D3748;
  background: #ffffff;
  overflow-x: hidden;
}

/* ============================================
   2. DESIGN TOKENS - SOFTER, MORE READABLE
   ============================================ */
:root {
  /* SOFTER PRIMARY COLORS - Reduced saturation for readability */
  --color-primary: #F08A6E;        /* Softer coral - easier on eyes */
  --color-primary-light: #F5A992;  /* Lighter coral - gentle hover */
  --color-primary-dark: #D97252;   /* Muted darker coral */
  --color-primary-subtle: #FDF5F2; /* Almost white coral tint */
  
  /* PROFESSIONAL ANCHOR - Softer teal */
  --color-secondary: #2C7A7B;      /* Softer teal - professional but not harsh */
  --color-secondary-light: #38A1A3;
  --color-secondary-dark: #1F5557;
  
  /* ACCENT - Gentle highlights */
  --color-accent: #F6B697;         /* Very soft peach */
  --color-accent-light: #FCDCC9;   /* Ultra-light peach */
  --color-accent-subtle: #FFF9F6;  /* Barely-there warm tint */
  
  /* SEMANTIC - Softer, readable */
  --color-success: #38A169;        /* Softer green */
  --color-warning: #DD6B20;        /* Softer orange */
  --color-danger: #E53E3E;         /* Softer red */
  --color-info: #3182CE;           /* Softer blue */
  
  /* TEXT - Softer blacks (MUCH more readable) */
  --color-text-primary: #2D3748;   /* Soft dark gray - WCAG AAA */
  --color-text-secondary: #4A5568; /* Medium gray */
  --color-text-tertiary: #718096;  /* Light gray */
  --color-text-muted: #A0AEC0;     /* Very light gray */
  
  /* BACKGROUNDS - Warm, soft tints */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #FFFBF8;   /* Barely warm tint */
  --color-bg-tertiary: #FFF5F0;    /* Very subtle warm */
  --color-bg-accent: #FFF2ED;      /* Soft peach background */
  
  /* BORDERS - Soft, subtle */
  --color-border: #E2E8F0;         /* Soft gray border */
  --color-border-light: #EDF2F7;   /* Very light border */
  --color-border-focus: #F08A6E;   /* Primary focus */
  
  /* TYPOGRAPHY */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-display: 'Inter', var(--font-family-base);
  
  /* Fluid typography - responsive sizing */
  --text-hero: clamp(2rem, 5vw + 1rem, 3.5rem);
  --text-h1: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  --text-h2: clamp(1.5rem, 2.5vw + 0.5rem, 2rem);
  --text-h3: clamp(1.25rem, 2vw + 0.25rem, 1.5rem);
  --text-body-lg: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;
  
  --line-height-tight: 1.25;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* SPACING (8px grid) */
  --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;
  
  /* SHADOWS - Softer, more subtle */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* BORDER RADIUS - Modern, generous */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  /* TRANSITIONS - Smooth, modern */
  --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);
  
  /* Z-INDEX SCALE */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-popover: 60;
  --z-tooltip: 70;
  --z-fab: 80;
  --z-notification: 90;
}

/* ============================================
   3. TYPOGRAPHY - Modern, Readable
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h1 { 
  font-size: var(--text-h1);
  color: var(--color-secondary-dark);
  font-weight: var(--font-weight-bold);
}

h2 { 
  font-size: var(--text-h2);
  color: var(--color-secondary);
}

h3 { 
  font-size: var(--text-h3);
}

p {
  margin-bottom: 1rem;
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

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

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

a:focus-visible {
  outline: 3px solid var(--color-border-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ============================================
   4. LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

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

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

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

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: var(--space-16);
  }
}

.section-lead {
  font-size: var(--text-body-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  max-width: 65ch;
  margin: 0 auto;
}

/* ============================================
   5. SKIP LINK (Accessibility)
   ============================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--space-4) var(--space-6);
  z-index: 1000;
  font-weight: var(--font-weight-semibold);
  border-radius: 0 0 var(--radius-md) 0;
}

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

/* ============================================
   6. NAVIGATION - Modern, Sticky
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

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

@media (min-width: 768px) {
  .nav-container {
    height: 80px;
  }
}

.nav-logo {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  font-size: 1.125rem;
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}

@media (min-width: 768px) {
  .nav-logo {
    font-size: 1.25rem;
  }
}

.nav-logo:hover {
  transform: scale(1.02);
}

.logo-text {
  display: block;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-3);
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

.mobile-menu-toggle:hover {
  background: var(--color-bg-secondary);
}

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

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
  font-size: 0.9375rem;
  padding: var(--space-2) var(--space-3);
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

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

.nav-blog {
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-2xl);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-20) var(--space-6) var(--space-6);
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-content a {
  color: var(--color-text-primary);
  font-size: 1.0625rem;
  font-weight: var(--font-weight-medium);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  min-height: 56px;
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
}

.mobile-menu-content a:hover {
  background: var(--color-bg-secondary);
  color: var(--color-primary);
  transform: translateX(4px);
}

.mobile-menu-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

/* ============================================
   7. BUTTONS - Modern, Micro-interactions
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-family-base);
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

/* Ripple effect on click */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: all 0.6s ease-out;
  pointer-events: none;
}

.btn:active::after {
  opacity: 1;
  transform: scale(2);
  transition: all 0s;
}

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

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

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

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

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

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  min-height: 36px;
}

.btn-lg {
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-body-lg);
  min-height: 56px;
  border-radius: var(--radius-xl);
}

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

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

/* ============================================
   8. FLOATING ACTION BUTTON (FAB) - Calendar Booking
   ============================================ */
.fab-booking {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: var(--z-fab);
  border: none;
  transition: all var(--transition-base);
  animation: fab-entrance 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes fab-entrance {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.fab-booking:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-2xl);
  background: var(--color-primary-dark);
}

.fab-booking:active {
  transform: scale(0.95);
}

.fab-booking .material-symbols-outlined {
  font-size: 32px;
  animation: pulse 2s ease-in-out infinite;
}

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

/* Tooltip for FAB */
.fab-tooltip {
  position: absolute;
  right: 76px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--color-text-primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
}

.fab-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid var(--color-text-primary);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.fab-booking:hover .fab-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Mobile FAB adjustments */
@media (max-width: 640px) {
  .fab-booking {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }
  
  .fab-booking .material-symbols-outlined {
    font-size: 28px;
  }
  
  .fab-tooltip {
    display: none; /* Hide tooltip on mobile */
  }
}

/* ============================================
   9. HERO SECTION - Modern, Exciting
   ============================================ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
  color: white;
  padding: var(--space-16) 0 var(--space-12);
  margin-top: 72px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    min-height: 680px;
    padding: var(--space-20) 0 var(--space-16);
    margin-top: 80px;
  }
}

/* Background image with parallax effect */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transform: scale(1.1);
  transition: transform 0.3s ease-out;
}

/* Softer overlay - not too harsh */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg, 
    rgba(217, 114, 82, 0.75) 0%,
    rgba(240, 138, 110, 0.65) 50%,
    rgba(245, 169, 146, 0.55) 100%
  );
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 640px;
  animation: hero-content-entrance 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes hero-content-entrance {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-headline {
  font-family: var(--font-family-display);
  font-size: var(--text-hero);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-subheadline {
  font-size: var(--text-body-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.hero-cta {
  margin-bottom: var(--space-6);
  animation: hero-cta-entrance 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

@keyframes hero-cta-entrance {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-availability {
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.hero-trust {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
  animation: hero-trust-entrance 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

@keyframes hero-trust-entrance {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .hero-trust {
    gap: var(--space-6);
  }
}

/* ============================================
   10. SERVICES MARQUEE - Exciting, Animated
   ============================================ */
.services-marquee {
  background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-secondary) 100%);
  color: white;
  padding: var(--space-4) 0;
  overflow: hidden;
  position: relative;
  border-top: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

@media (min-width: 768px) {
  .services-marquee {
    padding: var(--space-6) 0;
  }
}

/* Soft gradient fade at edges */
.services-marquee::before,
.services-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.services-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--color-secondary-dark), transparent);
}

.services-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--color-secondary), transparent);
}

.marquee-container {
  display: flex;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-container:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  margin: 0 var(--space-3);
  min-height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: white;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .marquee-item {
    padding: var(--space-4) var(--space-8);
    margin: 0 var(--space-4);
  }
}

.marquee-item:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   11. SERVICE CARDS - Modern, Interactive
   ============================================ */
.services-section {
  background: var(--color-bg-primary);
}

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

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

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

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

/* Subtle background glow effect */
.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--color-primary-subtle) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
}

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

.service-icon .material-symbols-outlined {
  font-size: 32px;
  color: var(--color-primary);
  transition: color var(--transition-base);
}

.service-card:hover .service-icon .material-symbols-outlined {
  color: white;
}

.service-title {
  font-size: var(--text-h3);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.service-description {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}

.service-link .material-symbols-outlined {
  font-size: 18px;
  transition: transform var(--transition-base);
}

.service-card:hover .service-link .material-symbols-outlined {
  transform: translateX(4px);
}

/* ============================================
   12. DOCTORS SECTION - Modern Slider
   ============================================ */
.doctors-section {
  background: var(--color-bg-secondary);
}

.doctor-slider {
  position: relative;
  overflow: hidden;
}

.doctor-slider-container {
  display: flex;
  transition: transform var(--transition-slow);
}

.doctor-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding: var(--space-10);
}

@media (min-width: 768px) {
  .doctor-slide {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-12);
    padding: var(--space-12);
  }
}

.doctor-image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}

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

.doctor-slide:hover .doctor-image {
  transform: scale(1.05);
}

.doctor-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4);
}

.doctor-name {
  font-size: var(--text-h2);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.doctor-credentials {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-8);
}

.doctor-bio {
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.doctor-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-subtle);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  border: 1px solid var(--color-primary-light);
}

/* Slider Navigation */
.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.slider-btn {
  width: 44px;
  height: 44px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.slider-btn:hover .material-symbols-outlined {
  color: white;
}

.slider-btn .material-symbols-outlined {
  font-size: 24px;
  color: var(--color-text-primary);
  transition: color var(--transition-base);
}

.slider-dots {
  display: flex;
  gap: var(--space-2);
}

.slider-dot {
  width: 12px;
  height: 12px;
  background: var(--color-border);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.slider-dot.active {
  background: var(--color-primary);
  width: 32px;
  border-radius: var(--radius-full);
}

.slider-dot:hover {
  background: var(--color-primary-light);
}

/* ============================================
   13. TESTIMONIALS - Social Proof
   ============================================ */
.testimonials-section {
  background: var(--color-bg-primary);
}

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

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

.testimonial-card {
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 0;
  right: var(--space-8);
  font-size: 120px;
  font-family: Georgia, serif;
  color: var(--color-primary-subtle);
  line-height: 1;
  pointer-events: none;
}

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

.testimonial-stars {
  color: #F59E0B;
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
}

.testimonial-quote {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-attribution {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.testimonial-location {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* ============================================
   14. CTA SECTION - Compelling
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta-section {
    padding: var(--space-24) 0;
  }
}

/* Decorative circles */
.cta-section::before,
.cta-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cta-section::before {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
}

.cta-section::after {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -50px;
}

.cta-container {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-headline {
  font-size: var(--text-h1);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-6);
  color: white;
}

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

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

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

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

.cta-buttons .btn-primary:hover {
  background: var(--color-bg-secondary);
  transform: translateY(-4px) scale(1.05);
}

.cta-buttons .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

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

/* ============================================
   15. CONTACT/LOCATION SECTION
   ============================================ */
.contact-section {
  background: var(--color-bg-secondary);
}

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

.location-card {
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.location-map {
  width: 100%;
  height: 300px;
}

@media (min-width: 768px) {
  .location-map {
    height: 400px;
  }
}

.location-map iframe {
  width: 100%;
  height: 100%;
}

.location-content {
  padding: var(--space-8);
}

@media (min-width: 768px) {
  .location-content {
    padding: var(--space-12);
  }
}

.location-name {
  font-size: var(--text-h2);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.location-subtitle {
  font-size: var(--text-body);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-8);
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.location-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.location-item .material-symbols-outlined {
  font-size: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.location-item strong {
  display: block;
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.location-item a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.location-item a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.location-item p {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

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

@media (min-width: 640px) {
  .location-buttons {
    flex-direction: row;
  }
}

/* ============================================
   16. FOOTER
   ============================================ */
.footer {
  background: var(--color-text-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  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: repeat(4, 1fr);
  }
}

.footer-column h4 {
  color: white;
  font-size: var(--text-h3);
  margin-bottom: var(--space-4);
  font-weight: var(--font-weight-semibold);
}

.footer-column p {
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

.footer-tagline {
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
}

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

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

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.footer-phone,
.footer-email {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: white;
  font-weight: var(--font-weight-medium);
}

.footer-phone .material-symbols-outlined,
.footer-email .material-symbols-outlined {
  font-size: 20px;
  color: var(--color-accent);
}

.footer-emergency {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.footer-portal-link {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all var(--transition-base);
}

.footer-portal-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

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

.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

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

.footer-legal a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

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

/* ============================================
   17. MOBILE OPTIMIZATION - SEO HEAVY
   ============================================ */
@media (max-width: 640px) {
  /* Touch-friendly spacing */
  .btn {
    min-height: 48px;
    padding: var(--space-4) var(--space-6);
  }
  
  /* Larger tap targets */
  a, button {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Prevent auto-zoom on iOS */
  input, select, textarea {
    font-size: 16px;
  }
  
  /* Stack elements on mobile */
  .hero-trust {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .service-grid {
    gap: var(--space-4);
  }
  
  .section-header {
    margin-bottom: var(--space-8);
  }
}

/* ============================================
   18. PRINT STYLES
   ============================================ */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  .navbar,
  .mobile-menu,
  .fab-booking,
  .services-marquee,
  .footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

/* ============================================
   19. ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--color-border-focus);
  outline-offset: 2px;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #D97252;
    --color-text-primary: #000000;
    --color-border: #333333;
  }
}

/* ============================================
   20. UTILITY CLASSES
   ============================================ */
.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;
}

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

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

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

/* ============================================
   END MODERN DESIGN SYSTEM v2.0
   ============================================ */
