/* Modern Family Medicine - Styles */

/* ========== CSS Variables ========== */
:root {
  /* Colors - Calming Medical Palette */
  --primary: #0A7B83;
  --primary-dark: #065A60;
  --primary-light: #14A3AD;
  --accent: #E8985E;
  --accent-hover: #D4844A;
  --text-dark: #1A1A2E;
  --text-medium: #4A5568;
  --text-light: #718096;
  --bg-white: #FFFFFF;
  --bg-light: #F7FAFC;
  --bg-cream: #FDF9F3;
  --border: #E2E8F0;
  --success: #38A169;
  --gradient-hero: linear-gradient(135deg, rgba(10, 123, 131, 0.85) 0%, rgba(6, 90, 96, 0.9) 100%);
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Sizing */
  --max-width: 1200px;
  --nav-height: 80px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ========== Reset & Base ========== */
*, *::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: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-family: var(--font-display);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-family: var(--font-display);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

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

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-medium);
}

/* ========== Utility Classes ========== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

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

.section--cream {
  background: var(--bg-cream);
}

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

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.section-title {
  margin-bottom: var(--space-md);
}

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

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  gap: var(--space-sm);
}

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

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

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

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

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

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

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

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

.btn--lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.125rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.nav__logo svg {
  width: 40px;
  height: 40px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-weight: 500;
  color: var(--text-dark);
  padding: var(--space-sm) 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
}

.nav__phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  color: var(--primary);
}

.nav__phone svg {
  width: 20px;
  height: 20px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--transition-fast);
}

/* Mobile Navigation */
@media (max-width: 968px) {
  .nav__toggle {
    display: flex;
  }
  
  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl);
    padding-top: calc(var(--nav-height) + var(--space-xl));
    gap: var(--space-lg);
    background: #1a7a7a !important;
    background-color: #1a7a7a !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 9999;
    -webkit-transform: translateX(100%);
    -webkit-overflow-scrolling: touch;
  }
  
  .nav__menu.open {
    transform: translateX(0);
    -webkit-transform: translateX(0);
  }
  
  /* Ensure menu covers everything */
  .nav__menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a7a7a;
    z-index: -1;
  }
  
  .nav__menu .nav__link {
    color: white;
    font-weight: 600;
  }
  
  .nav__menu .nav__link:hover,
  .nav__menu .nav__link.active {
    color: rgba(255,255,255,0.8);
  }
  
  .nav__menu .nav__phone {
    color: white;
    background: rgba(255,255,255,0.15);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
  }
  
  .nav__link {
    font-size: 1.25rem;
  }
  
  .nav__toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .nav__toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
  max-width: 900px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(5px);
  animation: fadeInUp 0.6s ease;
}

.hero__title {
  color: white;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero .btn-group {
  justify-content: center;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
}

.hero__feature svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Cards ========== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

.card__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: var(--primary);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

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

.card__text {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Expandable Cards */
.card--expandable {
  cursor: pointer;
  position: relative;
}

.card--expandable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__expand-icon {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
  color: var(--primary);
  transition: transform var(--transition-base);
}

.card__expand-icon svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.card--expanded .card__expand-icon svg {
  transform: rotate(180deg);
}

.card__expanded-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease, padding var(--transition-slow) ease, opacity var(--transition-base);
  opacity: 0;
  padding-top: 0;
}

.card--expanded .card__expanded-content {
  max-height: 500px;
  opacity: 1;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  margin-top: var(--space-lg);
}

.card__expanded-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card__expanded-content li {
  padding: var(--space-sm) 0;
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  padding-left: var(--space-lg);
}

.card__expanded-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.card__expanded-content li strong {
  color: var(--text-dark);
}

/* Card Grid */
.card-grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

@media (max-width: 480px) {
  .card-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* ========== Feature Section ========== */
.features {
  display: grid;
  gap: var(--space-2xl);
}

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

.feature-row:nth-child(even) .feature-content {
  order: 2;
}

.feature-row:nth-child(even) .feature-image {
  order: 1;
}

.feature-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-content h3 {
  margin-bottom: var(--space-md);
  font-size: 1.75rem;
}

.feature-content p {
  margin-bottom: var(--space-lg);
}

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

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  color: var(--text-medium);
}

.feature-list svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--success);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .feature-row:nth-child(even) .feature-content,
  .feature-row:nth-child(even) .feature-image {
    order: unset;
  }
}

