/* ============================================
   MAA IVF ASSAM — Master Stylesheet
   Warm Luxury-Medical Design System
   ============================================ */

/* --- Google Fonts --- */
/* Fonts loaded via <link> in header.php for non-blocking load */

/* --- CSS Custom Properties --- */
:root {
  /* Force light mode — prevent browser/OS dark mode from overriding */
  color-scheme: light only;
  /* Colors — Muted Gold & Lavender Theme */
  --color-primary: #D4AF7F;
  --color-primary-light: #E8D4B8;
  --color-primary-dark: #B8925A;
  --color-secondary: #4A3F6B;
  --color-secondary-light: #6B5F8E;
  --color-secondary-dark: #2E2548;
  --color-bg: #FAFAFF;
  --color-bg-alt: #F3F0FA;
  --color-accent: #E6DFF5;
  --color-accent-light: #F0ECF8;
  --color-white: #FFFFFF;
  --color-text: #2E2A3A;
  --color-text-light: #5A5470;
  --color-text-muted: #9590A5;
  --color-border: #E0DAF0;
  --color-success: #4CAF50;
  --color-error: #E53935;
  --color-warning: #FF9800;
  --color-overlay: rgba(74, 63, 107, 0.85);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #D4AF7F 0%, #E8D4B8 100%);
  --gradient-secondary: linear-gradient(135deg, #4A3F6B 0%, #6B5F8E 100%);
  --gradient-hero: linear-gradient(180deg, rgba(74, 63, 107, 0.7) 0%, rgba(74, 63, 107, 0.4) 50%, rgba(250, 250, 255, 1) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 255, 0.6) 100%);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes (fluid) */
  --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --fs-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
  --fs-base: clamp(0.9rem, 0.85rem + 0.35vw, 1rem);
  --fs-md: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  --fs-lg: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
  --fs-xl: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  --fs-2xl: clamp(1.6rem, 1.3rem + 1.5vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --fs-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 4rem);
  --fs-hero: clamp(2.8rem, 2rem + 4vw, 5rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --section-padding: clamp(2rem, 4vw, 5rem);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(212, 175, 127, 0.35);
  --shadow-card: 0 4px 24px rgba(74, 63, 107, 0.08);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-bottom-nav: 700;

  /* Layout */
  --header-height: 120px;
  --header-height-scrolled: 120px;
  --bottom-nav-height: 65px;
  --max-width: 1280px;
  --max-width-narrow: 800px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  /* clip instead of hidden — doesn't create BFC that can hurt scroll perf */
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Let the browser know we'll scroll vertically — helps touch scroll prediction */
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-secondary);
}

h1 {
  font-size: var(--fs-hero);
}

h2 {
  font-size: var(--fs-3xl);
}

h3 {
  font-size: var(--fs-2xl);
}

h4 {
  font-size: var(--fs-xl);
}

h5 {
  font-size: var(--fs-lg);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

::selection {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-dark {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.8);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header .section-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-lg);
  background: rgba(212, 175, 127, 0.15);
  color: var(--color-primary-dark);
  border-radius: var(--radius-xl);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-dark .section-badge {
  background: rgba(212, 175, 127, 0.25);
  color: var(--color-primary-light);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--fs-md);
}

.section-header .decorative-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  margin: var(--space-lg) auto 0;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-base);
  letter-spacing: 0.5px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(212, 175, 127, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 127, 0.5);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(74, 63, 107, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 63, 107, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-secondary);
  border-color: var(--color-white);
}

.btn-sm {
  padding: 10px 22px;
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: 18px 42px;
  font-size: var(--fs-md);
}

.btn-glow {
  /* Animation removed — causes constant GPU compositing */
  box-shadow: 0 4px 15px rgba(212, 175, 127, 0.4);
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: var(--z-header);
  /* Transparent initially — fills solid on scroll */
  background: transparent;
  box-shadow: none;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  /* GPU layer promotion */
  contain: layout style;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Solid white once user has scrolled */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(74, 63, 107, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: var(--z-header);
}

.logo-img {
  height: 120px;
  width: auto;
  /* Fixed size — never changes during scroll */
}

/* scrolled state: same size, no change */
.site-header.scrolled .logo-img {
  height: 120px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-white);
  font-weight: 700;
  font-family: var(--font-heading);
  transition: transform var(--transition-base);
}

