/* ==========================================================================
   Dr. Kunal Patel - Global Design System & Stylesheet
   ========================================================================== */

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

:root {
  /* Color Palette */
  --color-navy-950: #061427;
  --color-navy-900: #0b1f3a;
  --color-navy-850: #0e2749;
  --color-navy-800: #122f56;
  --color-navy-700: #1a4175;
  
  --color-primary-600: #0284c7;
  --color-primary-500: #0ea5e9;
  --color-primary-400: #38bdf8;
  --color-primary-300: #7dd3fc;
  --color-primary-200: #bae6fd;
  --color-primary-100: #e0f2fe;
  --color-primary-50:  #f0f8ff;

  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50:  #f8fafc;
  --color-white:     #ffffff;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(11, 31, 58, 0.08), 0 4px 6px -4px rgba(11, 31, 58, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(11, 31, 58, 0.12), 0 8px 10px -6px rgba(11, 31, 58, 0.05);
  --shadow-card: 0 20px 40px -10px rgba(6, 20, 39, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --shadow-drawer: -8px 0 32px rgba(6, 20, 39, 0.16);

  /* Transitions - Slower & Smoother */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.65s cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --container-max: 1220px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-white);
  color: var(--color-slate-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

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

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

button, input, textarea, select {
  font: inherit;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(242, 248, 253, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(2, 132, 199, 0.08);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
  animation: headerFadeIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.header-wrapper.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(11, 31, 58, 0.06);
}

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

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

/* Desktop Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-slate-600);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-navy-900);
}

.nav-link.active {
  color: var(--color-primary-600);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary-600);
  border-radius: var(--radius-full);
}

/* Navigation Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hamburger Toggle Button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: #eef6fc;
  border: 1px solid var(--color-primary-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  gap: 5px;
  transition: all var(--transition-fast);
  color: var(--color-navy-900);
  z-index: 101;
}

.mobile-toggle:hover {
  background: #e0f2fe;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-navy-900);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
  transform-origin: center;
}

.mobile-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Slide-in Mobile Navigation Drawer
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 20, 39, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-white);
  box-shadow: var(--shadow-drawer);
  z-index: 999;
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-slate-100);
}

.drawer-brand {
  display: flex;
  align-items: center;
}

.drawer-brand .brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-slate-100);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-600);
  transition: all var(--transition-fast);
}

.drawer-close:hover {
  background: var(--color-slate-200);
  color: var(--color-navy-900);
  transform: rotate(90deg);
}

/* Drawer Menu List */
.drawer-nav {
  margin: 28px 0;
  flex: 1;
}

.drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-menu li {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 1) * 0.06s);
}

.mobile-drawer.is-open .drawer-menu li {
  opacity: 1;
  transform: translateX(0);
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-slate-700);
  transition: all var(--transition-fast);
}

.drawer-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-400);
  transition: color var(--transition-fast);
}

.drawer-link:hover {
  background-color: var(--color-slate-50);
  color: var(--color-navy-900);
}

.drawer-link:hover .drawer-link-icon {
  color: var(--color-primary-600);
}

.drawer-link.active {
  background-color: var(--color-primary-50);
  color: var(--color-primary-600);
  font-weight: 600;
}

.drawer-link.active .drawer-link-icon {
  color: var(--color-primary-600);
}

/* Drawer Footer */
.drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--color-slate-100);
}

.drawer-clinic-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--color-slate-500);
  background: var(--color-slate-50);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.drawer-clinic-info svg {
  color: var(--color-primary-600);
  flex-shrink: 0;
}

/* ==========================================================================
   Button System
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-navy-900);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.22);
}

.btn-primary:hover {
  background-color: var(--color-navy-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.3);
  color: var(--color-white);
}

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

.btn-outline {
  background-color: var(--color-white);
  color: var(--color-navy-900);
  border-color: var(--color-slate-300);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background-color: var(--color-slate-50);
  border-color: var(--color-slate-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-navy-900);
}

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

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 0.975rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Compact Dark Blue Floating Features Card
   ========================================================================== */
.floating-card-section {
  position: relative;
  z-index: 20;
  margin-top: -52px; /* Overlaps hero section & section below */
  margin-bottom: 45px;
}

.features-card {
  background: linear-gradient(135deg, var(--color-navy-950) 0%, var(--color-navy-900) 100%);
  border-radius: var(--radius-xl);
  padding: 22px 32px; /* Compact padding */
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

/* Subtle background glowing accent */
.features-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.09), transparent 70%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition-normal);
}

.feature-item:hover {
  transform: translateY(-2px);
}

