/* ==========================================================================
   ARIYAN HOSPITAL - PRODUCTION PREMIUM DESIGN v2
   SAME color combination: crimson #d90429, obsidian navy #030814 /
   #07101e / #0c182d, cyan #00f0ff, gold #f59e0b, emerald #10b981.
   Header (.site-header/.navbar) + Hero video (.hero-main) + Ticker
   are INTENTIONALLY untouched. Live on main domain.
   ========================================================================== */

/* ---------- 1. Premium tokens + section rhythm ------------------------- */
#home-page {
  --ah-red: #d90429;
  --ah-red-deep: #8b0000;
  --ah-navy: #030814;
  --ah-navy-2: #0c182d;
  --ah-cyan: #00f0ff;
  --ah-gold: #f59e0b;
  --ah-emerald: #10b981;
  --ah-ink: #0f172a;
  --ah-muted: #64748b;
  --ah-line: #e2e8f0;
  --ah-card-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --ah-card-shadow-hover: 0 30px 65px rgba(15, 23, 42, 0.14);
}
#home-page .section-padding {
  padding: 96px 0 !important;
  position: relative;
}
/* Light sections: faint dotted texture + top hairline for structure */
/* Light sections ONLY (true light backgrounds — dark sections excluded):
   NOTE: substring "#ffffff" alone is NOT used because dark sections also
   contain "color: #ffffff" inline. Matching "background: #" is exact. */
#home-page section.section-padding[style*="background: #f8fafc"],
#home-page section.section-padding[style*="background:#f8fafc"],
#home-page section.section-padding[style*="background: #ffffff"],
#home-page section.section-padding[style*="background:#ffffff"] {
  background-image: radial-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px) !important;
  background-size: 22px 22px !important;
}
#home-page .section-header {
  max-width: 760px;
  margin: 0 auto 46px !important;
  text-align: center !important;
}
#home-page .section-title {
  letter-spacing: -0.035em !important;
  line-height: 1.12 !important;
  text-wrap: balance;
}
/* Gradient underline accent under every section title — structure cue */
#home-page .section-header .section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 9999px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--ah-red), var(--ah-gold), var(--ah-cyan));
  box-shadow: 0 4px 14px rgba(217, 4, 41, 0.35);
}
#home-page .section-subtitle {
  font-size: 1.03rem !important;
  line-height: 1.7 !important;
  color: #475569 !important;
  max-width: 640px;
  margin: 14px auto 0 !important;
}
/* Dark sections keep subtitle readable */
#home-page section[style*="#020712"] .section-subtitle,
#home-page section[style*="#030814"] .section-subtitle {
  color: #94a3b8 !important;
}

/* ---------- 2. Badges — light + dark variants, same palette ------------ */
#home-page .section-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 18px !important;
  border-radius: 9999px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  background: linear-gradient(180deg, #ffffff, #eef4ff) !important;
  border: 1px solid #c7d7fe !important;
  color: #1d4ed8 !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.14), inset 0 1px 0 #fff !important;
}
#home-page .section-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ah-red);
  box-shadow: 0 0 10px var(--ah-red);
  animation: ahPulse 2.2s ease-in-out infinite;
}
@keyframes ahPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.55; }
}
/* Dark-section badges: cyan glow, same hue family */
#home-page section[style*="#020712"] .section-badge,
#home-page section[style*="#030814"] .section-badge {
  background: rgba(0, 240, 255, 0.1) !important;
  border-color: rgba(0, 240, 255, 0.4) !important;
  color: var(--ah-cyan) !important;
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.15) !important;
}

