:root {
  --e911-brand: #0f3d2e;
  --e911-lime: #08ff13;
  --e911-red: #d71920;
  --e911-heading: #111c18;
  --e911-body: #4b5563;
  --e911-border: #e5e7eb;
  --e911-subtle: #f8faf9;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--e911-lime);
  outline-offset: 3px;
}

#page {
  overflow: clip;
}

/* Astra Header Builder refinements. */
.site-header {
  position: relative;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(17, 28, 24, 0.09);
}

.site-header .custom-logo-link img {
  width: auto;
  max-width: 190px;
  max-height: 68px;
  object-fit: contain;
}

.site-header .site-branding,
.site-header .custom-logo-link {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  opacity: 1;
  visibility: visible;
}

.main-header-menu .menu-link,
.ast-builder-menu-mobile .menu-link {
  text-decoration: none;
}

.ast-builder-button-wrap .ast-custom-button {
  box-shadow: none;
}

/* Astra page shell: content remains the existing editable block markup. */
.page .site-content > .ast-container,
.page .site-main,
.page article.page,
.page .entry-content {
  width: 100%;
  max-width: none;
}

.page .site-content > .ast-container {
  display: block;
  padding-right: 0;
  padding-left: 0;
}

.page article.page {
  margin: 0;
  padding: 0;
}

.page .entry-header {
  display: none;
}