.feature-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-400);
  margin-bottom: 2px;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.feature-item:hover .feature-icon-wrapper {
  background: rgba(56, 189, 248, 0.22);
  color: var(--color-primary-300);
}

.feature-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.feature-title {
  font-size: 0.985rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.feature-desc {
  font-size: 0.8125rem;
  color: var(--color-slate-400);
  line-height: 1.45;
}

/* ==========================================================================
   Below Hero Section (to showcase card overlap)
   ========================================================================== */
.overview-section {
  padding: 50px 0 90px;
  background-color: var(--color-white);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-600);
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.125rem;
  font-weight: 800;
  color: var(--color-navy-900);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.025rem;
  color: var(--color-slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   Subtle Animations & Viewport Observer (Slower, Smoother & Elegant)
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1), transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.slide-in-left {
  transform: translateX(-40px);
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1), transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.slide-in-right {
  transform: translateX(40px);
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1), transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.is-visible.slide-in-left,
.animate-on-scroll.is-visible.slide-in-right {
  opacity: 1;
  transform: translateX(0);
}

.delay-50  { transition-delay: 0.08s; }
.delay-100 { transition-delay: 0.18s; }
.delay-150 { transition-delay: 0.26s; }
.delay-200 { transition-delay: 0.35s; }
.delay-250 { transition-delay: 0.44s; }
.delay-300 { transition-delay: 0.52s; }
.delay-350 { transition-delay: 0.60s; }
.delay-400 { transition-delay: 0.68s; }
.delay-500 { transition-delay: 0.85s; }
.delay-600 { transition-delay: 1.02s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-on-scroll.slide-in-left,
  .animate-on-scroll.slide-in-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Contact CTA Banner Card (Compact Horizontal Layout with Clean Spacing)
   ========================================================================== */
.cta-card-section {
  position: relative;
  z-index: 10;
  padding: 15px 0 65px; /* Clean gap between contact card and footer */
}

.cta-banner-card {
  background: linear-gradient(135deg, #071933 0%, #0c2b54 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-xl);
  padding: 24px 36px; /* Compact height */
  box-shadow: 0 16px 36px -8px rgba(6, 20, 39, 0.35);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-calendar-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(14, 165, 233, 0.1) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.cta-banner-card:hover .cta-calendar-icon {
  transform: scale(1.06);
}

.cta-calendar-icon svg {
  width: 36px;
  height: 36px;
}

.cta-banner-text {
  flex: 1;
  min-width: 0;
}

.cta-banner-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 4px;
}

.cta-banner-subtitle {
  font-size: 0.9125rem;
  color: #cbd5e1;
  max-width: 580px;
  line-height: 1.45;
  margin-bottom: 0;
}

.btn-cta-appointment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-primary-600);
  color: var(--color-white);
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.4);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all var(--transition-normal);
}

.btn-cta-appointment:hover {
  background: var(--color-primary-500);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.5);
}

/* ==========================================================================
   Global Site Footer
   ========================================================================== */
.site-footer {
  background: #061325;
  color: #94a3b8;
  padding-top: 60px; /* Clean standard padding */
  padding-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1.15fr 1.2fr;
  gap: 44px;
  margin-bottom: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* Column 1: Brand & Doctor Profile */
.footer-brand-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.footer-brand-subtitle {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-brand-desc {
  font-size: 0.8875rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 320px;
}

.footer-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-pill:hover {
  color: var(--color-white);
}

.footer-contact-pill svg {
  width: 15px;
  height: 15px;
  color: var(--color-primary-400);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.footer-contact-pill:hover svg {
  color: var(--color-primary-300);
  transform: scale(1.1);
}

/* Headings for Columns */
.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  position: relative;
}

/* Footer Link Lists */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-link-item a {
  font-size: 0.9125rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-link-item a:hover {
  color: var(--color-white);
  transform: translateX(3px);
}

/* Column 4: Location & Booking */
.footer-location-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 0.925rem;
  line-height: 1.5;
}

.footer-location-info svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary-400);
  flex-shrink: 0;
  margin-top: 3px;
}

.btn-footer-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-primary-600);
  color: var(--color-white);
  padding: 11px 22px;
  font-size: 0.9125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all var(--transition-fast);
}