/* ---------- 3. Buttons — premium uniform system, same red ------------- */
#home-page .btn {
  border-radius: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.015em !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, filter 0.25s, border-color 0.25s !important;
}
#home-page .btn:focus-visible {
  outline: 3px solid rgba(0, 240, 255, 0.7) !important;
  outline-offset: 2px;
}
#home-page .btn:active { transform: translateY(1px) scale(0.99) !important; }
#home-page .btn-primary {
  background: linear-gradient(135deg, #ef233c 0%, var(--ah-red) 40%, #6a040f 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 14px 32px rgba(217, 4, 41, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 6px rgba(0, 0, 0, 0.25) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
#home-page .btn-primary:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.07);
  box-shadow: 0 20px 44px rgba(217, 4, 41, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}
#home-page .btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: ahShine 4s ease-in-out infinite;
}
@keyframes ahShine {
  0%, 55% { left: -60%; }
  85%, 100% { left: 130%; }
}
#home-page .btn-outline {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px);
  border-width: 1.5px !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08), inset 0 1px 0 #fff !important;
}
#home-page .btn-outline:hover {
  transform: translateY(-2px) !important;
  border-color: var(--ah-ink) !important;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.15) !important;
}

/* ---------- 4. Philosophy poster — framed beauty ----------------------- */
#home-page .philosophy-grid {
  gap: 52px !important;
  align-items: center !important;
}
/* Gradient frame around poster (outer div with dark gradient bg) */
#home-page .philosophy-grid > div:first-child > div[style*="linear-gradient"] {
  border-radius: 30px !important;
  padding: 16px !important;
  background: linear-gradient(135deg, #030814, #0c182d 55%, #1a0a12) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  box-shadow: 0 30px 70px rgba(3, 8, 20, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.6), 0 0 44px rgba(0, 240, 255, 0.12) !important;
  position: relative;
  overflow: hidden;
}
#home-page .philosophy-grid img {
  border-radius: 20px !important;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#home-page .philosophy-grid > div:first-child:hover img { transform: scale(1.028); }
/* Checklist pillars: left accent bar + check medallion */
#home-page .philosophy-grid div[style*="grid-template-columns: 1fr"] > div {
  border-radius: 16px !important;
  border: 1px solid #e0e7ff !important;
  border-left: 4px solid var(--ah-red) !important;
  background: linear-gradient(180deg, #ffffff, #f5f8ff) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08) !important;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s !important;
}
#home-page .philosophy-grid div[style*="grid-template-columns: 1fr"] > div:nth-child(2) { border-left-color: var(--ah-gold) !important; }
#home-page .philosophy-grid div[style*="grid-template-columns: 1fr"] > div:nth-child(3) { border-left-color: var(--ah-cyan) !important; }
#home-page .philosophy-grid div[style*="grid-template-columns: 1fr"] > div:hover {
  transform: translateX(6px);
  border-color: #93c5fd !important;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.15) !important;
}
#home-page .floating-trust-chip {
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.5) !important;
  box-shadow: 0 22px 48px rgba(2, 132, 199, 0.25) !important;
}

