/* ==========================================================================
   Sarans Hospitals - Services Modern Responsive Stylesheet
   Clean Semantic Architecture | Emerald & Lime Theme | Rich Animations
   ========================================================================== */

:root {
  --sarans-emerald: #007a70;
  --sarans-emerald-dark: #005f57;
  --sarans-emerald-deep: #00453f;
  --sarans-lime: #a4d553;
  --sarans-lime-dark: #8cc63f;
  --sarans-gold: #c59d5f;
  --sarans-slate-900: #0f172a;
  --sarans-slate-800: #1e293b;
  --sarans-slate-600: #475569;
  --sarans-slate-500: #64748b;
  --sarans-bg-light: #f8fafc;
  --sarans-bg-mint: #f0fdfa;
  --sarans-border: #e2e8f0;
}

/* ----------------------------------------------------
   Keyframe Animations & Micro-Interactions
   ---------------------------------------------------- */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

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

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.28; transform: scale(1.06); }
}

@keyframes fadeInCard {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.004);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseDot {
  0% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Staggered Scroll-Reveal Animations */
.service-dept-card,
.step-card {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  will-change: opacity, transform;
}

.service-dept-card.in-view,
.step-card.in-view {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .service-dept-card,
  .step-card,
  .sarans-pill-badge,
  .services-hero-title,
  .services-hero-subtitle,
  .services-hero-actions {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ----------------------------------------------------
   Hero Banner Section
   ---------------------------------------------------- */
.services-hero {
  position: relative;
  background: linear-gradient(135deg, #00453f 0%, #005f57 40%, #007a70 100%);
  color: #ffffff;
  padding: clamp(60px, 9vw, 110px) 20px clamp(50px, 8vw, 90px);
  text-align: center;
  overflow: hidden;
}

.services-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 85% 20%, rgba(164, 213, 83, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 15% 80%, rgba(0, 168, 157, 0.2) 0%, transparent 50%);
  pointer-events: none;
  animation: heroGlowPulse 8s ease-in-out infinite alternate;
}

.services-hero-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  z-index: 2;
}

.sarans-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(164, 213, 83, 0.4);
  color: #a4d553;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: heroFadeInUp 0.8s ease-out, floatGentle 4s ease-in-out infinite 0.8s;
  transition: all 0.3s ease;
}

.sarans-pill-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #a4d553;
  transform: translateY(-2px) scale(1.02);
}

.services-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 18px 0;
  font-family: 'Poppins', sans-serif;
  animation: heroFadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.services-hero-title span {
  color: #a4d553;
  background: linear-gradient(120deg, #a4d553, #e2f4f2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.65;
  color: #e6f6f5;
  max-width: 780px;
  margin: 0 auto 32px auto;
  opacity: 0.95;
  animation: heroFadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.services-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 45px;
  animation: heroFadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #a4d553;
  color: #00453f !important;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(164, 213, 83, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover {
  background: #bbf060;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 34px rgba(164, 213, 83, 0.5);
}

.btn-hero-primary i {
  transition: transform 0.25s ease;
}

.btn-hero-primary:hover i {
  transform: translateY(3px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-hero-secondary i {
  transition: transform 0.25s ease;
}

.btn-hero-secondary:hover i {
  transform: scale(1.2);
}

.services-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 36px);
  flex-wrap: wrap;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  animation: heroFadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #d1fae5;
}

.stat-pill .stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

/* ----------------------------------------------------
   Services Section & 8 Clinical Cards Grid
   ---------------------------------------------------- */
.services-section {
  padding: clamp(50px, 7vw, 90px) 20px;
  background: #ffffff;
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
}

.services-section-header {
  text-align: center;
  margin-bottom: 45px;
}

.inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #e6f6f5;
  color: #007a70;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.25;
  font-family: 'Poppins', sans-serif;
}

.section-heading span {
  color: #007a70;
  position: relative;
}

