/* ==========================================================================
   Premium Ambulance Service CSS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --color-primary: #0B1F3A; /* Deep Navy - Trust */
  --color-accent: #E63946; /* Red - Urgency/Emergency */
  --color-success: #2A9D8F; /* Green - Care/Success */
  --color-light: #F8F9FA; 
  --color-white: #FFFFFF;
  --color-dark: #1D1D1D;
  --color-text-muted: #6C757D;
  --color-border: #E9ECEF;
  
  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
  --shadow-red: 0 8px 16px rgba(230, 57, 70, 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  
  /* Spacing */
  --section-padding: 80px 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  line-height: 1.6;
  background-color: var(--color-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

a {
  color: var(--color-accent);
  transition: var(--transition-fast);
}

a:hover {
  text-decoration: none;
  color: var(--color-primary);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.section-padding { padding: var(--section-padding); }
.bg-light { background-color: var(--color-light) !important; }
.bg-white { background-color: var(--color-white) !important; }
.bg-primary { background-color: var(--color-primary) !important; }
.bg-accent { background-color: var(--color-accent) !important; }

.text-primary { color: var(--color-primary) !important; }
.text-accent { color: var(--color-accent) !important; }

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.section-subtitle {
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 10px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-premium i {
  margin-right: 8px;
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-red);
}

.btn-accent:hover {
  background-color: #d62828; /* Darker red */
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(230, 57, 70, 0.3);
}

.btn-primary-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary-dark:hover {
  background-color: #081628;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--color-white);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(37, 211, 102, 0.3);
}

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

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   Header & Top Bar
   ========================================================================== */
.top-bar {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 8px 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.top-bar a {
  color: var(--color-white);
  margin-left: 20px;
}

.main_header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-normal);
  padding: 15px 0;
}

.main_header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 8px 0;
}

.navbar-brand img {
  max-height: 60px;
  transition: var(--transition-normal);
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary) !important;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 10px 15px !important;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--color-accent) !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background-color: var(--color-light);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.trust-badges {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.trust-badge {
  display: flex;
  align-items: center;
  background: var(--color-white);
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.trust-badge i {
  color: var(--color-accent);
  margin-right: 8px;
  font-size: 1.1rem;
}

.hero-image {
  position: relative;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-image img { width: 100%; border-radius: 20px;}

/* ==========================================================================
   Stats Strip
   ========================================================================== */
.stats-section {
  background-color: var(--color-primary);
  padding: 60px 0;
  color: var(--color-white);
}

.stat-item {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--color-white);
}

.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .stat-number {
    font-size: 2.2rem;
  }
  .stat-label {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }
  .stat-item {
    margin-bottom: 20px;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
}

/* ==========================================================================
   Services
   ========================================================================== */
.service-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: var(--transition-normal);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(230, 57, 70, 0.1);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  transition: var(--transition-normal);
}

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

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ==========================================================================
   Booking Form
   ========================================================================== */
.booking-section {
  background: url('../img/reservation_bg.webp') center/cover;
  position: relative;
  border-radius: 20px;
  margin: -80px 15px 80px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.booking-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 31, 58, 0.9); /* Dark overlay */
}

.booking-wrapper {
  position: relative;
  z-index: 10;
  padding: 60px;
}

.booking-form .form-control {
  height: 55px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: var(--color-white);
  padding-left: 20px;
}

.booking-form .form-control:focus {
  background: rgba(255,255,255,0.1);
  box-shadow: none;
  border-color: var(--color-accent);
}

.booking-form .form-control::placeholder {
  color: rgba(255,255,255,0.6);
}

.booking-form textarea.form-control {
  height: auto;
  padding-top: 15px;
}

/* ==========================================================================
   Fleet
   ========================================================================== */
.fleet-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
  transition: var(--transition-normal);
  margin-bottom: 30px;
}
.fleet-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.fleet-img {
  height: 250px;
  background-color: #eaeaea; /* placeholder if no image */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.fleet-img i {
  font-size: 5rem;
  color: var(--color-text-muted);
  opacity: 0.3;
}
.fleet-content {
  padding: 30px;
}
.fleet-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.fleet-features li {
  margin-bottom: 10px;
  color: var(--color-text-muted);
}
.fleet-features i {
  color: var(--color-success);
  margin-right: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.premium-footer {
  background-color: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 20px;
}

.footer-widget h4 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  margin-bottom: 15px;
}

.footer-contact i {
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-right: 15px;
  margin-top: 3px;
}

.footer-contact span {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 60px;
  padding-top: 20px;
  font-size: 0.9rem;
}

/* ==========================================================================
   Floating Action Buttons
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  line-height: 60px;
  box-shadow: 2px 2px 3px #999;
  z-index: 9999;
  animation: pulse 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.floating-whatsapp:hover {
  color: white;
  transform: scale(1.1);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9998;
  padding: 10px;
}

.mobile-bottom-bar .row { margin: 0; }
.mobile-bottom-bar .col-6 { padding: 0 5px; }
.mobile-bottom-bar .btn {
  width: 100%;
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 0;
}

/* Responsive */
@media (max-width: 768px) {
  html, body { 
      overflow-x: hidden !important; 
      width: 100%;
      position: relative;
  }
  .hero-content h1 { font-size: 2rem; word-break: break-word; }
  .section-title { font-size: 1.8rem; line-height: 1.3; }
  .mobile-bottom-bar { display: block; }
  body { padding-bottom: 70px; } /* Space for bottom bar */
  .floating-whatsapp { bottom: 90px; right: 15px; width: 50px; height: 50px; font-size: 25px; line-height: 50px;}
  .stats-section .stat-item { border-right: none; margin-bottom: 30px; }
  .booking-wrapper { padding: 30px; }
  .navbar-brand img { max-height: 40px; }
}

/* Partner Hospitals */
.hospital-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    opacity: 0.7;
}
.hospital-logos img {
    height: 50px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}
.hospital-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Testimonial Section */
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 15px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}
.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: var(--color-accent);
    opacity: 0.2;
}
.client-info { display: flex; align-items: center; margin-top: 20px; }
.client-info img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin-right: 15px; }
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Service Location Cards */
.location-card {
    transition: all 0.3s ease;
    cursor: default;
}
.location-card:hover {
    transform: translateY(-5px);
    background-color: var(--color-white) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--color-accent) !important;
}