/* ---------- 5. Centers of Excellence — bento, same palette ------------- */
#home-page .specialty-cluster-grid { gap: 22px !important; }
#home-page .specialty-card-tall,
#home-page .specialty-card-wide { border-radius: 26px !important; }
/* Tall emergency card: mesh glow + dotted texture, same crimson */
#home-page .specialty-card-tall {
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.22) 0, transparent 42%),
    radial-gradient(circle at 10% 95%, rgba(0, 0, 0, 0.35) 0, transparent 50%),
    linear-gradient(150deg, #ef233c 0%, var(--ah-red) 35%, var(--ah-red-deep) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 26px 60px rgba(217, 4, 41, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
#home-page .specialty-card-tall:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 34px 75px rgba(217, 4, 41, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}
/* Wide cards: white glass + top accent line + icon tile */
#home-page .specialty-card-wide {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%) !important;
  border: 1px solid var(--ah-line) !important;
  box-shadow: var(--ah-card-shadow) !important;
  position: relative;
  overflow: hidden;
}
#home-page .specialty-card-wide::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--ah-red), var(--ah-gold), var(--ah-cyan));
  opacity: 0;
  transition: opacity 0.3s;
}
#home-page .specialty-card-wide:hover {
  transform: translateY(-6px) !important;
  border-color: #7dd3fc !important;
  box-shadow: var(--ah-card-shadow-hover) !important;
}
#home-page .specialty-card-wide:hover::before { opacity: 1; }
#home-page .specialty-card-wide h4 { letter-spacing: -0.015em !important; }
#home-page .readiness-pill {
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  font-size: 0.73rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ---------- 6. Patient Journey — connected premium steps --------------- */
#home-page .journey-timeline-wrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
#home-page .journey-timeline-line {
  position: absolute !important;
  top: 37px !important;
  left: 9% !important;
  right: 9% !important;
  height: 3px !important;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--ah-red), var(--ah-gold), var(--ah-cyan), var(--ah-emerald)) !important;
  box-shadow: 0 4px 16px rgba(217, 4, 41, 0.25);
  opacity: 0.9;
}
#home-page .journey-step-item {
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
  border: 1px solid var(--ah-line) !important;
  border-radius: 24px !important;
  padding: 32px 26px 30px !important;
  text-align: center !important;
  box-shadow: var(--ah-card-shadow) !important;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s !important;
  position: relative;
  z-index: 1;
}
#home-page .journey-step-item::after {
  content: "";
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 4px;
  border-radius: 0 0 8px 8px;
}
#home-page .journey-step-item:nth-child(2)::after { background: linear-gradient(90deg, var(--ah-red), #ff6b81); }
#home-page .journey-step-item:nth-child(3)::after { background: linear-gradient(90deg, var(--ah-gold), #fbbf24); }
#home-page .journey-step-item:nth-child(4)::after { background: linear-gradient(90deg, var(--ah-cyan), #38bdf8); }
#home-page .journey-step-item:hover {
  transform: translateY(-7px);
  border-color: #93c5fd !important;
  box-shadow: var(--ah-card-shadow-hover) !important;
}
#home-page .journey-step-badge {
  width: 56px !important;
  height: 56px !important;
  margin: 0 auto 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0f172a, #1d4ed8) !important;
  border: 3px solid #fff !important;
  box-shadow: 0 0 0 5px rgba(29, 78, 216, 0.12), 0 12px 26px rgba(29, 78, 216, 0.35) !important;
}
#home-page .journey-step-item h4 {
  letter-spacing: -0.015em !important;
  margin-bottom: 8px !important;
}
#home-page .journey-step-item p { color: var(--ah-muted) !important; font-size: 0.94rem !important; }

/* ---------- 7. Emergency dark section — grid + glow -------------------- */
/* ---------- 7a. Emergency section: SOLID color combination ----------------
   Solid deep-navy base + solid crimson/cyan hairline framing.
   (Selector "#081426" uniquely matches the Emergency command section.) */
#home-page section.section-padding[style*="#081426"] {
  background-color: #0a1730 !important;
  background-image: none !important;
  border-top: 2px solid rgba(0, 240, 255, 0.35) !important;
  border-bottom: 2px solid rgba(217, 4, 41, 0.55) !important;
  box-shadow: inset 0 30px 60px rgba(0, 0, 0, 0.35) !important;
}
/* Telemetry card: solid navy slab so it pops on the solid base */
#home-page section.section-padding[style*="#081426"] div[style*="rgba(12, 24, 45"] {
  background: #0e1e38 !important;
  border: 1.5px solid rgba(0, 240, 255, 0.45) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 240, 255, 0.08) !important;
}
/* Hotline card: solid crimson glow slab */
#home-page section.section-padding[style*="#081426"] div[style*="rgba(217, 4, 41, 0.18)"] {
  background: #2a0a12 !important;
  border: 1.5px solid #d90429 !important;
  box-shadow: 0 12px 34px rgba(217, 4, 41, 0.4) !important;
}
#home-page section[style*="#020712"] { overflow: hidden; }
#home-page section[style*="#020712"]::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 30%, transparent 75%);
}
#home-page .emergency-feature-grid {
  gap: 40px !important;
  align-items: center !important;
  position: relative;
  z-index: 1;
}
/* Telemetry rows: hover highlight */
#home-page .emergency-feature-grid div[style*="rgba(255, 255, 255, 0.05)"] {
  transition: border-color 0.25s, background 0.25s, transform 0.25s !important;
}
#home-page .emergency-feature-grid div[style*="rgba(255, 255, 255, 0.05)"]:hover {
  border-color: rgba(0, 240, 255, 0.45) !important;
  background: rgba(0, 240, 255, 0.07) !important;
  transform: translateX(4px);
}

