.emergency-page {
  --em-blue: #06497f;
  --em-orange: #f79922;
  --em-soft: #eaf7fc;
  color: var(--em-blue);
  font-family: Inter, Arial, sans-serif;
}

.emergency-page [id] { scroll-margin-top: 36px; }

.emergency-hero {
  min-height: 445px;
  display: grid;
  align-items: center;
  background: linear-gradient(90deg, rgba(10,34,53,.84) 0%, rgba(10,34,53,.67) 43%, rgba(10,34,53,.22) 72%), url("media/dentist-treatment.jpg") center 42% / cover no-repeat;
}

.emergency-hero-content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0;
  color: #fff;
}

.emergency-hero-content > p:first-child {
  max-width: 500px;
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.emergency-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
}

.emergency-hero-content > p:nth-of-type(2) {
  max-width: 610px;
  margin: 0 0 28px;
  color: #fff;
  font-size: 16px;
  line-height: 1.75;
}

.emergency-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.emergency-call { min-height: 48px; display: inline-flex; align-items: center; padding: 0 24px; border: 2px solid #fff; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.emergency-intro { padding: 58px 0 64px; text-align: center; background: #fff; }
.emergency-intro h2,
.before-arrival h2,
.emergency-related h2 { margin: 0 0 18px; font-size: clamp(27px, 3vw, 40px); font-weight: 500; letter-spacing: .04em; }
.emergency-lead { max-width: 930px; margin: 0 auto 45px; color: #3d6781; line-height: 1.75; }
.emergency-benefits { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 950px; margin: 0 auto; }
.emergency-benefits article { padding: 0 46px; border-right: 1px solid #dbe7ef; }
.emergency-benefits article:last-child { border-right: 0; }
.emergency-benefits h3 { margin: 13px 0 8px; font-size: 16px; }
.emergency-benefits p { margin: 0; color: #47708a; font-size: 13px; line-height: 1.6; }
.em-icon { display: block; width: 68px; height: 68px; margin: 0 auto; position: relative; border: 2px solid var(--em-blue); border-radius: 50%; }
.em-icon::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 400; }
.em-icon.doctor::after { content: "DDS"; font-size: 13px; font-weight: 800; }
.em-icon.calendar::after { content: "24h"; font-size: 16px; font-weight: 800; }

.emergency-directory { padding: 52px 0; background: var(--em-soft); }
.emergency-directory-grid { display: grid; grid-template-columns: .72fr 2fr; gap: 70px; align-items: center; }
.directory-title { text-align: center; }
.directory-title h2 { margin: 14px 0 0; font-size: 17px; text-transform: uppercase; letter-spacing: .05em; }
.emergency-tooth-icon { width: 70px; height: 82px; display: block; margin: 0 auto; border: 3px solid var(--em-blue); border-radius: 45% 45% 35% 35%; }
.directory-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 65px; }
.directory-links a { padding: 12px 0; border-bottom: 1px solid #c7dce8; color: var(--em-blue); }
.directory-links strong,.directory-links span { display: block; }
.directory-links strong { font-size: 14px; }
.directory-links span { margin-top: 4px; color: #55788e; font-size: 11px; }

.emergency-feature-grid { display: grid; grid-template-columns: 1fr 1fr; }
.emergency-feature-grid > * { min-height: 390px; }
.emergency-feature-grid img { width: 100%; height: 100%; object-fit: cover; }
.emergency-savings,.emergency-service-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(45px, 7vw, 90px); }
.emergency-savings { background: var(--em-blue); color: #fff; text-align: center; align-items: center; }
.emergency-savings h2 { color: #fff; font-size: clamp(29px, 3vw, 43px); font-weight: 500; }
.emergency-savings p { color: #e6f3fb; line-height: 1.7; }
.emergency-service-copy { background: #fff; }
.emergency-service-copy h2 { font-size: clamp(27px, 3vw, 40px); font-weight: 500; }
.emergency-service-copy p,.emergency-service-copy li { color: #3f6881; line-height: 1.7; }

.emergency-detail-list { background: #fff; }
.emergency-detail-list article { padding: 44px max(24px, calc((100vw - 980px) / 2)); border-bottom: 1px solid #d8e7ef; }
.emergency-detail-list article:nth-child(even) { background: var(--em-soft); }
.emergency-detail-list h2 { margin: 0 0 10px; font-size: 24px; font-weight: 600; }
.emergency-detail-list p { max-width: 940px; margin: 0; color: #426c85; line-height: 1.8; }

.before-arrival { padding: 62px 0; text-align: center; background: var(--em-soft); }
.arrival-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 34px; }
.arrival-steps strong { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto 14px; border: 2px solid var(--em-blue); border-radius: 50%; font-size: 20px; }
.arrival-steps h3 { margin: 0 0 8px; font-size: 16px; }
.arrival-steps p { margin: 0; color: #4e748a; font-size: 13px; line-height: 1.6; }

.emergency-anytime { padding: 50px 0; text-align: center; background: var(--em-blue); color: #fff; }
.emergency-anytime h2 { margin: 0 0 14px; color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 500; }
.emergency-anytime p { max-width: 900px; margin: 0 auto; color: #e7f4fb; line-height: 1.75; }
.emergency-anytime a { color: #fff; font-weight: 800; text-decoration: underline; }
.emergency-appointment-cta { margin: 0; }
.emergency-faq { background: #fff; }
.emergency-related { padding: 58px 0; text-align: center; background: var(--em-soft); }
.emergency-related > .wrap > div { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

@media (max-width: 900px) {
  .emergency-benefits,.arrival-steps { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .emergency-directory-grid { grid-template-columns: 1fr; gap: 34px; }
  .emergency-feature-grid { grid-template-columns: 1fr; }
  .emergency-feature-grid > * { min-height: 330px; }
}

@media (max-width: 640px) {
  .emergency-hero { min-height: 520px; background-position: 62% center; }
  .emergency-hero-content { width: calc(100% - 40px); padding: 62px 0; }
  .emergency-hero h1 { max-width: 100%; font-size: 38px; overflow-wrap: anywhere; }
  .emergency-hero-content > p { max-width: 100%; }
  .emergency-actions { flex-direction: column; }
  .emergency-actions > * { width: 100%; justify-content: center; }
  .emergency-benefits,.arrival-steps,.directory-links { grid-template-columns: 1fr; }
  .emergency-benefits article { border-right: 0; border-bottom: 1px solid #dbe7ef; padding: 24px; }
  .emergency-benefits article:last-child { border-bottom: 0; }
  .emergency-directory-grid { gap: 28px; }
  .emergency-related .braces-blue-btn { width: 100%; }
}
