/* The Services and Gallery directories share a header, photographic frame and footer. */
:is(.services-directory-page, .gallery-page) {
  --directory-blue: #082bea;
  --directory-header: linear-gradient(110deg, #0849f5, #1116d9);
  --directory-orange: #ff751b;
  background: #fff;
}

:is(.services-directory-page, .gallery-page) .site-header {
  background: var(--directory-header);
  border-bottom: 1px solid rgb(255 255 255 / 20%);
  box-shadow: 0 3px 15px rgb(2 12 40 / 14%);
}
:is(.services-directory-page, .gallery-page) .desktop-nav .nav-dropdown.is-current > .nav-dropdown-link::after {
  background: var(--directory-orange);
}

/* Inset the photographic frame behind each directory’s content. */
:is(.services-stage, .gallery-stage) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--directory-blue), #101bde);
}
:is(.services-stage, .gallery-stage)::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 16px clamp(12px, 1.5vw, 24px) 24px;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 52% 18%, rgb(0 87 252 / 84%), rgb(1 37 253 / 89%) 58%, rgb(1 5 216 / 96%) 100%),
    url("assets/home-roof-video-clear-poster.jpg") center top / cover no-repeat;
  box-shadow: 0 18px 45px rgb(0 8 32 / 22%), inset 0 0 0 1px rgb(255 255 255 / 8%);
  pointer-events: none;
}
:is(.services-stage, .gallery-stage)::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -115px;
  right: -100px;
  width: 370px;
  height: 370px;
  border: 1px solid rgb(255 255 255 / 24%);
  transform: rotate(45deg);
  pointer-events: none;
}
.services-stage .services-intro { padding-top: 60px; }
.services-stage .services-title-lettering { color: #fff; }
.services-stage .services-title h1 { text-shadow: 0 3px 10px rgb(0 8 32 / 34%); }
.services-stage .orange-period { color: var(--directory-orange); }
.services-stage .services-intro .services-label {
  color: #e4edff;
  text-shadow: 0 1px 4px rgb(0 9 35 / 45%);
}
.services-stage .services-intro .orange-square,
.services-help-section .orange-square {
  width: 27px;
  height: 7px;
  background: var(--directory-orange);
  transform: skewX(-28deg);
}
.services-stage .service-directory { padding-bottom: 60px; }
.services-stage .service-card-photo {
  /* Restore the original charcoal fade from services.css on all five windows. */
  --service-film: var(--service-slate-film);
  border-color: rgb(204 222 255 / 48%);
  box-shadow: 0 10px 24px rgb(0 8 32 / 24%);
}
@media (hover: hover) and (pointer: fine) {
  .services-stage .service-card-photo:hover {
    border-color: var(--directory-orange);
    box-shadow: 0 13px 30px rgb(0 8 32 / 35%);
  }
}

/* The white breathing space and blue text echo the About story section. */
.services-help-section { padding-block: 32px 38px; }
.services-help-section .services-help {
  margin: 0;
  padding: 0;
  border: 0;
  gap: 22px 36px;
  flex-wrap: nowrap;
}
.services-help-section .services-label {
  max-width: 750px;
  color: var(--directory-blue);
  text-shadow: none;
}
.services-help-section .text-link {
  flex: none;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid #a8bcdb;
  border-radius: 8px;
  color: var(--directory-blue);
  text-shadow: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.services-help-section .text-link:hover {
  background: var(--directory-blue);
  border-color: var(--directory-blue);
  color: #fff;
  text-decoration: none;
}
.services-help-section .text-link:focus-visible { outline-color: var(--directory-orange); }

/* Match the vivid Roofing Types finish through the existing estimate and footer. */
:is(.services-directory-page, .gallery-page) .site-footer.site-footer-v2 {
  --footer-surface: #101bde;
  --footer-ink: #fff;
  --footer-muted: #dce7f8;
  --footer-line: rgb(177 203 241 / 27%);
  --footer-company: linear-gradient(110deg, #0849f5, #082bea);
  --footer-utility: #1116d9;
  --footer-shadow: 0 1px 2px rgb(0 8 32 / 26%);
  --footer-wordmark: url(#brand-white);
  --footer-mascot: url(#footer-iggy-white);
  --footer-focus: #fff;
  padding-top: 32px;
  background: var(--footer-surface);
}

@media (max-width: 1000px) {
  .services-help-section .services-help { flex-wrap: wrap; }
}
@media (max-width: 680px) {
  :is(.services-stage, .gallery-stage)::before { inset: 10px 10px 16px; border-radius: 14px; }
  :is(.services-stage, .gallery-stage)::after { right: -230px; }
  .services-stage .services-intro { padding-top: 38px; }
  .services-stage .service-directory { padding-bottom: 40px; }
  .services-help-section { padding-block: 28px; }
  .services-help-section .services-help { gap: 20px; }
  .services-help-section .text-link { min-height: 48px; }
  :is(.services-directory-page, .gallery-page) .site-footer.site-footer-v2 { padding-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .services-help-section .text-link { transition: none; }
}
@media (forced-colors: active) {
  :is(.services-stage, .gallery-stage) { background: Canvas; }
  :is(.services-stage, .gallery-stage)::before { background: Canvas; border-color: CanvasText; }
  :is(.services-stage, .gallery-stage)::after { display: none; }
  .services-stage .services-title-lettering,
  .services-stage .services-intro .services-label,
  .services-help-section .services-label { color: CanvasText; text-shadow: none; }
  .services-stage .service-card-photo { background: Canvas; border-color: LinkText; }
  .services-help-section .text-link { color: LinkText; border-color: LinkText; }
}
