/* ==========================================================================
   Services Page Specific Styles - Dr. Kunal Patel
   Matching Exact 6-Card Reference Layout & Color Themes (Compact & Professional)
   ========================================================================== */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.services-hero-section {
  padding: 82px 0 72px;
  background-image: 
    linear-gradient(180deg, rgba(6, 20, 39, 0.48) 0%, rgba(6, 20, 39, 0.65) 100%),
    url('../assets/images/services-hero-bg.jpg');
  background-position: center 32%;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(14, 165, 233, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(6, 20, 39, 0.2) 0%, rgba(6, 20, 39, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

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

.services-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.42);
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(6, 20, 39, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.services-hero-title {
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.title-highlight {
  color: #38bdf8;
  display: inline-block;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.45);
}

.services-hero-subtitle {
  font-size: 1.05rem;
  color: #e2e8f0;
  font-weight: 450;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   6 Core Services Section (Compact, Ultra-Premium 3x2 Grid)
   ========================================================================== */
.services-grid-section {
  padding: 48px 0 74px;
  background: radial-gradient(circle at 50% 0%, rgba(224, 242, 254, 0.4) 0%, rgba(255, 255, 255, 0) 60%),
              linear-gradient(180deg, #f8fafc 0%, #ffffff 32%, #f8fafc 100%);
  position: relative;
  z-index: 1;
}

/* 3-Column x 2-Row Grid */
.services-reference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto 42px;
}

/* Ultra-Premium Reference Service Card */
.service-ref-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 
              0 6px 18px -4px rgba(15, 23, 42, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.28s ease,
              background-color 0.28s ease;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.service-ref-card:hover,
.service-ref-card:focus-visible {
  transform: translateY(-5px);
  outline: none;
}

/* Card Header: Icon Badge + Editorial Serif Title */
.service-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.service-icon-box {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-icon-box svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.service-ref-card:hover .service-icon-box {
  transform: scale(1.08) rotate(1deg);
}

.service-card-title {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: #0c2340;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  transition: color 0.25s ease;
}

.service-ref-card:hover .service-card-title {
  color: #061427;
}

/* Short Overview Description */
.service-card-desc {
  font-size: 0.865rem;
  color: #4b5d73;
  line-height: 1.45;
  font-weight: 400;
  margin-bottom: 15px;
}

/* Bullet Items List with Colored Checkmarks - Beside & Parallel */
.service-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8.5px;
}

.service-bullet-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px;
  font-size: 0.865rem;
  color: #334155;
  line-height: 1.4;
  font-weight: 500;
  margin: 0;
  padding: 0;
  transition: color 0.2s ease;
}

.check-icon {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  flex-shrink: 0;
  margin-top: 3px;
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bullet-text {
  display: inline-block;
  flex: 1;
}

.service-ref-card:hover .check-icon {
  transform: scale(1.08);
}

/* Bottom Action "Learn More ->" */
.service-card-action {
  margin-top: auto;
  padding-top: 6px;
}

.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.865rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: gap 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s ease;
}

.arrow-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-ref-card:hover .arrow-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   Exact Color Themes Matching Reference Image (With Ambient Glow)
   ========================================================================== */

/* 1. Theme Teal (Chronic Disease Care) */
.service-ref-card.theme-teal {
  border: 1.5px solid #a7f3d0;
}
.service-ref-card.theme-teal:hover {
  border-color: #5eead4;
  box-shadow: 0 20px 36px -8px rgba(13, 148, 136, 0.16), 
              0 6px 16px -2px rgba(15, 23, 42, 0.04);
}
.service-ref-card.theme-teal .service-icon-box {
  background: linear-gradient(135deg, #ccfbf1 0%, #bbf7d0 100%);
  border: 1px solid rgba(20, 184, 166, 0.28);
  color: #0d9488;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.12);
}
.service-ref-card.theme-teal .check-icon {
  color: #0d9488;
}
.service-ref-card.theme-teal .learn-more-link {
  color: #0284c7;
}
.service-ref-card.theme-teal:hover .learn-more-link {
  color: #0369a1;
}

/* 2. Theme Orange (Acute Illness Evaluation) */
.service-ref-card.theme-orange {
  border: 1.5px solid #fed7aa;
}
.service-ref-card.theme-orange:hover {
  border-color: #fdba74;
  box-shadow: 0 20px 36px -8px rgba(234, 88, 12, 0.16), 
              0 6px 16px -2px rgba(15, 23, 42, 0.04);
}
.service-ref-card.theme-orange .service-icon-box {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  border: 1px solid rgba(249, 115, 22, 0.28);
  color: #ea580c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12);
}
.service-ref-card.theme-orange .check-icon {
  color: #ea580c;
}
.service-ref-card.theme-orange .learn-more-link {
  color: #ea580c;
}
.service-ref-card.theme-orange:hover .learn-more-link {
  color: #c2410c;
}

/* 3. Theme Purple (Adult & Elderly Care) */
.service-ref-card.theme-purple {
  border: 1.5px solid #ddd6fe;
}
.service-ref-card.theme-purple:hover {
  border-color: #c4b5fd;
  box-shadow: 0 20px 36px -8px rgba(124, 58, 237, 0.16), 
              0 6px 16px -2px rgba(15, 23, 42, 0.04);
}
.service-ref-card.theme-purple .service-icon-box {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: #7c3aed;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}
.service-ref-card.theme-purple .check-icon {
  color: #7c3aed;
}
.service-ref-card.theme-purple .learn-more-link {
  color: #7c3aed;
}
.service-ref-card.theme-purple:hover .learn-more-link {
  color: #6d28d9;
}

/* 4. Theme Blue (Hospital-Based Care) */
.service-ref-card.theme-blue {
  border: 1.5px solid #bae6fd;
}
.service-ref-card.theme-blue:hover {
  border-color: #7dd3fc;
  box-shadow: 0 20px 36px -8px rgba(2, 132, 199, 0.16), 
              0 6px 16px -2px rgba(15, 23, 42, 0.04);
}
.service-ref-card.theme-blue .service-icon-box {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid rgba(14, 165, 233, 0.28);
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}
.service-ref-card.theme-blue .check-icon {
  color: #0284c7;
}
.service-ref-card.theme-blue .learn-more-link {
  color: #0284c7;
}
.service-ref-card.theme-blue:hover .learn-more-link {
  color: #0369a1;
}

/* 5. Theme Emerald (Preventive Care) */
.service-ref-card.theme-emerald {
  border: 1.5px solid #a7f3d0;
}
.service-ref-card.theme-emerald:hover {
  border-color: #6ee7b7;
  box-shadow: 0 20px 36px -8px rgba(5, 150, 105, 0.16), 
              0 6px 16px -2px rgba(15, 23, 42, 0.04);
}
.service-ref-card.theme-emerald .service-icon-box {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12);
}
.service-ref-card.theme-emerald .check-icon {
  color: #059669;
}
.service-ref-card.theme-emerald .learn-more-link {
  color: #059669;
}
.service-ref-card.theme-emerald:hover .learn-more-link {
  color: #047857;
}

/* 6. Theme Rose (Follow-up & Teleconsultation) */
.service-ref-card.theme-rose {
  border: 1.5px solid #fecdd3;
}
.service-ref-card.theme-rose:hover {
  border-color: #fda4af;
  box-shadow: 0 20px 36px -8px rgba(225, 29, 72, 0.16), 
              0 6px 16px -2px rgba(15, 23, 42, 0.04);
}
.service-ref-card.theme-rose .service-icon-box {
  background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);
  border: 1px solid rgba(244, 63, 94, 0.28);
  color: #e11d48;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12);
}
.service-ref-card.theme-rose .check-icon {
  color: #e11d48;
}
.service-ref-card.theme-rose .learn-more-link {
  color: #e11d48;
}
.service-ref-card.theme-rose:hover .learn-more-link {
  color: #be123c;
}

/* Teleconsultation Special Notice Box */
.teleconsult-notice {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid #fecdd3;
  border-radius: 10px;
  padding: 7px 11px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(225, 29, 72, 0.06);
}

.notice-icon {
  color: #be123c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notice-icon svg {
  width: 14px;
  height: 14px;
}

.notice-text {
  font-size: 0.735rem;
  color: #9f1239;
  line-height: 1.32;
  font-weight: 600;
  margin: 0;
}

/* ==========================================================================
   Bottom Navy Banner Bar (As in Reference Design)
   ========================================================================== */
.services-bottom-banner {
  background: linear-gradient(135deg, #07264e 0%, #0a3a75 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 14px 28px;
  margin: 0 auto;
  max-width: 960px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  box-shadow: 0 8px 22px -4px rgba(6, 20, 39, 0.20);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.services-bottom-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(6, 20, 39, 0.30);
}

.banner-icon {
  width: 22px;
  height: 22px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-icon svg {
  width: 20px;
  height: 20px;
}

.banner-text {
  color: #ffffff;
  font-size: 0.985rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* ==========================================================================
   Compact Service Details Modal (No Scrolling Needed)
   ========================================================================== */
.service-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 20, 39, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.service-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.service-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  box-shadow: 0 25px 60px -10px rgba(6, 20, 39, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-modal-overlay.is-open .service-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.service-modal-image-header {
  position: relative;
  width: 100%;
  height: 135px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background-color: #0b1f3a;
}

.modal-banner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.modal-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 20, 39, 0.15) 0%, rgba(6, 20, 39, 0.72) 100%);
  pointer-events: none;
}

.service-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.service-modal-close:hover {
  background: #ffffff;
  color: #0b1f3a;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.25);
}

.service-modal-tag {
  position: absolute;
  bottom: 12px;
  left: 16px;
  z-index: 10;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: rgba(2, 132, 199, 0.92);
  backdrop-filter: blur(6px);
  padding: 3px 11px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.service-modal-body {
  padding: 16px 20px 18px;
}

.service-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy-900);
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin-bottom: 5px;
}

.service-modal-desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.42;
  margin-bottom: 12px;
}

.service-modal-points-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.service-modal-points-heading {
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--color-navy-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
  display: block;
}

.service-modal-points-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.service-modal-point-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.795rem;
  color: #334155;
  line-height: 1.35;
}

.service-modal-point-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary-600);
  flex-shrink: 0;
}

