/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color system matching the medical transportation theme */
  --primary: #b91c1c; /* Darker red for better contrast - changed from #dc2626 to #b91c1c */
  --primary-hover: #991b1b; /* Updated hover state to match new primary */
  --secondary: #f59e0b;
  --background: #ffffff;
  --foreground: #374151;
  --muted: #f9fafb;
  --muted-foreground: #374151; /* Improved muted-foreground contrast from #6b7280 to #374151 */
  --border: #e5e7eb;
  --card: #fef2f2;
  --accent: #f59e0b;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-padding: 1rem;
  --section-padding: 5rem 0;

  /* Border radius */
  --radius: 0.5rem;
  --radius-lg: 1rem;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

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

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

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

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

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.contact-info {
  display: flex;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
}

.contact-numbers{
  color: var(--foreground);
  text-decoration: none;
}

.license-info {
  color: var(--muted-foreground);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--primary);
}

.desktop-nav {
  display: none;
  gap: 2rem;
}

.desktop-nav a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.cta-buttons {
  display: none;
  gap: 1rem;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  color: var(--foreground);
  text-decoration: none;
  padding: 0.5rem 0;
}

.mobile-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--section-padding);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card) 0%, var(--background) 50%, var(--muted) 100%);
}

.hero-content {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.hero-image {
  position: relative;
}

.image-container {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--muted);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stats-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stats-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Services Section */
.services {
  padding: var(--section-padding);
  background-color: rgba(249, 250, 251, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-icon {
  padding: 0.75rem;
  background-color: rgba(220, 38, 38, 0.1);
  border-radius: var(--radius);
  color: var(--primary);
}

.service-header h3 {
  font-size: 1.25rem;
}

.service-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.bullet {
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--primary);
  border-radius: 50%;
}

/* About Section */
.about {
  padding: var(--section-padding);
}

.about-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--muted-foreground);
}


.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
  background-color: var(--muted);
}

.contact-content {
  display: grid;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.contact-icon-extra {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
}


.contact-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Footer */
.footer {
  background-color: white;
  color: var(--foreground);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--foreground); /* Improved footer link contrast from rgba(255, 255, 255, 0.8) to rgba(255, 255, 255, 0.9) */
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--foreground);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--foreground); /* Improved footer bottom text contrast from rgba(255, 255, 255, 0.6) to rgba(255, 255, 255, 0.8) */
}

/* Icons */
.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.hidden {
  display: none;
}

/* Responsive Design */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }

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

  .contact-content {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  .desktop-nav {
    display: flex;
  }

  .cta-buttons {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
  }

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

  .about-content {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .section-title {
    font-size: 3rem;
  }
}