/* ===================================================
   MAA DENTAL CLINIC & IMPLANT CENTER
   Design System & Styles
   =================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Primary Palette — Teal / Mint */
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  /* Accent — Soft Blue */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic Colors */
  --primary: var(--teal-600);
  --primary-light: var(--teal-100);
  --primary-dark: var(--teal-800);
  --accent: var(--blue-400);
  --accent-light: var(--blue-50);
  --star-gold: #f59e0b;
  --whatsapp-green: #25d366;
  --phone-blue: #3b82f6;
  --success: #10b981;
  --bg-body: var(--gray-50);
  --bg-card: var(--white);
  --text-primary: var(--gray-800);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-400);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing Scale */
  --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;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1200px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

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

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  background: var(--teal-700);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1eb855;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
}

.btn-call {
  background: var(--phone-blue);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.btn-call:hover {
  background: #2563eb;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(20, 184, 166, 0.03);
  color: var(--teal-800);
  border: 2px solid var(--teal-300);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.2);
  transform: translateY(-2px);
}

.btn svg,
.btn .btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(13, 148, 136, 0.06);
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.06);
  height: 68px; /* Slightly shrink header on scroll for premium feel */
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(20, 184, 166, 0.25);
  transition: all var(--transition-base);
}

.nav-brand:hover .nav-logo {
  transform: rotate(-8deg) scale(1.05);
  box-shadow: 0 6px 14px rgba(20, 184, 166, 0.35);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.nav-brand-sub {
  font-size: 0.6875rem;
  color: var(--teal-600);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all var(--transition-fast);
  position: relative;
  letter-spacing: 0.01em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: 20px;
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-600);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 16px; /* modern small underline dot/bar */
}

.nav-cta {
  display: flex;
  gap: 10px;
}

.nav-cta .btn {
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-full); /* Clean pill shape */
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.nav-cta .btn-whatsapp {
  background: var(--whatsapp-green);
  color: var(--white);
}

.nav-cta .btn-whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
  transform: translateY(-1.5px);
}

.nav-cta .btn-call {
  background: var(--phone-blue);
  color: var(--white);
}

