/* HomeRescue Emergency Services - Core Styles */
/* Design: Trust + Urgency. Dark navy foundation, red emergency accents, instant credibility. */

:root {
  --navy: #0B1A2E;
  --navy-light: #132743;
  --navy-mid: #1a3358;
  --red: #DC2626;
  --red-hover: #B91C1C;
  --red-glow: rgba(220, 38, 38, 0.15);
  --gold: #F59E0B;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --green: #22C55E;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --max-w: 1200px;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

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

/* ============ TOP BAR (24/7 urgency strip) ============ */
.top-bar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.top-bar .pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ============ HEADER / NAV ============ */
.header {
  background: var(--navy);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.logo-text {
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.logo-text span { color: var(--red); }
.logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav-item {
  position: relative;
}
.nav-item > a, .nav-parent {
  color: var(--gray-200);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  padding: 8px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-item > a:hover, .nav-parent:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-arrow { font-size: 10px; opacity: 0.7; transition: transform 0.2s; }

/* Desktop dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 8px;
  min-width: 240px;
  z-index: 1000;
}
.dropdown a {
  display: block;
  color: #333 !important;
  font-size: 14px !important;
  font-weight: 500;
  padding: 10px 14px !important;
  border-radius: 8px;
  transition: background 0.15s;
  white-space: nowrap;
  background: none !important;
}
.dropdown a:hover { background: #f5f5f5 !important; color: #111 !important; }
.has-dropdown:hover .dropdown { display: block; }
.has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-phone a {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.header-phone a:hover { color: var(--red); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy-mid) 100%);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #FCA5A5;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 em {
  color: var(--red);
  font-style: normal;
}
.hero-sub {
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}
.btn-red:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gray-400);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}
.btn-sm { padding: 12px 24px; font-size: 14px; }
.btn-lg { padding: 20px 40px; font-size: 18px; }

/* ============ HERO FORM ============ */
.hero-form {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero-form h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.hero-form .form-sub {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  background: var(--gray-50);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-form .btn { width: 100%; font-size: 17px; }

/* ============ TRUST BAR ============ */
.trust-bar {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 0;
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
}
.trust-icon {
  font-size: 24px;
}

/* ============ SECTIONS ============ */
.section {
  padding: 80px 0;
}
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-gray {
  background: var(--gray-50);
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-dark .section-header h2 { color: var(--white); }
.section-header p {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}
.section-dark .section-header p { color: var(--gray-400); }

/* ============ SERVICES GRID ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  border: 1.5px solid var(--gray-200);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.1);
  transform: translateY(-2px);
}
.service-card .card-icon {
  width: 56px; height: 56px;
  background: var(--red-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.service-card .card-link {
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .card-link:hover { gap: 10px; }

/* ============ HOW IT WORKS ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 64px; height: 64px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 20px;
}
.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-dark .step h3 { color: var(--white); }
.step p {
  font-size: 15px;
  color: var(--gray-400);
}

/* ============ AREAS SERVED ============ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.area-link {
  display: block;
  padding: 14px 18px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  transition: all 0.2s;
}
.area-link:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-glow);
}

/* ============ FAQ ============ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
}
.faq-q::after {
  content: '+';
  font-size: 24px;
  color: var(--red);
  transition: transform 0.3s;
}
.faq-q.active::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============ CTA SECTION ============ */
.cta-section {
  background: var(--red);
  padding: 64px 0;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}
.cta-phone {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  display: block;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.cta-phone:hover { opacity: 0.9; }

/* ============ FOOTER ============ */
.footer {
  background: var(--navy);
  color: var(--gray-400);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer p, .footer a {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
}
.footer a:hover { color: var(--white); }
.footer ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ============ LOCATION PAGE SPECIFICS ============ */
.loc-hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 60px 0 70px;
}
.loc-hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.loc-hero h1 em { color: var(--red); font-style: normal; }
.loc-hero p {
  font-size: 18px;
  color: var(--gray-400);
  max-width: 620px;
  margin-bottom: 28px;
}

.content-section { padding: 60px 0; }
.content-section h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.content-section p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 800px;
}
.content-section ul {
  margin: 16px 0 24px 20px;
  list-style: disc;
}
.content-section ul li {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ============ STATS ROW ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}
.stat-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  border: 1.5px solid var(--gray-200);
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -1px;
}
.stat-label {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
  .hero h1 { font-size: 38px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-form { max-width: 500px; }
  .mobile-menu-btn { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .header .container { position: relative; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 12px 16px 20px;
    gap: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 999;
  }
  .nav.nav-open { display: flex; }
  .nav-item { width: 100%; }
  .nav-item > a, .nav-parent {
    font-size: 16px !important;
    padding: 12px 14px !important;
    border-radius: 8px;
    border-bottom: none !important;
    width: 100%;
    justify-content: space-between;
  }
  .dropdown {
    display: none;
    position: static;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    box-shadow: none;
    padding: 4px 8px;
    margin: 2px 0 4px;
  }
  .dropdown.dropdown-open { display: block; }
  .dropdown a {
    color: var(--gray-300) !important;
    font-size: 14px !important;
    padding: 10px 12px !important;
    border-radius: 6px;
    background: none !important;
  }
  .dropdown a:hover { background: rgba(255,255,255,0.08) !important; color: #fff !important; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.dropdown-open .dropdown { display: block; }
  .has-dropdown.dropdown-open .nav-arrow { transform: rotate(180deg); }
}
@media (max-width: 640px) {
  .hero { padding: 50px 0 60px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 50px 0; }
  .section-header h2 { font-size: 28px; }
  .steps-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .trust-items { gap: 20px; }
  .header-phone { display: none; }
  .cta-phone { font-size: 24px; }
  .loc-hero h1 { font-size: 30px; }
  .form-row { grid-template-columns: 1fr; }
}
