/* ==========================================================================
   32 Dental Pearls Clinic — Dentist Portfolio Website Design System
   Stack: Vanilla HTML5 / CSS3 / JavaScript + Apple-Style Liquid Glass Refraction
   UI/UX Principles: Minimalist, Sleek, Calming Healthcare Aesthetics
   Sections: Introduction → Services → Portfolio → Testimonials → Contact
   ========================================================================== */


/* ---------- Design Tokens ---------- */
:root {
  /* Requested Color Palette Tokens */
  --vintage-lavender: #8A739C;     /* Primary Brand Accent */
  --cool-steel: #9D9FA8;           /* Secondary Accent & Muted Slate */
  --platinum: #F2F5FA;             /* Surface & Alternate Card BG */
  --bright-snow: #F8F9FA;          /* Main Canvas Background */
  --gunmetal: #36373D;             /* Primary Text & Deep Headings */

  /* Mapped Functional Palette Tokens */
  --color-primary: #36373D;        /* Gunmetal — Headers & Primary Text */
  --color-primary-soft: #52545D;   /* Dark Steel — Secondary Headers */
  --color-text-muted: #6C6E78;     /* Muted Steel — Body copy */
  --color-text-faint: #9D9FA8;     /* Cool Steel — Caption text */
  
  --color-brand: #8A739C;          /* Vintage Lavender — Primary Accent */
  --color-brand-hover: #755F86;    /* Deep Vintage Lavender */
  --color-brand-light: #F2EFF5;    /* Soft Vintage Lavender Tint */
  --color-brand-border: #DCD4E4;   /* Lavender Border Accent */
  
  --color-accent: #8A739C;         /* Vintage Lavender Accent */
  --color-accent-light: #F2F5FA;   /* Platinum Tint */
  --color-accent-border: #E2E6EF;  /* Platinum Border */

  --color-bg: #F8F9FA;             /* Bright Snow Clean Canvas */
  --color-bg-alt: #F2F5FA;         /* Platinum — Section Alternate */
  --color-bg-card: #FFFFFF;        /* Pure White Card Surface */
  
  --color-border: #E2E5EC;         /* Light Platinum Hairline Border */
  --color-border-hover: #9D9FA8;   /* Cool Steel Hover Border */
  
  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Figtree', system-ui, sans-serif;
  --font-body: 'Figtree', 'Inter', system-ui, sans-serif;

  /* Spacing Scale */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2.5rem;   /* 40px */
  --space-xl: 4.5rem;   /* 72px */
  --space-2xl: 6.5rem;  /* 104px */

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(54, 55, 61, 0.05);
  --shadow-md: 0 6px 24px -4px rgba(54, 55, 61, 0.06), 0 2px 6px -1px rgba(54, 55, 61, 0.04);
  --shadow-lg: 0 20px 40px -8px rgba(54, 55, 61, 0.08), 0 6px 16px -2px rgba(54, 55, 61, 0.03);
  --shadow-glow: 0 0 30px rgba(138, 115, 156, 0.25);

  /* Motion */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p {
  color: var(--color-text-muted);
}

/* Accessibility Focus & Skip Link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 1000;
  padding: 12px 24px;
  background: var(--color-brand);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 20px;
}

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

/* ---------- Ambient Glow Background ---------- */
.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(700px 500px at 15% 10%, rgba(138, 115, 156, 0.08), transparent 70%),
    radial-gradient(800px 600px at 85% 35%, rgba(157, 159, 168, 0.08), transparent 70%),
    radial-gradient(900px 700px at 50% 90%, rgba(138, 115, 156, 0.06), transparent 70%),
    var(--color-bg);
}

/* ---------- Layout Grid & Containers ---------- */
.container {
  width: min(1220px, 100% - clamp(1rem, 4vw, 3rem));
  margin-inline: auto;
}

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

.section-alt {
  background-color: var(--color-bg-alt);
  border-block: 1px solid var(--color-border);
}

