/* ========================================================
   DR CURE SPECIALITY CLINICS — MODERN CLINICAL STYLESHEET
   Crafted with human care, warmth, and clinical precision
   ======================================================== */

:root {
  --primary: #2a2575;         /* Deep clinical navy/indigo */
  --primary-dark: #1b1754;    /* Dark navy */
  --primary-light: #433ca8;   /* Bright indigo */
  --accent-teal: #0d9488;     /* Reassuring healthcare teal */
  --accent-teal-dark: #0f766e;
  --accent-teal-soft: #f0fdfa;
  --accent-coral: #ea580c;    /* Warm energetic orange for appointments */
  --accent-coral-dark: #c2410c;
  --accent-green: #16a34a;    /* Fresh health green */
  
  --ink: #1e293b;             /* Charcoal text */
  --ink-light: #475569;       /* Muted slate text */
  --ink-muted: #64748b;       /* Lighter description text */
  
  --bg-page: #f8fafc;         /* Clean clinical off-white */
  --bg-card: #ffffff;         /* Pure white */
  --bg-soft: #f1f5f9;         /* Light slate */
  --bg-accent: #eef2ff;       /* Very soft indigo tint */
  
  --border-light: #e2e8f0;    /* Crisp subtle borders */
  --border-focus: #818cf8;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 6px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 20px 40px -8px rgba(42, 37, 117, 0.18);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-page);
  color: var(--ink);
  font: 400 1.02rem/1.65 'Figtree', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.08rem; }

p {
  color: var(--ink-light);
  margin-bottom: 0.9rem;
}
p:last-child {
  margin-bottom: 0;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 36px);
}

/* ========================================================
   TOP EMERGENCY & ANNOUNCEMENT BAR
   ======================================================== */
.top-bar {
  background: var(--primary-dark);
  color: #e2e8f0;
  font-size: 0.86rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.top-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(22, 163, 74, 0.25);
  color: #86efac;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.top-status-indicator::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.top-bar a {
  color: #ffffff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar a:hover {
  color: #93c5fd;
}

/* ========================================================
   SITE HEADER & NAVIGATION
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

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

.brand-text b {
  font: 800 1.42rem/1 'Bricolage Grotesque', sans-serif;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--accent-teal);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  transition: var(--transition);
}

.nav-links > li > a:hover,
.nav-links > li.is-open > a {
  background: var(--bg-soft);
  color: var(--primary);
}

.nav-links > li > a .arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
  display: inline-block;
}

.nav-links > li:hover > a .arrow,
.nav-links > li.is-open > a .arrow {
  transform: rotate(180deg);
}

/* ========================================================
   ROCK-SOLID DROPDOWN MENU
   ======================================================== */
.nav-links > li.has-dropdown {
  position: relative;
}

/* Safety hover bridge covering the gap between trigger and menu */
.nav-links > li.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
  display: block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px -8px rgba(15, 23, 42, 0.18), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
  width: 560px;
  padding: 1.1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.6rem;
}

.dropdown-menu:has(.dropdown-grid) {
  display: block;
}

/* Top invisible hit-shield for dropdown */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

/* Keep open on hover OR on .is-open class (clicked) */
.nav-links > li.has-dropdown:hover .dropdown-menu,
.nav-links > li.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.dropdown-header strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.dropdown-header a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.6rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: var(--transition);
}

/* Fallback for pages with direct <a> tags inside .dropdown-menu */
.dropdown-menu > a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}

.dropdown-menu > a:hover {
  background: var(--bg-soft);
  color: var(--primary);
  transform: translateX(3px);
}

