/* ==========================================================================
   Dr. Wakkman Neurosurgery Clinic - Design System & Stylesheet
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Custom Properties (Design Tokens) --- */
:root {
  /* Color Palette */
  --primary-deep: hsl(196, 100%, 12%);     /* Deep neuro-navy for authority */
  --primary-brand: #0f5c78;                 /* Primary medical teal */
  --primary-brand-rgb: 15, 92, 120;
  --secondary-mint: #10b981;                /* Trust green for CTA/Success */
  --secondary-mint-rgb: 16, 185, 129;
  --accent-blue: #0284c7;                   /* Tech blue for highlights */
  --accent-gold: #eab308;                   /* Premium warm gold for stars/ratings */
  --emergency-red: #ef4444;                 /* High attention red */
  
  /* Neutral Palette */
  --neutral-dark: #0f172a;                  /* Slate 900 for main body text */
  --neutral-muted: #475569;                 /* Slate 600 for secondary text */
  --neutral-light: #f8fafc;                 /* Slate 50 for background */
  --neutral-border: #e2e8f0;                /* Slate 200 for subtle lines */
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 20px -2px rgba(15, 92, 120, 0.08);
  --shadow-lg: 0 10px 30px -5px rgba(15, 92, 120, 0.12);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.3);
  --shadow-emergency: 0 0 20px rgba(239, 68, 68, 0.4);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Layout Spacing */
  --section-padding: 6.5rem 2rem;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--neutral-dark);
  background-color: var(--neutral-light);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-deep);
  line-height: 1.25;
  font-weight: 700;
}

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

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

ul {
  list-style: none;
}

/* --- Core Layout Containers --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: rgba(var(--primary-brand-rgb), 0.08);
  color: var(--primary-brand);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--neutral-muted);
  font-size: 1.125rem;
}

/* --- Top Bar & Header Navigation --- */
.topbar {
  background-color: var(--primary-deep);
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-info, .topbar-socials {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.9;
}

.topbar-item a:hover {
  color: var(--secondary-mint);
  opacity: 1;
}

.topbar-socials a {
  opacity: 0.8;
}

.topbar-socials a:hover {
  color: var(--secondary-mint);
  opacity: 1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-border);
  transition: padding var(--transition-fast), background-color var(--transition-fast);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background-color: var(--primary-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(var(--primary-brand-rgb), 0.3);
}

.logo-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-text span {
  font-size: 0.75rem;
  display: block;
  text-transform: uppercase;
  color: var(--primary-brand);
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: -2px;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--neutral-muted);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-brand);
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-brand);
}

.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-brand);
  color: var(--white);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(var(--primary-brand-rgb), 0.2);
  border: 1px solid transparent;
}

.nav-cta:hover {
  background-color: var(--primary-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--primary-brand-rgb), 0.3);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-deep);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background-color: var(--primary-deep);
  overflow: hidden;
  color: var(--white);
  padding: 10rem 0 7rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 60% 40%, rgba(var(--primary-brand-rgb), 0.45) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, var(--neutral-light), rgba(248, 250, 252, 0));
  z-index: 2;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--secondary-mint);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--white);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  color: #e2e8f0;
}

.hero-bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-bullet {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.hero-bullet i {
  color: var(--secondary-mint);
  font-size: 1.1rem;
}

.hero-btns {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.975rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--secondary-mint);
  color: var(--primary-deep);
  box-shadow: 0 4px 14px rgba(var(--secondary-mint-rgb), 0.2);
}

.btn-primary:hover {
  background-color: #059669;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-emergency {
  background-color: var(--emergency-red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
  animation: pulse-emergency 2s infinite;
}

.btn-emergency:hover {
  background-color: #dc2626;
  transform: translateY(-3px);
  box-shadow: var(--shadow-emergency);
}

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

.hero-brain-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, rgba(15, 92, 120, 0) 70%);
  border-radius: var(--radius-full);
  filter: blur(20px);
  z-index: 1;
}

.hero-visual-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  z-index: 2;
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow-lg);
}

