/* ===================================
   CSS VARIABLES
=================================== */
:root {
  --primary: #2457ff;
  --primary-dark: #1945d8;
  --primary-light: #5c7dff;
  --secondary: #dff7ff;
  --accent: #16b8a6;
  --accent-light: #2dd4bf;
  --dark: #101828;
  --text: #344054;
  --muted: #667085;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e4e7ec;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(36, 87, 255, 0.15);
  --glow: 0 0 40px rgba(36, 87, 255, 0.3);
  --radius: 16px;
  --container: 1160px;
  /* Smooth ease-out for entering, ease-in-out for balanced */
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  color: var(--text);
  background: var(--white);
  font-family: "Inter", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3 {
  color: var(--dark);
  line-height: 1.15;
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

p + p {
  margin-top: 1rem;
}

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

/* ===================================
   TYPOGRAPHY - MOBILE BASE
=================================== */
h1 {
  max-width: 100%;
  font-size: 2rem;
  letter-spacing: -0.055em;
}

h2 {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.1rem;
}

/* ===================================
   LAYOUT - MOBILE BASE
=================================== */
.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--light);
}

/* Services section - Radial gradient (darker center, lighter edges) */
#services {
  background-color: rgba(36, 87, 255, 0.3);
  transition: background-color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Facilities section - 45° diagonal gradient (light top-left to dark bottom-right) */
#facilities {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(45, 212, 191, 0.15) 60%,
    rgba(22, 184, 166, 0.25) 100%);
  transition: background 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-dark {
  color: rgba(255, 255, 255, 0.72);
  background: var(--dark);
}

.section-dark h2 {
  color: var(--white);
}

/* ===================================
   UTILITY CLASSES
=================================== */
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 100%;
  margin: 0 auto 32px;
  text-align: center;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-heading > p:last-child {
  margin-top: 12px;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* ===================================
   BUTTONS - MOBILE BASE
=================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  color: var(--white);
  background: var(--primary);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.btn-small {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 0.85rem;
}

.btn-outline {
  color: var(--primary);
  background: transparent;
}

.text-link {
  color: var(--primary);
  font-weight: 700;
}

.text-link:hover {
  color: var(--light);
}

/* ===================================
   HEADER & NAVIGATION - MOBILE BASE
=================================== */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  transition: var(--transition-fast);
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 30px rgba(20, 21, 26, 0.06);
}

.nav-wrapper {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  transition: color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo:hover {
  color: var(--primary);
}

.logo img {
  height: auto;
  max-width: 100px;
}

.logo span {
  color: var(--primary);
}

.main-nav {
  display: none;
}

.menu-toggle {
  display: block;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--dark);
  transition: var(--transition-fast);
}

.menu-toggle span:nth-child(2) {
  width: 16px;
}

/* Mobile menu open state */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.main-nav.open {
  position: fixed;
  top: 60px;
  right: 0;
  width: 100%;
  height: calc(100vh - 60px);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  background: var(--white);
  box-shadow: -10px 10px 30px rgba(20, 21, 26, 0.1);
}

.main-nav > a:not(.btn) {
  color: var(--dark);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-nav > a:not(.btn):hover {
  color: var(--primary);
}

/* ===================================
   HERO SECTION - MOBILE BASE
=================================== */
.hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--white);
  padding-top: 60px;
}

.hero-h1 {
  color: var(--white);
  letter-spacing: 1px;
}

.video-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity;
}

.hero-video.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(16, 24, 40, 0.85) 0%,
    rgba(16, 24, 40, 0.7) 40%,
    rgba(16, 24, 40, 0.5) 70%,
    rgba(16, 24, 40, 0.3) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 24px 40px;
}

.hero h1 {
  margin-bottom: 12px;
}

.hero p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-actions .btn {
  width: 100%;
}

