/* ===================================================================
   NEO PULSE AMBULANCE SERVICES - Core Design System & Global Styles
   Brand: "Fast. Reliable. When Every Second Matters."
   Primary Colors: Emergency Red (#D32F2F), Medical Trust Blue (#0A2540)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand Palette */
  --color-emergency: #D32F2F;
  --color-emergency-dark: #B71C1C;
  --color-emergency-light: #FFEBEE;
  --color-emergency-glow: rgba(211, 47, 47, 0.35);

  --color-trust-navy: #0A2540;
  --color-trust-blue: #1976D2;
  --color-trust-light: #E3F2FD;
  --color-trust-subtle: #F0F7FF;

  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1EBE5D;
  --color-whatsapp-light: #E8F5E9;

  --color-amber: #F57C00;
  --color-amber-light: #FFF3E0;

  --color-gold: #FFB300;
  --color-green-success: #2E7D32;
  --color-green-light: #E8F8F0;

  /* Neutrals */
  --bg-white: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-surface-alt: #F1F5F9;
  --bg-dark: #0B132B;
  --bg-dark-card: #1C2541;

  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-white: #FFFFFF;
  --text-inverse: #F8FAFC;

  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-dark: #334155;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.14);
  --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.18);
  --shadow-emergency: 0 8px 24px rgba(211, 47, 47, 0.4);
  --shadow-whatsapp: 0 8px 24px rgba(37, 211, 102, 0.4);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Containers */
  --container-max: 1240px;
  --header-height: 80px;
  --topbar-height: 42px;
}

/* Reset & Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: 74px;
  /* Space for mobile floating emergency bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Section Spacing */
.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-bg-alt {
  background-color: var(--bg-surface);
}

.section-bg-navy {
  background-color: var(--color-trust-navy);
  color: var(--text-white);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.eyebrow-red {
  background: var(--color-emergency-light);
  color: var(--color-emergency);
  border: 1px solid rgba(211, 47, 47, 0.2);
}

.eyebrow-blue {
  background: var(--color-trust-light);
  color: var(--color-trust-blue);
  border: 1px solid rgba(25, 118, 210, 0.2);
}

.eyebrow-white {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.section-title {
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.section-bg-navy .section-desc {
  color: #94A3B8;
}

/* High Conversion Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-emergency {
  background: linear-gradient(135deg, #E53935 0%, #D32F2F 50%, #B71C1C 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-emergency);
}

.btn-emergency:hover {
  background: linear-gradient(135deg, #F44336 0%, #E53935 50%, #C62828 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(211, 47, 47, 0.5);
}

.btn-call {
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  color: var(--text-white);
  box-shadow: 0 6px 20px rgba(13, 71, 161, 0.35);
}

.btn-call:hover {
  background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 71, 161, 0.45);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-whatsapp);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2CE071 0%, #179C8D 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--text-white);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

/* Pulsing Badge & Icon Indicators */
.pulse-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #00E676;
  position: relative;
}

.pulse-indicator::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #00E676;
  animation: pulseBeacon 1.6s infinite ease-out;
}

.pulse-indicator.red {
  background-color: #FF1744;
}

.pulse-indicator.red::after {
  border-color: #FF1744;
}

@keyframes pulseBeacon {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

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

/* Siren Beacon Animation for Header */
@keyframes sirenGlow {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.6);
  }

  50% {
    box-shadow: 0 0 25px rgba(25, 118, 210, 0.6);
  }
}

/* Utility Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-red {
  background-color: var(--color-emergency-light);
  color: var(--color-emergency-dark);
}

.badge-green {
  background-color: var(--color-green-light);
  color: var(--color-green-success);
}

.badge-blue {
  background-color: var(--color-trust-light);
  color: var(--color-trust-blue);
}

.badge-amber {
  background-color: var(--color-amber-light);
  color: var(--color-amber);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}