.btn-footer-book:hover {
  background: var(--color-primary-500);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

/* Bottom Bar */
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.835rem;
  color: #64748b;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: #cbd5e1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 24px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 20px;
  }
  
  .floating-card-section {
    margin-top: -38px;
  }
  
  .features-card {
    padding: 20px 22px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 30px;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }

  .nav-menu {
    display: none; /* Replaced by slide-in drawer */
  }

  .nav-actions .btn-primary {
    display: none; /* Displayed inside slide-in drawer */
  }

  .brand-logo-img {
    height: 44px;
    max-width: 210px;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Left-align section headers on mobile */
  .section-header {
    text-align: left;
    margin: 0 0 30px;
  }

  .section-title {
    text-align: left;
    font-size: 1.85rem;
  }

  .section-desc {
    text-align: left;
    font-size: 0.95rem;
  }

  /* Compact 2x2 grid for mobile blue card with "+" separation lines */
  .floating-card-section {
    margin-top: -28px;
    margin-bottom: 36px;
    padding: 0 16px;
  }

  .features-card {
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0; /* Continuous lines meeting at center */
    position: relative;
  }

  .feature-item {
    padding: 20px 18px;
    gap: 6px;
    position: relative;
  }

  .feature-item.animate-on-scroll {
    transform: none;
    transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* "+" Cross Divider Lines: meeting precisely at center */
  .feature-item:nth-child(1) {
    border-right: 1px solid rgba(56, 189, 248, 0.22);
    border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  }

  .feature-item:nth-child(2) {
    border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  }

  .feature-item:nth-child(3) {
    border-right: 1px solid rgba(56, 189, 248, 0.22);
  }

  .feature-item:nth-child(4) {
    /* Natural bottom-right quadrant */
  }

  .feature-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
  }

  .feature-icon-wrapper svg {
    width: 17px;
    height: 17px;
  }

  .feature-title {
    font-size: 0.9125rem;
  }

  .feature-desc {
    font-size: 0.775rem;
    line-height: 1.38;
  }

  /* CTA Banner Mobile */
  .cta-card-section {
    padding: 10px 0 45px;
    margin-bottom: 0;
  }

  .cta-banner-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 24px 20px;
    gap: 18px;
    border-radius: var(--radius-lg);
  }

  .cta-calendar-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .cta-calendar-icon svg {
    width: 30px;
    height: 30px;
  }

  .cta-banner-title {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  .cta-banner-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  .btn-cta-appointment {
    width: 100%;
    padding: 12px 20px;
  }

  /* Faster, snappier entrance for ALL buttons on mobile across all pages */
  .hero-actions.animate-on-scroll,
  .about-actions.animate-on-scroll,
  .about-hero-actions.animate-on-scroll,
  .services-footer.animate-on-scroll,
  .btn-cta-appointment.animate-on-scroll,
  .card-action-btn.animate-on-scroll,
  .btn-find-cta.animate-on-scroll,
  .btn-modal-cta.animate-on-scroll,
  .form-submit-row.animate-on-scroll,
  .btn-submit-appointment.animate-on-scroll,
  .btn-get-directions.animate-on-scroll,
  .btn-footer-book.animate-on-scroll,
  .btn-load-more.animate-on-scroll,
  .glimpse-footer.animate-on-scroll,
  .btn.animate-on-scroll {
    transform: translateY(16px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition-delay: 0.12s !important;
  }

  .hero-actions.animate-on-scroll.is-visible,
  .about-actions.animate-on-scroll.is-visible,
  .about-hero-actions.animate-on-scroll.is-visible,
  .services-footer.animate-on-scroll.is-visible,
  .btn-cta-appointment.animate-on-scroll.is-visible,
  .card-action-btn.animate-on-scroll.is-visible,
  .btn-find-cta.animate-on-scroll.is-visible,
  .btn-modal-cta.animate-on-scroll.is-visible,
  .form-submit-row.animate-on-scroll.is-visible,
  .btn-submit-appointment.animate-on-scroll.is-visible,
  .btn-get-directions.animate-on-scroll.is-visible,
  .btn-footer-book.animate-on-scroll.is-visible,
  .btn-load-more.animate-on-scroll.is-visible,
  .glimpse-footer.animate-on-scroll.is-visible,
  .btn.animate-on-scroll.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* Site Footer Mobile */
  .site-footer {
    padding-top: 48px;
    padding-bottom: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .brand-logo-img {
    height: 38px;
    max-width: 185px;
  }

  .floating-card-section {
    margin-top: -24px;
    padding: 0 12px;
  }

  .features-card {
    padding: 0;
  }

  .features-grid {
    gap: 0;
  }

  .feature-item {
    padding: 16px 13px;
  }

  .feature-title {
    font-size: 0.875rem;
  }

  .feature-desc {
    font-size: 0.75rem;
  }

  .cta-card-section {
    padding: 10px 0 35px;
  }

  .cta-banner-card {
    padding: 20px 16px;
  }

  .cta-banner-title {
    font-size: 1.4rem;
  }

  .site-footer {
    padding-top: 40px;
  }
}

/* ==========================================================================
   Universal Rich-Text Highlights & Text Accents
   ========================================================================== */
mark, .site-highlight {
  background-color: #38bdf8;
  color: #0f172a;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  display: inline;
}

.highlight-blue {
  color: #0284c7;
  font-weight: 700;
}

/* ==========================================================================
   Minimal Premium Startup Preloader Animation (ECG Heartbeat & Doctor Reveal)
   Dark Luxury Medical Monitor Theme
   ========================================================================== */
body.startup-active {
  overflow: hidden !important;
}

.startup-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: radial-gradient(ellipse at 50% 45%, #0d274c 0%, #07182e 55%, #030b16 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.45s ease,
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, visibility;
  user-select: none;
  -webkit-user-select: none;
}

.startup-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
}

/* Subtle Ambient Cyan Glow Behind ECG */
.startup-ambient-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(2, 132, 199, 0.06) 45%, transparent 70%);
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: startupGlowPulse 3s ease-in-out infinite;
}