/* ========== CTA Section ========== */
.cta {
  position: relative;
  background: var(--gradient-hero);
  text-align: center;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.cta .btn-group {
  justify-content: center;
}

/* ========== Pricing Cards ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card--featured {
  border: 2px solid var(--accent);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-card__header {
  text-align: center;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}

.pricing-card__name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-xs);
}

.pricing-card__amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.pricing-card__period {
  color: var(--text-light);
  font-size: 1rem;
}

.pricing-card__monthly {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-top: var(--space-sm);
}

.pricing-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  color: var(--text-medium);
}

.pricing-card__feature svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--success);
  margin-top: 2px;
}

.pricing-card .btn {
  width: 100%;
}

/* ========== Team/Doctor Cards ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-2xl);
  max-width: 900px;
  margin: 0 auto;
}

.doctor-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.doctor-card__image {
  aspect-ratio: 4/3;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 4rem;
  overflow: hidden;
}

.doctor-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card__content {
  padding: var(--space-xl);
}

.doctor-card__name {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.doctor-card__title {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.doctor-card__credentials {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.doctor-card__credential {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-light);
  font-size: 0.9375rem;
}

.doctor-card__credential svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.doctor-card__bio {
  color: var(--text-medium);
  line-height: 1.7;
}

/* ========== Services Grid ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-lg);
  color: white;
}

.service-card__icon svg {
  width: 36px;
  height: 36px;
}

.service-card__title {
  margin-bottom: var(--space-sm);
}

.service-card__text {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Expandable Service Cards */
.service-card--expandable {
  cursor: pointer;
  position: relative;
}

.service-card__expand-icon {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
  color: var(--primary);
  transition: transform var(--transition-base);
}

.service-card__expand-icon svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.service-card--expanded .service-card__expand-icon svg {
  transform: rotate(180deg);
}

.service-card__expanded-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease, padding var(--transition-slow) ease, opacity var(--transition-base);
  opacity: 0;
  padding-top: 0;
  text-align: left;
}

.service-card--expanded .service-card__expanded-content {
  max-height: 500px;
  opacity: 1;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  margin-top: var(--space-lg);
}

.service-card__expanded-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card__expanded-content li {
  padding: var(--space-sm) 0;
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  padding-left: var(--space-lg);
}

.service-card__expanded-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.service-card__expanded-content li strong {
  color: var(--text-dark);
}

/* ========== Testimonials Section ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

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

.testimonial {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-base);
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

@media (max-width: 768px) {
  .testimonial--featured {
    grid-column: span 1;
  }
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: var(--space-md);
  left: var(--space-lg);
}

.testimonial--featured .testimonial__quote {
  color: white;
  opacity: 0.3;
}

.testimonial__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-medium);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-lg);
}

.testimonial--featured .testimonial__text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
}

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

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.testimonial--featured .testimonial__avatar {
  background: rgba(255, 255, 255, 0.2);
}

.testimonial__info {
  display: flex;
  flex-direction: column;
}

.testimonial__name {
  font-weight: 600;
  color: var(--text-dark);
}

.testimonial--featured .testimonial__name {
  color: white;
}

.testimonial__badge {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

.testimonial--featured .testimonial__badge {
  color: rgba(255, 255, 255, 0.8);
}

/* ========== Contact Section ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

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

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

.contact-item {
  display: flex;
  gap: var(--space-lg);
}

.contact-item__icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item__icon svg {
  width: 24px;
  height: 24px;
}

.contact-item__content h4 {
  margin-bottom: var(--space-xs);
}

.contact-item__content p {
  color: var(--text-medium);
  margin-bottom: 0;
}

.contact-item__content a {
  color: var(--primary);
  font-weight: 500;
}

.contact-form {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 123, 131, 0.1);
}

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

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

/* Map Container */
.map-container {
  margin-top: var(--space-3xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== Stats Section ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

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

.stat__number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat__label {
  color: var(--text-light);
  font-size: 1rem;
}

/* ========== Comparison Section ========== */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

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

.comparison__column {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

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

.comparison__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 1.125rem;
}

.comparison__column--bad .comparison__title svg {
  color: #E53E3E;
}

.comparison__column--good .comparison__title svg {
  color: var(--success);
}

.comparison__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.comparison__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-medium);
}

.comparison__item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.comparison__column--bad .comparison__item svg {
  color: #E53E3E;
}

.comparison__column--good .comparison__item svg {
  color: var(--success);
}

/* ========== Footer ========== */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

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

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
}

.footer__logo svg {
  width: 36px;
  height: 36px;
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 0;
}

.footer__column h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: white;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

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

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

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

.footer__social svg {
  width: 20px;
  height: 20px;
}

