/* ============================================================
   CENTRE DENTAIRE — SITE VITRINE
   Design System (same style as the management app)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  /* Colors — medical clean blue */
  --color-primary: #2563eb;
  /* blue-600 */
  --color-primary-dark: #1d4ed8;
  /* blue-700 */
  --color-primary-light: #60a5fa;
  /* blue-400 */
  --color-primary-bg: #eff6ff;
  /* blue-50 */

  --color-bg: #f8fafc;
  /* slate-50 */
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  /* slate-200 */

  --color-text: #0f172a;
  /* slate-900 */
  --color-text-secondary: #64748b;
  /* slate-500 */
  --color-text-muted: #94a3b8;
  /* slate-400 */

  --color-dark-bg: #0f172a;
  /* slate-900 */
  --color-dark-surface: #1e293b;
  /* slate-800 */
  --color-dark-border: #334155;
  /* slate-700 */

  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows — same cards as app */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, .08), 0 1px 2px -1px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .07), 0 2px 4px -2px rgba(0, 0, 0, .06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -4px rgba(0, 0, 0, .05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .10), 0 8px 10px -6px rgba(0, 0, 0, .04);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, .25);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Spacing */
  --section-py: 96px;

  /* Transitions */
  --transition: all .25s cubic-bezier(.4, 0, .2, 1);
  --transition-slow: all .4s cubic-bezier(.4, 0, .2, 1);

  /* Navbar */
  --navbar-height: 68px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
}

/* ─── Utility ────────────────────────────────────────────── */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ─── Typography ─────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-bg);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -.02em;
}

.section-title span {
  color: var(--color-primary);
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  max-width: 580px;
  line-height: 1.75;
}

.section-desc.centered {
  margin: 0 auto;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: .9375rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  border: 1.5px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 1px 2px rgba(37, 99, 235, .35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}

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

.btn-outline:hover {
  background: var(--color-primary-bg);
  transform: translateY(-1px);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, .2);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: .875rem;
}

/* ─── Cards (shadcn-style like the app) ──────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: #bfdbfe;
}

.card-body {
  padding: 24px;
}

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
}

.badge-indigo {
  background: var(--color-primary-bg);
  color: var(--color-primary-dark);
  border: 1px solid #bfdbfe;
}

.badge-green {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-orange {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-pink {
  background: #fdf2f8;
  color: #9d174d;
  border: 1px solid #f9a8d4;
}

/* ─── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 0;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  transition: var(--transition);
}

#navbar.transparent {
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.navbar-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .35);
}

.logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -.01em;
}

/* Nav Links */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

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

/* Navbar CTA */
.navbar-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#nav-login-btn {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, .35);
}

#nav-login-btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

#nav-patient-btn {
  color: var(--color-primary);
  border-color: #bfdbfe;
  background: #ffffff;
}

#nav-patient-btn:hover {
  background: var(--color-primary-bg);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

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

.mobile-menu .nav-link {
  display: block;
  padding: 12px 16px;
  color: var(--color-text);
}

.mobile-menu .nav-link:hover {
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border-radius: var(--radius-md);
}

