/* ==========================================================================
   Design System & Variable Configurations
   ========================================================================== */
:root {
  /* HSL Color Tokens - Light Mode (Default) */
  --primary-h: 218;
  --primary-s: 85%;
  --primary-l: 25%; /* Deep clinical royal blue */
  
  --accent-h: 198;
  --accent-s: 88%;
  --accent-l: 45%; /* High-tech medical cyan/blue */
  
  --bg-h: 210;
  --bg-s: 20%;
  --bg-l: 98%; /* Clean cool grey/white */

  --card-bg-h: 0;
  --card-bg-s: 0%;
  --card-bg-l: 100%; /* Pure white */

  --text-h: 215;
  --text-s: 25%;
  --text-l: 15%; /* Slate dark */

  --muted-h: 215;
  --muted-s: 16%;
  --muted-l: 47%; /* Slate muted */

  /* Compiled Colors */
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-hover: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 5%));
  --primary-light: hsl(var(--primary-h), var(--primary-s), 95%);
  --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --bg: hsl(var(--bg-h), var(--bg-s), var(--bg-l));
  --card-bg: hsl(var(--card-bg-h), var(--card-bg-s), var(--card-bg-l));
  --text: hsl(var(--text-h), var(--text-s), var(--text-l));
  --text-muted: hsl(var(--muted-h), var(--muted-s), var(--muted-l));
  --border: hsl(var(--text-h), 15%, 90%);
  --shadow: rgba(15, 23, 42, 0.06);
  --shadow-lg: rgba(15, 23, 42, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  /* Additional UI States */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Typography & Layout Spacing */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
}

/* Dark Mode Variables Override */
html[data-theme="dark"] {
  --primary-h: 215;
  --primary-s: 85%;
  --primary-l: 50%; /* Lighter blue for readability in dark */
  
  --accent-h: 198;
  --accent-s: 80%;
  --accent-l: 50%; /* Lighter cyan */

  --bg-h: 222;
  --bg-s: 47%;
  --bg-l: 11%; /* Deep Navy Slate (#0f172a) */

  --card-bg-h: 224;
  --card-bg-s: 71%;
  --card-bg-l: 4%; /* Near black */

  --text-h: 210;
  --text-s: 40%;
  --text-l: 98%; /* Warm white */

  --muted-h: 215;
  --muted-s: 20%;
  --muted-l: 65%; /* Soft gray */

  --border: hsl(217, 32%, 18%);
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(15, 23, 42, 0.8);
  --glass-border: rgba(15, 23, 42, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

/* ==========================================================================
   Loading Splash Screen
   ========================================================================== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 50%, #e8f4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

html[data-theme="dark"] .splash-screen {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  z-index: 2;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(13, 148, 136, 0.3));
}

.loading-spinner {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-dot {
  width: 3px;
  height: 35px;
  background: linear-gradient(180deg, #0d9488 0%, rgba(13, 148, 136, 0.3) 100%);
  border-radius: 50px;
  position: absolute;
  animation: orbit 2s linear infinite;
}

.spinner-dot:nth-child(1) {
  animation: orbitLine1 2s linear infinite;
}

.spinner-dot:nth-child(2) {
  animation: orbitLine2 2s linear infinite;
}

@keyframes orbitLine1 {
  0% {
    transform: rotate(0deg) translateY(-75px);
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: rotate(360deg) translateY(-75px);
    opacity: 1;
  }
}

@keyframes orbitLine2 {
  0% {
    transform: rotate(180deg) translateY(-75px);
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(540deg) translateY(-75px);
    opacity: 0.6;
  }
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(75px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(75px) rotate(-360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) + 20%));
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   Utilities & Common Classes
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  border: 1px solid hsl(var(--primary-h), var(--primary-s), 90%);
}
html[data-theme="dark"] .badge {
  background-color: rgba(13, 148, 136, 0.15);
  border-color: rgba(13, 148, 136, 0.2);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-heading);
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
}

.btn-secondary {
  background-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  background-color: var(--text-muted);
  color: var(--card-bg);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-xs {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-text {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-text:hover {
  color: var(--accent);
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.error-msg {
  color: var(--error);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 4px;
  display: none;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--error);
}
.form-group.has-error .error-msg {
  display: block;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}
.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}
.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transition: var(--transition);
}
.nav-link.active, .nav-link:hover {
  color: var(--primary);
}
.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--border);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.theme-toggle-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
}
.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}
.sun-icon {
  display: none;
}
html[data-theme="dark"] .sun-icon {
  display: block;
}
html[data-theme="dark"] .moon-icon {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  background-color: var(--border);
}
.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 30px);
  padding-bottom: 50px;
  position: relative;
  background-color: var(--bg);
  overflow: hidden;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(120px);
  opacity: 0.15;
  z-index: 1;
}
.hero-bg-shapes .shape-1 {
  width: 400px;
  height: 400px;
  background-color: var(--primary);
  top: -100px;
  right: -50px;
}
.hero-bg-shapes .shape-2 {
  width: 300px;
  height: 300px;
  background-color: var(--accent);
  bottom: 0;
  left: -100px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: left;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.stat-card h3 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Hero Image & Floating Cards */
.hero-visual {
  position: relative;
}
.main-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: 0 20px 40px var(--shadow-lg);
}
.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 4px solid var(--card-bg);
}