.section-subtext {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 8 Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-bottom: 30px;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.service-dept-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.service-dept-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #007a70, #a4d553);
  transition: width 0.38s cubic-bezier(0.16, 1, 0.3, 1), left 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 4px 4px 0 0;
}

.service-dept-card:hover {
  transform: translateY(-9px);
  border-color: rgba(0, 122, 112, 0.4);
  box-shadow: 0 22px 45px -8px rgba(0, 122, 112, 0.18), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.service-dept-card:hover::before {
  left: 0;
  width: 100%;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.service-num-badge {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #007a70;
  letter-spacing: -0.5px;
}

.service-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #e6f6f5;
  color: #007a70;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-dept-card:hover .service-icon-bubble {
  background: linear-gradient(135deg, #007a70, #005f57);
  color: #a4d553;
  transform: scale(1.14) rotate(8deg);
  box-shadow: 0 8px 20px rgba(0, 122, 112, 0.3);
}

.service-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.3;
  font-family: 'Poppins', sans-serif;
}

.service-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
}

.service-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 16px;
  margin-top: auto;
}

.btn-service-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f0fdfa;
  color: #007a70 !important;
  border: 1px solid rgba(0, 122, 112, 0.2);
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-service-call:hover {
  background: #007a70;
  color: #ffffff !important;
  border-color: #007a70;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 122, 112, 0.25);
}

.btn-service-book {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  color: #007a70;
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-service-book i {
  transition: transform 0.25s ease;
}

.btn-service-book:hover {
  color: #005f57;
}

.service-dept-card:hover .btn-service-book i,
.btn-service-book:hover i {
  transform: translateX(5px);
}

/* ----------------------------------------------------
   Steps to Follow Section (Process Pipeline)
   ---------------------------------------------------- */
.process-steps-section {
  padding: clamp(60px, 8vw, 100px) 20px;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.process-steps-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 10%, rgba(0, 122, 112, 0.03) 0%, transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(164, 213, 83, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

.step-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: #007a70;
  box-shadow: 0 20px 45px rgba(0, 122, 112, 0.15);
}

.step-num-pill {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #007a70;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 122, 112, 0.35);
  border: 2px solid #ffffff;
  z-index: 3;
}

.step-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  margin: 15px auto 20px auto;
  background: #e2e8f0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  position: relative;
}

.step-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.step-card:hover .step-img-box img {
  transform: scale(1.08);
}

.step-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.35;
}

.step-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* ----------------------------------------------------
   Curative Care Philosophy Banner
   ---------------------------------------------------- */
.curative-care-banner {
  background: linear-gradient(135deg, #00453f 0%, #005f57 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: clamp(35px, 6vw, 60px) clamp(24px, 5vw, 50px);
  margin: 60px auto 0 auto;
  max-width: 1240px;
  box-shadow: 0 20px 50px rgba(0, 69, 63, 0.25);
  position: relative;
  overflow: hidden;
}

.curative-care-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 90% 10%, rgba(164, 213, 83, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.curative-layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.curative-content {
  flex: 1 1 550px;
}

.curative-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(164, 213, 83, 0.15);
  border: 1px solid rgba(164, 213, 83, 0.4);
  color: #a4d553;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 15px;
}

.curative-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 14px;
  line-height: 1.25;
}

.curative-title span {
  color: #a4d553;
}

.curative-quote {
  font-size: clamp(0.96rem, 1.8vw, 1.1rem);
  line-height: 1.7;
  color: #e6f6f5;
  margin: 0 0 12px;
  font-style: italic;
}

.curative-author {
  font-size: 0.88rem;
  font-weight: 700;
  color: #a4d553;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.curative-cta-col {
  flex-shrink: 0;
}

.btn-curative-apt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #a4d553;
  color: #00453f !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(164, 213, 83, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-curative-apt:hover {
  background: #bbf060;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 35px rgba(164, 213, 83, 0.55);
}