.nav-cta .btn-call:hover {
  background: #2563eb;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
  transform: translateY(-1.5px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

/* Mobile nav overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-mobile-overlay.open {
  opacity: 1;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  transform: translateY(-10px);
  opacity: 0;
  transition: all var(--transition-base);
}

.nav-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.nav-mobile-menu a {
  display: block;
  padding: 14px 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--gray-100);
}

.nav-mobile-menu a:last-child {
  border-bottom: none;
}

.nav-mobile-menu .mobile-cta {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.nav-mobile-menu .mobile-cta .btn {
  flex: 1;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(135deg, var(--white) 0%, var(--teal-50) 50%, var(--blue-50) 100%);
  overflow: hidden;
}

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

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 1rem;
  background: var(--teal-50);
  color: var(--teal-700);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  border: 1px solid var(--teal-100);
  animation: fadeInUp 0.6s ease forwards;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.pulse-dot::after {
  content: '';
  width: 100%;
  height: 100%;
  background-color: var(--success);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  animation: pulse 1.8s infinite ease-in-out;
  opacity: 0.75;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s 0.1s ease forwards;
  opacity: 0;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(20, 184, 166, 0.15);
  border-radius: 4px;
  z-index: -1;
}

.hero-description {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s 0.2s ease forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.6s 0.3s ease forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  animation: fadeInUp 0.6s 0.4s ease forwards;
  opacity: 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.8s 0.3s ease forwards;
  opacity: 0;
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(13, 148, 136, 0.12), 0 8px 24px rgba(0, 0, 0, 0.04);
  border: 4px solid var(--white);
  transition: transform var(--transition-slow);
}

.hero-image:hover {
  transform: scale(1.01) translateY(-2px);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, var(--teal-200), var(--teal-100));
  border-radius: 50%;
  z-index: -1;
  opacity: 0.6;
}

.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.08), var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  transition: all var(--transition-base);
}

.hero-float-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.hero-float-card.card-rating {
  bottom: 24px;
  left: -40px;
  animation: float 4s ease-in-out infinite;
}

.hero-float-card.card-patients {
  top: 24px;
  right: -30px;
  animation: float 4s ease-in-out infinite 2s;
}

.hero-float-card .card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-float-card .card-icon.green {
  background: rgba(20, 184, 166, 0.12);
  color: var(--teal-600);
}

.hero-float-card .card-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-500);
}

.hero-float-card .card-text strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.hero-float-card .card-text span {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

.hero-float-card .stars {
  color: var(--star-gold);
  font-size: 0.6875rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* --- About Section --- */
.about {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

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

.about-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about-image-badge {
  position: absolute;
  bottom: -16px;
  right: 24px;
  background: var(--primary);
  color: var(--white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about-image-badge strong {
  display: block;
  font-size: 1.15rem;
  font-family: var(--font-serif);
  line-height: 1.25;
  margin-bottom: 6px;
}

.about-image-badge span {
  display: block;
  font-size: 0.8rem;
  opacity: 0.95;
  line-height: 1.3;
}

.about-content {
  max-width: 520px;
}

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.credential-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.375rem 0.75rem;
  background: var(--teal-50);
  color: var(--teal-700);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--teal-100);
}

.about-text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.about-highlight .check-icon {
  width: 20px;
  height: 20px;
  background: var(--teal-100);
  color: var(--teal-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}

/* --- Services Section --- */
.services {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.services-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* Center the lone 7th card in a 3-column grid */
.service-card--centered {
  grid-column: 2 / 3;
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card--centered {
    grid-column: auto;
  }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

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

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

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}

.service-icon.teal {
  background: var(--teal-50);
  color: var(--teal-600);
}

.service-icon.blue {
  background: var(--blue-50);
  color: var(--blue-500);
}

.service-icon.mint {
  background: #ecfdf5;
  color: #059669;
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-highlight {
  border: 2px solid var(--teal-200);
  background: linear-gradient(135deg, var(--white), var(--teal-50));
}

.service-highlight .service-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: 0.25rem 0.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Why Choose Us --- */
.why-us {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.why-us-card {
  position: relative;
  text-align: center;
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
}

.why-us-card:hover {
  transform: translateY(-5px);
  border-color: var(--teal-500);
  box-shadow: var(--shadow-lg);
}

.why-us-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--teal-50), var(--blue-50));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  transition: transform var(--transition-base);
}

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

.why-us-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.why-us-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Reviews Section --- */
.reviews {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--teal-50) 0%, var(--blue-50) 50%, var(--gray-50) 100%);
}

.reviews-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.reviews-google-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.reviews-google-badge img {
  width: 20px;
  height: 20px;
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 -var(--space-lg);
  padding: 0 var(--space-lg);
}

.reviews-track {
  display: flex;
  gap: var(--space-lg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
  flex: 0 0 calc(33.333% - var(--space-lg));
  min-width: 300px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all var(--transition-base);
}

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

.review-card .quote-icon {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 2rem;
  color: var(--teal-100);
  line-height: 1;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.review-stars .star {
  color: var(--star-gold);
  font-size: 0.875rem;
}

.review-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

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

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.review-author-info strong {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-800);
}

.review-author-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.reviews-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.reviews-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.reviews-nav button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--teal-50);
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.reviews-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  position: relative;
}

.reviews-dots .dot::after {
  content: '';
  position: absolute;
  top: -18px;
  left: -18px;
  right: -18px;
  bottom: -18px;
}

.reviews-dots .dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* --- Location / Contact Section --- */
.contact {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

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

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

.contact-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.contact-card:hover {
  background: var(--teal-50);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.contact-card-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.contact-card-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.contact-card-content a:hover {
  color: var(--teal-700);
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.contact-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.footer-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}

.footer-address {
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 400px;
}

.footer-phone {
  font-size: 0.875rem;
}

.footer-phone a {
  color: var(--teal-400);
  font-weight: 500;
}

.footer-phone a:hover {
  color: var(--teal-300);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--gray-800);
  margin: var(--space-md) 0;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* --- Sticky Mobile CTA --- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: var(--space-sm) var(--space-md);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 998;
  gap: var(--space-sm);
  border-top: 1px solid var(--gray-100);
}

.mobile-sticky-cta .btn {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

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

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive Design --- */

/* Tablet */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    order: 2;
  }

  .hero-image-wrapper {
    order: 1;
  }

  .hero-image {
    width: 100%;
    max-width: 440px;
  }

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

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

  .hero-float-card.card-rating {
    left: 10px;
    bottom: 20px;
  }

  .hero-float-card.card-patients {
    right: 10px;
    top: 20px;
  }

  .about .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-content {
    max-width: 100%;
  }

  .about-image-wrapper {
    max-width: 320px;
  }

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

  .about-highlights {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile-menu {
    display: block;
  }

  .nav-mobile-overlay {
    display: block;
    pointer-events: none;
  }

  .nav-mobile-overlay.open {
    pointer-events: all;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --space-4xl: 3.5rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
  }

  .hero-image {
    width: 100%;
    max-width: 340px;
  }

  .about-image-wrapper {
    max-width: 280px;
  }

  .hero-float-card {
    display: none;
  }

  .hero-stats {
    gap: var(--space-xl);
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

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

  .review-card {
    flex: 0 0 calc(100% - var(--space-md));
    min-width: 260px;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .why-us-card {
    padding: var(--space-md);
  }

  .mobile-sticky-cta {
    display: flex;
    padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .about-highlights {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .contact-map {
    min-height: 280px;
  }

  .contact-map iframe {
    min-height: 280px;
  }
}

@media (max-width: 380px) {
  .why-us-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   CREDENTIALS & CERTIFICATIONS SECTION
   =================================================== */

.credentials {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

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

/* Two-column card grid */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Individual certificate card */
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              border-color 0.25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.cert-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--teal-500);
  box-shadow: 0 20px 48px rgba(13,148,136,0.18), 0 4px 16px rgba(0,0,0,0.15);
}

/* Top badge label */
.cert-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-400);
  background: rgba(13,148,136,0.12);
  border: 1px solid rgba(13,148,136,0.2);
  border-radius: 6px;
  padding: 5px 10px;
  margin: 14px 14px 0;
}

/* Image wrapper with hover overlay */
.cert-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f8f8f8;
  margin: 12px 12px 0;
  border-radius: 12px;
}

.cert-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.45s ease, filter 0.3s ease;
}

.cert-card:hover .cert-img-wrapper img {
  transform: scale(1.04);
  filter: brightness(0.75);
}

/* Zoom-in overlay */
.cert-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  background: rgba(0,0,0,0.25);
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.cert-card:hover .cert-overlay {
  opacity: 1;
}

/* Card info footer */
.cert-info {
  padding: 14px 16px 18px;
}

.cert-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cert-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.cert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cert-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal-400);
  background: rgba(13,148,136,0.1);
  border: 1px solid rgba(13,148,136,0.18);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.03em;
}