.logo:hover .logo-icon {
  transform: rotate(-5deg) scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.5px;
}

/* Logo name: white on transparent header, dark on solid header */
.site-header:not(.scrolled) .logo-name {
  color: var(--color-white);
}
.site-header.scrolled .logo-name {
  color: var(--color-secondary);
}

.logo-tagline {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.site-header:not(.scrolled) .logo-tagline {
  color: rgba(255, 255, 255, 0.75);
}
.site-header.scrolled .logo-tagline {
  color: var(--color-text-muted);
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-desktop a {
  padding: 8px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

/* Nav links: white on transparent header, dark on solid header */
.site-header:not(.scrolled) .nav-desktop a {
  color: rgba(255, 255, 255, 0.9);
}
.site-header.scrolled .nav-desktop a {
  color: var(--color-text);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-primary);
}

.site-header:not(.scrolled) .nav-desktop a:hover,
.site-header:not(.scrolled) .nav-desktop a.active {
  color: var(--color-primary-light);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 60%;
}

.nav-cta {
  display: none;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: var(--fs-sm);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  padding: 10px;
  z-index: calc(var(--z-header) + 1);
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.menu-toggle:active {
  background: rgba(74, 63, 107, 0.06);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--color-secondary);
  border-radius: 3px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.menu-toggle span:nth-child(2) {
  width: 16px;
  margin-left: auto;
}

/* Hamburger: white on transparent header, violet on solid header */
.site-header:not(.scrolled) .menu-toggle span {
  background: var(--color-white);
}
.site-header.scrolled .menu-toggle span {
  background: var(--color-secondary);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5.5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5.5px);
}

.menu-toggle.active span {
  width: 22px;
}

/* Mobile Menu Overlay — Slide-in Panel */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 340px;
  height: 100vh;
  height: 100dvh;
  background-color: #FFFFFF;
  z-index: calc(var(--z-header) - 1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  opacity: 1;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(74, 63, 107, 0.12);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
}

/* Dark backdrop — covers only the area LEFT of the panel */
.nav-mobile::before {
  content: '';
  position: fixed;
  top: 0;
  right: 340px;
  width: 100vw;
  height: 100vh;
  background: rgba(46, 42, 58, 0.4);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.nav-mobile.active {
  transform: translateX(0);
  pointer-events: all;
}

.nav-mobile.active::before {
  opacity: 1;
  pointer-events: all;
}

/* Nav header area inside panel */
.nav-mobile-header {
  padding: calc(var(--header-height) + 8px) 28px 20px;
  border-bottom: 1px solid #E0DAF0;
  background: #FFFFFF;
}

.nav-mobile-header p {
  font-size: 0.75rem;
  color: #4A3F6B;
  margin: 0;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  gap: 2px;
  flex: 1;
  background-color: #FFFFFF;
}

.nav-mobile li {
  transform: translateX(20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-mobile.active li {
  transform: translateX(0);
  opacity: 1;
}

/* Staggered entry for each link */
.nav-mobile.active li:nth-child(1) { transition-delay: 0.08s; }
.nav-mobile.active li:nth-child(2) { transition-delay: 0.12s; }
.nav-mobile.active li:nth-child(3) { transition-delay: 0.16s; }
.nav-mobile.active li:nth-child(4) { transition-delay: 0.20s; }
.nav-mobile.active li:nth-child(5) { transition-delay: 0.24s; }
.nav-mobile.active li:nth-child(6) { transition-delay: 0.28s; }
.nav-mobile.active li:nth-child(7) { transition-delay: 0.32s; }
.nav-mobile.active li:nth-child(8) { transition-delay: 0.36s; }

.nav-mobile a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #4A3F6B;
  font-weight: 500;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  position: relative;
  letter-spacing: 0.2px;
}

.nav-mobile a .nav-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: #4A3F6B;
  transition: all 0.25s ease;
}

.nav-mobile a .nav-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.nav-mobile a:hover,
.nav-mobile a:active {
  background: none;
  color: #4A3F6B;
}

.nav-mobile a:hover .nav-icon,
.nav-mobile a:active .nav-icon {
  background: none;
  color: #4A3F6B;
}

.nav-mobile a.active {
  background: none;
  color: #4A3F6B;
  font-weight: 600;
}

.nav-mobile a.active .nav-icon {
  background: #4A3F6B;
  color: #FFFFFF;
}

/* CTA button inside mobile nav */
.nav-mobile .nav-mobile-cta {
  padding: 16px 28px 24px;
  margin-top: auto;
  border-top: 1px solid #E0DAF0;
  background-color: #FFFFFF;
}

.nav-mobile .nav-mobile-cta a.btn {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  gap: 8px;
  background: linear-gradient(135deg, #D4AF7F 0%, #C49A68 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 127, 0.35);
}

.nav-mobile .nav-mobile-cta a.btn:active {
  transform: scale(0.98);
}

/* Contact info at bottom of nav */
.nav-mobile-contact {
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #FFFFFF;
}

.nav-mobile-contact a {
  font-size: 0.78rem;
  color: #9590A5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-mobile-contact a:hover {
  color: #4A3F6B;
  background: none;
}

.nav-mobile-contact a svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  flex-shrink: 0;
  color: #4A3F6B;
}

/* --- Bottom Navigation (Mobile) --- */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--bottom-nav-height);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
  z-index: var(--z-bottom-nav);
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--space-sm);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transition: transform 0.2s ease;
  /* GPU-promote so it doesn't cause main-thread repaints during scroll */
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout style;
}

