/* ============================================================
   UTAH HERITAGE HVAC — Emergency Services Page
   emergency.css
   ============================================================ */

/* ── GeneratePress overrides ────────────────────────────── */
.site-content, .content-area, #primary,
.inside-article, .entry-content, .post, .page {
  padding: 0 !important; margin: 0 !important;
  width: 100% !important; max-width: 100% !important;
}
.site-main, .site, #page {
  padding: 0 !important; margin: 0 !important;
  width: 100% !important; max-width: 100% !important;
}
.entry-header, .page-header, .entry-title { display: none !important; }
.site-header, .site-footer, .site-info    { display: none !important; }

#uhh-emergency {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 0;
}


/* ── Hero ───────────────────────────────────────────────── */
.em-hero {
  background-color: var(--navy);
  padding: 56px 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.em-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.em-hero-left .eyebrow { color: var(--teal); }

.em-hero-left h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.em-hero-left h1 span { color: var(--orange); }

.em-hero-left > p {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 480px;
}

.em-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.em-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

/* Emergency call button */
.btn-emergency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--orange);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius);
  border: 2px solid var(--orange);
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-emergency:hover {
  background-color: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}


/* ── Situations Grid ────────────────────────────────────── */
.em-situations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.em-situation-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  border-top: 4px solid var(--navy);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.em-situation-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}

.em-situation-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.em-situation-icon i { font-size: 24px; }

.em-icon-navy   { background: rgba(27,58,82,0.12); }
.em-icon-navy i { color: var(--navy); }

.em-icon-orange   { background: rgba(240,87,8,0.12); }
.em-icon-orange i { color: var(--orange); }

.em-icon-red   { background: rgba(139,26,26,0.12); }
.em-icon-red i { color: #8B1A1A; }

.em-situation-card h3 {
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.em-situation-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.em-urgency-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  margin-top: auto;
  align-self: flex-start;
}

.em-badge-critical { background: #fde8e8; color: #8B1A1A; }
.em-badge-high     { background: rgba(240,87,8,0.12); color: var(--orange); }
.em-badge-med      { background: rgba(27,58,82,0.1); color: var(--navy); }


/* ── How We Handle Section ──────────────────────────────── */
.em-how-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.em-how-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.em-how-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.em-how-card:last-child { border-bottom: none; }
.em-how-card:first-child { padding-top: 0; }

.em-how-card > i {
  font-size: 24px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.em-how-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.em-how-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0;
}


/* ── Don't Wait Section ─────────────────────────────────── */
.em-wait-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.em-wait-text p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.em-cta-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.em-cta-card h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
}

.em-cta-card > p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin-bottom: 20px;
}

.em-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.em-service-tags .area-tag {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 5px 10px;
}

.em-service-tags .area-tag i { color: var(--teal); }


/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {

  .em-hero           { grid-template-columns: 1fr; padding: 40px 20px; gap: 32px; }
  .em-hero-right     { order: -1; }
  .em-hero-img       { height: 220px; }

  .em-situations-grid { grid-template-columns: 1fr; gap: 14px; }

  .em-how-inner      { grid-template-columns: 1fr; gap: 32px; }

  .em-wait-inner     { grid-template-columns: 1fr; gap: 32px; }
}


/* ── Tablet ─────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {

  .em-hero           { grid-template-columns: 1fr; gap: 32px; }
  .em-hero-right     { order: -1; }
  .em-situations-grid { grid-template-columns: repeat(2, 1fr); }
  .em-how-inner      { grid-template-columns: 1fr; gap: 32px; }
  .em-wait-inner     { grid-template-columns: 1fr; gap: 32px; }
}