.clinic-highlight {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.highlight-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-mint);
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-content h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.highlight-content p {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Animations */
@keyframes pulse-emergency {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* --- Section Formatting --- */
.section {
  padding: var(--section-padding);
}

.section-bg {
  background-color: var(--white);
}

/* --- About Preview / Section Layouts --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  height: 480px;
  border: 4px solid var(--white);
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--primary-brand);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--white);
  text-align: center;
}

.about-experience-badge .years {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
  display: block;
}

.about-experience-badge .text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  opacity: 0.9;
}

.about-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--neutral-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-features {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--primary-deep);
  font-size: 0.95rem;
}

.about-feature-item i {
  color: var(--secondary-mint);
  font-size: 1.15rem;
}

.about-btn-wrap {
  margin-top: 2.5rem;
}

/* --- Services Component --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--neutral-light);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  background-color: var(--white);
  border-color: rgba(var(--primary-brand-rgb), 0.25);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(var(--primary-brand-rgb), 0.06);
  color: var(--primary-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
  transition: var(--transition-fast);
}

.service-card:hover .service-card-icon {
  background-color: var(--primary-brand);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--neutral-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-brand);
  font-size: 0.9rem;
}

.service-card-link:hover {
  color: var(--primary-deep);
}

.service-card-link i {
  transition: transform var(--transition-fast);
}

.service-card-link:hover i {
  transform: translateX(4px);
}

/* --- Conditions Treated Component --- */
.conditions-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.condition-tag-card {
  background-color: var(--white);
  border: 1px solid var(--neutral-border);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-fast);
}

.condition-tag-card:hover {
  border-color: var(--primary-brand);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.condition-tag-card i {
  color: var(--secondary-mint);
  font-size: 1rem;
}

.condition-tag-card span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-deep);
}

/* --- Statistics Counter Section --- */
.stats-section {
  background-color: var(--primary-deep);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 80%, rgba(var(--primary-brand-rgb), 0.2) 0%, transparent 60%);
  pointer-events: none;
}

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

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -1rem;
  height: 60%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--secondary-mint);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-title {
  font-size: 0.95rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* --- Testimonials (Slider Layout) --- */
.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-wrapper {
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-border);
  text-align: center;
  position: relative;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 1.5rem;
  left: 3rem;
  font-size: 8rem;
  line-height: 1;
  font-family: var(--font-heading);
  color: rgba(var(--primary-brand-rgb), 0.05);
  font-weight: 800;
}

.testimonial-rating {
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.testimonial-content {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary-deep);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-brand);
}

.testimonial-meta {
  font-size: 0.85rem;
  color: var(--neutral-muted);
  margin-top: 0.15rem;
}

/* Carousels Indicators */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  background-color: var(--neutral-border);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  background-color: var(--primary-brand);
  width: 28px;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-item.active {
  border-color: rgba(var(--primary-brand-rgb), 0.25);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--primary-deep);
}

.faq-icon {
  width: 28px;
  height: 28px;
  background-color: rgba(var(--primary-brand-rgb), 0.05);
  color: var(--primary-brand);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background-color: var(--primary-brand);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-answer-content {
  padding: 0 2rem 1.75rem 2rem;
  color: var(--neutral-muted);
  font-size: 0.975rem;
}

/* --- Facilities Page Layout --- */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.facility-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.facility-img-wrapper {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.facility-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.facility-card:hover .facility-img-wrapper img {
  transform: scale(1.05);
}

.facility-info {
  padding: 2rem;
}

.facility-info h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.facility-info p {
  color: var(--neutral-muted);
  font-size: 0.95rem;
}

/* --- Booking Flow (Multi-step Layout) --- */
.booking-container {
  max-width: 950px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.booking-header-gradient {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-brand) 100%);
  padding: 3rem;
  color: var(--white);
  text-align: center;
}

.booking-header-gradient h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.booking-header-gradient p {
  color: #cbd5e1;
  font-size: 1rem;
}

/* Step Bar Indicator */
.booking-steps-indicator {
  display: flex;
  justify-content: space-between;
  padding: 2rem 3rem;
  background-color: var(--neutral-light);
  border-bottom: 1px solid var(--neutral-border);
  position: relative;
}

.booking-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  position: relative;
  flex: 1;
}