.floating-card {
  position: absolute;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  animation: float 6s ease-in-out infinite;
}
.rating-floating {
  top: 40px;
  left: -40px;
  animation-delay: 0s;
}
.emergency-floating {
  bottom: 40px;
  right: -20px;
  animation-delay: 3s;
}

.floating-stars {
  color: var(--warning);
  font-size: 1.5rem;
  line-height: 1;
}
.floating-card strong {
  display: block;
  font-size: 1rem;
}
.floating-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pulse-icon {
  width: 16px;
  height: 16px;
  background-color: var(--error);
  border-radius: var(--radius-full);
  position: relative;
}
.pulse-icon::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 32px;
  height: 32px;
  border: 2px solid var(--error);
  border-radius: var(--radius-full);
  animation: pulse-ring 1.5s infinite;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* ==========================================================================
   CEO Message Section
   ========================================================================== */
.ceo-section {
  padding: 60px 0;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

.ceo-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.ceo-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 30px var(--shadow-lg);
}

.ceo-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1/1;
  display: block;
}

.ceo-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 70%, transparent 100%);
  padding: 24px;
  color: #fff;
  text-align: left;
}

.ceo-badge h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.ceo-badge p {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.ceo-content {
  text-align: left;
}

.ceo-title {
  font-size: 2.2rem;
  margin-bottom: 24px;
  line-height: 1.25;
  color: var(--primary);
}

.ceo-message-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-style: italic;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.ceo-signature {
  text-align: left;
}

.signature-line {
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin-bottom: 16px;
}

.signature-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.signature-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Services Section & Interactive Grid
   ========================================================================== */
.services-section {
  padding: 60px 0;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--bg);
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px var(--shadow);
  transition: var(--transition);
  text-align: left;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px var(--shadow-lg);
  border-color: var(--primary);
}

.service-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 24px 32px 0 32px;
}
html[data-theme="dark"] .service-icon-wrapper {
  background-color: rgba(13, 148, 136, 0.15);
}
.service-icon {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin: 0 32px 16px 32px;
  padding-top: 24px;
}
.service-card p {
  color: var(--text-muted);
  margin: 0 32px 32px 32px;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--card-bg);
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transform: scale(0.85);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.2rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
}

