:root {
  --primary: #ff2a4b;
  --primary-dark: #d51633;
  --primary-light: #ffe5ea;
  --primary-neon: #ff5e7a;
  --white: #ffffff;
  --off-white: #f9f7f8;
  --text-dark: #0f0a0c;
  --text-mid: #2b1f22;
  --text-light: #736267;
  --shadow: rgba(255, 42, 75, 0.18);
  --glass: rgba(255, 255, 255, 0.05);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255, 94, 122, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 94, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 94, 122, 0); }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
}
/* LOADING */
.page-loader {
  position: fixed; inset: 0;
  background: var(--text-dark);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s, visibility 0.6s;
}
.page-loader.hide { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 60px;
  color: white; letter-spacing: 4px;
  margin-bottom: 30px;
  animation: fadeSlideUp 0.8s both;
}
.loader-logo span { color: var(--primary); }
.loader-bar {
  width: 200px; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-neon));
  border-radius: 2px;
  animation: loadFill 1.8s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes loadFill {
  from { width: 0; }
  to { width: 100%; }
}

/* ==================== NAVBAR ==================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 60px;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
  background: rgba(15, 10, 12, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 42, 75, 0.12);
  transition: all 0.4s ease;
}
nav.scrolled {
  height: 64px;
  box-shadow: 0 8px 40px rgba(255, 42, 75, 0.1);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.nav-logo-img {
  height: 48px;
  background: white;
  padding: 4px 8px;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.7);
  position: relative;
  cursor: pointer;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.22,1,0.36,1);
}
.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  transition: transform 0.3s, box-shadow 0.3s !important;
  box-shadow: 0 4px 20px var(--shadow);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 30px var(--shadow) !important; }

/* ==================== AMBULANCE HERO ==================== */
.amb-hero {
  min-height: 100vh;
  background: var(--text-dark);
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 140px 60px 80px;
}
#amb-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.4;
}
.amb-hero-content { position: relative; z-index: 2; max-width: 640px; }
.amb-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 42, 75, 0.15);
  border: 1px solid rgba(255, 42, 75, 0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-neon);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.8s 0.2s both;
}
.amb-badge-dot { width: 8px; height: 8px; background: var(--primary-neon); border-radius: 50%; animation: pulse-dot 1s infinite; }
.amb-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 8vw, 100px);
  color: white;
  line-height: 0.95;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.8s 0.4s both;
}
.amb-hero h1 span { color: var(--primary); }
.amb-hero p {
  font-size: 17px; color: rgba(255,255,255,0.6);
  line-height: 1.7; margin-bottom: 40px;
  animation: fadeSlideUp 0.8s 0.6s both;
}
.amb-actions { display: flex; gap: 16px; animation: fadeSlideUp 0.8s 0.8s both; }
.btn-emergency {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(255, 42, 75, 0.4);
  display: flex; align-items: center; gap: 8px;
  letter-spacing: 0.5px;
  animation: pulse-emergency 2s infinite;
}
@keyframes pulse-emergency {
  0%, 100% { box-shadow: 0 8px 30px rgba(255, 42, 75, 0.4); }
  50% { box-shadow: 0 8px 50px rgba(255, 42, 75, 0.8); }
}
.btn-emergency:hover { transform: translateY(-3px); }
.amb-btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.2);
  padding: 16px 36px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}
.amb-btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.amb-right-panel {
  position: absolute; right: 60px; top: 50%;
  transform: translateY(-50%);
  z-index: 2; width: 340px;
  display: flex; flex-direction: column; gap: 16px;
  animation: fadeSlideUp 0.8s 0.6s both;
}
.amb-info-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px 24px;
  backdrop-filter: blur(20px);
  transition: all 0.3s;
}
.amb-info-card:hover { background: rgba(255,255,255,0.08); transform: translateX(-4px); border-color: rgba(255, 42, 75, 0.3); }
.amb-info-label { font-size: 11px; color: rgba(255,255,255,0.4); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.amb-info-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px; color: white; line-height: 1;
}
.amb-info-val span { font-family: 'Outfit', sans-serif; font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 400; }
.amb-info-sub { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* MAP SECTION */
.map-section {
  padding: 100px 60px;
  background: var(--off-white);
  position: relative;
}
.map-container {
  width: 100%; height: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.1);
  border: 4px solid white;
  position: relative;
  z-index: 2;
}
#map {
  width: 100%; height: 100%;
  background: #e0e0e0;
}
.map-overlay {
  position: absolute; top: 20px; left: 20px;
  background: white; border-radius: 16px;
  padding: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  z-index: 10; max-width: 320px;
}
.map-overlay h3 { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--text-dark); margin-bottom: 10px; }
.map-overlay p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* AMB SERVICES */
.amb-services { padding: 100px 60px; background: white; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--primary);
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.section-title span { color: var(--primary); }
.section-sub {
  font-size: 16px; color: var(--text-light);
  max-width: 500px; line-height: 1.7;
  margin-bottom: 60px;
}