.booking-step-num {
  width: 38px;
  height: 38px;
  background-color: var(--white);
  border: 2px solid var(--neutral-border);
  color: var(--neutral-muted);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: var(--transition-fast);
}

.booking-step-node.active .booking-step-num {
  border-color: var(--primary-brand);
  background-color: var(--primary-brand);
  color: var(--white);
  box-shadow: 0 0 10px rgba(var(--primary-brand-rgb), 0.25);
}

.booking-step-node.completed .booking-step-num {
  border-color: var(--secondary-mint);
  background-color: var(--secondary-mint);
  color: var(--white);
}

.booking-step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neutral-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.booking-step-node.active .booking-step-label {
  color: var(--primary-brand);
}

.booking-step-node.completed .booking-step-label {
  color: var(--secondary-mint);
}

.booking-progress-bar-line {
  position: absolute;
  top: 38px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: var(--neutral-border);
  z-index: 1;
}

.booking-progress-fill {
  height: 100%;
  background-color: var(--secondary-mint);
  width: 0%;
  transition: width var(--transition-normal);
}

/* Booking Form Elements */
.booking-form-body {
  padding: 3rem;
}

.booking-step-pane {
  display: none;
}

.booking-step-pane.active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-full-width {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-deep);
}

.form-control {
  font-family: var(--font-body);
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  background-color: var(--neutral-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-brand);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(var(--primary-brand-rgb), 0.1);
}

.form-radio-group {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.form-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.form-radio-label input[type="radio"] {
  accent-color: var(--primary-brand);
  width: 18px;
  height: 18px;
}

/* Custom File Upload */
.file-upload-wrapper {
  border: 2px dashed var(--neutral-border);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  background-color: var(--neutral-light);
  transition: var(--transition-fast);
}

.file-upload-wrapper:hover {
  border-color: var(--primary-brand);
  background-color: rgba(var(--primary-brand-rgb), 0.02);
}

.file-upload-icon {
  font-size: 2.5rem;
  color: var(--primary-brand);
  margin-bottom: 0.75rem;
}

.file-upload-text {
  font-size: 0.9rem;
  color: var(--neutral-muted);
}

.file-upload-text strong {
  color: var(--primary-brand);
}

.booking-form-footer {
  padding: 2rem 3rem;
  background-color: var(--neutral-light);
  border-top: 1px solid var(--neutral-border);
  display: flex;
  justify-content: space-between;
}

/* Appointment Workflow (Timeline) */
.timeline-wrapper {
  position: relative;
  max-width: 700px;
  margin: 4rem auto 0 auto;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background-color: var(--neutral-border);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon-wrap {
  width: 58px;
  height: 58px;
  background-color: var(--white);
  border: 2px solid var(--neutral-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-brand);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.timeline-item:hover .timeline-icon-wrap {
  border-color: var(--secondary-mint);
  color: var(--secondary-mint);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.timeline-content {
  background-color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-border);
  box-shadow: var(--shadow-sm);
  flex-grow: 1;
}

.timeline-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--neutral-muted);
  font-size: 0.95rem;
}

/* --- Emergency Page styling --- */
.emergency-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.emergency-hero-banner {
  background-color: #fef2f2;
  border: 2px solid #fee2e2;
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-emergency);
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.emergency-hero-icon {
  width: 80px;
  height: 80px;
  background-color: #fee2e2;
  color: var(--emergency-red);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  animation: flash-red 1.5s infinite;
}

.emergency-hero-info h2 {
  color: #991b1b;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.emergency-hero-info p {
  color: #7f1d1d;
  font-size: 1.1rem;
}

@keyframes flash-red {
  0%, 100% {
    transform: scale(1);
    background-color: #fee2e2;
  }
  50% {
    transform: scale(1.08);
    background-color: #fca5a5;
  }
}

.emergency-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3.5rem 0;
}

.emergency-checklist-item {
  background-color: var(--white);
  border: 1px solid var(--neutral-border);
  border-left: 4px solid var(--emergency-red);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.emergency-checklist-item i {
  color: var(--emergency-red);
  font-size: 1.2rem;
}

.emergency-checklist-item span {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-deep);
}