.dropdown-menu > a span {
  width: 34px;
  height: 34px;
  background: var(--bg-accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.dropdown-item:hover {
  background: var(--bg-soft);
  transform: translateX(3px);
}

.dropdown-item .di-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.dropdown-item:hover .di-icon {
  background: #e0e7ff;
}

.dropdown-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.dropdown-item small {
  display: block;
  font-size: 0.77rem;
  color: var(--ink-muted);
  line-height: 1.2;
  margin-top: 0.15rem;
}

/* HAMBURGER & MOBILE NAV */
.ham {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--primary-dark);
  padding: 0.45rem 0.7rem;
  margin-left: auto;
  line-height: 1;
}

.mob-nav {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 1rem;
  gap: 0.3rem;
  max-height: 80vh;
  overflow-y: auto;
}

.mob-nav.open {
  display: flex;
}

.mob-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--ink);
}

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

.mob-nav .mob-section-title {
  padding: 0.8rem 1rem 0.3rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  font: 700 0.96rem 'Figtree', sans-serif;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.bk {
  background: var(--accent-coral);
  color: #ffffff;
}
.bk:hover {
  background: var(--accent-coral-dark);
  color: #ffffff;
}

.wa {
  background: var(--accent-teal);
  color: #ffffff;
}
.wa:hover {
  background: var(--accent-teal-dark);
  color: #ffffff;
}

.ln {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--border-light);
}
.ln:hover {
  background: var(--bg-soft);
  border-color: var(--primary-light);
}

.btn-white {
  background: #ffffff;
  color: var(--primary-dark);
}
.btn-white:hover {
  background: #f1f5f9;
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
}

/* ========================================================
   WARM, HUMAN HERO SECTION (NO GENERIC AI VIBES)
   ======================================================== */
.hero-human {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 60%, var(--bg-page) 100%);
  padding: 3.5rem 0 4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-human::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, rgba(42, 37, 117, 0.04) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-human-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge-human {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-teal-soft);
  border: 1px solid rgba(13, 148, 136, 0.25);
  color: var(--accent-teal-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.hero-badge-human span.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.hero-human h1 {
  color: var(--primary-dark);
  margin-bottom: 1.1rem;
  line-height: 1.14;
}

.hero-human h1 .highlight-text {
  color: var(--accent-teal);
  position: relative;
  display: inline-block;
}

.hero-human .hero-lead {
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--ink-light);
  margin-bottom: 1.8rem;
  max-width: 540px;
}

.hero-human-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-light);
}

.hero-trust-item span.check-icon {
  color: var(--accent-teal);
  font-weight: 800;
  font-size: 1rem;
}

/* HERO RIGHT: PHOTO & LIVE QUICK-BOOK CARD */
.hero-visual-card {
  position: relative;
}

.hero-main-photo-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  background: #ffffff;
  aspect-ratio: 16/11;
}

.hero-main-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.hero-main-photo-frame:hover img {
  transform: scale(1.02);
}

/* Genuine floating info badge */
.hero-verified-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.hero-location-card {
  position: absolute;
  bottom: -22px;
  left: 20px;
  right: 20px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-light);
}

.hero-location-card .hl-info strong {
  display: block;
  font-size: 0.94rem;
  color: var(--primary-dark);
}

.hero-location-card .hl-info small {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.hero-location-card .hl-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* ========================================================
   KEY CLINICAL STATS BAR
   ======================================================== */
.stats-human-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 1.4rem 0;
}

.stats-human-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-box {
  padding: 0.5rem 1rem;
}

.stat-box strong {
  display: block;
  font: 800 clamp(2.1rem, 3.8vw, 2.9rem)/1 'Bricolage Grotesque', sans-serif;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.stat-box span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* ========================================================
   SERVICES SECTION (CARDS WITH HOVER LIFT)
   ======================================================== */
.section-pad {
  padding: clamp(2rem, 3.5vw, 3rem) 0;
}

.section-head {
  text-align: center;
  margin-bottom: 1.8rem;
}

.section-tag-human {
  display: inline-block;
  background: var(--bg-accent);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.95rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.section-head h2 {
  margin-bottom: 0.85rem;
}

.section-head p {
  font-size: 1.08rem;
  color: var(--ink-light);
  max-width: 640px;
  margin: 0 auto;
}

.services-human-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-human-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.shc-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-accent);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
  transition: var(--transition);
}