.amb-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.amb-service-card {
  background: var(--off-white);
  border-radius: 24px; padding: 36px 32px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  position: relative; overflow: hidden;
}
.amb-service-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-neon));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.amb-service-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,0.08); background: white;}
.amb-service-card:hover::after { transform: scaleX(1); }
.amb-service-icon {
  width: 64px; height: 64px;
  background: rgba(255, 42, 75, 0.08);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 24px;
  transition: background 0.4s;
}
.amb-service-card:hover .amb-service-icon { background: rgba(255, 42, 75, 0.15); }
.amb-service-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; letter-spacing: 0.5px; margin-bottom: 10px;
}
.amb-service-desc { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* HOW IT WORKS */
.hiw-section { padding: 100px 60px; background: var(--text-dark); }
.hiw-section .section-title { color: white; }
.hiw-section .section-label { color: var(--primary); }
.hiw-section .section-sub { color: rgba(255,255,255,0.5); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps-grid::before {
  content: '';
  position: absolute; top: 40px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(255,42,75,0.1));
  z-index: 0;
}
.step-item { text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.step-num {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px; color: white;
  margin: 0 auto 24px;
  box-shadow: 0 8px 30px rgba(255,42,75,0.4);
  position: relative;
}
.step-num::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255,42,75,0.3);
  animation: ringPulse 2s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0; }
}
.step-title { color: white; font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.step-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* EMERGENCY CTA */
.emergency-cta {
  padding: 100px 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.emergency-cta h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 90px);
  color: white;
  line-height: 1;
  margin-bottom: 20px;
  position: relative;
}
.emergency-cta p { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 40px; position: relative; }
.emergency-phone {
  display: inline-flex; align-items: center; gap: 16px;
  background: white;
  border-radius: 20px;
  padding: 20px 40px;
  position: relative;
}
.phone-icon { font-size: 32px; animation: phoneRing 1s ease-in-out infinite; }
@keyframes phoneRing {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}
.phone-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--primary-dark);
  letter-spacing: 2px;
  line-height: 1;
}
.phone-label { font-size: 12px; color: #888; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

/* CONTACT */
.appointment-section {
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: white;
}
.apt-left p { color: var(--text-light); font-size: 16px; line-height: 1.7; }
.apt-features { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.apt-feature {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-mid); font-size: 14px; font-weight: 500;
}
.apt-feature-icon {
  width: 36px; height: 36px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.apt-form {
  background: var(--off-white);
  border-radius: 28px;
  padding: 44px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}
.apt-form h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px; letter-spacing: 1px;
  margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; color: var(--text-light); margin-bottom: 6px; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color 0.3s;
  outline: none;
  background: white;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: none; height: 100px; }
.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 30px var(--shadow);
  letter-spacing: 0.5px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px var(--shadow); }

/* FOOTER */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 60px 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 50px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .nav-logo-text { color: white; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 20px; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 13px; }
.footer-socials { display: flex; gap: 12px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}
.social-btn:hover { background: var(--primary); }

/* SCROLL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* TOAST */
.toast {
  position: fixed; bottom: 30px; right: 30px;
  background: white;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  z-index: 2000;
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
  max-width: 320px;
  border-left: 4px solid var(--primary);
}
.toast.show { transform: translateX(0); }
.toast-icon { font-size: 24px; }
.toast-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; color: var(--text-dark); }
.toast-msg { font-size: 12px; color: var(--text-light); }

@media (max-width: 1100px) {
  .amb-right-panel { display: none; }
  .amb-services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .appointment-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav { padding: 0 30px; }
  .map-section, .amb-services, .hiw-section, .appointment-section, .emergency-cta, footer { padding-left: 30px; padding-right: 30px; }
  .amb-hero { padding: 140px 30px 80px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .amb-services-grid, .steps-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