.bottom-nav.hidden {
  transform: translateY(100%) translateZ(0);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  transition: color var(--transition-fast);
  position: relative;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--color-secondary);
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.bottom-nav-item.book-now {
  position: relative;
  color: var(--color-white);
}

.bottom-nav-item.book-now .book-now-circle {
  width: 52px;
  height: 52px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -22px;
  box-shadow: 0 4px 15px rgba(212, 175, 127, 0.4);
}

.bottom-nav-item.book-now svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.bottom-nav-item.book-now span {
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* --- Hero Section — COMPLETELY STATIC --- */
.hero {
  position: relative;
  min-height: 100vh;
  /* Use fixed 100vh only — svh/dvh resize with mobile address bar causing jank */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-secondary-dark);
  contain: layout style paint;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  /* Fully static — no transforms, no will-change, no GPU compositing tricks */
  /* The image/video just sits there. No scroll effects at all. */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(74, 63, 107, 0.35) 0%,
      rgba(74, 63, 107, 0.25) 60%,
      rgba(46, 37, 72, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: var(--z-base);
  text-align: center;
  padding: 0 var(--space-xl);
  max-width: 850px;
}

.hero h1 {
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-2xl);
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-xs);
  cursor: pointer;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
}

/* Floating SVG Motifs — DISABLED for performance */
.hero-particles {
  display: none !important;
}

.hero-particle {
  display: none !important;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: var(--gradient-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 127, 0.2) 0%, transparent 70%);
  border-radius: var(--radius-full);
}

.page-hero h1 {
  color: var(--color-white);
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-md);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-md);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-primary-light);
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.4);
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--color-white);
  padding: var(--space-2xl) 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  margin-top: 60px;
  border-radius: var(--radius-lg);
  margin-left: var(--space-xl);
  margin-right: var(--space-xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  font-weight: 500;
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

@media (hover: hover) and (pointer: fine) {
  .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-bg-alt);
}

.card-body {
  padding: var(--space-xl);
}

.card-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(212, 175, 127, 0.15);
  color: var(--color-primary-dark);
  border-radius: var(--radius-xl);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.card-text {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: var(--space-sm);
}

.card-link svg {
  width: 16px;
  height: 16px;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-primary);
}

@media (hover: hover) and (pointer: fine) {
  .service-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .service-card::before {
    transition: height var(--transition-slow);
  }

  .service-card:hover::before {
    height: 100%;
  }

  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 127, 0.2);
  }
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 127, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.service-icon svg {
  stroke: var(--color-primary);
  transition: stroke var(--transition-base);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: var(--color-white);
  transform: scale(1.1);
}

.service-card:hover .service-icon svg {
  stroke: var(--color-white);
}

.service-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
}

/* --- Image-Based Service Cards --- */
.service-card.service-card-img {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.service-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}