.modal-body h3 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--primary);
}
.modal-body .badge {
  margin-bottom: 24px;
}
.modal-body h4 {
  margin: 20px 0 10px;
  font-size: 1.15rem;
}
.modal-body ul {
  list-style-type: none;
  margin-bottom: 24px;
}
.modal-body ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}
.modal-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
}
.cost-table td, .cost-table th {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.cost-table th {
  font-weight: 700;
  background-color: var(--bg);
}

/* ==========================================================================
   Animated Clinic Headline Section
   ========================================================================== */
/* ==========================================================================
   Scrolling News-Ticker Headline
   ========================================================================== */
.headline-section {
  padding: 18px 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  overflow: hidden;
}

.headline-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.headline-track {
  display: inline-flex;
  align-items: center;
  animation: marquee 22s linear infinite;
  will-change: transform;
}

.headline-track:hover {
  animation-play-state: paused;
}

.headline-item {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  padding: 0 16px;
  white-space: nowrap;
}

.headline-divider {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .headline-item {
    font-size: 0.95rem;
    padding: 0 10px;
  }
  .headline-track {
    animation-duration: 16s;
  }
}


.tagline-section {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(13, 148, 136, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

html[data-theme="dark"] .tagline-section {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(13, 148, 136, 0.05) 100%);
}

.tagline-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.tagline-box {
  width: 100%;
  max-width: 1000px;
  padding: 80px 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typing-text {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
  min-height: calc(1.3em * 2);
  max-height: calc(1.3em * 2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  animation: taglineFade 6s ease-in-out infinite;
}

@keyframes taglineFade {
  0%, 5% {
    opacity: 0;
  }
  12%, 82% {
    opacity: 1;
  }
  95%, 100% {
    opacity: 0;
  }
}

/* ==========================================================================
   Doctors Section
   ========================================================================== */
.doctors-section {
  padding: 60px 0;
}

.doctors-grid-single {
  display: flex;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

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

.doctor-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  transition: var(--transition);
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px var(--shadow-lg);
}

.doctor-img-container {
    max-width: 420px;
    margin: 0 auto;
  }
  .doctor-img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
.doctor-card:hover .doctor-img {
  transform: scale(1.05);
}

.doctor-info {
  padding: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.doctor-specialty {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.doctor-info h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.doctor-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.doctor-credentials {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-block;
  align-self: flex-start;
}
html[data-theme="dark"] .doctor-credentials {
  background-color: rgba(13, 148, 136, 0.15);
}

.doctor-credentials-list {
  margin: 16px 0;
  padding: 16px;
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
}

html[data-theme="dark"] .doctor-credentials-list {
  background-color: rgba(13, 148, 136, 0.15);
}

.doctor-credentials-list p {
  margin: 8px 0;
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 500;
}

.doctor-credentials-list p:first-child {
  font-weight: 700;
  font-size: 1rem;
}

/* ==========================================================================
   Booking & Portal Engine
   ========================================================================== */
.booking-section {
  padding: 100px 0;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.booking-form-card, .booking-lookup-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 48px;
  box-shadow: 0 4px 14px var(--shadow);
}

.booking-form-header {
  text-align: left;
  margin-bottom: 32px;
}
.booking-form-header h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.booking-form-header p {
  color: var(--text-muted);
}

/* Wizard Indicators */
.wizard-steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}
.wizard-steps-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border);
  z-index: 1;
}

.step-indicator {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--bg);
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
  font-size: 0.9rem;
  transition: var(--transition);
}
.step-indicator.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.step-label {
  position: absolute;
  top: 38px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Steps contents */
.wizard-step {
  display: none;
}
.wizard-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.wizard-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}
.wizard-buttons .btn {
  flex: 1;
}

/* Available Slots Grid */
.slots-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.slot-item {
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}
.slot-item:hover:not(.booked) {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
}
.slot-item.selected {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
}
.slot-item.booked {
  background-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

/* Success Card */
.booking-success {
  display: none;
  text-align: center;
}
.success-icon-wrapper {
  width: 80px;
  height: 80px;
  background-color: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  margin: 0 auto 24px;
}
.success-icon {
  width: 40px;
  height: 40px;
}
.booking-success h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.success-details-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  margin: 24px auto 32px;
}
.success-details-card p {
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}
.success-details-card p:last-child {
  border: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Lookup Portal */
.lookup-header {
  text-align: left;
  margin-bottom: 24px;
}
.lookup-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.lookup-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-box {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}
.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--bg);
  color: var(--text);
  font-weight: 500;
}
.search-box input:focus {
  border-color: var(--primary);
}

.lookup-results {
  margin-bottom: 40px;
}
.no-results-msg {
  color: var(--text-muted);
  font-size: 0.95rem;
  background-color: var(--bg);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  text-align: center;
}

.lookup-item {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lookup-info h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.lookup-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.cancel-booking-btn {
  color: var(--error);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--error);
  transition: var(--transition);
}
.cancel-booking-btn:hover {
  background-color: var(--error);
  color: #fff;
}


/* ==========================================================================
   Testimonials & Ratings Layout
   ========================================================================== */
.testimonials-section {
  padding: 100px 0;
  background-color: var(--card-bg);
}

.testimonials-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 10px var(--shadow);
  text-align: left;
  animation: fadeIn 0.5s ease;
}

.testimonial-rating {
  color: var(--warning);
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.author-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}
.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.treatment-tag {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
html[data-theme="dark"] .treatment-tag {
  background-color: rgba(13, 148, 136, 0.15);
}

/* Add Review Form Card */
.add-review-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 4px 14px var(--shadow);
}
.add-review-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-align: left;
}
.add-review-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  text-align: left;
}

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

/* Stars Rating Input Selection */
.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  font-size: 1.8rem;
  margin-top: 4px;
}
.star-rating-input input {
  display: none;
}
.star-rating-input label {
  color: var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
  color: var(--warning);
}

/* ==========================================================================
   Contact & Interactive Map
   ========================================================================== */
.contact-section {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 10px var(--shadow);
  display: flex;
  gap: 24px;
  text-align: left;
  align-items: flex-start;
}
.info-icon-wrapper {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
html[data-theme="dark"] .info-icon-wrapper {
  background-color: rgba(13, 148, 136, 0.15);
}
.info-icon-wrapper svg {
  width: 24px;
  height: 24px;
}
.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Map Card & Dynamic Routing */
.map-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 14px var(--shadow);
  display: flex;
  flex-direction: column;
}

