/* =========================================================
   City Health Care Ambulance Service — Custom Styles v2
   ========================================================= */

:root {
  --primary: #4DA6FF;
  --primary-dark: #0F4C81;
  --accent: #FF4D4D;
  --light-bg: #F4F9FF;
  --border: #D6E9FF;
  --success: #28A745;
  --shadow-soft: 0 8px 32px rgba(15, 76, 129, 0.12);
  --shadow-card: 0 2px 12px rgba(15, 76, 129, 0.08);
  --radius-card: 16px;
  --radius-btn: 50px;
}

/* html {
  scroll-behavior: smooth;
} */

body {
  overflow-x: hidden;
}

/* ================================================
   TYPOGRAPHY GRADIENT
   ============================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================
   NAV
   ============================================== */
#site-header.scrolled {
  box-shadow: 0 8px 30px -10px rgba(15, 76, 129, 0.2);
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
  transition: color .25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-active::after {
  width: 100%;
}

.nav-active {
  color: var(--primary);
}

/* ================================================
   VITAL DOT
   ============================================== */
.vital-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
  animation: vitalPulse 1.6s infinite;
}

@keyframes vitalPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

/* ================================================
   EKG DIVIDER
   ============================================== */
.ekg-divider {
  width: 100%;
  height: 46px;
  overflow: hidden;
}

.ekg-divider svg {
  width: 200%;
  height: 100%;
  animation: ekgScroll 9s linear infinite;
}

@keyframes ekgScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.ekg-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================================================
   HERO
   ============================================== */
.hero-bg {
  background:
    linear-gradient(135deg, rgba(15, 76, 129, 0.75) 0%, rgba(15, 76, 129, 0.65) 100%),
    url('../images/oxygen-system-ambulance-612-408.webp') center/cover no-repeat;
  position: relative;
}

/* Hero text colors for dark background */
.hero-bg h1 {
  color: #fff !important;
}

.hero-bg p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.text-gradient {
  background: linear-gradient(135deg, #7FD3FF 0%, #FFB3B3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
}

.hero-blob-1 {
  width: 420px;
  height: 420px;
  background: rgba(77, 166, 255, .18);
  top: -80px;
  left: -100px;
}

.hero-blob-2 {
  width: 320px;
  height: 320px;
  background: rgba(255, 77, 77, .12);
  bottom: 40px;
  right: -60px;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: .04em;
}

/* Hero image */
.hero-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.hero-img-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(15, 76, 129, .25), transparent);
}

/* Floating cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 8px 24px rgba(15, 76, 129, .15);
}

.float-card-top {
  top: 20px;
  right: -16px;
}

.float-card-bottom {
  bottom: 24px;
  left: -16px;
}

.float-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Trust bar */
.trust-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 16px 20px;
  width: fit-content;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.trust-item {
  text-align: center;
  padding: 0 20px;
}

.trust-num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.trust-label {
  font-size: .7rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
  display: block;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* ================================================
   BUTTONS
   ============================================== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 6px 20px rgba(255, 77, 77, .35);
}

.cta-primary:hover {
  background: #e63e3e;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 77, 77, .4);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: var(--primary-dark);
  border: 2px solid #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  transition: border-color .2s, background .2s;
}

.cta-secondary:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
}

/* View-all link */
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: .9rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color .2s;
}

.view-all-link:hover {
  color: var(--accent);
}

/* Submit btn */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 15px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: background .2s;
  font-size: .95rem;
}

.submit-btn:hover {
  background: #e63e3e;
}

/* ================================================
   ABOUT SECTION
   ============================================== */
.exp-badge {
  position: absolute;
  bottom: -16px;
  left: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-card);
  z-index: 10;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(40, 167, 69, .15);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ================================================
   SECTION HEADER (reusable)
   ============================================== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent);
}

/* ================================================
   SERVICE CARDS
   ============================================== */
.service-card {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 76, 129, .18);
  border-color: rgba(77, 166, 255, .4);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.1rem;
  transition: transform .3s ease;
  box-shadow: 0 4px 12px rgba(15, 76, 129, .3);
}