.page .entry-content > .alignfull {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content > :last-child {
  margin-bottom: 0;
}

/* Existing page-content design classes. */
.eyebrow {
  color: var(--e911-brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entry-content .hero-title {
  max-width: 920px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.service-card {
  height: 100%;
  border: 1px solid var(--e911-border);
  border-top: 4px solid var(--e911-lime);
  border-radius: 0.65rem;
  box-shadow: 0 12px 32px rgba(17, 28, 24, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(17, 28, 24, 0.12);
}

.service-card a:not(.wp-block-button__link) {
  color: inherit;
  text-decoration: none;
}

.primary-card {
  min-height: 310px;
}

.cta-red .wp-block-button__link,
.wp-block-button.is-style-rescue .wp-block-button__link {
  color: #fff;
  background: var(--e911-red);
  border-color: #fff;
}

.cta-red .wp-block-button__link:hover,
.wp-block-button.is-style-rescue .wp-block-button__link:hover {
  color: #fff;
  background: #af1117;
}

.placeholder-frame {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  color: var(--e911-body);
  text-align: center;
  background: var(--e911-subtle);
  border: 2px dashed #9ca3af;
  border-radius: 0.5rem;
}

.contact-strip a {
  color: #fff;
}

.wp-block-details {
  padding: 1rem 0;
  border-bottom: 1px solid var(--e911-border);
}

.wp-block-details summary {
  color: var(--e911-heading);
  font-weight: 800;
  cursor: pointer;
}

/* Astra Footer Builder refinements and contrast safeguards. */
.site-footer,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer li {
  color: #fff;
}

.site-footer a,
.site-footer .menu-link,
.site-footer .custom-logo-link {
  color: #fff;
}

.site-footer a:hover,
.site-footer .menu-link:hover,
.site-footer .current-menu-item > .menu-link {
  color: var(--e911-lime);
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.site-below-footer-wrap[data-section="section-below-footer-builder"] {
  min-height: 84px;
  background: #0a1511 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.e911-footer-logo .custom-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.e911-footer-logo .custom-logo {
  width: auto;
  max-width: 170px;
  max-height: 78px;
  object-fit: contain;
}

.e911-footer-logo-placeholder {
  display: inline-flex;
  min-width: 150px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
  border: 1px dashed rgba(255, 255, 255, 0.7);
}

.site-footer .ast-builder-html-element h3 {
  margin-bottom: 0.8rem;
}

#astra-footer-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

#astra-footer-menu .menu-link {
  padding: 0.15rem 0;
}

.site-footer .widget_nav_menu .widget-title {
  margin-bottom: 0.8rem;
  color: #fff;
}

.site-footer .widget_nav_menu ul {
  margin: 0;
  list-style: none;
}

.site-footer .widget_nav_menu li {
  margin: 0 0 0.25rem;
}

.site-footer .widget_nav_menu a {
  color: #fff;
  text-decoration: none;
}

.site-footer .widget_nav_menu a:hover,
.site-footer .widget_nav_menu .current-menu-item > a {
  color: var(--e911-lime);
}

/* Final production header: compact, branded, and intentionally responsive. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(15, 61, 46, 0.13);
  box-shadow: 0 10px 28px rgba(17, 28, 24, 0.08);
  backdrop-filter: blur(14px);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header::after {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: min(420px, 72vw);
  height: 3px;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0 5%,
    var(--e911-red) 5% 25%,
    #fff 25% 33%,
    var(--e911-red) 33% 47%,
    #fff 47% 53%,
    var(--e911-red) 53% 67%,
    #fff 67% 75%,
    var(--e911-red) 75% 95%,
    transparent 95% 100%
  );
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(215, 25, 32, 0.26), 0 0 7px rgba(255, 255, 255, 0.48);
  opacity: 0.9;
  transform: translateX(-50%);
}

.site-primary-header-wrap {
  max-width: 1320px;
}

.main-header-menu > .menu-item > .menu-link {
  position: relative;
  min-height: 44px;
  align-items: center;
  margin-inline: 0.08rem;
  padding-inline: 0.72rem;
  border-radius: 0.45rem;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.main-header-menu > .menu-item > .menu-link::after {
  position: absolute;
  right: 0.72rem;
  bottom: 5px;
  left: 0.72rem;
  height: 2px;
  content: "";
  background: var(--e911-lime);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.main-header-menu > .menu-item:hover > .menu-link,
.main-header-menu > .current-menu-item > .menu-link,
.main-header-menu > .current-menu-ancestor > .menu-link {
  color: var(--e911-brand);
  background: rgba(15, 61, 46, 0.06);
}

.main-header-menu > .menu-item:hover > .menu-link::after,
.main-header-menu > .current-menu-item > .menu-link::after,
.main-header-menu > .current-menu-ancestor > .menu-link::after,
.main-header-menu > .menu-item > .menu-link:focus-visible::after {
  transform: scaleX(1);
}

.main-header-menu .sub-menu {
  overflow: hidden;
  padding: 0.45rem;
  border: 1px solid rgba(15, 61, 46, 0.13);
  border-radius: 0.7rem;
  box-shadow: 0 18px 42px rgba(17, 28, 24, 0.16);
}

.main-header-menu .sub-menu .menu-link {
  border-radius: 0.4rem;
}

.main-header-menu .sub-menu .menu-link:hover,
.main-header-menu .sub-menu .menu-link:focus-visible {
  color: var(--e911-brand);
  background: rgba(8, 255, 19, 0.1);
}

.ast-header-button-1 .ast-custom-button-link .ast-custom-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.05rem;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.01em;
  background: var(--e911-red);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.5rem;
  box-shadow: 0 8px 20px rgba(215, 25, 32, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.ast-header-button-1 .ast-custom-button-link:hover .ast-custom-button,
.ast-header-button-1 .ast-custom-button-link:focus-visible .ast-custom-button {
  color: #fff;
  background: #af1117;
  box-shadow: 0 10px 24px rgba(215, 25, 32, 0.32);
  transform: translateY(-1px);
}

/* Keep the desktop navigation, secondary portal action, and rescue CTA on one row. */
@media (min-width: 922px) {
  #ast-desktop-header .site-description {
    margin-left: 0.75rem;
    font-size: 1rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  #ast-desktop-header .main-header-menu {
    flex-wrap: nowrap;
  }

  #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
    padding-inline: 0.54rem;
    margin-inline: 0;
    white-space: nowrap;
  }

  #ast-desktop-header .main-header-menu > .menu-item:last-child > .menu-link {
    min-height: 38px;
    margin-left: 0.35rem;
    padding: 0.58rem 0.72rem;
    color: var(--e911-brand);
    font-size: 0.88rem;
    font-weight: 850;
    line-height: 1;
    background: rgba(15, 61, 46, 0.08);
    border: 1px solid rgba(15, 61, 46, 0.25);
    border-radius: 0.5rem;
  }

  #ast-desktop-header .main-header-menu > .menu-item:last-child > .menu-link::after {
    display: none;
  }

  #ast-desktop-header .main-header-menu > .menu-item:last-child > .menu-link:hover,
  #ast-desktop-header .main-header-menu > .menu-item:last-child > .menu-link:focus-visible {
    color: #fff;
    background: var(--e911-brand);
    border-color: var(--e911-brand);
  }

  #ast-desktop-header .ast-header-button-1 .ast-custom-button-link .ast-custom-button {
    min-height: 42px;
    padding: 0.7rem 0.86rem;
    font-size: 0.9rem;
  }
}