.section-head {
  max-width: 680px;
  margin-bottom: var(--space-lg);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
  margin-bottom: var(--space-xs);
}

.section-head p {
  font-size: 1.125rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-brand-light);
  border: 1px solid var(--color-brand-border);
  color: var(--color-brand-hover);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

/* ---------- Site Header & Floating Liquid Glass Navigation ---------- */
body {
  padding-top: 104px;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1220px, 94vw);
  z-index: 1000;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(242, 239, 245, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1.5px 0.5px rgba(255, 255, 255, 0.95), inset 0 -1px 1px rgba(255, 255, 255, 0.4), 0 16px 36px rgba(15, 23, 42, 0.08), 0 4px 14px rgba(138, 115, 156, 0.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
  transition: all var(--transition-normal);
}

.site-header.is-scrolled {
  top: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 239, 245, 0.82));
  box-shadow: inset 0 1.5px 0.5px #ffffff, inset 0 -1px 1px rgba(255, 255, 255, 0.5), 0 20px 48px rgba(15, 23, 42, 0.12), 0 6px 18px rgba(138, 115, 156, 0.12);
  border-color: rgba(220, 212, 228, 0.9);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 12px 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark,
.brand__logo-img {
  width: auto;
  height: 42px;
  max-width: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(107, 33, 168, 0.2));
  transition: transform var(--transition-fast, 0.15s ease);
}

.brand__logo-img--light {
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.35));
}

.brand:hover .brand__logo-img {
  transform: scale(1.06);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.brand__sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  background: rgba(241, 245, 249, 0.65);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-soft);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.nav__links a:hover {
  color: var(--color-brand);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.nav__links a[aria-current="page"] {
  color: #ffffff;
  background: var(--color-brand);
  box-shadow: 0 4px 14px rgba(138, 115, 156, 0.35);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-soft);
}

.nav-phone:hover {
  color: var(--color-brand);
}

.nav-phone svg {
  width: 16px;
  height: 16px;
  color: var(--color-brand);
}

.nav-toggle {
  display: none;
  padding: 8px;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background-color: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(138, 115, 156, 0.32);
}

.btn-primary:hover {
  background-color: var(--color-brand-hover);
  box-shadow: 0 6px 20px rgba(138, 115, 156, 0.42);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--color-primary-soft);
  background-color: #ffffff;
}

/* ---------- SECTION 1: INTRODUCTION ---------- */
.hero-intro {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.hero-intro__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-intro__content h1 {
  font-size: clamp(2.5rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: var(--space-sm);
}

.hero-intro__content h1 span {
  color: var(--color-brand);
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-intro__lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  max-width: 580px;
}

.hero-intro__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.nav-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.nav-phone-pill:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  transform: translateY(-1px);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.doctor-profile-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(220, 212, 228, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  margin-bottom: var(--space-lg);
}

.doctor-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-brand);
  box-shadow: 0 4px 12px rgba(138, 115, 156, 0.2);
  flex-shrink: 0;
}

.doctor-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.doc-credentials-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.doc-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-brand);
  background: var(--color-brand-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-brand-border);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-stat-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.hero-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-brand);
}

.hero-stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-brand);
  line-height: 1.1;
  margin-bottom: 2px;
}

.hero-stat-card span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Liquid Glass Hero Interactive Card */
.glass-consultation-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 239, 245, 0.82));
  border: 1px solid rgba(220, 212, 228, 0.95);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.hero-suite-img-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.hero-suite-img-box img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

.suite-img-overlay-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.card-header-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-sm);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #059669;
  transition: color 0.3s ease;
}

.status-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  transition: all 0.3s ease;
}

.status-dot.is-closed {
  color: #dc2626;
}