/* ===================================================
   CERTIFICATE LIGHTBOX
   =================================================== */

.cert-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.cert-lightbox.active {
  display: flex;
}

.cert-lightbox-inner {
  position: relative;
  max-width: 600px;
  width: 100%;
  animation: lightboxIn 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

.cert-lightbox-inner img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  display: block;
}

.cert-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-600);
  color: #fff;
  border: 2px solid var(--teal-400);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.cert-lightbox-close:hover {
  background: var(--teal-500);
  transform: scale(1.1) rotate(90deg);
}

.cert-lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  text-align: center;
  margin-top: 12px;
  letter-spacing: 0.02em;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .certs-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .cert-img-wrapper {
    aspect-ratio: 3 / 4;
  }
}

/* ===================================================
   CLINIC GALLERY SECTION
   =================================================== */
.gallery {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              border-color 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: var(--teal-500);
  box-shadow: 0 20px 48px rgba(13, 148, 136, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.gallery-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  background: rgba(15, 118, 110, 0.45); /* subtle teal overlay */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-info h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  line-height: 1.3;
}

.gallery-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ===================================================
   GALLERY LIGHTBOX
   =================================================== */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.gallery-lightbox.active {
  display: flex;
}

.gallery-lightbox-inner {
  position: relative;
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxIn 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.gallery-lightbox-inner img {
  max-height: 75vh;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  display: block;
  transition: opacity 0.15s ease-in-out;
}

.gallery-lightbox-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-600);
  color: var(--white);
  border: 2px solid var(--teal-400);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 1010;
}