/* Homepage rescue identity with the owner-approved aspirational service image. */
.home .hero-section {
  position: relative;
  isolation: isolate;
  min-height: clamp(540px, 68vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-align: center;
  background-color: #0f3d2e !important;
  background-image:
    linear-gradient(115deg, rgba(10, 21, 17, 0.79), rgba(15, 61, 46, 0.58) 52%, rgba(17, 28, 24, 0.72)),
    radial-gradient(circle at 82% 64%, rgba(8, 255, 19, 0.08), transparent 28%),
    url("../images/exterior911-approved-homepage-hero.jpg") !important;
  background-image:
    linear-gradient(115deg, rgba(10, 21, 17, 0.79), rgba(15, 61, 46, 0.58) 52%, rgba(17, 28, 24, 0.72)),
    radial-gradient(circle at 82% 64%, rgba(8, 255, 19, 0.08), transparent 28%),
    image-set(
      url("../images/exterior911-approved-homepage-hero.webp") type("image/webp"),
      url("../images/exterior911-approved-homepage-hero.jpg") type("image/jpeg")
    ) !important;
  background-position: center 52%;
  background-repeat: no-repeat;
  background-size: cover;
}

.home .hero-section::before {
  position: absolute;
  z-index: -1;
  top: -28%;
  left: 53%;
  width: min(26vw, 360px);
  height: 160%;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.1) 42%, rgba(8, 255, 19, 0.035) 64%, transparent 100%);
  filter: blur(3px);
  opacity: 0.7;
  transform: skewX(-17deg) rotate(5deg);
}