.mobile-menu .btn {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

/* ─── HERO ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(145deg, #f8fafc 0%, #edf4fc 35%, #eef2ff 70%, #f8fafc 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

/* Background pattern */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 35%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 25%, rgba(14, 165, 233, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(147, 197, 253, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

/* Grid pattern overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='rgba(37,99,235,0.035)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 80px 20px;
}

.hero-content {}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: #2563eb;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .6;
    transform: scale(.8);
  }
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: #0f172a;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: #2563eb;
  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #475569;
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

#hero-contact-btn {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

#hero-contact-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-stat-item {}

.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-num span {
  color: #2563eb;
}

.hero-stat-label {
  font-size: .8125rem;
  color: #64748b;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(203, 213, 225, 0.8);
}

/* Hero image */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(14, 165, 233, 0.08) 50%, transparent 75%);
  filter: blur(40px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-image-wrapper {
  position: relative;
  z-index: 1;
  width: 480px;
  height: 460px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 2;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

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

/* Floating cards on hero */
.hero-float-card {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  animation: float 4.5s ease-in-out infinite;
}

.hero-float-card:nth-child(2) {
  animation-delay: 1s;
}

.hero-float-card:nth-child(3) {
  animation-delay: 2s;
}

@keyframes float {

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

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

.hero-float-card.card-top-left {
  top: 6%;
  left: -8%;
}

.hero-float-card.card-top-right {
  top: 14%;
  right: -10%;
}

.hero-float-card.card-bottom-right {
  bottom: 8%;
  right: -8%;
}


.float-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.float-icon.indigo {
  background: var(--color-primary-bg);
}

.float-icon.green {
  background: #dcfce7;
}

.float-icon.orange {
  background: #fff7ed;
}

.float-card-label {
  font-size: .6875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.float-card-value {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

/* ─── ABOUT ──────────────────────────────────────────────── */
#about {
  background: var(--color-bg);
  padding: var(--section-py) 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/5;
}

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

.about-stat-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 20px 24px;
  min-width: 160px;
}

.about-stat-big {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.about-stat-small {
  font-size: .8125rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.about-content {}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: var(--transition);
}

.about-value-item:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
}

.about-value-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.about-value-title {
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.about-value-desc {
  font-size: .8125rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ─── SERVICES ───────────────────────────────────────────── */
#services {
  background: var(--color-surface);
  padding: var(--section-py) 0;
}

.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

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

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

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

.service-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-desc {
  font-size: .9rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.service-price {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--color-primary);
}

.service-price span {
  font-size: .75rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.service-duration {
  font-size: .8125rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ─── TEAM ───────────────────────────────────────────────── */
#team {
  background: var(--color-bg);
  padding: var(--section-py) 0;
}

.team-header {
  text-align: center;
  margin-bottom: 56px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

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

.team-card-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-primary-bg);
  position: relative;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.team-card:hover .team-card-photo img {
  transform: scale(1.05);
}

.team-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary-bg), #e0e7ff);
}

.team-card-body {
  padding: 20px;
}

.team-card-role {
  margin-bottom: 8px;
}

.team-card-name {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card-specialty {
  font-size: .8125rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-bottom: 14px;
}

.team-card-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  color: var(--color-text-secondary);
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ─── WHY US ─────────────────────────────────────────────── */
#why-us {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

#why-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 60%, rgba(37, 99, 235, .18) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(14, 165, 233, .14) 0%, transparent 40%);
  pointer-events: none;
}

.why-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.why-header .section-label {
  color: var(--color-primary-light);
  background: rgba(37, 99, 235, .15);
  border-color: rgba(37, 99, 235, .3);
}

.why-header .section-title {
  color: #fff;
}

.why-header .section-desc {
  color: rgba(255, 255, 255, .6);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.why-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.why-card:hover {
  background: rgba(37, 99, 235, .15);
  border-color: rgba(37, 99, 235, .4);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, .2);
}

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: rgba(37, 99, 235, .2);
  border: 1px solid rgba(37, 99, 235, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  margin: 0 auto 18px;
  transition: var(--transition);
}

.why-card:hover .why-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.why-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.why-desc {
  font-size: .875rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.65;
}

/* ─── CLINIC GALLERY ─────────────────────────────────────── */
#clinic-gallery {
  background: var(--color-bg);
  padding: var(--section-py) 0;
}

.clinic-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: #bfdbfe;
}

.gallery-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.25) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}

.gallery-overlay .badge {
  align-self: flex-start;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.gallery-caption {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

/* ─── TESTIMONIALS ───────────────────────────────────────── */
#testimonials {
  background: var(--color-surface);
  padding: clamp(48px, 5vw, 64px) 0;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 36px;
}

.testimonials-carousel-wrapper {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 10px;
}

.testimonials-track-wrapper {
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 4px;
}

.testimonials-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  gap: 16px;
  align-items: stretch;
}

.testimonial-slide {
  flex: 0 0 calc(33.333% - 11px);
  min-width: calc(33.333% - 11px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px 18px;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.07);
  transform: translateY(-2px);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-primary-light);
  opacity: .2;
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
  color: #f59e0b;
  font-size: .8125rem;
}

.testimonial-text {
  font-size: .84rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  width: 100%;
}

.testimonial-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1px;
  color: var(--color-text);
}

.testimonial-since {
  font-size: .75rem;
  color: var(--color-text-muted);
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  color: var(--color-text-secondary);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.carousel-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-primary);
  width: 18px;
  border-radius: 3px;
}


/* ─── PATIENT PORTAL CTA ─────────────────────────────────── */
#patient-portal {
  background: var(--color-bg);
  padding: var(--section-py) 0;
}

.portal-inner {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--radius-xl);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.portal-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(37, 99, 235, .2) 0%, transparent 50%);
  pointer-events: none;
}

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

.portal-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  background: rgba(37, 99, 235, .15);
  border: 1px solid rgba(37, 99, 235, .3);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: 20px;
}

.portal-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.portal-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.7;
  margin-bottom: 24px;
}

.portal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.portal-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-md);
  padding: 8px 14px;
}

.portal-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-mock {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-xl);
  padding: 24px;
  min-width: 280px;
  backdrop-filter: blur(12px);
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mock-logo {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: .875rem;
}

.mock-title {
  font-size: .9375rem;
  font-weight: 600;
  color: #fff;
}

.mock-sub {
  font-size: .75rem;
  color: rgba(255, 255, 255, .5);
}

.mock-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.mock-item:last-child {
  border: none;
}

.mock-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  flex-shrink: 0;
}

.mock-item-label {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .6);
}

.mock-item-value {
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
}

/* ─── CONTACT ────────────────────────────────────────────── */
#contact {
  background: var(--color-surface);
  padding: var(--section-py) 0;
}