.carousel-dots {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dot.active {
  background: var(--white);
  transform: scale(1.5);
}

/* ===================================
   INFO BAR - MOBILE BASE
=================================== */
.info-bar {
  color: var(--white);
  background: var(--dark);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
}

.info-grid > div {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  gap: 4px;
  background: var(--dark);
}

.info-grid > div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-grid strong {
  font-size: 0.85rem;
}

.info-grid span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.count-number {
  color: var(--white);
  font-weight: 700;
  font-size: 1.4rem;
}

/* ===================================
   TWO COLUMN LAYOUT - MOBILE BASE
=================================== */
#about {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("images/about.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.two-column .text-link {
  display: inline-block;
  margin-top: 16px;
}

.white {
  color: var(--white);
}

.black {
  color: var(--dark);
}

/* ===================================
   CARD GRIDS - MOBILE BASE
=================================== */
.card-grid,
.doctors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  padding: 0 24px 32px;
  border-radius: var(--radius);
  background: var(--white);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: visible;
  will-change: transform, box-shadow;
}

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

.stats-icon {
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotateY(0deg);
  height: 95px;
  width: 90px;
  background-color: var(--white);
  text-align: center;
  font-size: 3.5rem;
  border-radius: 0 0 50% 50%;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stats-icon:hover {
  animation: flipIcon 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes flipIcon {
    0% {
        transform: translateX(-50%) rotateY(0deg);
    }

    50% {
        transform: translateX(-50%) rotateY(180deg);
    }

    100% {
        transform: translateX(-50%) rotateY(360deg);
    }
}

.stats-icon i {
  line-height: 90px;
  color: var(--primary);
}

.semi-circle {
  margin: 0;
  display: block;
  height: 100px;
  width: 100px;
  background-color: rgba(36, 87, 255, 0.3);
  margin: 0 auto;
  border-radius: 0 0 100px 100px;
}

/* Hide the span elements */
.card-icon-services,
.card-icon-facilities {
  display: none;
}

/* Watermark - centered without transform */
.card::after {
  content: attr(data-number);
  position: absolute;
  top: 70%;
  left: 80%;
  margin-top: -0.5em;
  margin-left: -1.5em;
  font-size: 9rem;
  font-weight: 900;
  color: rgba(36, 87, 255, 0.1);
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}

/* Ensure content stays above watermark */
.card h3,
.card p {
  
  position: relative;
  z-index: 1;
}

.card p {
  font-size: 0.9rem;
}

/* Doctors grid specific - Enhanced */
.doctors-grid {
  gap: clamp(24px, 4vw, 32px);
}

.doctors-grid .card {
  padding: clamp(24px, 4vw, 32px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition-slow);
  overflow: hidden;
  position: relative;
  will-change: transform, box-shadow;
}

.doctors-grid .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.doctors-grid .card:hover::before {
  transform: scaleX(1);
}

.doctors-grid .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* Doctor image styling */
.doctors-grid .card-icon {
  width: clamp(120px, 25vw, 180px);
  height: clamp(120px, 25vw, 180px);
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  border: 4px solid rgba(36, 87, 255, 0.15);
  transition: var(--transition-slow);
  box-shadow: 0 8px 25px rgba(36, 87, 255, 0.15);
}

.doctors-grid .card:hover .card-icon {
  border-color: rgba(36, 87, 255, 0.4);
  box-shadow: 0 12px 35px rgba(36, 87, 255, 0.25);
  transform: scale(1.08);
}

.doctors-grid .card h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  color: var(--dark);
  margin-bottom: 8px;
}

.doctors-grid .card h4 {
  color: var(--primary);
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  font-weight: 600;
  margin-bottom: 4px;
}

.doctors-grid .card h4 + h4 {
  color: var(--muted);
  font-weight: 500;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  margin-bottom: 12px;
}

.doctors-grid .card i {
  display: block;
  color: var(--accent);
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  font-style: normal;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

.doctors-grid .card p {
  color: var(--text);
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  line-height: 1.7;
}

.card-bg {
  padding-top: 20px;
  /* Optimize rendering - isolate paint layer */
  contain: layout paint;
  /* Will-change tells browser to optimize for transforms only */
  will-change: transform;
  /* Hardware acceleration */
  backface-visibility: hidden;
  /* Smooth transition for facilities cards */
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-bg:hover {
  /* Only animate transform, not all properties - uses GPU */
  transform: scale3d(1.03, 1.03, 1);
}

.card-bg:nth-child(1) {
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 25, 0.82) 55%, rgba(35, 35, 35, 0.6) 100%), url("images/consultation_room.webp");
  background-position: center;
  background-size: cover;
}

.card-bg:nth-child(2) {
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 25, 0.82) 55%, rgba(35, 35, 35, 0.6) 100%), url("images/pathology.webp");
  background-position: center;
  background-size: cover;
  background-attachment: scroll;
}

