/* ==========================================================================
   Jhunjhunwala Hospital — Kailash Healthcare visual system (static / Tailwind)
   ========================================================================== */

:root {
  --jhh-primary: #1a76d1;
  --jhh-primary-dark: #0d5aa7;
  --jhh-navy: #0c2340;
  --jhh-emergency: #e31e24;
  --jhh-emergency-dark: #c41920;
  --jhh-dark: #2c2d3f;
  --jhh-border: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Barlow", system-ui, sans-serif;
  color: var(--jhh-dark);
}

/* ── Top utility bar (legacy — kept for subpages if needed) ── */
.jhh-topbar {
  background: var(--jhh-navy);
  color: #fff;
  font-size: 13px;
}

/* ══ Kailash-style header shell (blue gradient + floating pill) ══ */
.jhh-header-shell {
  transition: box-shadow 0.3s ease, background 0.3s ease;
  overflow: visible;
}

/* Homepage: header overlays full-bleed hero slider */
[data-page="home"] #site-header {
  position: relative;
  z-index: 50;
}

[data-page="home"] .jhh-header-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

[data-page="home"] .jhh-header-gradient {
  background: linear-gradient(180deg, rgba(12, 35, 64, 0.88) 0%, rgba(21, 101, 192, 0.45) 55%, transparent 100%);
  transition: background 0.35s ease;
}

[data-page="home"] .jhh-header-shell.is-scrolled .jhh-header-gradient {
  background: linear-gradient(135deg, #1565c0 0%, #1a76d1 35%, #2196f3 70%, #42a5f5 100%);
}

/* Swiper hero — full-bleed slides + white controls */
.heroSwiper {
  overflow: hidden;
}

.heroSwiper .swiper-slide {
  overflow: hidden;
}

.heroSwiper .hero-swiper-next,
.heroSwiper .hero-swiper-prev {
  color: #fff;
  --swiper-navigation-size: 2.75rem;
}

.heroSwiper .hero-swiper-next::after,
.heroSwiper .hero-swiper-prev::after {
  font-size: 1.75rem;
  font-weight: 700;
}

.heroSwiper .hero-swiper-pagination {
  bottom: 1.75rem;
}

.heroSwiper .hero-swiper-pagination .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.45;
  width: 10px;
  height: 10px;
}

.heroSwiper .hero-swiper-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (max-width: 767px) {
  .heroSwiper .hero-swiper-next,
  .heroSwiper .hero-swiper-prev {
    display: none;
  }

  .heroSwiper .hero-swiper-pagination {
    bottom: 1.25rem;
  }
}

.jhh-header-shell.is-scrolled {
  box-shadow: 0 8px 32px rgba(12, 35, 64, 0.25);
}

.jhh-header-gradient {
  background: linear-gradient(135deg, #1565c0 0%, #1a76d1 35%, #2196f3 70%, #42a5f5 100%);
  overflow: visible;
}

.jhh-header-emergency-mobile {
  background: var(--jhh-emergency);
}

.jhh-utility-link {
  transition: opacity 0.2s ease;
}

.jhh-header-btn-emergency {
  background: var(--jhh-emergency);
  transition: background 0.2s ease, transform 0.15s ease;
}

.jhh-header-btn-emergency:hover {
  background: var(--jhh-emergency-dark);
}

.jhh-header-btn-outline {
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.jhh-header-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Floating pill navbar */
.jhh-pill-nav {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: visible;
}

/* Pure-CSS dropdown hover bridge (gap between trigger and menu) */
.jhh-pill-nav li.group::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.75rem;
}

.jhh-header-shell.is-scrolled .jhh-pill-nav {
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.16), 0 6px 16px rgba(0, 0, 0, 0.08);
}

.jhh-pill-nav-link {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  border-radius: 9999px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.jhh-pill-nav-link:hover,
.jhh-nav-dropdown:focus-within .jhh-pill-nav-link {
  color: var(--jhh-primary);
  background: #f0f7ff;
}

.jhh-pill-cta {
  background: linear-gradient(135deg, #e91e8c 0%, #c2185b 100%);
  box-shadow: 0 4px 14px rgba(233, 30, 140, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jhh-pill-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233, 30, 140, 0.45);
}

.jhh-acc-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--jhh-primary);
  overflow: hidden;
  flex-shrink: 0;
}

/* Dropdown panels */
.jhh-nav-dropdown .jhh-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 220px;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--jhh-border);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}

.jhh-nav-dropdown:hover .jhh-dropdown-panel,
.jhh-nav-dropdown:focus-within .jhh-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.jhh-dropdown-panel a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: background 0.15s ease, color 0.15s ease;
}