.emergency-call-card {
  background-color: var(--primary-deep);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.emergency-call-card h3 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.emergency-call-number {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--secondary-mint);
  margin-bottom: 1.5rem;
  display: block;
}

.emergency-call-desc {
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Medical Blog System --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.blog-card-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.05);
}

.blog-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary-brand);
  color: var(--white);
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.blog-card-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--neutral-muted);
  margin-bottom: 0.75rem;
}

.blog-card-meta i {
  color: var(--primary-brand);
}

.blog-card-info h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-card-info h3 a:hover {
  color: var(--primary-brand);
}

.blog-card-info p {
  color: var(--neutral-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-brand);
}

.blog-card-readmore:hover {
  color: var(--primary-deep);
}

.blog-card-readmore i {
  transition: transform var(--transition-fast);
}

.blog-card-readmore:hover i {
  transform: translateX(4px);
}

/* --- Contact & Clinic Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-card-item {
  display: flex;
  gap: 1.25rem;
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  background-color: rgba(var(--primary-brand-rgb), 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-brand);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.contact-card-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.contact-card-content p, .contact-card-content a {
  color: var(--neutral-muted);
  font-size: 0.95rem;
}

.contact-card-content a:hover {
  color: var(--primary-brand);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.hours-table td {
  padding: 0.6rem 0;
  font-size: 0.95rem;
}

.hours-table tr:not(:last-child) td {
  border-bottom: 1px dashed var(--neutral-border);
}

.hours-table td.day {
  font-weight: 600;
  color: var(--primary-deep);
}

.hours-table td.time {
  text-align: right;
  color: var(--neutral-muted);
}

.hours-table tr.closed td.time {
  color: var(--emergency-red);
  font-weight: 600;
}

.contact-form-panel {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-border);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.contact-form-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Map Representation */
.map-container {
  height: 350px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-border);
  overflow: hidden;
  margin-top: 4rem;
  position: relative;
  background-color: #cbd5e1;
}

.map-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(var(--primary-brand-rgb), 0.9) 0%, rgba(15, 92, 120, 0.95) 100%);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.map-placeholder-icon {
  font-size: 3rem;
  color: var(--secondary-mint);
  margin-bottom: 1rem;
}

.map-placeholder h4 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.map-placeholder p {
  color: #e2e8f0;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* --- Global Call to Action (CTA) Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-brand) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
}

.cta-title {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* --- Footer Area --- */
.footer {
  background-color: #0b0f19;
  color: #94a3b8;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid #1e293b;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo-wrapper {
  margin-bottom: 1.5rem;
}

.footer-brand .logo-text h1 {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-title {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-family: var(--font-heading);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-mint);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.footer-contact-item i {
  color: var(--secondary-mint);
  margin-top: 0.25rem;
}

.footer-contact-item span {
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-copy {
  opacity: 0.8;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
  opacity: 0.8;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* ==========================================================================
   Responsive Breakpoints & Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 5rem 1.5rem;
  }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-illustration {
    order: -1;
  }
  .hero-visual-card {
    max-width: 100%;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-image {
    height: 380px;
  }
  .about-experience-badge {
    right: 0;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none; /* Hide topbar on mobile to save space */
  }
  .header .container {
    height: 70px;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 1.5rem;
    align-items: stretch;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  .nav.open {
    left: 0;
  }
  .nav-link {
    font-size: 1.15rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--neutral-border);
  }
  .nav-link::after {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .stat-item::after {
    display: none !important;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-form-panel {
    padding: 2rem;
  }
  .emergency-hero-banner {
    flex-direction: column;
    padding: 2rem;
    text-align: center;
  }
  .emergency-checklist {
    grid-template-columns: 1fr;
  }
  .booking-steps-indicator {
    padding: 1.5rem 1rem;
  }
  .booking-step-label {
    display: none; /* Hide labels on mobile to prevent squishing */
  }
  .booking-form-body {
    padding: 2rem 1.5rem;
  }
  .booking-form-footer {
    padding: 1.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-full-width {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
}
