/* ============================================
   EMERGENCY REPAIRS PAGE — Divided Sky Roofing + Exteriors
   ============================================ */

/* --- Hide old Zephyr elements --- */
.ds-emergency-page .l-header,
.ds-emergency-page .w-header,
.ds-emergency-page .l-footer,
.ds-emergency-page .w-footer,
.ds-emergency-page .l-titlebar,
.ds-emergency-page .w-toplink,
.ds-emergency-page .w-nav,
.ds-emergency-page .us-footer,
.ds-emergency-page .l-main,
.ds-emergency-page .us-footer-terms,
.ds-emergency-page .w-footer-terms,
.ds-emergency-page [class*="footer-terms"],
.ds-emergency-page .us_error_frame,
.ds-emergency-page #us_error_frame,
.ds-emergency-page [id*="us_error"],
.ds-emergency-page .l-section {
  display: none !important;
}

div[style*="position: fixed"][style*="z-index"][style*="right"] {
  display: none !important;
}
.w-footer-terms, .us-footer-terms, footer.us-footer {
  display: none !important;
}


/* --- HERO --- */
.emg-hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2B2B2B 50%, #2a1a1a 100%);
  padding: 160px 0 100px;
  overflow: hidden;
}

.emg-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(255, 60, 60, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(119, 232, 6, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.emg-hero-content {
  max-width: 660px;
  position: relative;
  z-index: 2;
}

.emg-urgent-badge {
  display: inline-block;
  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 60, 60, 0.3);
  color: #ff6b6b;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  border-radius: 50px;
}

.emg-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 20px 0 24px;
  letter-spacing: -0.03em;
}

.emg-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 32px;
  max-width: 560px;
}

.emg-hero-phone {
  margin-bottom: 8px;
}

.emg-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #77E806;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.emg-phone-btn:hover {
  background: #8fff2a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(119, 232, 6, 0.3);
}

.emg-phone-note {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 10px;
}


/* --- SHARED SECTION TITLE --- */
.emg-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 12px 0 48px;
  letter-spacing: -0.01em;
}


/* ============================================
   EMERGENCY TYPES
   ============================================ */
.emg-types {
  background: #222222;
  padding: 80px 0;
}

.emg-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.emg-type-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all 0.3s ease;
}

.emg-type-card:hover {
  border-color: rgba(119, 232, 6, 0.2);
  background: rgba(119, 232, 6, 0.03);
  transform: translateY(-3px);
}

.emg-type-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(119, 232, 6, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.emg-type-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 12px;
}

.emg-type-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 20px;
}

.emg-type-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #77E806;
  text-decoration: none;
  transition: color 0.2s;
}

.emg-type-link:hover {
  color: #8fff2a;
}


/* ============================================
   PROCESS / TIMELINE
   ============================================ */
.emg-process {
  background: #1a1a1a;
  padding: 80px 0;
}

.emg-process-intro {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 600px;
  margin: -32px 0 48px;
}

.emg-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.emg-pstep {
  position: relative;
  padding: 0 28px;
}

.emg-pstep-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #77E806;
  border: 3px solid #1a1a1a;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.emg-pstep-line {
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(119, 232, 6, 0.15);
}

.emg-pstep:first-child .emg-pstep-line {
  left: 50%;
}

.emg-pstep:last-child .emg-pstep-line {
  right: 50%;
}

.emg-pstep-content h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 10px;
}

.emg-pstep-content p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}


/* ============================================
   WHY DIVIDED SKY
   ============================================ */
.emg-why {
  background: #222222;
  padding: 80px 0;
}

.emg-why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.emg-why-text .emg-section-title {
  margin-bottom: 32px;
}

.emg-why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.emg-why-list li {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  padding: 14px 0 14px 28px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.emg-why-list li:last-child {
  border-bottom: none;
}

.emg-why-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 14px;
  color: #77E806;
  font-weight: 800;
  font-size: 1rem;
}

.emg-why-list li strong {
  color: rgba(255, 255, 255, 0.9);
}

.emg-why-card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.emg-quick-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.emg-quick-stat:hover {
  border-color: rgba(119, 232, 6, 0.2);
  background: rgba(119, 232, 6, 0.03);
}

.emg-quick-num {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #77E806;
  letter-spacing: -0.02em;
  min-width: 100px;
}

.emg-quick-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}


/* ============================================
   CTA SECTION
   ============================================ */
.emg-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #2B2B2B 50%, #2a1a1a 100%);
  padding: 80px 0;
  position: relative;
}

.emg-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 60, 60, 0.3), transparent);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .emg-process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .emg-pstep-line {
    display: none;
  }

  .emg-why-layout {
    grid-template-columns: 1fr;
  }

  .emg-why-card-stack {
    flex-direction: row;
  }

  .emg-quick-stat {
    flex: 1;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .emg-quick-num {
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .emg-hero {
    padding: 120px 0 60px;
  }

  .emg-hero h1 {
    font-size: 2.2rem;
  }

  .emg-types-grid {
    grid-template-columns: 1fr;
  }

  .emg-process-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .emg-pstep {
    padding: 0;
  }

  .emg-why-card-stack {
    flex-direction: column;
  }

  .emg-types,
  .emg-process,
  .emg-why {
    padding: 60px 0;
  }

  .emg-section-title {
    font-size: 1.5rem;
  }

  .emg-cta {
    padding: 60px 0;
  }

  .emg-cta h2 {
    font-size: 1.8rem !important;
  }

  .emg-phone-btn {
    font-size: 1rem;
    padding: 14px 24px;
  }
}

@media (max-width: 480px) {
  .emg-hero h1 {
    font-size: 1.8rem;
  }

  .emg-type-card {
    padding: 28px 22px;
  }
}