.service-card:hover .icon-badge {
  transform: rotate(-5deg) scale(1.08);
}

/* ================================================
   WHY CHOOSE US CARDS
   ============================================== */
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  transition: box-shadow .2s;
}

.why-card:hover {
  box-shadow: var(--shadow-soft);
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.why-icon-primary {
  background: rgba(77, 166, 255, .12);
  color: var(--primary);
}

.why-icon-accent {
  background: rgba(255, 77, 77, .1);
  color: var(--accent);
}

.why-icon-success {
  background: rgba(40, 167, 69, .12);
  color: var(--success);
}

/* ================================================
   BOOKING FORM
   ============================================== */
.booking-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.booking-emergency-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 77, 77, .06);
  border: 1px solid rgba(255, 77, 77, .2);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: .8rem;
  color: var(--primary-dark);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .875rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  background: var(--light-bg);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(77, 166, 255, .15);
  background: #fff;
}

/* ================================================
   PROCESS TIMELINE (grid layout)
   ============================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
  height: 2px;
  background: repeating-linear-gradient(to right, var(--border) 0, var(--border) 6px, transparent 6px, transparent 12px);
  display: none;
}

@media (min-width: 768px) {
  .process-step:not(:last-child)::after {
    display: block;
  }
}

.process-num {
  display: none;
}

.process-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto;
  position: relative;
}

.process-icon-accent {
  background: rgba(255, 77, 77, .1);
  color: var(--accent);
}

.process-icon-primary {
  background: rgba(77, 166, 255, .12);
  color: var(--primary);
}

.process-icon-success {
  background: rgba(40, 167, 69, .12);
  color: var(--success);
}

/* ================================================
   AREA CARDS
   ============================================== */
.area-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}

.area-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(77, 166, 255, .15);
}

/* ================================================
   TESTIMONIALS
   ============================================== */
.testimonial-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

.testimonial-slide {
  flex: 0 0 100%;
}

.testi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
}

.testi-stars {
  color: #F5A623;
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testi-quote {
  color: rgba(15, 76, 129, .75);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 20px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testi-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  transition: border-color .2s, background .2s;
}

.testi-nav-btn:hover {
  border-color: var(--primary);
  background: var(--light-bg);
}

/* ================================================
   FAQ
   ============================================== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-question {
  cursor: pointer;
  transition: background .2s;
}

.faq-question:hover {
  background: var(--light-bg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  transition: transform .3s ease;
}

/* ================================================
   GLASS CARD
   ============================================== */
.glass-card {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px -15px rgba(15, 76, 129, .25);
}

/* ================================================
   FINAL CTA CARD
   ============================================== */
.final-cta-card {
  background: var(--primary-dark);
  border-radius: 28px;
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
}

.final-cta-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(77, 166, 255, .2), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 77, 77, .15), transparent 45%);
  pointer-events: none;
}

/* ================================================
   SERVICES PAGE — HERO
   ============================================== */
.services-hero-bg {
  background: linear-gradient(160deg, var(--light-bg) 0%, #fff 100%);
  position: relative;
}

.services-hero-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(77, 166, 255, .13);
  filter: blur(80px);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

/* Stat pills (services hero) */
.stat-pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s;
}

.stat-pill:hover {
  box-shadow: var(--shadow-soft);
}

/* Feature strip (services page) */
.feature-strip-item {}

.feature-strip-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(77, 166, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* ================================================
   FLOATING FAB BUTTONS
   ============================================== */
.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .35);
  transition: transform .25s;
}

.fab-btn:hover {
  transform: scale(1.08);
}

.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ringPulse 1.8s infinite;
}

@keyframes ringPulse {
  0% {
    transform: scale(1);
    opacity: .8;
  }

  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

/* ================================================
   FOOTER
   ============================================== */
.footer-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .1);
  transition: background .25s;
}

.footer-icon:hover {
  background: var(--primary);
}

/* ================================================
   COUNTER
   ============================================== */
[data-counter] {
  display: inline-block;
}

/* ================================================
   UTILITY
   ============================================== */
.shadow-soft {
  box-shadow: var(--shadow-soft);
}