.status-dot.is-closed::before {
  background-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

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

.preview-box {
  background: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-title {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.preview-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ---------- SECTION 2: SERVICES (NEW VINTAGE LAVENDER & GUNMETAL PALETTE) ---------- */
#services {
  background: linear-gradient(135deg, var(--bright-snow) 0%, var(--platinum) 50%, var(--bright-snow) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

#services .badge-pill {
  background: var(--color-brand-light);
  border: 1px solid var(--color-brand-border);
  color: var(--color-brand);
}

#services h2 {
  color: var(--gunmetal);
}

#services .section-head p {
  color: var(--color-text-muted);
}

/* Service Image Banner Showcase */
.services-image-showcase {
  background: #FFFFFF;
  border: 2px solid var(--color-brand-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 12px 36px rgba(138, 115, 156, 0.1);
  margin-bottom: var(--space-xl);
}

.services-showcase-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--platinum);
}

.services-showcase-head .brand__logo-img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.services-showcase-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 900;
  color: var(--vintage-lavender);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

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

@media (max-width: 768px) {
  .services-list-columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.services-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.services-bullet-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  font-weight: 800;
  color: var(--gunmetal);
}

.services-bullet-list li .purple-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--vintage-lavender);
  box-shadow: 0 0 0 3px rgba(138, 115, 156, 0.25);
  flex-shrink: 0;
}

/* Filter Tabs */
.services-nav-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.services-nav-tabs .tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--vintage-lavender);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.services-nav-tabs .tab-btn:hover,
.services-nav-tabs .tab-btn.is-active {
  background: var(--vintage-lavender);
  border-color: var(--vintage-lavender);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(138, 115, 156, 0.35);
}

/* Services Mobile Carousel Header & Navigation Controls (Hidden on Desktop, Shown on Mobile) */
.services-carousel-header {
  display: none;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: var(--space-sm);
  padding: 0 4px;
}

.services-carousel-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.services-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .services-carousel-header,
  .portfolio-carousel-controls {
    display: flex !important;
  }

  .services-catalog-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    gap: 16px !important;
    padding: 10px 4px 24px 4px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin;
    scrollbar-color: var(--vintage-lavender) var(--platinum);
  }

  .services-catalog-grid::-webkit-scrollbar {
    height: 6px;
  }

  .services-catalog-grid::-webkit-scrollbar-track {
    background: var(--platinum);
    border-radius: var(--radius-pill);
  }

  .services-catalog-grid::-webkit-scrollbar-thumb {
    background: var(--vintage-lavender);
    border-radius: var(--radius-pill);
  }

  .services-catalog-grid .service-card-modern {
    flex: 0 0 85vw !important;
    max-width: 320px !important;
    scroll-snap-align: center !important;
    margin: 0 !important;
  }
}

.service-card-modern {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(54, 55, 61, 0.04);
}

.service-card-modern:hover {
  border-color: var(--vintage-lavender);
  box-shadow: 0 12px 32px rgba(138, 115, 156, 0.15);
  transform: translateY(-4px);
}

.service-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-brand-light);
  color: var(--vintage-lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  border: 1px solid var(--color-brand-border);
}

.service-icon-wrapper svg {
  width: 26px;
  height: 26px;
  stroke: var(--vintage-lavender);
}

.service-card-modern h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gunmetal);
  margin-bottom: 8px;
}

.service-card-modern p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  flex-grow: 1;
}

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

.service-meta-footer .tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--color-brand-light);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--vintage-lavender);
}

.service-meta-footer .btn-primary {
  background-color: var(--vintage-lavender) !important;
  border-color: var(--vintage-lavender) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(138, 115, 156, 0.3) !important;
}

.service-meta-footer .btn-primary:hover {
  background-color: var(--color-brand-hover) !important;
  border-color: var(--color-brand-hover) !important;
  box-shadow: 0 6px 18px rgba(138, 115, 156, 0.4) !important;
}

/* ---------- SECTION 3: PORTFOLIO (CLINICAL TRANSFORMATIONS) ---------- */
.portfolio-filter-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.portfolio-carousel-wrapper {
  position: relative;
  width: 100%;
}