.service-modal-footer {
  display: flex;
  flex-direction: column;
}

.btn-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 20px;
  font-size: 0.885rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  gap: 8px;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.22);
  transition: all 0.25s ease;
}

.btn-modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.3);
}

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

@media (max-width: 680px) {
  .services-hero-section {
    padding: 56px 0 44px;
    background-position: center 25%;
  }

  .services-grid-section {
    padding: 32px 0 54px;
  }

  .services-reference-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .service-ref-card {
    padding: 20px 18px 18px;
    border-radius: 16px;
  }

  .service-card-title {
    font-size: 1.1rem;
  }

  .service-icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .service-icon-box svg {
    width: 22px;
    height: 22px;
  }

  .service-card-desc {
    font-size: 0.84rem;
    margin-bottom: 12px;
  }

  .service-bullet-item {
    font-size: 0.835rem;
    gap: 9px;
  }

  .services-bottom-banner {
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
  }

  .banner-text {
    font-size: 0.885rem;
    line-height: 1.45;
  }

  .service-modal-card {
    max-width: 95vw;
    border-radius: 16px;
  }

  .service-modal-image-header {
    height: 115px;
    border-radius: 16px 16px 0 0;
  }

  .service-modal-body {
    padding: 14px 16px 16px;
  }

  .service-modal-title {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }

  .service-modal-desc {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .service-modal-points-wrapper {
    padding: 8px 12px;
    margin-bottom: 12px;
  }
}