.service-human-card:hover .shc-icon {
  background: var(--primary);
  transform: scale(1.08);
}

.service-human-card h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.service-human-card p {
  font-size: 0.94rem;
  color: var(--ink-light);
  line-height: 1.55;
  flex: 1;
}

.shc-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.service-human-card:hover .shc-link {
  color: var(--accent-coral);
  gap: 0.6rem;
}

/* ========================================================
   CLINIC INTERIOR & PATIENT EXPERIENCE SECTION
   ======================================================== */
.clinic-tour-section {
  background: #ffffff;
  border-block: 1px solid var(--border-light);
}

.clinic-tour-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.clinic-tour-photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  aspect-ratio: 16/11;
}

.clinic-tour-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clinic-features-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.cf-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cf-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-teal-soft);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cf-content strong {
  display: block;
  font-size: 1.02rem;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.cf-content p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}

/* ========================================================
   BOOKING STEPS (HONEST & HUMAN)
   ======================================================== */
.steps-human-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.step-human-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.step-badge-num {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 1.35rem 'Bricolage Grotesque', sans-serif;
  margin: 0 auto 1.2rem;
}

.step-human-card h3 {
  margin-bottom: 0.6rem;
}

.step-human-card p {
  font-size: 0.94rem;
  color: var(--ink-light);
}

/* ========================================================
   TESTIMONIALS (REAL HUMAN VOICES)
   ======================================================== */
.testimonials-human-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.testimonial-human-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.th-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-human-card blockquote {
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.th-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.th-avatar {
  width: 44px;
  height: 44px;
  background: var(--bg-accent);
  color: var(--primary);
  font-weight: 800;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.th-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.th-info small {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

/* ========================================================
   WARM HUMAN CTA BANNER
   ======================================================== */
.cta-human-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(2.4rem, 5vw, 3.8rem);
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta-human-card h2 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-human-card p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-human-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}


/* ========================================================
   FOOTER (PURPLE/NAVY CLINIC BRANDING)
   ======================================================== */
.site-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.15fr 0.85fr 1.2fr;
  gap: 2.8rem;
  padding-bottom: 2rem;
}

.footer-logo {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 0.5rem;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  font-size: 0.93rem;
  color: #94a3b8;
  line-height: 1.65;
}

.footer-grid h4 {
  color: #ffffff;
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li a {
  color: #cbd5e1;
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links li a:hover {
  color: #93c5fd;
  transform: translateX(3px);
  display: inline-block;
}

.footer-contact p {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.footer-contact a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #93c5fd;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.6rem 0;
  font-size: 0.84rem;
  color: #64748b;
  text-align: center;
}

/* ========================================================
   PAGE HERO FOR SERVICE DETAILS & SUBPAGES
   ======================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: saturate(0.3);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 0.9rem;
}

.breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #ffffff;
}

.page-hero-icon {
  font-size: 3.2rem;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.page-hero h1 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.page-hero .lead {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 650px;
}

/* SERVICE DETAILS LAYOUT */
.svc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 3rem;
  align-items: start;
}

.prose h2 {
  font-size: 1.65rem;
  margin: 2.2rem 0 0.9rem;
  color: var(--primary-dark);
}
.prose h2:first-child {
  margin-top: 0;
}

.prose p, .prose li {
  color: var(--ink-light);
  line-height: 1.75;
}

.prose ul {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  list-style: none;
  padding: 0;
}

.prose ul li {
  padding-left: 1.7rem;
  position: relative;
}

.prose ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: 800;
}

.prose ol {
  padding-left: 1.5rem;
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.warn-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--accent-coral);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  margin: 1.8rem 0;
  color: #9a3412;
}