.portfolio-carousel-controls {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: var(--space-md);
}

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

.carousel-nav-btn:hover {
  background: var(--color-brand);
  color: #ffffff;
  border-color: var(--color-brand);
  box-shadow: 0 4px 14px rgba(138, 115, 156, 0.35);
  transform: translateY(-2px);
}

.portfolio-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  padding: 10px 4px 24px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-brand) rgba(226, 232, 240, 0.5);
}

.portfolio-grid::-webkit-scrollbar {
  height: 6px;
}

.portfolio-grid::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.5);
  border-radius: var(--radius-pill);
}

.portfolio-grid::-webkit-scrollbar-thumb {
  background: var(--color-brand);
  border-radius: var(--radius-pill);
}

.portfolio-card {
  flex: 0 0 380px;
  max-width: 88vw;
  scroll-snap-align: start;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  border-color: rgba(138, 115, 156, 0.4);
  box-shadow: 0 20px 42px rgba(138, 115, 156, 0.16);
  transform: translateY(-5px);
}

/* Header overlay inside card */
.portfolio-card-head {
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(to right, #F8F9FA, #F2F5FA);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.portfolio-card-head .case-id {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-card-head .doc-chip {
  font-size: 0.75rem;
  color: var(--color-primary-soft);
  font-weight: 600;
}

/* Interactive Before & After Visual Slider Container */
.ba-slider-container {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  user-select: none;
  background: #0f172a;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before {
  z-index: 1;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  transition: clip-path 0.05s linear;
}

.ba-after {
  z-index: 0;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  z-index: 2;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  transform: translateX(-50%);
  cursor: ew-resize;
  transition: left 0.05s linear;
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-primary);
  border: 2px solid var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  font-weight: 700;
}

.ba-badge {
  position: absolute;
  top: 12px;
  z-index: 3;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}