.card-bg:nth-child(3) {
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 25, 0.82) 55%, rgba(35, 35, 35, 0.6) 100%), url("images/health_assessment.webp");
  background-position: center;
  background-size: cover;
  background-attachment: scroll;
}

.card-bg:nth-child(4) {
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 25, 0.82) 55%, rgba(35, 35, 35, 0.6) 100%), url("images/family_friendly.webp");
  background-position: center;
  background-size: cover;
  background-attachment: scroll;
}

.card-bg:nth-child(5) {
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 25, 0.82) 55%, rgba(35, 35, 35, 0.6) 100%), url("images/clinic.webp");
  background-position: center;
  background-size: cover;
  background-attachment: scroll;
}

.card-bg:nth-child(6) {
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 25, 0.82) 55%, rgba(35, 35, 35, 0.6) 100%), url("images/telehealth.webp");
  background-position: center;
  background-size: cover;
  background-attachment: scroll;
}

.doctors-grid .card i {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-size: 0.8rem;
  font-style: normal;
}

/* ===================================
   TESTIMONIALS - MOBILE BASE
=================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

blockquote {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

blockquote > p {
  color: var(--white);
  font-size: 0.95rem;
}

blockquote footer {
  display: flex;
  margin-top: 20px;
  flex-direction: column;
  font-size: 0.8rem;
}

blockquote strong {
  color: var(--white);
}

/* ===================================
   FAQ SECTION - MOBILE BASE
=================================== */
.faq-section {
  padding: 48px 24px;
  background: var(--light);
}

.faq-container {
  max-width: 100%;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(36, 87, 255, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: none;
  background: transparent;
  color: var(--dark);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  font-size: 18px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-answer p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  font-size: 0.9rem;
}

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

/* ===================================
   BOOKING FORM - MOBILE BASE
=================================== */
#booking {
  background: var(--light);
}

#booking h2 {
  margin: 0 0 16px;
  color: var(--dark);
  font-size: 1.5rem;
  line-height: 1.15;
}

#booking > .container > div > p {
  color: var(--text);
  line-height: 1.75;
}

#booking a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

#booking a:hover {
  color: var(--primary-dark);
}

.contact-form {
  background: var(--white);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--dark);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-group input::placeholder {
  color: #98a2b3;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 87, 255, 0.12);
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.form-status {
  margin-top: 10px;
  min-height: 20px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.form-status.success {
  color: #087a68;
}

.form-status.error {
  color: #b42318;
}

/* ===================================
   FOOTER - MOBILE BASE
=================================== */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 48px 24px 24px;
}

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

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-logo span {
  color: var(--accent);
}

.footer-brand > p {
  max-width: 100%;
  margin-bottom: 20px;
  color: #b9c0ce;
  font-size: 13px;
  line-height: 1.7;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact a,
.footer-contact p {
  margin: 0;
  color: #b9c0ce;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
}

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

.footer-column h4 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #b9c0ce;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-hours {
  min-width: auto;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #b9c0ce;
  font-size: 12px;
}

.hours-row span:last-child {
  color: var(--white);
  text-align: right;
}

.footer-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white) !important;
  font-size: 13px !important;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  transition: var(--transition-fast);
}