.info-box {
  background: var(--bg-accent);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  margin: 1.8rem 0;
  color: var(--primary-dark);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 2rem;
}

.icon-grid-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.2rem 0.8rem;
  text-align: center;
  transition: var(--transition);
}

.icon-grid-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.icon-grid-item .ig-icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.icon-grid-item p {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}

/* FAQ ACCORDION */
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-item summary {
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font: 700 1.05rem 'Bricolage Grotesque', sans-serif;
  color: var(--primary-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 1.4rem 1.25rem;
  color: var(--ink-light);
  font-size: 0.95rem;
}

/* STICKY SIDEBAR */
.sticky-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1.2rem;
}

.sidebar-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  color: var(--primary-dark);
}

.sidebar-panel .big-phone {
  font: 800 1.7rem/1 'Bricolage Grotesque', sans-serif;
  color: var(--primary);
  display: block;
  margin-bottom: 0.6rem;
  text-decoration: none;
}

.sidebar-panel .panel-btns {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.sidebar-links {
  display: grid;
  gap: 0.35rem;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  transition: var(--transition);
  text-decoration: none;
}

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

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

.related-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  text-decoration: none;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: var(--transition);
}

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

.related-card .rc-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
}

.related-card h4 {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
  color: var(--primary-dark);
}

.related-card p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ========================================================
   BLOG CARD STYLES
   ======================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-tag {
  display: inline-block;
  background: var(--bg-accent);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  align-self: flex-start;
}

.blog-card h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  line-height: 1.35;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.blog-read-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}

.blog-post-img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2.2rem;
  box-shadow: var(--shadow-md);
}

/* ========================================================
   MOBILE FLOATING BAR
   ======================================================== */
.fab-buttons {
  display: none;
  position: fixed;
  inset: auto 0 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 0.65rem 0.9rem calc(0.65rem + env(safe-area-inset-bottom));
  z-index: 990;
  gap: 0.75rem;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}



@media (max-width: 960px) {
  .hero-human-grid { grid-template-columns: 1fr; }
  .hero-human { padding: 2.5rem 0 3.5rem; }
  .hero-human-actions { justify-content: flex-start; }
  .nav-links { display: none; }
  .ham {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
  }
  .main-nav .btn.bk { display: none; }
  .svc-layout { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }
  .steps-human-grid { grid-template-columns: 1fr; }
  .testimonials-human-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .stats-human-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .fab-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  body { padding-bottom: 74px; }
  .hero-location-card { position: static; margin-top: 1rem; }
}


/* ========================================================
   SERVICES PAGE — CARD GRID (services.html)
   ======================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.svc-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--bg-accent);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  transition: var(--transition);
}

.service-card:hover .svc-icon-wrap {
  background: var(--primary);
  transform: scale(1.08);
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.service-card p {
  font-size: 0.94rem;
  color: var(--ink-light);
  line-height: 1.55;
  flex: 1;
}

.learn-more {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  transition: var(--transition);
}

.service-card:hover .learn-more {
  color: var(--accent-coral);
  gap: 0.6rem;
}

/* ========================================================
   ABOUT PAGE — FEATURE ROW, VALUES, STATS, LOCATION
   ======================================================== */