.ba-badge-before {
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ba-badge-after {
  right: 12px;
  background: rgba(138, 115, 156, 0.92);
  color: #ffffff;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(138, 115, 156, 0.35);
}

/* Quick Mode Switcher Bar on image top bottom */
.ba-quick-switch {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 4px;
  background: rgba(15, 23, 42, 0.75);
  padding: 3px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ba-quick-btn {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ba-quick-btn:hover,
.ba-quick-btn.is-active {
  background: var(--color-brand);
  color: #ffffff;
}

/* Portfolio content styling */
.portfolio-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.portfolio-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.portfolio-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portfolio-highlights li {
  font-size: 0.8125rem;
  color: var(--color-primary-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.portfolio-highlights li svg {
  width: 14px;
  height: 14px;
  color: var(--color-brand);
  flex-shrink: 0;
}

.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-top: auto;
  margin-bottom: var(--space-md);
}

.stat-box {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.stat-box span {
  display: block;
  font-size: 0.6875rem;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--color-brand);
  font-weight: 700;
}

.portfolio-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- SECTION 4: TESTIMONIALS (GOOGLE REVIEWS SYNC) ---------- */
.google-reviews-sync-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
}

.google-rating-score-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.g-logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rating-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-number .stars {
  color: #f59e0b;
  font-size: 1.1rem;
}

.rating-sub {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.google-sync-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.testimonials-grid-portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.testimonial-card-modern {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.testimonial-card-modern:hover {
  border-color: rgba(66, 133, 244, 0.4);
  box-shadow: 0 12px 30px rgba(66, 133, 244, 0.08);
}

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.g-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a73e8;
  background: #e8f0fe;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.stars-rating {
  color: #f59e0b;
  display: flex;
  gap: 4px;
}

.testimonial-card-modern blockquote {
  font-size: 0.9375rem;
  color: var(--color-primary-soft);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.patient-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar-chip {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-brand-light);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}

.author-details h5 {
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.author-details span {
  font-size: 0.75rem;
  color: var(--color-text-faint);
}

/* ---------- SECTION 5: CONTACT & BOOKING ---------- */
.contact-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-card-glass {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.info-list-modern {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.info-row {
  display: flex;
  gap: 16px;
}

.info-row-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-light);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-row-icon svg {
  width: 22px;
  height: 22px;
}

.info-row-content h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.info-row-content p, .info-row-content a {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.booking-form-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

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

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-primary);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(138, 115, 156, 0.25);
}

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

/* ---------- SITE FOOTER ---------- */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-md);
  border-top: 1px solid #1e293b;
}

.footer-grid-4 {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand .brand__title {
  color: #ffffff;
}

.footer-brand p {
  color: #94a3b8;
  margin-top: 12px;
  font-size: 0.9375rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.9375rem;
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid #1e293b;
  font-size: 0.875rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */
/* ---------- SECTION: ABOUT US ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-xl);
  align-items: center;
}

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

.about-photo-card {
  padding: 10px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.about-photo-caption {
  padding: 14px 8px 4px;
}

.about-photo-caption h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
}

.about-photo-caption span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brand);
}

.about-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.about-content h2 {
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
  margin-bottom: var(--space-sm);
}

.about-lead {
  font-size: 1.125rem;
  color: var(--color-primary-soft);
  margin-bottom: var(--space-sm);
}

.about-content > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.about-highlights {
  margin-bottom: var(--space-md);
  gap: 10px;
}

.about-highlights li {
  font-size: 0.95rem;
  color: var(--color-primary-soft);
  align-items: flex-start;
}

.about-highlights li svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.about-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

@media (max-width: 992px) {
  .hero-intro__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-media {
    max-width: 460px;
  }
}

@media (max-width: 768px) {
  .site-header {
    width: 96vw;
    top: 10px;
    border-radius: 20px;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 239, 245, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.15);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }

  .nav__links a {
    width: 100%;
    justify-content: center;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  /* Phones: logo + hamburger only. Booking is covered by the dropdown,
     the hero CTA, and the fixed floating call bar. */
  .nav__actions {
    display: none;
  }

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

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

/* ---------- FLOATING CTA BAR (GLASSMORPHISM COPIED FROM PEARL CARE) ---------- */
.floating-cta-bar {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 25px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  transition: all 0.3s ease;
}

.floating-cta-bar:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  bottom: 28px;
}

.cta-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  outline: none;
  position: relative;
  text-decoration: none;
}

.cta-tooltip {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-brand, #8A739C);
  color: white;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

/* Tooltip Arrow */
.cta-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--color-brand, #8A739C) transparent transparent transparent;
}

.cta-icon-btn:hover .cta-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cta-icon-btn:hover {
  transform: scale(1.15) rotate(5deg);
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Color overrides for branding inside the glass bar - Matched to HTML aria-labels */
.cta-icon-btn[aria-label="WhatsApp Priority Line"] svg {
  color: #25D366;
}

.cta-icon-btn[aria-label="Emergency Call"] svg {
  color: #0ea5e9;
}

.cta-icon-btn[aria-label="Open AI Assistant"] svg {
  color: #a855f7;
}

/* Added subtle background fills for premium filled aesthetic */
.cta-icon-btn[aria-label="WhatsApp Priority Line"]:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.2);
}

.cta-icon-btn[aria-label="Emergency Call"]:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.2);
}

.cta-icon-btn[aria-label="Open AI Assistant"]:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.2);
}

/* ---------- FLOATING CHATBOT HELP WIDGET ---------- */
.floating-chat-widget {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.95);
  width: min(92vw, 380px);
  max-height: 560px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(138, 115, 156, 0.25), 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-chat-widget.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(138, 115, 156, 0.9), rgba(106, 85, 124, 0.95));
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.chat-title-info {
  flex: 1;
}