.service-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(74, 63, 107, 0.08), transparent);
  pointer-events: none;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card.service-card-img:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-body {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body p {
  flex: 1;
}

.service-card-body .card-link {
  margin-top: auto;
}

/* --- Why Choose Us --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.why-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

@media (hover: hover) and (pointer: fine) {
  .why-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .why-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
  }
}

.why-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(74, 63, 107, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-secondary);
}

.why-icon svg {
  stroke: var(--color-secondary);
  transition: stroke var(--transition-base);
}

.why-card:hover .why-icon {
  background: var(--gradient-secondary);
  color: var(--color-white);
}

.why-card:hover .why-icon svg {
  stroke: var(--color-white);
}

.why-content h4 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-xs);
}

.why-content p {
  font-size: var(--fs-sm);
  margin-bottom: 0;
}

/* --- Doctor Cards --- */
.doctors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.doctor-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.doctor-card-inner {
  position: relative;
  width: 100%;
}

/* Desktop-only: flip on hover. Disabled on touch — avoids GPU-heavy 3D during scroll */
@media (hover: hover) and (pointer: fine) {
  .doctor-card {
    perspective: 1000px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
  }

  .doctor-card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
  }

  .doctor-card:hover .doctor-card-inner {
    transform: rotateY(180deg);
  }
}

.doctor-card-front,
.doctor-card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.doctor-card-front {
  position: relative;
}

.doctor-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotateY(180deg);
  background: var(--gradient-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  text-align: center;
}

.doctor-card-back h4 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.doctor-card-back p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
}

.doctor-photo {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* When photo exists: fill entire card area */
.doctor-photo-circle {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(230, 223, 245, 0.4), rgba(255, 216, 194, 0.3));
}

/* Photo fills the full banner */
.doctor-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0 !important;
  display: block;
}

/* Fallback SVG icon (no photo) */
.doctor-photo-circle svg {
  stroke: var(--color-secondary);
  width: 72px;
  height: 72px;
}

.doctor-info {
  padding: var(--space-md) var(--space-lg);
  text-align: center;
}

.doctor-name {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--color-secondary);
  margin-bottom: var(--space-xs);
}

.doctor-role {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(230, 223, 245, 0.25);
  color: var(--color-accent);
  border-radius: var(--radius-xl);
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.doctor-bio {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- Testimonials --- */
.testimonials-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin: 0 var(--space-sm);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-md);
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary);
}

.testimonial-text {
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-left: var(--space-xl);
}

.testimonial-text::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.3;
  position: absolute;
  left: -5px;
  top: -15px;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 600;
  font-size: var(--fs-md);
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-secondary);
  font-size: var(--fs-sm);
}

.testimonial-location {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-dot.active {
  background: var(--color-primary);
  width: 28px;
  border-radius: 5px;
}

/* --- Fact Ticker --- */
.fact-ticker {
  background: var(--color-secondary);
  padding: var(--space-lg) 0;
  overflow: hidden;
  position: relative;
}

.fact-ticker::before,
.fact-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.fact-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-secondary) 0%, transparent 100%);
}

.fact-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-secondary) 0%, transparent 100%);
}

