/* Ambulance Service Delhi NCR — custom CSS
   Only used for things Tailwind utilities can't do cleanly. */

html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F5F8FA; }
::-webkit-scrollbar-thumb { background: #063B66; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #042B4A; }

/* Soft pulse for the primary Call Now button */
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226,27,35,0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(226,27,35,0); }
}
.animate-pulse-soft { animation: pulse-soft 2.2s ease-in-out infinite; }

/* Heartbeat/EKG divider line used near hero + trust sections */
.heartbeat-line {
  width: 100%;
  height: 46px;
  overflow: hidden;
}
.heartbeat-line svg { width: 200%; animation: heartbeat-scroll 9s linear infinite; }
@keyframes heartbeat-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Subtle medical cross / dot pattern used as a background texture */
.pattern-medical {
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

/* Glass surface for hero cards */
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.16);
}

/* FAQ accordion open state (toggled via JS by adding data-open) */
.faq-panel { grid-template-rows: 0fr; }
[data-open="true"] .faq-panel { grid-template-rows: 1fr; }
[data-open="true"] .faq-icon { transform: rotate(45deg); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-pulse-soft, .heartbeat-line svg { animation: none; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #E21B23;
  outline-offset: 2px;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 92vh;
  min-height: 560px;
  max-height: 900px;
  background: #021a2b;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  background-size: cover;
  background-position: center center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 23, 41, 0.82) 0%, rgba(10, 41, 68, 0.6) 42%, rgba(10, 41, 68, 0.2) 100%);
}

.hero-slide--1 {
  background-image: url('../img/24-hour-ambulance-1408-768.png');
}

.hero-slide--2 {
  background-image: url('../img/ICU Ambulance.webp');
}

.hero-slide--3 {
  background-image: url('../img/AC Ambulance Services.webp');
}

.hero-slide__content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  max-width: 620px;
  color: #ffffff;
}

.hero-slide__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  background: #E21B23;
  margin-bottom: 18px;
  box-shadow: 0 10px 25px rgba(226, 27, 35, 0.25);
}

.hero-slide__content h1 {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 18px;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
}

.hero-slide__content h1 span {
  color: #ff3a3f;
}

.hero-slide__content p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 28px;
  max-width: 540px;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-slider .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.hero-slider .btn-red {
  background: #E21B23;
  color: #fff;
  box-shadow: 0 12px 24px rgba(226, 27, 35, 0.25);
}

.hero-slider .btn-red:hover {
  background: #c5141d;
  color: #fff;
}

.hero-slider .btn-green {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero-slider .btn-green:hover {
  background: #fff;
  color: #0a2944;
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.hero-slider__arrow:hover {
  background: #E21B23;
  border-color: #E21B23;
}

.hero-slider__arrow--prev {
  left: 20px;
}

.hero-slider__arrow--next {
  right: 20px;
}

.hero-slider__nav {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-slider__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.hero-slider__dot.active {
  background: #fff;
  transform: scale(1.35);
}

@media (max-width: 768px) {
  .hero-slider {
    height: 80vh;
    min-height: 500px;
  }

  .hero-slide__content {
    left: 5%;
    right: 5%;
    max-width: 90%;
  }

  .hero-slide__content p {
    font-size: 1rem;
  }

  .hero-slider__arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-slide__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-slider .btn {
    width: 100%;
  }
}