.contact-header {
  text-align: center;
  margin-bottom: 56px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {}

.contact-info-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.contact-info-title {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.contact-detail:last-child {
  margin: 0;
}

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

.contact-detail-label {
  font-size: .8125rem;
  color: var(--color-text-muted);
}

.contact-detail-value {
  font-size: .9375rem;
  font-weight: 600;
}

/* Hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-border);
}

.hours-table tr:last-child {
  border: none;
}

.hours-table td {
  padding: 9px 0;
  font-size: .9rem;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.hours-closed {
  color: var(--color-error);
  font-weight: 600;
}

/* Form */
.contact-form-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 7px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: .9375rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  transition: var(--transition);
  outline: none;
  resize: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-textarea {
  height: 100px;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
#footer {
  background: #0f172a;
  color: rgba(255, 255, 255, .7);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand .navbar-logo {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: .9rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 260px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
  transition: var(--transition);
}

.footer-social:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.footer-col-title {
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: .02em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: .875rem;
  color: rgba(255, 255, 255, .5);
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8375rem;
  color: rgba(255, 255, 255, .4);
}

.footer-bottom a {
  color: var(--color-primary-light);
}

/* ─── SCROLL ANIMATIONS ──────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.animate-on-scroll.delay-1 {
  transition-delay: .1s;
}

.animate-on-scroll.delay-2 {
  transition-delay: .2s;
}

.animate-on-scroll.delay-3 {
  transition-delay: .3s;
}

.animate-on-scroll.delay-4 {
  transition-delay: .4s;
}

.animate-on-scroll.delay-5 {
  transition-delay: .5s;
}

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

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero-image-wrapper {
    width: 400px;
    height: 380px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 56px;
  }

  /* Navbar */
  .navbar-links {
    display: none;
  }

  .navbar-cta .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  #hero {
    min-height: auto;
    padding-top: var(--navbar-height);
    padding-bottom: 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    padding: 32px 16px 20px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: .975rem;
    margin: 0 auto 24px;
    line-height: 1.65;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 10px;
    margin-bottom: 28px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }

  .hero-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    gap: 8px;
    padding-top: 20px;
  }

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

  .hero-stat-num {
    font-size: 1.35rem;
    margin-bottom: 2px;
  }

  .hero-stat-label {
    font-size: .72rem;
    line-height: 1.3;
  }

  .hero-stat-divider {
    height: 30px;
  }

  /* Hero Visual on mobile */
  .hero-visual {
    order: -1;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .hero-image-wrapper {
    width: 100%;
    max-width: 320px;
    height: 280px;
    border-radius: 22px;
  }

  .hero-img {
    border-radius: 22px;
  }

  .hero-float-card {
    padding: 8px 12px;
    gap: 8px;
    border-radius: var(--radius-md);
  }

  .hero-float-card .float-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: .8125rem;
  }

  .hero-float-card .float-card-label {
    font-size: .625rem;
  }

  .hero-float-card .float-card-value {
    font-size: .8125rem;
  }

  .hero-float-card.card-top-left {
    top: -10px;
    left: -4px;
  }

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

  .hero-float-card.card-bottom-right {
    bottom: -10px;
    right: -4px;
  }

  /* About */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    max-width: 340px;
    margin: 0 auto;
  }

  .about-img-main {
    border-radius: var(--radius-lg);
  }

  .about-stat-card {
    position: absolute;
    right: 8px;
    bottom: -16px;
    padding: 12px 18px;
    min-width: 130px;
  }

  .about-stat-big {
    font-size: 1.75rem;
  }

  .about-stat-small {
    font-size: .75rem;
  }

  .about-values {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 22px 20px;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    gap: 20px;
  }

  /* Why Us */
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .why-card {
    padding: 20px 16px;
  }

  .why-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .why-title {
    font-size: .9375rem;
  }

  .why-desc {
    font-size: .8125rem;
  }

  /* Clinic Gallery on Mobile */
  .clinic-gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 420px;
    margin: 0 auto;
  }

  /* Testimonials */
  .testimonials-carousel-wrapper {
    padding: 0 4px;
  }

  .testimonial-slide {
    flex: 0 0 100% !important;
    min-width: 100% !important;
  }

  .testimonial-card {
    padding: 16px 18px;
  }

  .carousel-controls {
    margin-top: 18px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  /* Patient Portal CTA */
  .portal-inner {
    grid-template-columns: 1fr;
    padding: 36px 20px;
    text-align: center;
    gap: 24px;
    border-radius: var(--radius-lg);
  }

  .portal-label {
    margin-bottom: 14px;
  }

  .portal-features {
    justify-content: center;
    gap: 8px;
  }

  .portal-feature {
    font-size: .8125rem;
    padding: 6px 12px;
  }

  .portal-visual {
    display: none;
  }

  #portal-access-btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    justify-content: center;
  }

  /* Contact & Hours */
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    padding: 20px 16px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 0;
  }
}

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

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

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

  .container {
    padding: 0 16px;
  }
}