/* ===== Variables ===== */
:root {
  --blue: #2B6CB0;
  --blue-light: #4A90D9;
  --blue-pale: #EBF4FF;
  --blue-sky: #B8D4F0;
  --pink: #E85D9A;
  --pink-light: #F8B4D0;
  --pink-pale: #FFF0F5;
  --navy: #1A365D;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --shadow-sm: 0 1px 3px rgba(26, 54, 93, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 54, 93, 0.1);
  --shadow-lg: 0 10px 40px rgba(26, 54, 93, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Nunito', sans-serif;
  --font-display: 'Quicksand', sans-serif;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.text-blue { color: var(--blue); }
.text-pink { color: var(--pink); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(43, 108, 176, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(43, 108, 176, 0.45);
}

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

.btn-outline:hover {
  background: var(--blue-pale);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon svg {
  width: 42px;
  height: 42px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-mj {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blue);
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 0.5px;
}

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

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  background: var(--pink) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 50px;
}

.nav-cta:hover {
  background: #d44d87 !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--blue-pale) 0%, var(--white) 40%, var(--pink-pale) 100%);
  z-index: 0;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: var(--blue-sky);
  opacity: 0.3;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-wave-2 {
  bottom: -40px;
  height: 160px;
  background: var(--blue-light);
  opacity: 0.15;
}

.hero-bubbles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(74, 144, 217, 0.1);
  animation: float 6s ease-in-out infinite;
}

.hero-bubbles span:nth-child(1) { width: 80px; height: 80px; top: 15%; left: 10%; animation-delay: 0s; }
.hero-bubbles span:nth-child(2) { width: 50px; height: 50px; top: 30%; right: 15%; animation-delay: 1s; background: rgba(232, 93, 154, 0.1); }
.hero-bubbles span:nth-child(3) { width: 120px; height: 120px; bottom: 25%; left: 5%; animation-delay: 2s; }
.hero-bubbles span:nth-child(4) { width: 40px; height: 40px; top: 60%; right: 25%; animation-delay: 3s; }
.hero-bubbles span:nth-child(5) { width: 60px; height: 60px; top: 10%; right: 40%; animation-delay: 1.5s; background: rgba(232, 93, 154, 0.08); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 24px;
}

.hero-badge {
  display: inline-block;
  background: var(--pink-pale);
  color: var(--pink);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid var(--pink-light);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue);
}

.stat span {
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 600;
}

.hero-image {
  position: relative;
}

.hero-image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.hero-image-frame img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}

.float-icon {
  font-size: 1.8rem;
}

.hero-float-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
}

.hero-float-card span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--navy);
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* ===== About ===== */
.about {
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

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

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--pink-pale);
  border-radius: var(--radius);
  z-index: -1;
}

.about-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 16px;
}

.about-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.about-features strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.about-features span {
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* ===== Services ===== */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-sky);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.service-icon.emergency { background: #FEE2E2; }
.service-icon.neonatal { background: var(--blue-pale); }
.service-icon.opd { background: #FEF3C7; }
.service-icon.vaccine { background: #D1FAE5; }
.service-icon.inpatient { background: var(--blue-pale); }
.service-icon.nutrition { background: #FEF3C7; }
.service-icon.growth { background: var(--pink-pale); }
.service-icon.cta { background: var(--pink-pale); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.service-card-cta {
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--pink-pale) 100%);
  border-color: transparent;
}

.service-card-cta .btn {
  margin-top: 16px;
}

/* ===== Doctors ===== */
.doctors {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--blue-pale) 100%);
}

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

.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 28px;
  transition: transform var(--transition);
}

.doctor-card:hover {
  transform: translateY(-4px);
}

.avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--white);
  flex-shrink: 0;
}

.avatar-female {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-light) 100%);
}

.avatar-male {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
}

.doctor-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.doctor-title {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.9rem;
}

.doctor-fellowship {
  font-size: 0.85rem;
  color: var(--pink);
  font-weight: 600;
  margin: 6px 0 12px;
}

.doctor-bio {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.doctor-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.doctor-tags span {
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

/* ===== Gallery ===== */
.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-100);
  aspect-ratio: 4 / 3;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 54, 93, 0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-label {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-display);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26, 54, 93, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: var(--white);
  margin-top: 16px;
  font-weight: 600;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===== Contact ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--gray-600);
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon.whatsapp-icon {
  background: #DCFCE7;
}

.contact-item strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.contact-item a {
  color: var(--blue);
  font-weight: 700;
}

.contact-item a:hover {
  color: var(--pink);
}

.contact-map {
  position: relative;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--white);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
}

.map-overlay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-mj { color: var(--blue-light); }
.footer-brand .logo-sub { color: var(--pink-light); }
.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-family: var(--font-display);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--pink-light);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--blue-sky);
  font-weight: 700;
}

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

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Floating WhatsApp ===== */
.floating-whatsapp {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-item-wide {
    grid-column: span 2;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

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

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-float-card {
    left: 10px;
    bottom: -10px;
  }

  .about-grid,
  .contact-wrapper,
  .doctors-grid {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .doctor-tags {
    justify-content: center;
  }

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

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

  .gallery-item-wide {
    grid-column: span 1;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .floating-whatsapp {
    display: flex;
  }

  .section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .hero-image-frame img {
    height: 280px;
  }
}