.ticker-track {
  display: flex;
  width: fit-content;
  animation: tickerScroll 120s linear infinite;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  flex-shrink: 0;
  padding: 0 var(--space-3xl);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.ticker-item::before {
  content: '💡';
  font-size: 1.1rem;
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

@media (hover: hover) and (pointer: fine) {
  .blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: var(--space-xl);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.blog-category {
  padding: 3px 10px;
  background: rgba(74, 63, 107, 0.08);
  color: var(--color-secondary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.blog-card:hover h3 {
  color: var(--color-primary);
}

/* --- Blog Full Article --- */
.blog-full-article {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.blog-full-article h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-lg);
}

.blog-full-article h3 {
  font-size: var(--fs-xl);
  margin: var(--space-2xl) 0 var(--space-md);
}

.blog-full-article p {
  font-size: var(--fs-base);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.blog-full-article ul,
.blog-full-article ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.blog-full-article li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
  color: var(--color-text-light);
}

.blog-full-article ul li {
  list-style: disc;
}

.blog-full-article ol li {
  list-style: decimal;
}

/* --- FAQ Accordion --- */
.faq-container {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.faq-category {
  margin-bottom: var(--space-2xl);
}

.faq-category-title {
  font-size: var(--fs-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: var(--color-primary);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--color-secondary);
  background: var(--color-white);
  transition: all var(--transition-fast);
  gap: var(--space-md);
}

.faq-item.active .faq-question {
  background: rgba(212, 175, 127, 0.08);
}

.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(74, 63, 107, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.faq-item.active .faq-toggle {
  background: var(--color-primary);
  transform: rotate(180deg);
}

.faq-toggle svg {
  width: 16px;
  height: 16px;
  color: var(--color-secondary);
  transition: color var(--transition-base);
}

.faq-item.active .faq-toggle svg {
  color: var(--color-white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: 1.8;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

@media (hover: hover) and (pointer: fine) {
  .contact-info-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(74, 63, 107, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-secondary);
}

.contact-info-card h4 {
  font-size: var(--fs-base);
  margin-bottom: var(--space-xs);
}

.contact-info-card p {
  font-size: var(--fs-sm);
  margin-bottom: 0;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 350px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Appointment Card --- */
.appointment-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(74, 63, 107, 0.10), 0 1px 3px rgba(74, 63, 107, 0.06);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(212, 175, 127, 0.18);
}

.appointment-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-2xl);
  background: linear-gradient(135deg, rgba(74, 63, 107, 0.04) 0%, rgba(212, 175, 127, 0.07) 100%);
  border-bottom: 1px solid var(--color-border);
}

.appointment-card-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.appointment-card-title {
  font-size: var(--fs-xl);
  margin-bottom: 2px;
  color: var(--color-secondary);
}

.appointment-card-subtitle {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.appointment-card form {
  padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

/* --- Form Progress Bar --- */
.form-progress {
  height: 4px;
  background: var(--color-bg-alt);
  position: relative;
}

.form-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 0 2px 2px 0;
  transition: width 0.4s ease;
}

/* --- Form Sections --- */
.form-section {
  margin-bottom: var(--space-xl);
}

.form-section-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
}

.form-step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--gradient-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* --- Form Row (two-column) --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* --- Form Groups --- */
.form-group {
  position: relative;
  margin-bottom: var(--space-lg);
}

.form-input-wrap {
  position: relative;
}

.form-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  transition: color var(--transition-fast);
  z-index: 1;
}

.form-input-wrap textarea~.form-field-icon,
.form-field-icon[style*="top: 18px"] {
  top: 18px;
  transform: none;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 18px 16px 46px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--fs-base);
  transition: all var(--transition-fast);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(212, 175, 127, 0.15);
}

.form-group input:focus~.form-field-icon,
.form-group textarea:focus~.form-field-icon,
.form-group select:focus~.form-field-icon {
  color: var(--color-primary);
}

/* Floating label inside .form-input-wrap — always floated up */
.form-input-wrap label {
  position: absolute;
  left: 14px;
  top: -10px;
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  pointer-events: none;
  background: var(--color-white);
  padding: 0 4px;
  line-height: 1;
  z-index: 1;
}

.form-input-wrap input:focus~label,
.form-input-wrap input:not(:placeholder-shown)~label,
.form-input-wrap textarea:focus~label,
.form-input-wrap textarea:not(:placeholder-shown)~label,
.form-input-wrap select:focus~label,
.form-input-wrap select:valid~label {
  top: -10px;
  left: 14px;
  font-size: var(--fs-xs);
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-white);
}

/* Backward-compatible: forms WITHOUT .form-input-wrap (e.g. contact form) */
.form-group>input,
.form-group>textarea,
.form-group>select {
  padding-left: 18px;
}

.form-group>label {
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--color-text-muted);
  font-size: var(--fs-base);
  pointer-events: none;
  transition: all var(--transition-fast);
  background: transparent;
  padding: 0 4px;
  line-height: 1;
}

.form-group>input:focus~label,
.form-group>input:not(:placeholder-shown)~label,
.form-group>textarea:focus~label,
.form-group>textarea:not(:placeholder-shown)~label,
.form-group>select:focus~label,
.form-group>select:valid~label {
  top: -10px;
  left: 14px;
  font-size: var(--fs-xs);
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-white);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--color-error);
  margin-top: var(--space-xs);
  padding-left: 46px;
  display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: var(--color-error);
  background: rgba(229, 57, 53, 0.03);
}

.form-group.error .form-error {
  display: block;
}

/* Static label (used above select/date fields to prevent overlap) */
.form-static-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
  padding: 0 2px !important;
  position: static !important;
  background: none !important;
  pointer-events: auto;
}

/* Green Payment Button */
.btn-pay {
  background: linear-gradient(135deg, #43A047 0%, #66BB6A 100%);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(67, 160, 71, 0.35);
}

.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 160, 71, 0.45);
}