.footer-book-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-emergency {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.footer-emergency strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 14px;
}

.footer-emergency p {
  margin: 0;
  color: #b9c0ce;
  font-size: 12px;
  line-height: 1.6;
}

.footer-emergency > a {
  flex-shrink: 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: var(--transition-fast);
}

.footer-emergency > a:hover {
  background: var(--white);
  color: var(--dark);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: #8f96a5;
  font-size: 12px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal a {
  color: #8f96a5;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ===================================
   BREAKPOINT: 360px (Minimum mobile)
=================================== */
@media (min-width: 360px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    padding: 40px 28px;
  }

  .section {
    padding: 52px 0;
  }
}

/* ===================================
   BREAKPOINT: 576px (Large mobile)
=================================== */
@media (min-width: 576px) {
  .container {
    width: min(calc(100% - 40px), 540px);
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 48px 32px;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    width: auto;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid > div + div {
    border-top: none;
  }

  .info-grid > div:nth-child(2),
  .info-grid > div:nth-child(4) {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .card-grid,
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 56px 0;
  }

  .faq-section {
    padding: 56px 24px;
  }

  .contact-form {
    padding: 28px;
  }

  .site-footer {
    padding: 56px 24px 24px;
  }

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

  .footer-emergency {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-emergency > a {
    width: auto;
  }

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

/* ===================================
   BREAKPOINT: 768px (Tablet)
=================================== */
@media (min-width: 768px) {
  .container {
    width: min(calc(100% - 48px), 720px);
  }

  h1 {
    font-size: 3rem;
    max-width: 600px;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero {
    min-height: 600px;
  }

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

  .hero-content {
    padding: 56px 40px;
    max-width: 600px;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    max-width: 600px;
    margin: 0 auto 40px;
  }

  .section-heading > p:last-child {
    margin-top: 14px;
  }

  .eyebrow {
    font-size: 0.75rem;
    margin-bottom: 14px;
  }

  .two-column,
  .contact-grid {
    gap: 40px;
  }

  .card-grid,
  .doctors-grid {
    gap: 20px;
  }

  .faq-section {
    padding: 64px 32px;
  }

  .faq-question {
    padding: 20px 24px;
    font-size: 1rem;
  }

  .faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.95rem;
  }

  .contact-form {
    padding: 32px;
  }

  .form-group {
    gap: 8px;
    margin-bottom: 18px;
  }

  .form-group input,
  .form-group select {
    padding: 14px 16px;
    font-size: 15px;
  }

  .site-footer {
    padding: 64px 32px 24px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ===================================
   BREAKPOINT: 992px (Small desktop)
=================================== */
@media (min-width: 992px) {
  .container {
    width: min(calc(100% - 64px), 960px);
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    max-width: 800px;
    padding: 64px 48px;
  }

  .hero h1 {
    max-width: 700px;
  }

  .nav-wrapper {
    min-height: 76px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    align-items: center;
    gap: 28px;
  }

  .main-nav > a:not(.btn) {
    font-size: 0.94rem;
    padding: 0;
    border: none;
  }

  .main-nav > a:not(.btn):hover {
    color: var(--primary);
  }

  .section {
    padding: 80px 0;
  }

  .two-column,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px;
  }

  .card-grid,
  .doctors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .info-grid > div {
    padding: 24px 32px;
  }

  .info-grid > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    border-top: none;
  }

  .faq-section {
    padding: 80px 40px;
  }

  .faq-container {
    max-width: 800px;
  }

  .site-footer {
    padding: 72px 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-emergency {
    margin-bottom: 40px;
    padding: 22px 28px;
  }
}

/* ===================================
   BREAKPOINT: 1200px (Desktop)
=================================== */
@media (min-width: 1200px) {
  .container {
    width: min(1160px, 100%);
  }

  h1 {
    font-size: 4rem;
    max-width: 800px;
  }

  h2 {
    font-size: 2.8rem;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    max-width: 900px;
    padding: 72px 56px;
  }

  .section {
    padding: 90px 0;
  }

  .section-heading {
    margin: 0 auto 48px;
  }

  .two-column,
  .contact-grid {
    gap: 64px;
  }

  .card-icon-services {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  .card-icon-facilities {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  .faq-section {
    padding: 90px 48px;
  }

  .faq-question {
    padding: 22px 28px;
  }

  .site-footer {
    padding: 80px 48px 24px;
  }

  .footer-grid {
    gap: 56px;
  }
}

/* ===================================
   BREAKPOINT: 1400px (Large desktop)
=================================== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  h1 {
    font-size: 4.5rem;
    max-width: 900px;
  }

  h2 {
    font-size: 3.2rem;
  }

  .hero {
    min-height: 750px;
  }

  .hero-content {
    max-width: 1000px;
    padding: 80px 64px;
  }

  .section {
    padding: 100px 0;
  }

  .section-heading {
    max-width: 700px;
  }

  .card-icon-services {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }

  .card-icon-facilities {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }

  .faq-section {
    padding: 100px 56px;
  }

  .faq-container {
    max-width: 900px;
  }

  .faq-question {
    padding: 24px 32px;
    font-size: 1.1rem;
  }

  .faq-answer p {
    padding: 0 32px 24px;
    font-size: 1rem;
  }

  .site-footer {
    padding: 88px 56px 24px;
  }

  .footer-grid {
    gap: 64px;
  }
}

/* ===================================
   MINIMAL ANIMATIONS
=================================== */
/* Reduced motion: simple fade-in only */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Simple fade-on-scroll for cards and headings */
.fade-on-scroll {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-on-scroll.fade-in {
  opacity: 1;
}

/* Counter animation uses CSS for final state */
.count-number {
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===================================
   CARD STYLES (Minimal)
=================================== */
.card {
  position: relative;
  overflow: hidden;
}

/* ===================================
   BUTTON STYLES (Minimal)
=================================== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

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

/* ===================================
   HERO SECTION (Minimal)
=================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-content {
  animation: fadeIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-video {
  will-change: opacity;
}

/* ===================================
   CAROUSEL (Minimal)
=================================== */
.dot {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dot.active {
  transform: scale(1.3);
}

/* ===================================
   INFO BAR (Minimal)
=================================== */
.info-grid > div {
  position: relative;
  transition: background 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.info-grid > div:hover {
  background: rgba(36, 87, 255, 0.05);
}

/* ===================================
   SECTION HEADINGS (Minimal)
=================================== */
.section-heading h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* ===================================
   TESTIMONIAL (Minimal)
=================================== */
blockquote {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

blockquote:hover {
  transform: translateY(-4px);
}

/* Star rating */
blockquote footer span {
  display: inline-block;
}

/* ===================================
   FAQ (Minimal)
=================================== */
.faq-item {
  transition: box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(36, 87, 255, 0.08);
}

.faq-question:hover {
  color: var(--primary);
}

/* ===================================
   FORM (Minimal)
=================================== */
.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 87, 255, 0.12);
}

/* ===================================
   FOOTER (Minimal)
=================================== */
.footer-column a:hover {
  color: var(--accent);
}

.footer-book-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 15px rgba(36, 87, 255, 0.3);
  transition: var(--transition-fast);
}

.footer-book-btn:hover {
  box-shadow: 0 8px 30px rgba(36, 87, 255, 0.5);
  transform: translateY(-3px);
}

/* ===================================
   SCROLL PROGRESS INDICATOR
=================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===================================
   BACK TO TOP BUTTON
=================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(36, 87, 255, 0.4);
  z-index: 999;
  border: none;
  font-size: 24px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  box-shadow: 0 8px 30px rgba(36, 87, 255, 0.6);
  transform: translateY(-2px);
}

/* ===================================
   RESPONSIVE ANIMATION ADJUSTMENTS
=================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

