/* Brighter footer estimate lighting, only for Roofing Types and its four guides.
   Each interaction runs one smooth pass; the existing button handles the request. */
:is(.roof-types-page, .roof-detail-page) .site-footer.site-footer-v2 .footer-estimate-button {
  --roof-light-ice: rgb(192 246 255 / 94%);
  --roof-light-white: rgb(255 255 255 / 88%);
}

:is(.roof-types-page, .roof-detail-page) .site-footer.site-footer-v2 .footer-estimate-button::before {
  background:
    radial-gradient(ellipse 30% 180% at 7% 50%, rgb(209 246 255 / 43%), transparent 76%),
    radial-gradient(ellipse 33% 170% at 96% 52%, rgb(255 218 151 / 50%), transparent 76%),
    linear-gradient(180deg, rgb(255 255 255 / 18%), transparent 38%, rgb(42 9 0 / 15%));
}
:is(.roof-types-page, .roof-detail-page) .site-footer.site-footer-v2 .footer-estimate-button::after {
  width: 46%;
  background: linear-gradient(105deg,
    transparent 28%, rgb(210 245 255 / 8%) 38%, rgb(229 250 255 / 36%) 47%,
    rgb(255 255 255 / 72%) 50%, rgb(255 225 166 / 25%) 53%, transparent 68%);
}
:is(.roof-types-page, .roof-detail-page) .site-footer.site-footer-v2 .footer-estimate-button:is(:hover, :focus-visible) {
  border-color: #ffe1aa;
  border-bottom-color: var(--cta-hover-edge);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 85%),
    inset 0 0 18px rgb(255 222 159 / 28%),
    0 4px 0 var(--cta-hover-edge), 0 0 0 1px rgb(255 181 91 / 30%),
    0 0 22px rgb(255 144 55 / 55%), 0 0 46px rgb(255 166 74 / 24%),
    0 12px 24px rgb(0 0 0 / 24%);
}
:is(.roof-types-page, .roof-detail-page) .site-footer.site-footer-v2 .footer-estimate-button:is(:hover, :focus-visible)::after {
  animation: footer-light-sweep 1.65s cubic-bezier(.15,.6,.25,1) 1 both;
}

/* A pair of fine diagonal trails crosses beneath the label. */
:is(.roof-types-page, .roof-detail-page) .footer-estimate-row > span {
  position: relative;
  z-index: 2;
}
:is(.roof-types-page, .roof-detail-page) .footer-estimate-row::before,
:is(.roof-types-page, .roof-detail-page) .footer-estimate-row::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}
:is(.roof-types-page, .roof-detail-page) .footer-estimate-row::before {
  inset: -40% -15%;
  background: linear-gradient(116deg,
    transparent 39%, rgb(108 214 255 / 18%) 40.8%, var(--roof-light-ice) 41%,
    transparent 41.25%, transparent 43%, var(--roof-light-white) 43.15%,
    transparent 43.4%, transparent 59%, rgb(255 244 204 / 88%) 59.2%,
    transparent 59.45%, transparent 61%, rgb(255 219 140 / 45%) 61.15%, transparent 61.4%);
  transform: translateX(-115%);
}
:is(.roof-types-page, .roof-detail-page) .footer-estimate-row::after {
  inset: 7px 12px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent, rgb(197 246 255 / 85%) 20%, #fff 50%, rgb(255 222 162 / 80%) 80%, transparent) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgb(255 226 177 / 75%) 30%, #fff 68%, transparent) bottom / 100% 1px no-repeat;
  transform: scaleX(.12);
}
:is(.roof-types-page, .roof-detail-page) .footer-estimate-button:is(:hover, :focus-visible) .footer-estimate-row::before {
  animation: roof-estimate-beams 1.8s cubic-bezier(.2,.65,.3,1) 1 both;
}
:is(.roof-types-page, .roof-detail-page) .footer-estimate-button:is(:hover, :focus-visible) .footer-estimate-row::after {
  animation: roof-estimate-rim 1.25s ease-out 1 both;
}
@keyframes roof-estimate-beams {
  0% { opacity: 0; transform: translateX(-115%); }
  12% { opacity: .95; }
  72% { opacity: .8; }
  100% { opacity: 0; transform: translateX(115%); }
}
@keyframes roof-estimate-rim {
  0% { opacity: 0; transform: scaleX(.12); }
  55% { opacity: 1; }
  100% { opacity: .75; transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  :is(.roof-types-page, .roof-detail-page) .site-footer.site-footer-v2 .footer-estimate-button::after,
  :is(.roof-types-page, .roof-detail-page) .footer-estimate-row::before { display: none; }
  :is(.roof-types-page, .roof-detail-page) .footer-estimate-button:is(:hover, :focus-visible) .footer-estimate-row::after {
    animation: none;
    transform: none;
    opacity: .65;
  }
}
@media (forced-colors: active) {
  :is(.roof-types-page, .roof-detail-page) .site-footer.site-footer-v2 .footer-estimate-button:is(:hover, :focus-visible) {
    background: ButtonFace;
    color: ButtonText;
    border-color: ButtonText;
    box-shadow: none;
  }
  :is(.roof-types-page, .roof-detail-page) .site-footer.site-footer-v2 .footer-estimate-button::before,
  :is(.roof-types-page, .roof-detail-page) .site-footer.site-footer-v2 .footer-estimate-button::after,
  :is(.roof-types-page, .roof-detail-page) .footer-estimate-row::before,
  :is(.roof-types-page, .roof-detail-page) .footer-estimate-row::after { display: none; }
}