.section-tag {
  display: inline-block;
  background: var(--bg-accent);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.95rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.section-header h2 {
  margin-bottom: 0.85rem;
}

.section-header p {
  font-size: 1.08rem;
  color: var(--ink-light);
  max-width: 640px;
  margin: 0 auto;
}

.section-alt {
  background: #ffffff;
  border-block: 1px solid var(--border-light);
  padding: clamp(2rem, 3.5vw, 3rem) 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.why-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.why-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-accent);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.why-card h3 {
  font-size: 1.12rem;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.why-card p {
  font-size: 0.94rem;
  color: var(--ink-light);
  line-height: 1.55;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 0.5rem 1rem;
}

.stat-num {
  display: block;
  font: 800 clamp(2.1rem, 3.8vw, 2.9rem)/1 'Bricolage Grotesque', sans-serif;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.feature-list {
  display: grid;
  gap: 1.1rem;
}

.feature-list-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-list-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-teal-soft);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.feature-list-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feature-list-text strong {
  font-size: 0.98rem;
  color: var(--primary-dark);
}

.feature-list-text span {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ========================================================
   CONTACT PAGE — FORM & LAYOUT
   ======================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: #ffffff;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

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

.big-phone {
  font: 800 1.7rem/1 'Bricolage Grotesque', sans-serif;
  color: var(--primary);
  display: block;
  margin-bottom: 0.6rem;
  text-decoration: none;
}

.panel-btns {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* CTA SECTION (shared across services, about, blog) */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(2.4rem, 5vw, 3.8rem);
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta-section h2 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-btns {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

.cta-btns .btn {
  width: 100%;
  text-align: center;
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

/* ========================================================
   ADDITIONAL RESPONSIVE FIXES
   ======================================================== */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
  .cta-section { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
}

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

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}


/* ========================================================
   BLOG CARD WITHOUT IMAGES — GRADIENT HEADER FALLBACK
   ======================================================== */
.blog-card:not(:has(.blog-card-img)) .blog-card-body {
  border-top: 4px solid var(--primary);
}

/* 404 PAGE STYLES */
.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1;
}

.error-page h2 {
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ========================================================
   SMOOTH PARALLAX & ENTRANCE ANIMATIONS
   ======================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Hero section entrance animations */
.hero-human-text {
  animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-visual-card {
  animation: fadeInRight 0.8s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-verified-badge {
  animation: float 3s ease-in-out infinite;
}

.hero-location-card {
  animation: fadeInUp 0.6s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Page hero smooth entrance */
.page-hero-content {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hover micro-interactions */
.icon-grid-item {
  transition: var(--transition);
}

.icon-grid-item:hover .ig-icon {
  animation: scaleIn 0.3s ease forwards;
}

/* Smooth card hover with glow */
.service-human-card::before,
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(42, 37, 117, 0.15), rgba(13, 148, 136, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

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

/* Staggered reveal for sidebar panels */
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* Smooth scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
  border: 2px solid var(--bg-page);
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Selection color */
::selection {
  background: rgba(42, 37, 117, 0.15);
  color: var(--primary-dark);
}


/* ========================================================
   FULL-WIDTH DYNAMIC HERO SLIDER (TRUE HORIZONTAL SCROLL)
   ======================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: 74vh;
  overflow: hidden;
  background: #090d16;
}

.slider-track {
  display: flex;
  width: 300%;
  min-height: 74vh;
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slide {
  width: 33.33333%;
  flex: 0 0 33.33333%;
  min-height: 74vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background image with 5-second cinematic zoom-in */
.hero-slide-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center center;
  z-index: 1;
  transform: translateX(-70px) scale(1.0);
  opacity: 0.2;
  will-change: transform, opacity;
}

.hero-slide.active .hero-slide-bg {
  animation: heroKenBurnsZoom 5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroKenBurnsZoom {
  0% {
    opacity: 0.3;
    transform: translateX(-50px) scale(1.0);
  }
  20% {
    opacity: 1;
    transform: translateX(0) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1.15);
  }
}

.hero-slide-content {
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: #ffffff;
  position: relative;
  z-index: 3;
}

/* Badge dropping in */
.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.45rem 1.3rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-slide.active .slide-badge {
  animation: badgeDrop 0.65s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* DYNAMIC HEADING ZOOM IN EFFECT */
.slide-title {
  font: 800 clamp(2.3rem, 5.2vw, 4.2rem)/1.14 'Bricolage Grotesque', sans-serif;
  color: #ffffff;
  margin-bottom: 1.3rem;
  letter-spacing: -0.025em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-slide.active .slide-title {
  animation: headingZoomIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes headingZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.68) translateY(20px);
    filter: blur(6px);
  }
  65% {
    opacity: 1;
    transform: scale(1.04) translateY(-2px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

/* ALL SECTION HEADINGS ZOOM IN ON SCROLL */
.section-head h2,
.section-header h2,
.clinic-tour-text h2,
.cta-human-card h2,
.cta-section h2,
.feature-row h2 {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s ease;
}

.reveal.visible .section-head h2,
.reveal.visible .section-header h2,
.reveal.visible .clinic-tour-text h2,
.reveal.visible .cta-human-card h2,
.reveal.visible .cta-section h2,
.reveal.visible .feature-row h2,
h2.heading-zoom-active {
  animation: headingZoomIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.service-extra-card {
  border: 2px dashed var(--border-light);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}

.service-extra-card:hover {
  border-style: solid;
  border-color: var(--primary);
  background: #ffffff;
}

.slide-title .highlight-orange {
  color: #fb923c;
  display: inline-block;
  text-shadow: 0 0 35px rgba(234, 88, 12, 0.65), 0 0 10px rgba(234, 88, 12, 0.4);
}

/* Subtitle slide in from bottom */
.slide-desc {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
  color: #e2e8f0;
  max-width: 800px;
  margin: 0 auto 2.4rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-slide.active .slide-desc {
  animation: subtextSlideUp 0.75s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes subtextSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Action buttons pop in */
.slide-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.hero-slide.active .slide-actions {
  animation: buttonPop 0.75s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes buttonPop {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  70% {
    transform: scale(1.04) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.slide-badge,
.slide-title,
.slide-desc,
.slide-actions {
  opacity: 1;
  position: relative;
  z-index: 5;
}

.hero-slide.active .slide-badge,
.hero-slide.active .slide-title,
.hero-slide.active .slide-desc,
.hero-slide.active .slide-actions {
  opacity: 1;
}

/* Slider navigation arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.slider-arrow:hover {
  background: var(--accent-coral);
  border-color: var(--accent-coral);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.65rem;
  z-index: 10;
}

.slider-dots .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dots .dot.active {
  width: 38px;
  border-radius: 10px;
  background: var(--accent-coral);
  border-color: var(--accent-coral);
}

@media (max-width: 768px) {
  .hero-slider { min-height: 70vh; }
  .slider-arrow { display: none; }
  .slide-title { font-size: 2rem; }
  .slide-desc { font-size: 1rem; }
}


/* ========================================================
   SERVICE CARD IMAGE THUMBNAILS
   ======================================================== */
.shc-thumb {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.8rem;
  background: var(--bg-soft);
}

.shc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-human-card:hover .shc-thumb img,
.service-card:hover .shc-thumb img {
  transform: scale(1.06);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0.18;
  z-index: 1;
}

.feature-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-img-frame img {
  width: 100%;
  height: auto;
  display: block;
}


/* ========================================================
   FLOATING WHATSAPP BUTTON
   ======================================================== */
.fab-whatsapp {
  position: fixed;
  bottom: 88px;
  right: 22px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.55);
  text-decoration: none;
  animation: fabFloat 3s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-whatsapp:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

@keyframes fabFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (max-width: 640px) {
  .fab-whatsapp {
    bottom: 86px;
    right: 14px;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
}

/* ========================================================
   MOBILE RESPONSIVE FIXES (COMPREHENSIVE)
   ======================================================== */
@media (max-width: 960px) {
  /* Service grids - 2 columns on tablet */
  .services-human-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Dropdown full-width on tablet */
  .dropdown-menu {
    width: min(500px, 95vw);
  }
}

@media (max-width: 640px) {
  /* Service grids - 1 column on mobile */
  .services-human-grid {
    grid-template-columns: 1fr !important;
  }
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  /* Hero slider mobile preserved */

  /* Slide text mobile */
  .slide-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    padding: 0 0.5rem;
  }
  .slide-desc {
    font-size: 0.95rem !important;
    padding: 0 0.5rem;
  }
  .slide-actions {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.7rem !important;
    padding: 0 1rem;
  }
  .slide-actions .btn {
    width: 100% !important;
    max-width: 300px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Section padding reduction on mobile */
  .section-pad {
    padding: 3rem 0 !important;
  }

  /* Contact page - stack columns */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Stats grid */
  .stats-human-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Icon grid - 2 cols on mobile */
  .icon-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Blog grid - 1 col on mobile */
  .blog-grid {
    grid-template-columns: 1fr !important;
  }

  /* Dropdown - full width */
  .dropdown-menu {
    width: 100vw !important;
    left: -16px !important;
  }
  .dropdown-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Page hero heading */
  .page-hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.5rem) !important;
  }

  /* Footer spacing */
  .footer-grid {
    gap: 2rem !important;
  }

  /* Container padding */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Remove unnecessary bottom gap below contact form */
  #contact-form + p {
    margin-bottom: 0 !important;
  }
}

/* ========================================================
   CONTACT PAGE - FIX LEFT-COLUMN GAP
   ======================================================== */
.contact-grid {
  align-items: start !important;
}

.contact-grid > div:first-child {
  /* Ensure the form column doesn't stretch to create dead space */
  align-self: start !important;
}

/* Remove excessive padding below contact form */
.contact-grid .reveal {
  padding-bottom: 0 !important;
}

/* ========================================================
   HEADING ZOOM-IN ON SCROLL - ENHANCED
   ======================================================== */
@keyframes headingZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  60% {
    opacity: 1;
    transform: scale(1.03) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* All h2 headings start invisible and zoom in when visible */
.section-head h2,
.section-header h2,
h2.heading-zoom-active {
  animation: headingZoomIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

/* Slide-in-from-left for service cards / feature sections */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Applied by JS IntersectionObserver */
.animate-left {
  animation: slideInLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-right {
  animation: slideInRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-up {
  animation: fadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Staggered delay for grid children */
.services-human-grid .service-human-card:nth-child(1),
.services-grid .service-card:nth-child(1) { animation-delay: 0.05s; }
.services-human-grid .service-human-card:nth-child(2),
.services-grid .service-card:nth-child(2) { animation-delay: 0.12s; }
.services-human-grid .service-human-card:nth-child(3),
.services-grid .service-card:nth-child(3) { animation-delay: 0.19s; }
.services-human-grid .service-human-card:nth-child(4),
.services-grid .service-card:nth-child(4) { animation-delay: 0.26s; }
.services-human-grid .service-human-card:nth-child(5),
.services-grid .service-card:nth-child(5) { animation-delay: 0.33s; }
.services-human-grid .service-human-card:nth-child(6),
.services-grid .service-card:nth-child(6) { animation-delay: 0.40s; }

/* ========================================================
   SERVICES SECTION BACKGROUND (index.html)
   ======================================================== */
.services-section-bg {
  background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 40%, #f0faf8 100%);
  position: relative;
  overflow: hidden;
}

.services-section-bg::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(42,37,117,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.services-section-bg::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(13,148,136,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ========================================================
   SECTION HEADER ANIMATION ENHANCEMENT
   ======================================================== */
.section-header,
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p,
.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0.7rem auto 0;
}



/* ========================================================
   MODERN MOBILE DRAWER & TOPBAR REFINEMENTS
   ======================================================== */
.ham {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
  z-index: 1001;
}

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

.ham.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.ham.active .ham-svg-burger {
  display: none !important;
}

.ham.active .ham-svg-close {
  display: block !important;
}

/* Mobile drawer container */
.mob-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-direction: column;
  padding: 0;
  z-index: 1000;
  animation: mobNavSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mob-nav.open {
  display: flex !important;
}

@keyframes mobNavSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mob-nav-header {
  padding: 1rem 1.25rem 0.75rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.mob-nav-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
}

.mob-nav-sub {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.mob-nav-links {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mob-nav-item {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem !important;
  border-radius: var(--radius-sm);
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mob-nav-item:hover,
.mob-nav-item:active {
  background: var(--bg-soft) !important;
  color: var(--primary) !important;
  padding-left: 1.15rem !important;
}

.mob-nav .mob-icon {
  font-size: 1.15rem;
  line-height: 1;
  width: 24px;
  text-align: center;
}

.mob-nav .mob-section-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-coral);
  padding: 0.9rem 0.9rem 0.3rem;
  margin-top: 0.2rem;
  border-top: 1px solid var(--border-light);
}

.mob-nav-footer {
  padding: 1rem 1.25rem 1.4rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mob-nav-footer .mob-cta {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.85rem;
}

.mob-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.mob-quick-actions .btn {
  justify-content: center;
  padding: 0.6rem;
  font-size: 0.88rem;
}

/* TOPBAR RESPONSIVE REFINEMENT */
@media (max-width: 640px) {
  .top-bar {
    padding: 0.4rem 0 !important;
    font-size: 0.78rem !important;
  }
  .top-bar .container {
    justify-content: center !important;
    gap: 0.4rem 0.8rem !important;
  }
  /* Hide verbose address from the compact mobile topbar */
  .top-bar-left span:nth-child(2) {
    display: none !important;
  }
  .top-status-indicator {
    padding: 0.15rem 0.5rem !important;
    font-size: 0.72rem !important;
  }
  
  /* Hero slider height restored like before */
  
  .slide-actions {
    gap: 0.6rem !important;
  }
  
  .slide-actions .btn {
    padding: 0.75rem 1.2rem !important;
    font-size: 0.92rem !important;
  }
}


/* ========================================================
   RESPONSIVE CTA BANNERS FIX (Never overflow on mobile)
   ======================================================== */
.cta-human-card,
.cta-section {
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 960px) {
  .cta-human-card,
  .cta-section {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    padding: 2.2rem 1.4rem !important;
    gap: 1.6rem !important;
  }

  .cta-human-card p,
  .cta-section p {
    margin: 0 auto;
    max-width: 580px;
  }

  .cta-human-actions,
  .cta-btns {
    width: 100% !important;
    align-items: stretch !important;
    justify-content: center !important;
  }

  .cta-human-actions .btn,
  .cta-btns .btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 640px) {
  .cta-human-card,
  .cta-section {
    padding: 1.8rem 1.1rem !important;
    border-radius: var(--radius-lg) !important;
  }

  .cta-human-card h2,
  .cta-section h2 {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
  }

  .cta-human-card p,
  .cta-section p {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  .cta-human-actions .btn,
  .cta-btns .btn {
    font-size: 0.95rem !important;
    padding: 0.85rem 1rem !important;
  }
}


/* ========================================================
   CLINIC TOUR MOBILE REFINEMENT
   ======================================================== */
@media (max-width: 960px) {
  .clinic-tour-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .clinic-tour-photo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/10 !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    margin-bottom: 0.5rem !important;
  }
  .clinic-tour-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
}

/* ========================================================
   FOOTER SIDE-BY-SIDE SPECIALITIES (2 COLUMNS)
   ======================================================== */
.footer-grid {
  grid-template-columns: 1.15fr 0.85fr 1.75fr 1.25fr !important;
  gap: 2.2rem !important;
}

.footer-specialities-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.fl-arrow {
  color: #fb923c;
  font-weight: 700;
  margin-right: 0.35rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-links li a:hover .fl-arrow {
  transform: translateX(3px);
  color: #ffffff;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem 2rem !important;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2.2rem !important;
  }
  .footer-specialities-split {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
}
