/* Base styles */
:root {
  --primary: #DC2626;
  --primary-dark: #B91C1C;
  --secondary: #1E3A8A;
  --secondary-dark: #1E3A8A;
  --text: #1F2937;
  --text-light: #6B7280;
  --background: #F3F4F6;
  --white: #FFFFFF;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: var(--text);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary);
}

.logo-icon {
  margin-right: 0.5rem;
}

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
  }
}

.nav-desktop a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 1rem;
}

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

.nav-mobile a {
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.nav-mobile a:hover {
  background: var(--background);
}

/* Button styles */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

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

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  border: 2px solid var(--white);
  transition: all 0.3s ease;
}

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

/* Hero section */
.hero {
  position: relative;
  min-height: 100vh;
  background: url('https://images.pexels.com/photos/3807329/pexels-photo-3807329.jpeg?auto=compress&cs=tinysrgb&w=1500') center/cover;
  display: flex;
  align-items: center;
  padding: 6rem 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  color: var(--white);
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

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

.feature-icon {
  color: var(--primary);
}

/* Emergency form */
.emergency-form {
  position: relative;
  background: var(--white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  max-width: 400px;
  margin-left: auto;
}

.emergency-form h2 {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #E5E7EB;
  border-radius: 0.375rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Section styles */
section {
  padding: 5rem 0;
}

section h2 {
  text-align: center;
  font-size: 2.25rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto 2rem;
}

.section-description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-light);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Footer styles */
.footer {
  background: var(--secondary);
  color: var(--white);
  padding: 4rem 0 2rem;
}
.footer a {
  color: #FFF;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  opacity: 0.9;
}

.footer h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-newsletter form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 0.375rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-legal a:hover {
  opacity: 1;
}