.jhh-dropdown-panel a:hover {
  background: #f0f7ff;
  color: var(--jhh-primary);
}

.jhh-mobile-nav-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  transition: color 0.2s ease, background 0.2s ease;
}

.jhh-mobile-nav-link:hover {
  color: var(--jhh-primary);
  background: #f9fafb;
}

.jhh-mobile-nav-link[aria-current="page"] {
  color: var(--jhh-primary);
}

#site-header[data-loading="true"] {
  min-height: 8rem;
}

@media (min-width: 1024px) {
  #site-header[data-loading="true"] {
    min-height: 9.5rem;
  }
}

#site-footer[data-loading="true"] {
  min-height: 4rem;
}

.jhh-topbar a {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}

.jhh-topbar a:hover {
  color: #fff;
}

.jhh-topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.jhh-topbar-social:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.jhh-emergency-strip {
  background: var(--jhh-emergency);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}

.jhh-emergency-strip:hover {
  background: var(--jhh-emergency-dark);
}

/* ── Main navigation ── */
.jhh-nav-link {
  position: relative;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.jhh-nav-link:hover,
.jhh-nav-link[aria-current="page"] {
  color: var(--jhh-primary);
}

.jhh-nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--jhh-primary);
  border-radius: 1px;
}

.jhh-btn-primary {
  background: var(--jhh-primary);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.jhh-btn-primary:hover {
  background: var(--jhh-primary-dark);
  box-shadow: 0 4px 14px rgba(26, 118, 209, 0.35);
}

/* ── Hero slider ── */
.jhh-hero {
  position: relative;
  isolation: isolate;
}

.jhh-hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

@media (min-width: 1024px) {
  .jhh-hero-slider {
    min-height: 520px;
  }
}

@media (min-width: 1280px) {
  .jhh-hero-slider {
    min-height: 560px;
  }
}

.jhh-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.jhh-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.jhh-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.jhh-hero-slide-fallback {
  background: linear-gradient(135deg, #0d5aa7 0%, #1a76d1 45%, #0c2340 100%);
}

.jhh-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 35, 64, 0.08) 0%,
    rgba(12, 35, 64, 0.15) 55%,
    rgba(12, 35, 64, 0.45) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.jhh-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--jhh-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

.jhh-hero-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.jhh-hero-arrow--prev {
  left: 1rem;
}

.jhh-hero-arrow--next {
  right: 1rem;
}

.jhh-hero-dots {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .jhh-hero-dots {
    bottom: 6.5rem;
  }
}

.jhh-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}

.jhh-hero-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

/* ── Overlapping quick action cards (Kailash signature) ── */
.jhh-quick-actions-wrap {
  position: relative;
  z-index: 20;
  margin-top: -4.5rem;
}

@media (min-width: 1024px) {
  .jhh-quick-actions-wrap {
    margin-top: -5.5rem;
  }
}

.jhh-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.14), 0 12px 32px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .jhh-quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .jhh-quick-actions {
    grid-template-columns: repeat(6, 1fr);
  }
}

.jhh-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 7.5rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  background: #fff;
  border-right: 1px solid var(--jhh-border);
  border-bottom: 1px solid var(--jhh-border);
  transition: background 0.2s ease, transform 0.2s ease;
}

.jhh-quick-card:last-child {
  border-right: none;
}

.jhh-quick-card:hover {
  background: #f0f7ff;
}

.jhh-quick-card--active {
  background: linear-gradient(145deg, var(--jhh-primary) 0%, var(--jhh-primary-dark) 100%);
  border-right-color: rgba(255, 255, 255, 0.15);
}

.jhh-quick-card--active:hover {
  background: linear-gradient(145deg, #1f7fd8 0%, var(--jhh-primary-dark) 100%);
}

.jhh-quick-card--active .jhh-quick-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.jhh-quick-card--active .jhh-quick-label {
  color: #fff;
}

.jhh-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef5fc;
  color: var(--jhh-primary);
  flex-shrink: 0;
}

.jhh-quick-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #4b5563;
}

@media (min-width: 1024px) {
  .jhh-quick-label {
    font-size: 14px;
  }
}

/* Hero bottom spacer — clears overlapping cards */
.jhh-hero-spacer {
  padding-top: 5rem;
  background: #fff;
}

@media (min-width: 1024px) {
  .jhh-hero-spacer {
    padding-top: 6rem;
  }
}

