/* EMERGENCY SERVICES PAGE MODERNIZATION */
/* Professional, urgent design matching homepage branding */

/* RESET AND BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #ffffff;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.011em;
  min-height: 100vh;
}

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

/* EMERGENCY HEADER STYLING */
header {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
  border-bottom: 3px solid #ff6b6b;
  position: relative;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  opacity: 0.3;
  pointer-events: none;
}

header h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

header p {
  font-size: clamp(16px, 3vw, 20px);
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

header a[href^="tel:"] {
  color: #ffeb3b !important;
  background: rgba(0,0,0,0.4) !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  font-size: clamp(18px, 3vw, 24px) !important;
  display: inline-block !important;
  margin: 8px 0 !important;
  border: 2px solid rgba(255,235,59,0.5) !important;
  transition: all 0.3s ease !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7) !important;
}

header a[href^="tel:"]:hover {
  background: rgba(0,0,0,0.6) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 6px 15px rgba(255,235,59,0.3) !important;
}

/* MAIN CONTENT STYLING */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
}

/* EMERGENCY URGENCY BANNER */
.emergency-urgency {
  background: linear-gradient(45deg, #ff4444, #ff6b6b);
  color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
  border: 2px solid rgba(255,255,255,0.2);
  animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* SECTION STYLING */
section {
  background: rgba(255,255,255,0.08);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

section h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  border-bottom: 2px solid rgba(255,215,0,0.3);
  padding-bottom: 10px;
}

section h3 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: #ffffff;
  margin: 25px 0 15px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

section p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: rgba(255,255,255,0.9);
}

section p strong {
  color: #ffd700;
  font-weight: 700;
}

/* EMERGENCY ACTION LIST */
ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

li {
  background: rgba(255,255,255,0.05);
  padding: 15px 20px;
  margin: 10px 0;
  border-radius: 10px;
  border-left: 4px solid #ffd700;
  font-size: 16px;
  color: rgba(255,255,255,0.95);
  position: relative;
  transition: all 0.3s ease;
}

li:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(5px);
}

li::before {
  content: '⚡';
  color: #ff6b6b;
  font-weight: bold;
  margin-right: 10px;
  font-size: 18px;
}

/* SERVICE AREAS STYLING */
.service-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.service-area-item {
  background: linear-gradient(135deg, rgba(0,123,255,0.2), rgba(0,123,255,0.1));
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(0,123,255,0.3);
  text-align: center;
  color: #ffffff;
  font-weight: 600;
  transition: all 0.3s ease;
}

.service-area-item:hover {
  background: linear-gradient(135deg, rgba(0,123,255,0.3), rgba(0,123,255,0.2));
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,123,255,0.2);
}

/* CALL TO ACTION SECTION */
.emergency-cta {
  background: linear-gradient(135deg, #28a745, #20c997);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  margin: 30px 0;
  box-shadow: 0 8px 25px rgba(40,167,69,0.4);
  border: 2px solid rgba(255,255,255,0.2);
}

.emergency-cta h3 {
  color: #ffffff;
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: 15px;
  font-weight: 800;
}

.emergency-cta p {
  color: rgba(255,255,255,0.95);
  font-size: 16px;
  margin-bottom: 20px;
}

.emergency-cta a[href^="tel:"] {
  background: #ffffff !important;
  color: #28a745 !important;
  padding: 15px 30px !important;
  border-radius: 50px !important;
  font-weight: 800 !important;
  font-size: 20px !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
  border: 3px solid #ffffff !important;
}

.emergency-cta a[href^="tel:"]:hover {
  background: #f8f9fa !important;
  transform: scale(1.05) translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

/* AUTHORITY REVERSAL MESSAGING */
.authority-message {
  background: rgba(255,215,0,0.1);
  border: 2px solid rgba(255,215,0,0.3);
  padding: 25px;
  border-radius: 12px;
  margin: 25px 0;
}

.authority-message h4 {
  color: #ffd700;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.authority-message p {
  color: rgba(255,255,255,0.95);
  font-size: 16px;
  line-height: 1.6;
}

/* EMERGENCY STATS */
.emergency-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-item {
  background: rgba(220,53,69,0.15);
  border: 2px solid rgba(220,53,69,0.3);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.stat-number {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  color: #ff6b6b;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* NAVIGATION BACK TO HOME */
.nav-home {
  text-align: center;
  margin: 40px 0;
}

.nav-home a {
  background: rgba(0,123,255,0.2);
  color: #ffffff !important;
  padding: 12px 25px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  border: 2px solid rgba(0,123,255,0.4) !important;
  transition: all 0.3s ease !important;
}

.nav-home a:hover {
  background: rgba(0,123,255,0.3) !important;
  transform: translateY(-2px) !important;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  header {
    padding: 20px 15px;
  }

  main {
    padding: 20px 15px;
  }

  section {
    padding: 20px 15px;
  }

  .service-areas {
    grid-template-columns: 1fr;
  }

  .emergency-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .emergency-cta {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  .emergency-stats {
    grid-template-columns: 1fr;
  }

  li {
    padding: 12px 15px;
  }
}

/* ACCESSIBILITY IMPROVEMENTS */
a:focus, button:focus, [tabindex]:focus {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}

/* PRINT STYLES */
@media print {
  body {
    background: white;
    color: black;
  }

  header {
    background: #dc3545;
    color: white;
  }
}