.gallery-lightbox-close:hover {
  background: var(--teal-500);
  transform: scale(1.1) rotate(90deg);
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.2);
  border: 1px solid rgba(13, 148, 136, 0.4);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 1005;
}

.gallery-lightbox-nav:hover {
  background: var(--teal-600);
  border-color: var(--teal-400);
  transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox-nav.prev {
  left: -70px;
}

.gallery-lightbox-nav.next {
  right: -70px;
}

.gallery-lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  text-align: center;
  margin-top: 18px;
  letter-spacing: 0.02em;
  font-weight: 500;
  max-width: 600px;
}

/* Responsive Gallery */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .gallery-lightbox-nav.prev {
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  .gallery-lightbox-nav.next {
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  .gallery-lightbox-nav.prev:hover,
  .gallery-lightbox-nav.next:hover {
    background: var(--teal-600);
    border-color: var(--teal-400);
  }
}

@media (max-width: 640px) {
  .gallery {
    padding: var(--space-4xl) 0;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.25rem;
  }
  
  .gallery-lightbox-close {
    top: -50px;
    right: 0;
  }
  
  .gallery-lightbox-nav {
    width: 44px;
    height: 44px;
  }
}

/* ===================================================
   GLOSSY SHINE SWEEP INTERACTIVE EFFECT
   =================================================== */
.why-us-card::after,
.service-card::after,
.cert-card::after,
.gallery-card::after,
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.4) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 5;
}

/* Specific button overlay index adjustments if needed */
.btn::after {
  z-index: 2;
}

.why-us-card:hover::after,
.service-card:hover::after,
.cert-card:hover::after,
.gallery-card:hover::after,
.btn:hover::after {
  left: 150%;
  transition: left 0.85s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ===================================================
   HERO STAT TRUST SIGNAL LINKS
   =================================================== */
a.hero-stat.hero-stat-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  padding: 0.375rem 0.75rem;
  margin: -0.375rem -0.75rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
}

a.hero-stat.hero-stat-link:hover {
  background: rgba(13, 148, 136, 0.08);
  transform: translateY(-2px);
}

a.hero-stat.hero-stat-link .hero-stat-number {
  color: var(--teal-600);
}

a.hero-stat.hero-stat-link .hero-stat-label {
  color: var(--teal-700);
}

/* ===================================================
   CREDENTIALS — HORIZONTAL TIMELINE
   =================================================== */
.creds-timeline {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--teal-50), var(--white));
  border: 1px solid var(--teal-100);
  border-radius: 20px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.creds-timeline-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-600);
  margin-bottom: 2rem;
}

.creds-timeline-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.creds-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  position: relative;
  padding: 0 0.5rem;
}

.creds-tl-year {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal-700);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.creds-tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal-300);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal-400);
  flex-shrink: 0;
  margin-bottom: 0.75rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.creds-tl-dot--active {
  background: var(--teal-600);
  box-shadow: 0 0 0 3px var(--teal-300), 0 0 0 6px rgba(13, 148, 136, 0.15);
  width: 18px;
  height: 18px;
}

.creds-tl-milestone {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.3;
  margin-bottom: 0.375rem;
}

.creds-tl-detail {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.creds-timeline-connector {
  flex: 0 0 auto;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-300), var(--teal-500));
  margin-top: 2.5rem; /* align with dots row */
  border-radius: 1px;
  align-self: flex-start;
}