.map-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.map-header h3 {
  font-size: 1.25rem;
}
.map-controls {
  display: flex;
  gap: 8px;
}
.map-btn {
  background-color: var(--bg);
  border: 1px solid var(--border);
  font-weight: 600;
  cursor: pointer;
}
.map-btn.active {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.map-canvas-container {
  position: relative;
  width: 100%;
  height: 320px;
  background-color: #e2e8f0;
}
html[data-theme="dark"] .map-canvas-container {
  background-color: #1e293b;
}


.map-overlay-card {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background-color: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: left;
  max-width: 220px;
  pointer-events: none;
}
.map-overlay-card h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.map-overlay-card p {
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.map-overlay-card small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-brand {
  text-align: left;
}
.footer-logo {
  margin-bottom: 20px;
}
.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.emergency-alert {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}
.emergency-alert a {
  color: var(--accent);
}

.footer h3 {
  font-size: 1.15rem;
  margin-bottom: 24px;
  position: relative;
  text-align: left;
}

.footer ul {
  list-style: none;
  text-align: left;
}
.footer ul li {
  margin-bottom: 12px;
}
.footer ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-newsletter {
  text-align: left;
}
.footer-newsletter p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.newsletter-form button {
  background-color: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
}
.newsletter-form button:hover {
  background-color: var(--primary-hover);
}

.social-icons {
  display: flex;
  gap: 12px;
}
.social-icons a {
  width: 36px;
  height: 36px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.social-icons a:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.social-icons svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background-color: var(--bg);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-badges {
  display: flex;
  gap: 20px;
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   Responsive Media Queries (Mobile First Optimization)
   ========================================================================== */
@media (max-width: 1024px) {
  .ceo-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .ceo-image-wrapper {
    max-width: 420px;
    margin: 0 auto;
  }
  .ceo-content {
    text-align: center;
  }
  .ceo-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content {
    text-align: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-img {
    height: 360px;
  }
  
  .booking-grid, .testimonials-container, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--card-bg);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition);
    box-shadow: 0 10px 20px var(--shadow-lg);
    border-top: 1px solid var(--border);
    align-items: flex-start;
  }
  .nav-menu.mobile-active {
    left: 0;
  }
  .nav-link {
    font-size: 1.15rem;
    width: 100%;
  }
  
  .btn-nav-cta {
    display: none; /* Hide in header, show in menu or just use main section CTA */
  }
  
  .doctor-card {
    grid-template-columns: 1fr; /* stack, same as CEO section */
  }
  .doctor-img-container {
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 1/1;
  }
  .doctor-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center top;
  }
  .doctor-info {
    padding: 24px 16px;
    text-align: center;
    align-items: center;
  }
  .doctor-credentials,
  .doctor-credentials-list {
    align-self: center;
    text-align: left; /* keep credential list text readable, not centered */
  }
  
  .tagline-box {
    padding: 60px 20px;
    min-height: 120px;
  }
  
  .typing-text {
    font-size: 1.6rem;
    min-height: calc(1.3em * 3);
    max-height: calc(1.3em * 3);
    max-width: 100%;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .tagline-section {
    padding: 80px 0;
    min-height: 300px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom-flex {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .rating-floating {
    left: 10px;
    top: 20px;
  }
  .emergency-floating {
    right: 10px;
    bottom: 20px;
  }
}
/* Whatsapp button*/
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 72px;
  height: 72px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  z-index: 999;
  transition: transform 0.2s ease;
  padding: 14px;
  box-sizing: border-box;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Optional "Chat with us" tooltip */
.whatsapp-float .tooltip-text {
  position: absolute;
  right: 82px;
  background: #1f1f1f;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.whatsapp-float:hover .tooltip-text {
  opacity: 1;
}

@media (max-width: 600px) {
  .whatsapp-float {
    width: 58px;
    height: 58px;
    bottom: 16px;
    right: 16px;
  }
}
/* Simple Keyframe FadeIn */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger support for grids/lists */
.reveal-on-scroll:nth-child(2) {
  transition-delay: 0.15s;
}
.reveal-on-scroll:nth-child(3) {
  transition-delay: 0.3s;
}
.reveal-on-scroll:nth-child(4) {
  transition-delay: 0.45s;
}
.reveal-on-scroll:nth-child(5) {
  transition-delay: 0.6s;
}
.reveal-on-scroll:nth-child(6) {
  transition-delay: 0.75s;
}