/* --- Clinic Closed Notice --- */
.clinic-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, rgba(212, 175, 127, 0.12) 0%, rgba(255, 152, 0, 0.08) 100%);
  border: 1px solid rgba(212, 175, 127, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: var(--fs-sm);
  color: var(--color-primary-dark);
  line-height: 1.5;
}

.clinic-notice svg {
  min-width: 18px;
  margin-top: 2px;
  color: var(--color-warning);
}

.clinic-notice.shake {
  animation: noticeShake 0.5s ease;
}

@keyframes noticeShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

/* --- Time Slot Pills --- */
.time-slots-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  position: static !important;
  background: none !important;
  padding: 0 2px !important;
  pointer-events: auto;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}

.time-slots-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  font-style: italic;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--color-border);
  margin: 0;
}

.time-pill {
  padding: 12px 8px;
  min-height: 44px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(212, 175, 127, 0.2);
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  z-index: 2;
}

.time-pill:hover {
  border-color: var(--color-primary);
  background: rgba(212, 175, 127, 0.08);
  transform: translateY(-1px);
}

.time-pill.active {
  background: var(--gradient-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(212, 175, 127, 0.35);
  transform: translateY(-1px);
}

/* --- Fee Breakdown Card (Modern) --- */
.fee-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: var(--space-xl);
}

.fee-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, rgba(74, 63, 107, 0.06) 0%, rgba(212, 175, 127, 0.06) 100%);
  border-bottom: 1px solid var(--color-border);
}

.fee-card-header h3 {
  font-size: var(--fs-md);
  margin-bottom: 0;
  color: var(--color-secondary);
}

.fee-card-body {
  padding: var(--space-lg);
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

.fee-row:not(:last-child) {
  border-bottom: 1px solid rgba(224, 218, 240, 0.5);
}

.fee-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0 0;
  margin-top: var(--space-sm);
  border-top: 2px solid var(--color-secondary);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-secondary);
}

/* --- Appointment Success --- */
.booking-success {
  display: none;
  text-align: center;
  padding: var(--space-3xl);
}

.booking-success.show {
  display: block;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: rgba(76, 175, 80, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  animation: scaleIn 0.5s ease;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-success);
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.booking-summary {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
  text-align: left;
}

.booking-summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--color-border);
}

.booking-summary-row:last-child {
  border-bottom: none;
}

.booking-summary-label {
  color: var(--color-text-muted);
}

.booking-summary-value {
  color: var(--color-text);
  font-weight: 600;
}

/* --- Success Page: Green Notice --- */
.success-notice {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-left: 4px solid #43A047;
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
  text-align: left;
  font-size: var(--fs-sm);
  color: #2E7D32;
  line-height: 1.5;
}

.success-notice svg {
  min-width: 20px;
  color: #43A047;
}