.home .hero-section::after {
  position: absolute;
  z-index: -1;
  right: -5%;
  bottom: -45%;
  width: min(760px, 76vw);
  aspect-ratio: 1;
  content: "";
  pointer-events: none;
  background:
    repeating-radial-gradient(circle, transparent 0 32px, rgba(255, 255, 255, 0.025) 33px 34px),
    radial-gradient(circle, rgba(215, 25, 32, 0.16), transparent 62%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.home .hero-section > * {
  position: relative;
  z-index: 1;
}

.home .hero-section .eyebrow {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  color: #fff;
  font-size: 0.82rem !important;
  letter-spacing: 0.16em;
}

.home .hero-section .eyebrow::before,
.home .hero-section .eyebrow::after {
  width: 28px;
  height: 2px;
  content: "";
  background: var(--e911-lime);
  box-shadow: 0 0 12px rgba(8, 255, 19, 0.38);
}

.home .hero-section .hero-title {
  max-width: 1040px;
  margin-inline: auto;
  color: #fff;
  font-size: clamp(3.15rem, 7vw, 6.45rem) !important;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
}

.home .hero-section .hero-title::after {
  width: clamp(82px, 10vw, 140px);
  height: 5px;
  display: block;
  margin: clamp(1rem, 2vw, 1.4rem) auto 0;
  content: "";
  background: linear-gradient(90deg, var(--e911-red) 0 42%, #fff 42% 58%, var(--e911-red) 58% 100%);
  box-shadow: 0 0 12px rgba(215, 25, 32, 0.24), 0 0 8px rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.home .hero-section > p:not(.eyebrow) {
  max-width: 790px;
  margin: 0.5rem auto 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  text-wrap: balance;
}

.home .hero-section .wp-block-buttons {
  margin-top: clamp(1.75rem, 4vw, 2.6rem);
}

.home .hero-section .wp-block-button__link {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1.5rem;
  font-weight: 900;
  border-radius: 0.55rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.home .hero-section .wp-block-button:first-child .wp-block-button__link {
  color: #fff;
  background: var(--e911-red);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(215, 25, 32, 0.34) !important;
}

.home .hero-section .wp-block-button:last-child .wp-block-button__link {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: none !important;
  backdrop-filter: blur(8px);
}

.home .hero-section .wp-block-button__link:hover,
.home .hero-section .wp-block-button__link:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}

.home .hero-section .wp-block-button:last-child .wp-block-button__link:hover,
.home .hero-section .wp-block-button:last-child .wp-block-button__link:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.home .entry-content > .hero-section + .wp-block-group {
  position: relative;
  padding-top: clamp(4.5rem, 7vw, 7rem) !important;
  padding-bottom: clamp(4rem, 7vw, 6.5rem) !important;
  background:
    linear-gradient(180deg, rgba(15, 61, 46, 0.055), transparent 190px),
    #fff !important;
}

.home .entry-content > .hero-section + .wp-block-group::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(92%, 1160px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(15, 61, 46, 0.28), transparent);
  transform: translateX(-50%);
}

.home .entry-content > .hero-section + .wp-block-group > h2 {
  max-width: 760px;
  margin-right: auto;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  margin-left: auto;
  color: var(--e911-heading);
  font-size: clamp(2.4rem, 4.7vw, 4.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.home .service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.55rem, 3vw, 2.35rem) !important;
  color: rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(145deg, rgba(15, 61, 46, 0.98), rgba(10, 28, 22, 0.99)) !important;
  border: 1px solid rgba(8, 255, 19, 0.18);
  border-radius: 0.95rem;
  box-shadow:
    0 20px 46px rgba(17, 28, 24, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home .service-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--e911-lime) 0 18%, rgba(8, 255, 19, 0.16) 18% 100%);
}

.home .service-card::after {
  position: absolute;
  z-index: -1;
  right: -82px;
  bottom: -96px;
  width: 240px;
  height: 240px;
  content: "";
  pointer-events: none;
  background:
    repeating-radial-gradient(circle, transparent 0 22px, rgba(255, 255, 255, 0.025) 23px 24px),
    radial-gradient(circle, rgba(8, 255, 19, 0.13), transparent 64%);
  opacity: 0.72;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.home .service-card:hover::after {
  opacity: 1;
  transform: scale(1.16);
}

.home .service-card:hover,
.home .service-card:focus-within {
  border-color: rgba(8, 255, 19, 0.42);
  box-shadow:
    0 26px 58px rgba(17, 28, 24, 0.24),
    0 0 0 1px rgba(8, 255, 19, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-6px);
}

.home .service-card h3,
.home .service-card h3 a {
  position: relative;
  z-index: 1;
  color: #fff;
}

.home .service-card h3 {
  max-width: 19ch;
  margin-bottom: 0.9rem;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.home .service-card p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78) !important;
  line-height: 1.65;
}

.home .service-card p:last-child {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--e911-lime) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.home .service-card p:last-child a {
  display: inline-flex;
  align-items: center;
  color: var(--e911-lime) !important;
  text-decoration: none;
  text-underline-offset: 3px;
}

.home .service-card p:last-child a:hover,
.home .service-card p:last-child a:focus-visible {
  color: #fff !important;
  text-decoration: underline;
}

.home .entry-content > .hero-section + .wp-block-group + .wp-block-group {
  position: relative;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(40, 110, 182, 0.12), transparent 38%),
    var(--e911-brand) !important;
}

.home .entry-content > .hero-section + .wp-block-group + .wp-block-group h2,
.home .entry-content > .hero-section + .wp-block-group + .wp-block-group .eyebrow,
.home .entry-content > .hero-section + .wp-block-group + .wp-block-group li {
  color: #fff;
}

.home .entry-content > .hero-section + .wp-block-group + .wp-block-group li {
  margin-bottom: 0.85rem;
  padding-left: 0.25rem;
}

.home .entry-content > .hero-section + .wp-block-group + .wp-block-group li::marker {
  color: var(--e911-lime);
}

.home .entry-content > .hero-section + .wp-block-group + .wp-block-group + .wp-block-group {
  background:
    radial-gradient(circle at 80% 50%, rgba(8, 255, 19, 0.08), transparent 27%),
    #f5f8f6 !important;
}

.home .entry-content > .hero-section + .wp-block-group + .wp-block-group + .wp-block-group + .wp-block-group {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, #111c18, #0f3d2e) !important;
}

.home .entry-content > .hero-section + .wp-block-group + .wp-block-group + .wp-block-group + .wp-block-group::after {
  position: absolute;
  right: -6%;
  bottom: -90%;
  width: 420px;
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(215, 25, 32, 0.22), transparent 66%);
}

.home .entry-content > .hero-section + .wp-block-group + .wp-block-group + .wp-block-group + .wp-block-group h2,
.home .entry-content > .hero-section + .wp-block-group + .wp-block-group + .wp-block-group + .wp-block-group p {
  position: relative;
  z-index: 1;
  color: #fff !important;
}