@media (max-width: 700px) {
  .creds-timeline {
    padding: 2rem 1rem;
    overflow-x: auto;
  }

  .creds-timeline-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .creds-timeline-track::-webkit-scrollbar {
    display: none;
  }

  .creds-timeline-item {
    min-width: 100px;
  }

  .creds-timeline-connector {
    width: 24px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .creds-timeline {
    padding: 2rem 1.5rem;
    overflow-x: visible;
  }

  .creds-timeline-track {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    overflow-x: visible;
    position: relative;
    padding-left: 0.5rem;
  }

  .creds-timeline-track::before {
    content: '';
    position: absolute;
    left: 69px; /* align with dots */
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--teal-300), var(--teal-500));
    z-index: 0;
  }

  .creds-timeline-item {
    display: grid;
    grid-template-columns: 50px 20px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    text-align: left;
    max-width: 100%;
    min-width: unset;
    padding: 0;
  }

  .creds-tl-year {
    grid-column: 1;
    grid-row: 1 / 3;
    font-size: 1.125rem;
    margin-bottom: 0;
    align-self: flex-start;
    padding-top: 2px;
    text-align: right;
  }

  .creds-tl-dot {
    grid-column: 2;
    grid-row: 1 / 3;
    margin-bottom: 0;
    align-self: flex-start;
    margin-top: 6px;
    z-index: 1;
  }

  .creds-tl-milestone {
    grid-column: 3;
    grid-row: 1;
    font-size: 0.875rem;
    margin-bottom: 0;
  }

  .creds-tl-detail {
    grid-column: 3;
    grid-row: 2;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .creds-timeline-connector {
    display: none;
  }

  .creds-timeline-legend {
    justify-content: flex-start;
    padding-left: 4rem;
  }
}

/* ===================================================
   REVIEWS — "VIEW ALL" GHOST BUTTON
   =================================================== */
.reviews-view-all {
  text-align: center;
  margin-top: 2rem;
}

.btn-google-reviews {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-google-reviews:hover {
  border-color: #4285F4;
  color: #4285F4;
  background: rgba(66, 133, 244, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

/* reviews-google-badge when it is an anchor */
a.reviews-google-badge {
  text-decoration: none;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
}

a.reviews-google-badge:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

/* ===================================================
   SPACING & TYPOGRAPHY PASS
   Increase inter-section whitespace; body copy line-height
   =================================================== */

/* Body paragraphs — target common paragraph selectors */
.about-text,
.service-card p,
.why-us-card p,
.review-text,
.contact-card-content p,
.section-subtitle,
.gallery-info p,
.cert-info p {
  line-height: 1.75;
}

/* Slightly larger gap between every top-level section */
.about      { padding: 7rem 0; }
.credentials { padding: 7rem 0; }
.services   { padding: 7rem 0; }
.why-us     { padding: 7rem 0; }
.gallery    { padding: 7rem 0; }
.reviews    { padding: 7rem 0; }
.contact    { padding: 7rem 0; }

/* Restore mobile padding — override above on small screens */
@media (max-width: 640px) {
  :root {
    --space-4xl: 3.5rem;
  }
  .about,
  .credentials,
  .services,
  .why-us,
  .gallery,
  .reviews,
  .contact {
    padding: var(--space-4xl) 0;
  }
}

/* ===================================================
   CREDENTIALS TIMELINE — TWO CONSISTENT NODE TYPES
   Education milestones (2012, 2016, 2020): hollow blue ring
   Practice milestones (2021, 2022): filled teal dot
   =================================================== */

/* Remove the old single --active variant */
.creds-tl-dot--active {
  background: var(--teal-300);
  box-shadow: 0 0 0 2px var(--teal-400);
  width: 14px;
  height: 14px;
}

/* Education: open ring with blue accent */
.creds-tl-dot--edu {
  background: white;
  border: 2.5px solid #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  width: 14px;
  height: 14px;
}

/* Practice: filled teal dot */
.creds-tl-dot--practice {
  background: var(--teal-600);
  border: 2.5px solid white;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
  width: 14px;
  height: 14px;
}

/* Timeline legend */
.creds-timeline-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.creds-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.creds-legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.creds-legend-dot--edu {
  background: white;
  border: 2px solid #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.creds-legend-dot--practice {
  background: var(--teal-600);
  border: 2px solid white;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

/* Timing rows in contact card (SVG + text inline) */
.timing-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.6;
}