/* --- Verification Code Card --- */
.verification-code-card {
  background: linear-gradient(135deg, #4A3F6B, #6B5F8E);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  margin: var(--space-xl) auto;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(74, 63, 107, 0.25);
}

.verification-label {
  font-size: var(--fs-xs);
  color: rgba(212, 175, 127, 0.9);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.verification-code {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 8px;
  font-family: var(--font-body);
  margin-bottom: var(--space-sm);
}

.verification-hint {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

/* --- Email Confirmation Message --- */
.email-confirm-msg {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: rgba(212, 175, 127, 0.1);
  border: 1px solid rgba(212, 175, 127, 0.3);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  text-align: left;
  font-size: var(--fs-sm);
  color: var(--color-primary-dark);
  line-height: 1.5;
}

.email-confirm-msg svg {
  min-width: 18px;
  color: var(--color-primary);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 1px);
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.timeline-text {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

/* --- Mission/Vision/Values --- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.value-card {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

@media (hover: hover) and (pointer: fine) {
  .value-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
}

.value-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 127, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.8rem;
}

.value-icon svg {
  stroke: var(--color-primary-dark);
}

.value-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--gradient-secondary);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 127, 0.2) 0%, transparent 70%);
  border-radius: var(--radius-full);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 127, 0.15) 0%, transparent 70%);
  border-radius: var(--radius-full);
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-secondary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-4xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

.footer-brand .footer-logo-img {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.footer-brand .footer-logo-img:hover {
  opacity: 1;
}

.footer-brand>p {
  margin-top: var(--space-lg);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: rgba(255, 255, 255, 0.7);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: var(--color-white);
  font-size: var(--fs-base);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  position: relative;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-links a:hover {
  color: var(--color-primary-light);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-xl) 0;
  text-align: center;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: var(--color-primary-light);
}

/* --- Cursor Glow — FULLY DISABLED --- */
.cursor-glow {
  display: none !important;
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--space-lg));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  transition: transform var(--transition-spring);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--color-success);
}

.toast.error {
  background: var(--color-error);
}

/* --- Loading Spinner --- */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
  margin: var(--space-xl) auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Service Detail Section --- */
.service-detail {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.service-detail-icon {
  width: 70px;
  height: 70px;
  background: rgba(212, 175, 127, 0.12);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.service-detail-icon svg {
  stroke: var(--color-primary-dark);
}

.service-detail h2 {
  font-size: var(--fs-2xl);
}

.service-detail h3 {
  font-size: var(--fs-lg);
  color: var(--color-primary);
  margin: var(--space-xl) 0 var(--space-md);
}

.service-detail p {
  line-height: 1.8;
}

.service-detail ul {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.service-detail li {
  list-style: disc;
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
  line-height: 1.7;
}

.service-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.service-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}

/* --- Category Badge for Doctors --- */
.category-section {
  margin-bottom: var(--space-3xl);
}

.category-title {
  font-size: var(--fs-xl);
  color: var(--color-secondary);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile 2-column (420px+) — optimizes vertical space */
@media (min-width: 420px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* why-grid stays single column on mobile for previous version layout */

  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* blog-grid stays single column on mobile for previous version layout */

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet (768px) */
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar {
    margin-left: var(--space-2xl);
    margin-right: var(--space-2xl);
  }

  .service-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor-photo {
    height: 240px;
  }

  .doctor-photo-circle {
    width: 100%;
    height: 100%;
  }

  .doctor-info {
    padding: var(--space-lg) var(--space-xl);
  }
}

/* Desktop (1024px) */
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .nav-cta {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .bottom-nav {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
  }

  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .stats-bar {
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
  }

  body {
    padding-bottom: 0;
  }

  .doctor-photo {
    height: 240px;
  }

  .doctor-photo-circle {
    width: 100%;
    height: 100%;
  }
}

/* Large Desktop (1440px) */
@media (min-width: 1440px) {
  .container {
    padding: 0 var(--space-3xl);
  }
}

/* Mobile bottom padding */
@media (max-width: 1023px) {
  body {
    padding-bottom: var(--bottom-nav-height);
  }
}

/* ============================================
   MOBILE COMPACT STYLES (< 768px)
   Optimizes vertical space for premium feel
   ============================================ */
@media (max-width: 767px) {

  /* Tighter container padding */
  .container {
    padding: 0 var(--space-md);
  }

  /* Compact section headers */
  .section-header {
    margin-bottom: var(--space-lg);
  }

  .section-header .section-badge {
    padding: 3px var(--space-md);
    font-size: var(--fs-xs);
    margin-bottom: var(--space-sm);
  }

  .section-header .decorative-line {
    margin-top: var(--space-md);
  }

  /* Compact service cards */
  .service-card {
    padding: var(--space-lg);
  }

  .service-card-body {
    padding: var(--space-md) var(--space-md) var(--space-sm);
  }

  .service-card-body h3 {
    font-size: var(--fs-base);
  }

  .service-card-body p {
    font-size: var(--fs-xs);
    line-height: 1.5;
  }

  .service-card-image {
    height: 130px;
  }

  .service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
  }

  .service-card h3 {
    font-size: var(--fs-base);
  }

  .service-card p {
    font-size: var(--fs-xs);
  }

  /* Compact why cards — horizontal layout (previous version) */
  .why-card {
    padding: var(--space-md);
    gap: var(--space-md);
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .why-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .why-content h4 {
    font-size: var(--fs-sm);
  }

  .why-content p {
    font-size: var(--fs-xs);
    line-height: 1.5;
  }

  /* Compact doctor cards for mobile */
  .doctor-photo {
    height: 180px;
  }

  .doctor-photo-circle {
    width: 100%;
    height: 100%;
  }

  .doctor-photo-circle svg {
    width: 48px;
    height: 48px;
  }

  .doctor-info {
    padding: var(--space-sm) var(--space-md);
  }

  .doctor-name {
    font-size: var(--fs-base);
  }

  .doctor-role {
    font-size: 0.6rem;
    padding: 2px 8px;
  }

  .doctor-bio {
    font-size: var(--fs-xs);
    line-height: 1.5;
  }

  .doctor-info .btn {
    padding: 8px 16px;
    font-size: var(--fs-xs);
  }

  /* Compact blog cards — single column (previous version layout) */
  .blog-card-image {
    height: 180px;
  }

  .blog-card-body {
    padding: var(--space-md);
  }

  .blog-card h3 {
    font-size: var(--fs-base);
  }

  .blog-card .card-text {
    font-size: var(--fs-xs);
    line-height: 1.5;
  }

  /* Compact stats bar */
  .stats-bar {
    padding: var(--space-lg) 0;
    margin-left: var(--space-md);
    margin-right: var(--space-md);
    margin-top: -40px;
  }

  .stat-number {
    font-size: var(--fs-2xl);
  }

  .stat-label {
    font-size: var(--fs-xs);
  }

  /* Compact forms */
  .form-group {
    margin-bottom: var(--space-md);
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 14px 14px 14px 40px;
    font-size: var(--fs-sm);
    line-height: 1.4;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Prevent floating label overlap on mobile */
  .form-input-wrap label {
    font-size: 0.7rem;
    left: 12px;
    top: -9px;
    padding: 0 5px;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .form-static-label {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .time-slots-label {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .form-error {
    padding-left: 14px;
    font-size: 0.7rem;
  }

  .appointment-card-header {
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-sm);
  }

  .appointment-card form {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
  }

  .appointment-card-title {
    font-size: var(--fs-lg);
  }

  .appointment-card-subtitle {
    font-size: var(--fs-xs);
  }

  .form-section-label {
    font-size: var(--fs-sm);
    margin-bottom: var(--space-md);
  }

  .form-step-num {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: var(--fs-xs);
  }

  .clinic-notice {
    font-size: var(--fs-xs);
    padding: var(--space-sm) var(--space-md);
  }

  .appointment-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .appointment-card-icon svg {
    width: 22px;
    height: 22px;
  }

  .time-slots {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .time-pill {
    padding: 12px 4px;
    min-height: 48px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .fee-card-body {
    padding: var(--space-md);
  }

  /* Backward-compatible contact form mobile */
  .form-group>input,
  .form-group>textarea,
  .form-group>select {
    padding-left: 14px;
  }

  .form-group>label {
    top: 12px;
    left: 14px;
  }

  /* Compact page hero (inner pages) */
  .page-hero {
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
  }

  /* Compact CTA banner */
  .cta-banner {
    padding: var(--space-2xl) 0;
  }

  /* Compact footer */
  .footer-grid {
    gap: var(--space-xl);
  }

  /* Compact value cards */
  .value-card {
    padding: var(--space-lg);
  }

  .value-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
  }

  .value-card h3 {
    font-size: var(--fs-base);
  }

  /* Doctor card FLIP on mobile — tap to flip */
  .doctor-card {
    perspective: 1000px;
  }

  .doctor-card-inner {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
  }

  .doctor-card.flipped .doctor-card-inner {
    transform: rotateY(180deg);
  }

  .doctor-card-back {
    padding: var(--space-md);
  }

  .doctor-card-back h4 {
    font-size: var(--fs-base);
    margin-bottom: var(--space-xs);
  }

  .doctor-card-back p {
    font-size: var(--fs-xs);
    line-height: 1.5;
  }
}

/* --- Print Styles --- */
@media print {

  .site-header,
  .bottom-nav,
  .cursor-glow,
  .cta-banner,
  .hero-particles {
    display: none !important;
  }

  body {
    padding-bottom: 0;
    color: #000;
    background: #fff;
  }
}

/* --- Icon Images (Emoji Replacements) --- */
.faq-category-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 127, 0.3));
  display: inline-block;
}

.inline-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: -6px;
  margin-right: 6px;
  border-radius: 4px;
  filter: drop-shadow(0 1px 3px rgba(212, 175, 127, 0.25));
  display: inline-block;
}

.inline-icon-sm {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -3px;
  margin-right: 4px;
  border-radius: 3px;
  filter: drop-shadow(0 1px 2px rgba(212, 175, 127, 0.2));
  display: inline-block;
}