/* ==========================================================================
   Tejodeep Eye Hospital — Super-Speciality Corporate Design & Animation System
   Pachora, Jalgaon (Maharashtra)
   ========================================================================== */

:root {
  --navy: #0B3B69;
  --navy-dark: #072747;
  --navy-light: #144F87;
  --medcyan: #0099CC;
  --medcyan-dark: #007BA6;
  --medcyan-light: #E6F6FC;
  --ice: #F3F8FC;
  --warmorange: #F58220;
  --warmorange-dark: #D96D12;
  --whatsapp: #25D366;
  --whatsapp-dark: #1EBE5D;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1E293B;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* ==================== TOP READING / SCROLL PROGRESS BAR ==================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #0099CC, #38BDF8, #F58220);
  z-index: 9999;
  transition: width 0.08s linear;
}

/* ==================== STICKY HEADER & MEGA DROPDOWNS ==================== */
.site-header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px -12px rgba(7, 39, 71, 0.18);
  background-color: rgba(255, 255, 255, 0.98);
}

.mega-dropdown-wrapper {
  position: relative;
}

.mega-dropdown-panel {
  position: absolute;
  top: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.22s ease;
  pointer-events: none;
  z-index: 60;
}

.mega-dropdown-wrapper:hover > .mega-dropdown-panel,
.mega-dropdown-wrapper.is-open > .mega-dropdown-panel {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.mega-dropdown-wrapper:hover .mega-chevron,
.mega-dropdown-wrapper.is-open .mega-chevron {
  transform: rotate(180deg);
}

.mega-chevron {
  transition: transform 0.22s ease;
}

/* Active Nav Link Indicator */
.nav-link-active {
  color: #0B3B69 !important;
  position: relative;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2.5px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0099CC, #F58220);
}

/* ==================== HERO GRADIENT MESH & ENTRANCE ANIMATIONS ==================== */
.hero-mesh {
  background-color: #072747;
  background-image:
    radial-gradient(at 85% 18%, rgba(0, 153, 204, 0.30) 0px, transparent 52%),
    radial-gradient(at 12% 85%, rgba(245, 130, 32, 0.18) 0px, transparent 48%),
    linear-gradient(135deg, #072747 0%, #0B3B69 52%, #144F87 100%);
}

.hero-grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoomIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-anim-1 { animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-anim-2 { animation: heroFadeUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
.hero-anim-3 { animation: heroFadeUp 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.hero-anim-4 { animation: heroFadeUp 0.82s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
.hero-anim-img { animation: heroZoomIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }

/* ==================== PROGRESSIVE SCROLL REVEAL ANIMATIONS ==================== */
/* Elements stay visible by default; only animate when JS marks html.anim-ready */
html.anim-ready .reveal,
html.anim-ready .reveal-left,
html.anim-ready .reveal-right,
html.anim-ready .reveal-scale {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html.anim-ready .reveal { transform: translateY(26px); }
html.anim-ready .reveal-left { transform: translateX(-28px); }
html.anim-ready .reveal-right { transform: translateX(28px); }
html.anim-ready .reveal-scale { transform: scale(0.95); }

html.anim-ready .reveal.is-visible,
html.anim-ready .reveal-left.is-visible,
html.anim-ready .reveal-right.is-visible,
html.anim-ready .reveal-scale.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==================== AMBIENT & MICRO-INTERACTION KEYFRAMES ==================== */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}

@keyframes pulseSoft {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.78; transform: scale(1.07); }
}

@keyframes whatsappRing {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes shimmerSweep {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(240%) skewX(-18deg); }
}

.animate-float { animation: floatSlow 4.8s ease-in-out infinite; }
.animate-pulse-soft { animation: pulseSoft 6s ease-in-out infinite; }
.whatsapp-pulse { animation: whatsappRing 2.4s infinite; }

/* Button Shine Hover Effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-140%) skewX(-18deg);
  pointer-events: none;
}

.btn-shine:hover::after {
  animation: shimmerSweep 0.75s ease forwards;
}

/* Hospital Trust Ticker */
.trust-ticker-wrap {
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.trust-ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 32s linear infinite;
}

.trust-ticker-track:hover {
  animation-play-state: paused;
}

/* ==================== CLINICAL CARD HOVER EFFECTS ==================== */
.clinical-card {
  position: relative;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.34s ease,
              border-color 0.34s ease;
}

.clinical-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px -16px rgba(11, 59, 105, 0.18);
  border-color: rgba(0, 153, 204, 0.5);
}

/* ==================== FAQ ACCORDION ==================== */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.25s ease;
}

/* ==================== FILTER & SYMPTOM PILLS ==================== */
.filter-pill.is-active,
.symptom-pill.is-active {
  background-color: #0B3B69;
  color: #FFFFFF;
  border-color: #0B3B69;
  box-shadow: 0 8px 18px -6px rgba(11, 59, 105, 0.35);
}

/* ==================== BACK TO TOP BUTTON ==================== */
#back-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==================== REDUCED MOTION & PRINT ==================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-anim-1, .hero-anim-2, .hero-anim-3, .hero-anim-4, .hero-anim-img,
  .animate-float, .animate-pulse-soft, .whatsapp-pulse, .trust-ticker-track {
    animation: none !important;
  }
  html.anim-ready .reveal,
  html.anim-ready .reveal-left,
  html.anim-ready .reveal-right,
  html.anim-ready .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media print {
  header, footer, #floating-whatsapp-btn, #back-to-top, #scroll-progress, .no-print {
    display: none !important;
  }
  body { background: #FFFFFF !important; color: #000000 !important; }
}
