:root {
  /* Color Palette - Premium Emergency Services Theme */
  --color-primary: #0f172a;
  /* Dark Blue/Slate - Trust & Professionalism */
  --color-secondary: #0ea5e9;
  /* Sky Blue - Water/Cleanliness */
  --color-accent: #334155;
  /* Slate Gray - Subtitles/borders */
  --color-cta: #ea580c;
  /* Vibrant Orange - Emergency/Action */
  --color-cta-hover: #c2410c;
  /* Darker Orange for hover */

  --color-background: #f8fafc;
  /* Very light slate background */
  --color-surface: #ffffff;
  /* White surface for cards */
  --color-text: #334155;
  /* Slate 700 for body text */
  --color-heading: #0f172a;
  /* Slate 900 for headings */
  --color-white: #ffffff;

  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-600: #475569;
  --color-gray-800: #1e293b;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Layout */
  --container-width: 1200px;
  --header-height: 90px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-heading);
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  text-decoration: none;
  color: var(--color-secondary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--color-white);
}

.text-primary {
  color: var(--color-primary);
}

.text-cta {
  color: var(--color-cta);
}

.font-bold {
  font-weight: 700;
}

.d-none-mobile {
  display: block;
}

.d-flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

.gap-2 {
  gap: 0.5rem;
}

.bg-light {
  background-color: var(--color-background);
}

.bg-primary {
  background-color: var(--color-primary);
  color: white;
}

.bg-white {
  background-color: white;
}

.section {
  padding: var(--spacing-lg) 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-cta);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-cta-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--color-white);
  color: var(--color-white);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Header */
header {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo img {
  height: 60px;
  /* Adjust based on logo aspect ratio */
  width: auto;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.nav-link {
  color: var(--color-gray-600);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-cta);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-phone {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-cta);
  letter-spacing: -0.5px;
}

.header-cta-sub {
  font-size: 0.8rem;
  color: var(--color-gray-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
  /* Placeholder for when image is added via inline style or separate CSS */
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  color: white;
  padding: 8rem 0;
  /* More padding */
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.7));
  /* Darker overlay */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.35rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  color: var(--color-gray-200);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Features / Value Prop - "Why Choose Us" */
.feature-card {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

/* Services Section */
.service-card {
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  /* For image zoom effect */
  border: 1px solid var(--color-gray-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.service-image-container {
  height: 220px;
  overflow: hidden;
  background-color: var(--color-gray-200);
}

.service-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image-container img {
  transform: scale(1.05);
}

.service-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 a {
  color: var(--color-heading);
  transition: color 0.2s;
}

.service-card:hover h3 a {
  color: var(--color-secondary);
}

.service-card p {
  color: var(--color-gray-600);
  flex-grow: 1;
}

/* Location Grid */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.location-item {
  background: var(--color-white);
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--color-gray-200);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.location-item:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
}

.location-item a {
  color: var(--color-heading);
  font-weight: 600;
  display: block;
  text-decoration: none;
}

.location-item:hover a {
  color: white;
}

/* Footer */
footer {
  background-color: var(--color-heading);
  color: var(--color-gray-300);
  padding: calc(var(--spacing-lg) * 1.5) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-col h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--color-secondary);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-gray-300);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
  /* Subtle movement */
}

.footer-disclaimer {
  border-top: 1px solid var(--color-gray-800);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
  font-size: 0.85rem;
  color: var(--color-gray-600);
  text-align: center;
  line-height: 1.6;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-heading);
  /* Dark background for contrast */
  color: white;
  text-align: center;
  padding: 0;
  z-index: 2000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  border-top: 2px solid var(--color-cta);
}

.mobile-sticky-cta a {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 16px;
  background: var(--color-cta);
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--color-cta);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card h3 a {
  color: var(--color-heading);
}

.blog-card h3 a:hover {
  color: var(--color-secondary);
}

.blog-card p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--color-gray-600);
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 0.9rem;
}

.read-more:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

.blog-text {
  line-height: 1.8;
  color: var(--color-gray-600);
  margin-bottom: 3rem;
}

.blog-text h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-heading);
  font-size: 1.8rem;
}

.blog-text h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  color: var(--color-secondary);
}

.blog-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.blog-text ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-text li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}


/* Feature Rows (Aesthetic Content) */
.feature-section {
  padding: var(--spacing-lg) 0;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.feature-row:hover .feature-image img {
  transform: scale(1.02);
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  position: relative;
}

.feature-text h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-secondary);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.feature-text p {
  font-size: 1.1rem;
  color: var(--color-gray-600);
  margin-bottom: 1.5rem;
}

/* FAQ Section */
.faq-section {
  background-color: var(--color-gray-100);
  padding: var(--spacing-xl) 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--color-heading);
  transition: background-color 0.2s;
}

.faq-question:hover {
  background-color: #f8fafc;
}

.faq-question i {
  color: var(--color-secondary);
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--color-gray-600);
  line-height: 1.6;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  max-height: 500px;
  /* Arbitrary large height */
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .header-container {
    flex-wrap: wrap;
    padding: 10px;
    height: auto;
  }

  .nav-menu {
    display: none;
    /* Hide menu on mobile */
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
    background: white;
    border-top: 1px solid var(--color-gray-200);
  }

  .nav-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-100);
  }

  .d-none-mobile {
    display: none;
  }

  .mobile-menu-toggle {
    display: block !important;
    /* Force show */
    padding: 0.5rem;
  }

  .mobile-sticky-cta {
    display: block;
    /* Show only on mobile */
  }

  footer {
    padding-bottom: 80px;
    /* Space for sticky CTA */
  }

  /* Feature Row adjustments */
  .feature-row,
  .feature-row:nth-child(even) {
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }
}