/* Clinical ECG Monitor Grid Pattern */
.startup-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.85;
}

/* Center Content Card */
.startup-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  max-width: 90vw;
}

/* ECG Waveform SVG Container */
.startup-ecg-container {
  width: 420px;
  max-width: 88vw;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.startup-ecg-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ECG Background Track */
.ecg-track {
  stroke-dasharray: none;
}

/* Smooth Realistic ECG Drawing Pulse Line (Hardware Accelerated) */
.ecg-pulse-line {
  stroke-dasharray: 645;
  stroke-dashoffset: 645;
  will-change: stroke-dashoffset;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* Override CPU-heavy SVG GaussianBlur filter with GPU-accelerated CSS drop-shadow */
  filter: drop-shadow(0 0 4px #38bdf8) drop-shadow(0 0 9px rgba(2, 132, 199, 0.75)) !important;
  animation: drawEcgLineSmooth 1.25s linear 0.05s forwards;
}

/* Moving Glowing Scan Bead at ECG Tip (1:1 Hardware Sync with Pulse Line) */
.ecg-pulse-dot {
  opacity: 0;
  will-change: offset-distance, transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  offset-path: path("M 0 50 L 90 50 C 104 50, 110 40, 120 40 C 130 40, 136 50, 150 50 L 175 50 L 186 58 L 202 8 L 218 84 L 228 50 L 250 50 C 266 50, 276 30, 292 30 C 308 30, 318 50, 334 50 L 500 50");
  animation: moveEcgDotSmooth 1.25s linear 0.05s forwards;
  filter: drop-shadow(0 0 6px #38bdf8) drop-shadow(0 0 10px #0284c7);
}

/* Doctor Brand Identity Reveal */
.startup-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.startup-doctor-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(12px);
  animation: startupFadeUpDark 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

.startup-pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.6);
  animation: startupDotBlink 1.4s ease-in-out infinite;
}

.startup-badge-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #38bdf8;
  text-transform: uppercase;
}

.startup-name {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 2.55rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.12), 0 0 35px rgba(56, 189, 248, 0.2);
  opacity: 0;
  transform: translateY(14px);
  animation: startupFadeUpDark 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.startup-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 3px;
  opacity: 0;
  transform: translateY(10px);
  animation: startupFadeUpDark 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

.startup-line {
  width: 28px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.startup-title {
  margin: 0;
  font-size: clamp(0.8rem, 2.2vw, 0.96rem);
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.startup-subtitle {
  margin: 2px 0 0;
  font-size: clamp(0.75rem, 1.8vw, 0.84rem);
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(8px);
  animation: startupFadeUpDark 0.4s cubic-bezier(0.16, 1, 0.3, 1) 1.05s forwards;
}

/* Keyframe Animations */
@keyframes drawEcgLineSmooth {
  0% {
    stroke-dashoffset: 645;
    opacity: 0.5;
  }
  6% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes moveEcgDotSmooth {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  97% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

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

@keyframes startupGlowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    opacity: 1;
  }
}

@keyframes startupDotBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

/* Responsive Mobile Overrides */
@media (max-width: 640px) {
  .startup-ecg-container {
    width: 310px;
    height: 75px;
    margin-bottom: 16px;
  }
  
  .startup-name {
    font-size: 1.75rem;
  }
  
  .startup-title {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }
  
  .startup-line {
    width: 18px;
  }
}



