/* ==========================================================================
   EMR BLUE AMBULANCE SERVICES - MASTER STYLESHEET
   Design System, Responsive Grid, Animations & Components
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --primary-blue: #0757B8;
  --dark-navy: #062B55;
  --emergency-blue: #0A73D8;
  --light-blue: #EAF5FF;
  --accent-cyan: #19A7CE;
  --accent-cyan-light: #E0F7FA;

  /* Neutral Palette */
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --text-dark: #172B4D;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Status Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --emergency-red: #DC2626;

  /* Typography */
  --font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(6, 43, 85, 0.04);
  --shadow-md: 0 6px 16px rgba(6, 43, 85, 0.08);
  --shadow-lg: 0 12px 32px rgba(6, 43, 85, 0.12);
  --shadow-xl: 0 20px 48px rgba(6, 43, 85, 0.18);
  --shadow-glow: 0 0 25px rgba(25, 167, 206, 0.35);

  /* Layout & Spacing */
  --container-width: 1240px;
  --header-height: 90px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 2px;
}

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

/* Section Spacing */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-bg-light {
  background-color: var(--light-blue);
}

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

.section-bg-offwhite {
  background-color: var(--off-white);
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(7, 87, 184, 0.1);
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-bg-dark .section-badge {
  background-color: rgba(25, 167, 206, 0.15);
  color: var(--accent-cyan);
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark-navy);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-bg-dark .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-bg-dark .section-subtitle {
  color: var(--gray-300);
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
}

.header.scrolled {
  height: 75px;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark-navy);
}

.logo-img {
  max-height: 72px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
  filter: drop-shadow(0 3px 8px rgba(6, 43, 85, 0.15));
}

.header.scrolled .logo-img {
  max-height: 60px;
}

.footer .logo-img {
  max-height: 90px;
  max-width: 280px;
  background-color: rgba(255, 255, 255, 0.98);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.logo-icon-wrapper {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-navy));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(7, 87, 184, 0.35);
  transition: var(--transition-fast);
}

.logo:hover .logo-icon-wrapper,
.logo:hover .logo-img {
  transform: scale(1.06);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark-navy);
}

.logo-main span {
  color: var(--primary-blue);
}

.logo-sub {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-blue);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

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

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

/* Emergency Header Call Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-emergency-header {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--emergency-blue), var(--primary-blue));
  color: var(--white);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(10, 115, 216, 0.35);
  transition: var(--transition-fast);
}

.btn-emergency-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 115, 216, 0.5);
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-navy));
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #22C55E;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid #22C55E;
  animation: pulse-ring 1.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Mobile Hamburger Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--dark-navy);
  border-radius: 3px;
  transition: var(--transition-normal);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. BUTTONS & UI COMPONENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--emergency-blue));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(7, 87, 184, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--dark-navy), var(--primary-blue));
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(6, 43, 85, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-cyan), var(--emergency-blue));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(25, 167, 206, 0.35);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(25, 167, 206, 0.5);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--dark-navy);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-outline-primary {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION (HOME PAGE)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  background-image: linear-gradient(135deg, rgba(6, 43, 85, 0.94) 0%, rgba(7, 87, 184, 0.88) 100%), url('../services/Emergency Ambulance Service.png'), url('https://images.unsplash.com/photo-1587745416684-47953f16f02f?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-image-col {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-banner-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  backdrop-filter: blur(10px);
  padding: 0.5rem;
}

.hero-banner-frame img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
  transition: transform 0.5s ease;
}

.hero-banner-frame:hover img {
  transform: scale(1.03);
}

.hero-image-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(6, 43, 85, 0.92);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(25, 167, 206, 0.2);
  border: 1px solid rgba(25, 167, 206, 0.4);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-title .text-white {
  color: var(--white);
  display: block;
}

.hero-title .text-accent {
  color: var(--accent-cyan);
  display: block;
  font-weight: 800;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--gray-200);
  margin-bottom: 2.25rem;
  max-width: 720px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.hero-trust svg {
  color: var(--accent-cyan);
}

/* Page Banner / Mini Hero for Subpages */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4.5rem;
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-blue) 100%);
  color: var(--white);
  text-align: center;
}