/* ---------- 8. Milestones — glass stat cards, same navy/cyan ----------- */
#home-page .stat-counter-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-top: 1px solid rgba(0, 240, 255, 0.35) !important;
  border-radius: 24px !important;
  padding: 32px 24px !important;
  text-align: center !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s !important;
  position: relative;
  overflow: hidden;
}
#home-page .stat-counter-card::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.16), transparent 70%);
  pointer-events: none;
}
#home-page .stat-counter-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 240, 255, 0.6) !important;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.12) !important;
}
#home-page .stat-counter-num {
  font-size: 2.6rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
  background: linear-gradient(92deg, #ffffff 20%, var(--ah-cyan) 90%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
#home-page .stat-counter-label {
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  font-size: 0.82rem !important;
}

/* ---------- 9. Testimonials — quote beauty, same palette --------------- */
#home-page .testimonial-card-luxury {
  border-radius: 26px !important;
  border: 1px solid var(--ah-line) !important;
  border-top: 4px solid transparent !important;
  border-image: linear-gradient(90deg, var(--ah-red), var(--ah-gold), var(--ah-cyan)) 1 !important;
  background: linear-gradient(180deg, #ffffff, #fbfdff) !important;
  box-shadow: var(--ah-card-shadow) !important;
  padding: 30px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
  position: relative;
}
#home-page .testimonial-card-luxury::before {
  content: "\201C";
  position: absolute;
  top: 10px; right: 22px;
  font-size: 4.2rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(217, 4, 41, 0.1);
  pointer-events: none;
}
#home-page .testimonial-card-luxury:hover {
  transform: translateY(-7px);
  box-shadow: var(--ah-card-shadow-hover) !important;
}

/* ---------- 10. Final CTA — dual orbs + glass --------------------------- */
#home-page section:last-child .btn { border-radius: 16px !important; }

/* ---------- 11. Responsive structure ------------------------------------ */
@media (max-width: 1024px) {
  #home-page .section-padding { padding: 68px 0 !important; }
  #home-page .journey-timeline-wrap { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  #home-page .journey-timeline-line { display: none; }
  #home-page .specialty-cluster-grid { grid-template-columns: 1fr !important; }
  #home-page .specialty-card-tall { grid-row: auto !important; }
  #home-page .philosophy-grid { gap: 36px !important; }
}
@media (max-width: 640px) {
  #home-page .section-title { font-size: 1.9rem !important; line-height: 1.18 !important; }
  #home-page .stat-counter-num { font-size: 2.05rem !important; }
  #home-page .section-header { margin-bottom: 34px !important; }
  body::before { font-size: 9px; }
}

/* ---------- 12. Entrance motion (design only) ---------------------------- */
@media (prefers-reduced-motion: no-preference) {
  #home-page .philosophy-grid,
  #home-page .specialty-cluster-grid,
  #home-page .journey-timeline-wrap,
  #home-page .stat-counter-card,
  #home-page .testimonial-card-luxury {
    animation: ahRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  #home-page .specialty-cluster-grid { animation-delay: 0.08s; }
  #home-page .journey-timeline-wrap { animation-delay: 0.12s; }
  @keyframes ahRise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