/* ========== Page Headers ========== */
.page-header {
  background: var(--gradient-hero);
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: var(--space-md);
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

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

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

/* ========== Loading State ========== */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ========== Toast Notifications ========== */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  padding: var(--space-md) var(--space-xl);
  background: var(--text-dark);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-base);
  z-index: 2000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast--success {
  background: var(--success);
}

.toast--error {
  background: #E53E3E;
}

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

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  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 pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  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%;
  }
}

/* Hero Animations */
.hero__badge {
  animation: fadeInDown 0.6s ease-out 0.2s both;
}

.hero__title {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__subtitle {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero .btn-group {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero__features {
  animation: fadeInUp 0.8s ease-out 1s both;
}

/* Staggered Card Animations */
.card-grid.visible .card,
.services-grid.visible .service-card,
.testimonials-grid.visible .testimonial {
  animation: fadeInUp 0.6s ease-out both;
}

.card-grid.visible .card:nth-child(1),
.services-grid.visible .service-card:nth-child(1),
.testimonials-grid.visible .testimonial:nth-child(1) { animation-delay: 0.1s; }

.card-grid.visible .card:nth-child(2),
.services-grid.visible .service-card:nth-child(2),
.testimonials-grid.visible .testimonial:nth-child(2) { animation-delay: 0.2s; }

.card-grid.visible .card:nth-child(3),
.services-grid.visible .service-card:nth-child(3),
.testimonials-grid.visible .testimonial:nth-child(3) { animation-delay: 0.3s; }

.services-grid.visible .service-card:nth-child(4),
.testimonials-grid.visible .testimonial:nth-child(4) { animation-delay: 0.4s; }

.services-grid.visible .service-card:nth-child(5) { animation-delay: 0.5s; }
.services-grid.visible .service-card:nth-child(6) { animation-delay: 0.6s; }
.services-grid.visible .service-card:nth-child(7) { animation-delay: 0.7s; }
.services-grid.visible .service-card:nth-child(8) { animation-delay: 0.8s; }
.services-grid.visible .service-card:nth-child(9) { animation-delay: 0.9s; }

/* Stats Animation */
.stats.visible .stat {
  animation: scaleIn 0.5s ease-out both;
}

.stats.visible .stat:nth-child(1) { animation-delay: 0.1s; }
.stats.visible .stat:nth-child(2) { animation-delay: 0.2s; }
.stats.visible .stat:nth-child(3) { animation-delay: 0.3s; }
.stats.visible .stat:nth-child(4) { animation-delay: 0.4s; }

/* Icon Floating Effect */
.card__icon,
.service-card__icon {
  transition: transform 0.3s ease;
}

.card:hover .card__icon,
.service-card:hover .service-card__icon {
  animation: float 2s ease-in-out infinite;
}

/* Button Hover Enhancements */
.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%;
}

/* Doctor Card Hover */
.doctor-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.doctor-card__image img {
  transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-card__image img {
  transform: scale(1.05);
}

/* Testimonial Quote Animation */
.testimonial__quote {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.testimonial:hover .testimonial__quote {
  transform: scale(1.2);
  opacity: 0.4;
}

/* Feature Row Animation */
.feature-row.visible .feature-content {
  animation: fadeInLeft 0.8s ease-out both;
}

.feature-row.visible .feature-image {
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

/* CTA Section Pulse */
.cta .btn--white {
  animation: pulse 2s ease-in-out infinite;
  animation-delay: 1s;
}

/* Section Title Animation */
.section-title {
  position: relative;
}

.section.visible .section-title {
  animation: fadeInUp 0.6s ease-out both;
}

.section.visible .section-subtitle {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Team Grid Animation */
.team-grid.visible .doctor-card {
  animation: fadeInUp 0.6s ease-out both;
}

.team-grid.visible .doctor-card:nth-child(1) { animation-delay: 0.1s; }
.team-grid.visible .doctor-card:nth-child(2) { animation-delay: 0.2s; }
.team-grid.visible .doctor-card:nth-child(3) { animation-delay: 0.3s; }

/* Nav Link Hover Effect */
.nav__link {
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Scroll-triggered fade-in (enhanced) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Reduce 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;
  }
}

/* Patient Portal Button in Nav */
.nav__link--portal {
  background-color: #0d9488;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.nav__link--portal:hover {
  background-color: #0f766e;
  color: white !important;
}

/* Office Photo Carousel */
.carousel {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 8px;
}

.carousel__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel__slide.active {
  opacity: 1;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.carousel__dot.active,
.carousel__dot:hover {
  background: white;
}

/* Insurance Grid */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .insurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.insurance-category {
  background: white;
  padding: var(--space-lg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.insurance-category__title {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary);
}

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

.insurance-list li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid #f0f0f0;
}

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