.page-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.page-hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray-300);
  max-width: 650px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   6. EMERGENCY CALL STRIP
   -------------------------------------------------------------------------- */
.emergency-strip {
  background: linear-gradient(90deg, #041E3C 0%, var(--dark-navy) 50%, #041E3C 100%);
  border-top: 4px solid var(--accent-cyan);
  padding: 2.25rem 0;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}

.emergency-strip-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.emergency-strip-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.emergency-icon-glow {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.emergency-strip-heading {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.emergency-strip-text {
  color: var(--gray-300);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   7. SERVICES SECTION (GRID & FEATURED LAYOUT)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  opacity: 0;
  transition: var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(7, 87, 184, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

/* Featured Service Card (occupies 12 cols on mobile, 7 cols on desktop) */
.service-card.featured {
  grid-column: span 7;
  background: linear-gradient(135deg, var(--dark-navy) 0%, #083D7A 100%);
  color: var(--white);
  border: none;
}

.service-card.featured .service-title {
  color: var(--white);
  font-size: 1.65rem;
}

.service-card.featured .service-description {
  color: var(--gray-300);
  font-size: 1.05rem;
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-cyan);
}

.service-card.featured .learn-more-link {
  color: var(--accent-cyan);
}

.service-card.featured .learn-more-link:hover {
  color: var(--white);
}

/* Regular Grid Cards */
.service-card.grid-5 {
  grid-column: span 5;
}

.service-card.grid-4 {
  grid-column: span 4;
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.service-card-image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #F8FAFC 0%, var(--light-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1.5px solid rgba(7, 87, 184, 0.15);
  box-shadow: 0 4px 14px rgba(6, 43, 85, 0.08);
  position: relative;
}

.service-card.featured .service-card-image-frame {
  aspect-ratio: 16 / 9;
  background: #FFFFFF;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-image-frame.contain-fit .service-card-img {
  object-fit: contain;
  padding: 0.5rem;
}

.service-card:hover .service-card-img {
  transform: scale(1.06);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--light-blue);
  color: var(--primary-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.service-card:hover .service-icon {
  background-color: var(--primary-blue);
  color: var(--white);
}

.service-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-300);
  opacity: 0.6;
}

.service-card.featured .service-number {
  color: rgba(255, 255, 255, 0.2);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-blue);
  margin-top: auto;
}

.learn-more-link svg {
  transition: var(--transition-fast);
}

.learn-more-link:hover svg {
  transform: translateX(4px);
}

/* Detailed Services Page List */
.service-detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  transition: var(--transition-normal);
}

.service-detail-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.service-detail-card:nth-child(even) .service-detail-image {
  order: 2;
}

.service-detail-image {
  height: 100%;
  min-height: 340px;
  position: relative;
  background: linear-gradient(135deg, var(--light-blue) 0%, #F1F7FC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-detail-card:hover .service-detail-image img {
  transform: scale(1.04);
}

/* Perfect fit option so images like Oxygen Ambulance and Patient Transfer Ambulance fit 100% cleanly without cropping */
.service-detail-image.fit-contain img,
.service-detail-card#oxygen-ambulance .service-detail-image img,
.service-detail-card#patient-transfer .service-detail-image img {
  object-fit: contain;
  padding: 1.25rem;
  max-height: 380px;
}

.service-detail-content {
  padding: 3rem;
}

.service-detail-badge {
  display: inline-block;
  background-color: var(--light-blue);
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.service-detail-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 1rem;
}

.service-detail-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.feature-item svg {
  color: var(--primary-blue);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. OUTSTATION AMBULANCE SECTION
   -------------------------------------------------------------------------- */
.outstation-box {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #0A4384 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  color: var(--white);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.outstation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.outstation-content .section-badge {
  background: rgba(25, 167, 206, 0.2);
  color: var(--accent-cyan);
}

.outstation-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.outstation-desc {
  font-size: 1.1rem;
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Route Visual Component */
.route-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.route-header {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.route-header svg {
  color: var(--accent-cyan);
}

.route-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.route-line {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: border-box;
  border-top: 3px dashed var(--accent-cyan);
  z-index: 1;
}

.route-point {
  position: relative;
  z-index: 2;
  text-align: center;
}

.route-icon-dot {
  width: 42px;
  height: 42px;
  background: var(--accent-cyan);
  color: var(--dark-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
  box-shadow: var(--shadow-glow);
}

.route-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   9. WHY CHOOSE US
   -------------------------------------------------------------------------- */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(7, 87, 184, 0.3);
}

.why-icon {
  width: 64px;
  height: 64px;
  background: var(--light-blue);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  transition: var(--transition-fast);
}

.why-card:hover .why-icon {
  background: var(--primary-blue);
  color: var(--white);
}

.why-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 0.5rem;
}

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

/* --------------------------------------------------------------------------
   10. HOW IT WORKS (3 STEPS)
   -------------------------------------------------------------------------- */
.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  position: relative;
  text-align: center;
  transition: var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 4px 10px rgba(7, 87, 184, 0.3);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.about-image-wrapper:hover img {
  transform: scale(1.03);
}

.about-badge-floating {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(6, 43, 85, 0.92);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.about-badge-floating svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.about-badge-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.about-badge-text p {
  font-size: 0.85rem;
  color: var(--gray-300);
}

.about-content-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   12. CALL TO ACTION BANNER (CTA)
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-navy) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--gray-200);
  margin-bottom: 2.25rem;
}

/* --------------------------------------------------------------------------
   13. CONTACT PAGE & ENQUIRY FORM
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-box {
  background: var(--dark-navy);
  color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-info-header p {
  color: var(--gray-300);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.contact-detail-text span {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-detail-text strong {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.contact-form-container {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background-color: var(--white);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(7, 87, 184, 0.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%20062B55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  padding-right: 2.5rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Success Toast / Alert Box */
.form-alert {
  display: none;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-alert.success {
  display: block;
  background-color: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.form-alert.error {
  display: block;
  background-color: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: #031427;
  color: var(--white);
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .logo-main {
  color: var(--white);
}

.footer-brand p {
  color: var(--gray-300);
  font-size: 0.95rem;
  margin-top: 1.25rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-cyan);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--gray-300);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-300);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   15. UTILITIES & ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--dark-navy);
  transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero-image-col {
    order: -1; /* Banner Image FIRST on mobile view */
  }

  .hero-banner-frame img {
    max-height: 340px;
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .service-card.featured,
  .service-card.grid-5,
  .service-card.grid-4 {
    grid-column: span 2;
  }
  
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .outstation-grid,
  .about-grid,
  .contact-grid,
  .service-detail-card {
    grid-template-columns: 1fr;
  }
  
  .service-detail-card:nth-child(even) .service-detail-image {
    order: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.2rem;
    width: 100%;
  }

  .header-actions {
    margin-right: 1rem;
  }

  .btn-emergency-header span.phone-text {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .emergency-strip-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .emergency-strip-info {
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card.featured,
  .service-card.grid-5,
  .service-card.grid-4 {
    grid-column: span 1;
  }

  .steps-wrapper {
    grid-template-columns: 1fr;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .outstation-box {
    padding: 2rem;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .contact-info-box, .contact-form-container {
    padding: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .page-hero-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 425px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .logo-main {
    font-size: 1.05rem;
  }

  .logo-sub {
    font-size: 0.65rem;
  }
}

/* --------------------------------------------------------------------------
   17. FLOATING ACTION BUTTONS (BOTTOM LEFT)
   -------------------------------------------------------------------------- */
.floating-left-buttons {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  pointer-events: auto;
}

.floating-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-full);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  transition: var(--transition-normal);
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.floating-btn svg {
  flex-shrink: 0;
}

.floating-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  animation: whatsapp-pulse 2.5s infinite;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.6);
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 10px 28px rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 10px 28px rgba(37, 211, 102, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 28px rgba(37, 211, 102, 0.4);
  }
}

.btn-call {
  background: linear-gradient(135deg, var(--emergency-blue) 0%, var(--primary-blue) 100%);
  box-shadow: 0 10px 28px rgba(10, 115, 216, 0.35);
}

.btn-call:hover {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-navy) 100%);
  box-shadow: 0 14px 35px rgba(10, 115, 216, 0.5);
}

@media (max-width: 576px) {
  .floating-left-buttons {
    bottom: 20px;
    left: 15px;
    gap: 10px;
  }

  .floating-btn {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }

  .floating-btn-text {
    display: inline;
  }
}