.chat-title-info h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.chat-status-badge {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.chat-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.chat-close-btn:hover {
  color: #ffffff;
}

/* Direct Info Card & Direct Action Buttons */
.chat-direct-info-card {
  padding: 12px 14px;
  background: rgba(248, 246, 250, 0.9);
  border-bottom: 1px solid rgba(138, 115, 156, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.direct-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.35;
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(138, 115, 156, 0.15);
}

.direct-address svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.direct-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chat-quick-act-btn {
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: 7px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.chat-quick-act-btn.maps-btn {
  background: #8A739C;
  color: #ffffff;
}
.chat-quick-act-btn.maps-btn:hover {
  background: #735d84;
}

.chat-quick-act-btn.call-btn {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.2);
}
.chat-quick-act-btn.call-btn:hover {
  background: #0284c7;
  color: #ffffff;
}

.chat-quick-act-btn.whatsapp-btn {
  background: rgba(37, 211, 102, 0.12);
  color: #16a34a;
  border: 1px solid rgba(37, 211, 102, 0.2);
}
.chat-quick-act-btn.whatsapp-btn:hover {
  background: #16a34a;
  color: #ffffff;
}

/* Chat Body */
.chat-body {
  padding: 14px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
  max-height: 230px;
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 115, 156, 0.3) transparent;
}

.chat-message {
  display: flex;
  max-width: 85%;
}

.chat-message.bot {
  align-self: flex-start;
}

.chat-message.user {
  align-self: flex-end;
}

.chat-message .message-content {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.83rem;
  line-height: 1.45;
}

.chat-message.bot .message-content {
  background: #ffffff;
  color: #334155;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(138, 115, 156, 0.12);
}

.chat-message.user .message-content {
  background: #8A739C;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  background: #8A739C;
  border-radius: 50%;
  animation: chatTyping 1.2s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatTyping {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* FAQ Chips */
.chat-faq-chips {
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(138, 115, 156, 0.1);
  scrollbar-width: none;
}
.chat-faq-chips::-webkit-scrollbar { display: none; }

.faq-chip {
  background: #ffffff;
  border: 1px solid rgba(138, 115, 156, 0.25);
  color: #5b476e;
  padding: 6px 11px;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-chip:hover {
  background: #8A739C;
  color: #ffffff;
  border-color: #8A739C;
}

/* Chat Input Form */
.chat-input-form {
  display: flex;
  align-items: center;
  padding: 8px 12px 12px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.chat-input-form input {
  flex: 1;
  padding: 9px 14px;
  border-radius: 100px;
  border: 1px solid rgba(138, 115, 156, 0.25);
  font-size: 0.82rem;
  outline: none;
  background: #ffffff;
  color: #334155;
  transition: border-color 0.2s ease;
}

.chat-input-form input:focus {
  border-color: #8A739C;
}

.chat-input-form button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #8A739C;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.chat-input-form button:hover {
  background: #735d84;
}

@media (max-width: 480px) {
  .floating-cta-bar {
    bottom: 14px;
    padding: 8px 16px;
    gap: 12px;
    width: min(92vw, 320px);
    justify-content: space-around;
  }

  .cta-icon-btn {
    width: 44px;
    height: 44px;
  }

  .cta-icon-btn svg {
    width: 22px;
    height: 22px;
  }

  .floating-chat-widget {
    bottom: 74px;
    width: min(94vw, 360px);
    max-height: 520px;
  }
}

/* ---------- Scroll Reveal Animations ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--transition-smooth), transform 0.55s var(--transition-smooth);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Nav active state (scrollspy) */
.nav__links a[data-active] {
  color: var(--color-brand);
  font-weight: 700;
}

/* Appointment success note */
.form-success-note {
  display: none;
  margin-top: var(--space-sm);
  padding: 14px 18px;
  background: var(--color-brand-light);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-md);
  color: var(--color-brand-hover);
  font-weight: 600;
  font-size: 0.9375rem;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