/* ── Screen reader only ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Centres of Excellence grid ── */
.jhh-coe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .jhh-coe-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .jhh-coe-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1280px) {
  .jhh-coe-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.jhh-coe-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 1.5rem 0.75rem;
  min-height: 8.5rem;
  background: #fff;
  border: 1px solid var(--jhh-border);
  border-radius: 0.75rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.jhh-coe-card:hover {
  border-color: var(--jhh-primary);
  box-shadow: 0 8px 24px rgba(26, 118, 209, 0.12);
  transform: translateY(-3px);
}

.jhh-coe-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef5fc;
  color: var(--jhh-primary);
}

.jhh-coe-name {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  line-height: 1.35;
}

@media (min-width: 1024px) {
  .jhh-coe-name {
    font-size: 14px;
  }
}

/* ── About section ── */
.jhh-about-img {
  box-shadow: 0 20px 50px rgba(12, 35, 64, 0.15);
}

.jhh-stat-card {
  background: #fff;
  border: 1px solid var(--jhh-border);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jhh-stat-card:hover {
  border-color: var(--jhh-primary);
  box-shadow: 0 4px 16px rgba(26, 118, 209, 0.1);
}

.jhh-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--jhh-primary);
  line-height: 1.2;
}

.jhh-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Doctor cards ── */
.jhh-doctors-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
  .jhh-doctors-scroll {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    overflow-x: visible;
  }
}

@media (min-width: 1280px) {
  .jhh-doctors-scroll {
    grid-template-columns: repeat(4, 1fr);
  }

  .jhh-doctors-scroll .jhh-doctor-card:nth-child(n+5) {
    display: none;
  }
}

.jhh-doctor-card {
  scroll-snap-align: start;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--jhh-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.jhh-doctor-card:hover {
  box-shadow: 0 12px 32px rgba(26, 118, 209, 0.12);
  transform: translateY(-4px);
}

.jhh-doctor-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #eef5fc 0%, #f9fafb 100%);
  overflow: hidden;
}

.jhh-doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.jhh-doctor-photo--placeholder {
  background: linear-gradient(135deg, #eef5fc, #dbeafe);
}

.jhh-doctor-body {
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
}

.jhh-doctor-name {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.375rem;
}

.jhh-doctor-name a {
  color: inherit;
  transition: color 0.2s ease;
}

.jhh-doctor-name a:hover {
  color: var(--jhh-primary);
}

.jhh-doctor-specialty {
  font-size: 13px;
  font-weight: 600;
  color: var(--jhh-primary);
  margin-bottom: 1rem;
}

.jhh-doctor-cta {
  display: block;
  width: 100%;
  padding: 0.625rem 1rem;
  background: var(--jhh-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 0.5rem;
  text-align: center;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.jhh-doctor-cta:hover {
  background: var(--jhh-primary-dark);
  box-shadow: 0 4px 14px rgba(26, 118, 209, 0.35);
}

/* ── Emergency banner ── */
.jhh-emergency-banner {
  background: linear-gradient(135deg, var(--jhh-primary-dark) 0%, var(--jhh-primary) 50%, #1565b8 100%);
  color: #fff;
}

.jhh-emergency-facilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .jhh-emergency-facilities {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .jhh-emergency-facilities {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
}

.jhh-emergency-facilities li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.jhh-emergency-facility-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.jhh-emergency-facility-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 13px;
  opacity: 0.9;
}

.jhh-emergency-facility-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  opacity: 1;
}

.jhh-emergency-facility-text a {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

/* ── Contact form ── */
.jhh-contact-form-wrap {
  background: #f9fafb;
  border: 1px solid var(--jhh-border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.jhh-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.jhh-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

.jhh-form-field input,
.jhh-form-field select,
.jhh-form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jhh-form-field input:focus,
.jhh-form-field select:focus,
.jhh-form-field textarea:focus {
  outline: none;
  border-color: var(--jhh-primary);
  box-shadow: 0 0 0 3px rgba(26, 118, 209, 0.15);
}

.jhh-form-field input:invalid:not(:placeholder-shown),
.jhh-form-field select:invalid,
.jhh-form-field textarea:invalid:not(:placeholder-shown) {
  border-color: #f87171;
}

.jhh-form-error {
  font-size: 13px;
  color: #dc2626;
  font-weight: 500;
}

.jhh-form-success {
  font-size: 13px;
  color: #059669;
  font-weight: 500;
}

/* ── Footer ── */
.jhh-footer-link {
  color: #9ca3af;
  transition: color 0.2s ease;
}

.jhh-footer-link:hover {
  color: #fff;
}