/* Centered footer weather and policy links in Astra's copyright row. */
.e911-footer-utility {
  color: #fff;
  background: #0a1511;
  border-top: 1px solid rgba(8, 255, 19, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.e911-footer-utility__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  text-align: center;
}

.e911-weather {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.55rem;
  justify-content: center;
  max-width: 760px;
  line-height: 1.35;
}

.e911-weather__label {
  flex-basis: 100%;
  text-align: center;
  color: var(--e911-lime);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.e911-weather__values {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 750;
}

.e911-weather__source {
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.72rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.e911-policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.9rem;
  font-size: 0.78rem;
}

.ast-footer-copyright p {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  text-align: center;
}

.e911-copyright-text {
  display: block;
}

.e911-policy-links a {
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none;
}

.e911-policy-links a:hover,
.e911-policy-links a:focus-visible {
  color: var(--e911-lime) !important;
}

/* Customer-facing legal pages remain ordinary editable WordPress blocks. */
.policy-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) 1.25rem;
}

.policy-page > h1 {
  margin-bottom: 0.8rem;
  color: var(--e911-heading);
  font-size: clamp(2.65rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.policy-page > .policy-intro {
  margin-bottom: 2.25rem;
  color: var(--e911-body);
  font-size: clamp(1.08rem, 2vw, 1.26rem);
}

.policy-page h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  color: var(--e911-brand);
  border-top: 1px solid var(--e911-border);
}

.policy-page a {
  font-weight: 700;
}

.policy-page .policy-meta {
  display: inline-flex;
  margin-bottom: 1.5rem;
  padding: 0.42rem 0.72rem;
  color: var(--e911-brand);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(15, 61, 46, 0.07);
  border-radius: 999px;
}

@media (max-width: 781px) {
	.site-header::after {
		width: min(270px, 68vw);
	}

	.site-primary-footer-wrap .site-primary-footer-inner-wrap {
		grid-template-columns: 1fr !important;
	}

  .site-header .custom-logo-link img {
    max-height: 54px;
  }

  .ast-header-button-1[data-section="section-hb-button-1"] {
    display: none;
  }

  .admin-bar .site-header {
    top: 46px;
  }

  .ast-mobile-popup-drawer .ast-mobile-popup-inner {
    background: linear-gradient(160deg, #0a1511, #0f3d2e);
  }

  .ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close,
  .ast-mobile-popup-drawer .main-header-menu .menu-link,
  .ast-mobile-popup-drawer .main-header-menu .ast-menu-toggle {
    color: #fff;
  }

  .ast-mobile-popup-drawer .main-header-menu .menu-link {
    min-height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .ast-mobile-popup-drawer .main-header-menu .current-menu-item > .menu-link,
  .ast-mobile-popup-drawer .main-header-menu .menu-link:hover,
  .ast-mobile-popup-drawer .main-header-menu .menu-link:focus-visible {
    color: var(--e911-lime);
    background: rgba(255, 255, 255, 0.05);
  }

  .ast-mobile-popup-drawer .e911-mobile-rescue-cta {
    margin-top: 1rem;
    padding: 0 1rem 1rem;
  }

  .ast-mobile-popup-drawer .e911-mobile-rescue-cta > .menu-link {
    justify-content: center;
    color: #fff !important;
    font-weight: 900;
    background: var(--e911-red) !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.55rem;
  }

  .hero-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .home .hero-section {
    min-height: 600px;
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
    background-position: 42% 52%;
  }

  .home .hero-section .hero-title {
    font-size: clamp(2.8rem, 12vw, 4.4rem) !important;
  }

  .home .hero-section .wp-block-buttons {
    width: min(100%, 420px);
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    margin-right: auto;
    margin-left: auto;
  }

  .home .hero-section .wp-block-button,
  .home .hero-section .wp-block-button__link {
    width: 100% !important;
  }

  .e911-footer-utility__inner {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    text-align: center;
  }

  .home .service-card:hover,
  .home .service-card:focus-within {
    transform: translateY(-3px);
  }

  .e911-weather,
  .e911-policy-links {
    justify-content: center;
  }

  .primary-card {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .site-footer .footer-widget-area,
  .site-footer .ast-builder-html-element,
  .site-footer .footer-navigation {
    text-align: center;
  }

  #astra-footer-menu {
    align-items: center;
  }

  .e911-policy-links {
    max-width: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
