/* Restored service-hub hero from the February service pages. Scoped so lower hub content stays unchanged. */
.hub-legacy-hero {
  color: #fff;
  padding: 68px 0 56px;
  position: relative;
  overflow: hidden;
  background: var(--legacy-hero-gradient, linear-gradient(135deg, #0b1220 0%, #0b3a57 55%, #0b1220 100%));
}
.hub-legacy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--legacy-hero-bg-url), radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: cover, 30px 30px;
  background-position: center, center;
  opacity: .22;
  filter: saturate(1.15) contrast(1.05);
  transform: scale(1.06);
  pointer-events: none;
}
.hub-legacy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .25;
  pointer-events: none;
}
.hub-legacy-hero .container,
.hub-legacy-hero .hero-row {
  position: relative;
  z-index: 2;
}
.hub-legacy-hero .hero-row {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: center;
}
.hub-legacy-hero .breadcrumb {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 10px;
  display: block;
  font-weight: 600;
  text-shadow: none;
}
.hub-legacy-hero .breadcrumb a { color: #a5b4fc; text-decoration: none; }
.hub-legacy-hero .hero-title {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.02;
  margin: 0 0 14px;
  color: #f9fafb;
  -webkit-text-stroke: 0;
  text-shadow: none;
  text-wrap: balance;
}
.hub-legacy-hero .accent {
  background: linear-gradient(120deg, #22d3ee, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hub-legacy-hero .hero-sub {
  font-size: 15.5px;
  color: #cbd5f5;
  max-width: 480px;
  margin: 0 0 18px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: none;
}
.hub-legacy-hero .hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.hub-legacy-hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  transition: filter .2s ease, transform .2s ease;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(248,113,22,.32);
  white-space: nowrap;
  text-decoration: none;
}
.hub-legacy-hero .btn-primary {
  background: var(--legacy-accent, #0ea5e9);
  color: var(--legacy-primary-text, #fff);
  border: 2px solid var(--legacy-accent, #0ea5e9);
}
.hub-legacy-hero .btn-primary:hover {
  background: var(--legacy-accent-hover, #0284c7);
  border-color: var(--legacy-accent-hover, #0284c7);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,.15);
}
.hub-legacy-hero .btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.30);
  backdrop-filter: blur(4px);
}
.hub-legacy-hero .btn-secondary:hover {
  background: rgba(255,255,255,.10);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}
.hub-legacy-hero .trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 500;
  color: #e5e7eb;
}
.hub-legacy-hero .trust div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.5);
  background: radial-gradient(circle at top, rgba(148,163,184,.25), rgba(15,23,42,.74));
}
.hub-legacy-hero .trust span {
  color: #4ade80;
  font-weight: 700;
  font-size: 12px;
}
.hub-legacy-hero .hero-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  border: 4px solid rgba(255,255,255,.10);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform .5s ease;
}
.hub-legacy-hero .hero-image:hover { transform: perspective(1000px) rotateY(0deg); }
.hub-legacy-hero .hero-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 22px 50px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.18);
}
@media (max-width: 900px) {
  .hub-legacy-hero { padding: 52px 0 46px; }
  .hub-legacy-hero .hero-row { grid-template-columns: 1fr; gap: 28px; }
  .hub-legacy-hero .hero-sub { max-width: 60ch; }
  .hub-legacy-hero::before { opacity: .18; }
  .hub-legacy-hero .hero-image { transform: none; }
}
@media (max-width: 640px) {
  .hub-legacy-hero { padding: 42px 0 38px; }
  .hub-legacy-hero .breadcrumb { font-size: 11px; letter-spacing: .12em; margin-bottom: 14px; }
  .hub-legacy-hero .hero-title {
    font-size: clamp(34px, 11vw, 46px);
    line-height: .98;
    letter-spacing: .01em;
    margin-bottom: 14px;
  }
  .hub-legacy-hero .hero-sub {
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 100%;
  }
  .hub-legacy-hero .hero-cta { flex-direction: column; align-items: stretch; }
  .hub-legacy-hero .btn { width: 100%; min-height: 44px; }
  .hub-legacy-hero .trust { gap: 10px; }
}


/* Service detail pages use the same legacy hub hero shell, with the category background and the current service image on the right. */
.service-detail-legacy-hero { padding: 58px 0 50px; }
.service-detail-legacy-hero .breadcrumb { margin-bottom: 12px; }
.service-detail-legacy-hero .hero-title { max-width: 780px; }
.service-detail-legacy-hero .hero-image img { aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 900px) { .service-detail-legacy-hero { padding: 46px 0 42px; } }
@media (max-width: 640px) { .service-detail-legacy-hero { padding: 38px 0 34px; } }

/* 2026-06-15i — homepage-style typography, square hero media, trust icons, and mobile CTA cleanup */
.hub-legacy-hero,
.service-detail-legacy-hero {
  padding: 58px 0 46px;
}

.hub-legacy-hero .hero-row,
.service-detail-legacy-hero .hero-row {
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 430px);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

.hub-legacy-hero .hero-row > :first-child,
.service-detail-legacy-hero .hero-row > :first-child {
  padding-left: 10px;
}

.hub-legacy-hero .hero-title,
.service-detail-legacy-hero .hero-title {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.02;
  margin: 0 0 14px;
  color: #f9fafb;
  -webkit-text-stroke: 0;
  text-shadow: none;
  text-wrap: balance;
  max-width: min(760px, 100%);
}

.hub-legacy-hero .hero-sub,
.service-detail-legacy-hero .hero-sub {
  font-size: 15.5px;
  line-height: 1.7;
  color: #cbd5f5;
  max-width: 480px;
  margin-bottom: 18px;
}

.hub-legacy-hero .hero-cta,
.service-detail-legacy-hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.hub-legacy-hero .btn,
.service-detail-legacy-hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  min-height: 42px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.hub-legacy-hero .hero-proof,
.service-detail-legacy-hero .hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}

.hub-legacy-hero .hero-proof .trust-item,
.service-detail-legacy-hero .hero-proof .trust-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  backdrop-filter: blur(4px);
}

.hub-legacy-hero .hero-proof .trust-logo,
.service-detail-legacy-hero .hero-proof .trust-logo {
  display: block;
  height: 28px;
  width: auto;
}

.hub-legacy-hero .hero-proof .trust-logo-large,
.service-detail-legacy-hero .hero-proof .trust-logo-large {
  display: block;
  height: 32px;
  width: auto;
}

.hub-legacy-hero .hero-proof .trust-item--shield,
.service-detail-legacy-hero .hero-proof .trust-item--shield {
  gap: 8px;
  padding-right: 14px;
}

.hub-legacy-hero .hero-proof .trust-shield,
.service-detail-legacy-hero .hero-proof .trust-shield {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.hub-legacy-hero .hero-proof .trust-item--shield span,
.service-detail-legacy-hero .hero-proof .trust-item--shield span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.hub-legacy-hero .trust,
.service-detail-legacy-hero .trust {
  display: none !important;
}

.hub-legacy-hero .hero-image,
.service-detail-legacy-hero .hero-image {
  width: min(100%, 430px);
  margin-left: auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255,255,255,0.10);
  transform: none;
}

.hub-legacy-hero .hero-image img,
.service-detail-legacy-hero .hero-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.service-detail-legacy-hero .hero-title {
  max-width: min(760px, 100%);
}

@media (max-width: 900px) {
  .hub-legacy-hero,
  .service-detail-legacy-hero {
    padding: 48px 0 40px;
  }

  .hub-legacy-hero .hero-row,
  .service-detail-legacy-hero .hero-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hub-legacy-hero .hero-row > :first-child,
  .service-detail-legacy-hero .hero-row > :first-child {
    padding-left: 0;
  }

  .hub-legacy-hero .hero-title,
  .service-detail-legacy-hero .hero-title {
    max-width: 100%;
  }

  .hub-legacy-hero .hero-image,
  .service-detail-legacy-hero .hero-image {
    width: min(100%, 360px);
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hub-legacy-hero,
  .service-detail-legacy-hero {
    padding: 42px 0 34px;
  }

  .hub-legacy-hero .hero-title,
  .service-detail-legacy-hero .hero-title {
    font-size: clamp(50px, 12.2vw, 62px);
    font-weight: 900;
    line-height: .93;
    letter-spacing: -.03em;
    margin-bottom: 16px;
    max-width: 100%;
  }

  .hub-legacy-hero .hero-sub,
  .service-detail-legacy-hero .hero-sub {
    font-size: 14px;
    line-height: 1.6;
    max-width: 100%;
  }

  .hub-legacy-hero .hero-cta,
  .service-detail-legacy-hero .hero-cta {
    display: none !important;
  }

  .hub-legacy-hero .hero-proof,
  .service-detail-legacy-hero .hero-proof {
    gap: 10px;
  }

  .hub-legacy-hero .hero-proof .trust-item,
  .service-detail-legacy-hero .hero-proof .trust-item {
    min-height: 38px;
    padding: 6px 10px;
  }

  .hub-legacy-hero .hero-proof .trust-logo,
  .service-detail-legacy-hero .hero-proof .trust-logo {
    height: 24px;
  }

  .hub-legacy-hero .hero-proof .trust-logo-large,
  .service-detail-legacy-hero .hero-proof .trust-logo-large {
    height: 28px;
  }

  .hub-legacy-hero .hero-proof .trust-item--shield span,
  .service-detail-legacy-hero .hero-proof .trust-item--shield span {
    font-size: 11px;
  }

  .hub-legacy-hero .hero-image,
  .service-detail-legacy-hero .hero-image {
    width: min(100%, 310px);
  }
}

/* 2026-06-15j — keep service detail hero content aligned with service hub pages */
.service-detail-legacy-hero .container.hero-row {
  width: min(1180px, calc(100% - 64px));
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.service-detail-legacy-hero .hero-row > :first-child {
  padding-left: 0;
}

.service-detail-legacy-hero .hero-image {
  width: min(100%, 410px);
}

@media (min-width: 1500px) {
  .service-detail-legacy-hero .container.hero-row {
    width: min(1200px, calc(100% - 96px));
    max-width: 1200px;
  }
}

@media (max-width: 900px) {
  .service-detail-legacy-hero .container.hero-row {
    width: min(100%, calc(100% - 32px));
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .service-detail-legacy-hero .container.hero-row {
    width: min(100%, calc(100% - 24px));
  }
}

/* 2026-06-15k — fix hero title wrapping and hub/detail inner alignment */
.hub-legacy-hero .container.hero-row,
.service-detail-legacy-hero .container.hero-row {
  width: min(1180px, calc(100% - 64px));
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.hub-legacy-hero .hero-row,
.service-detail-legacy-hero .hero-row {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
  gap: clamp(28px, 3.2vw, 46px);
}

.hub-legacy-hero .hero-row > :first-child,
.service-detail-legacy-hero .hero-row > :first-child {
  padding-left: 0;
  min-width: 0;
}

.hub-legacy-hero .hero-title,
.service-detail-legacy-hero .hero-title,
.service-detail-legacy-hero .hero-title {
  max-width: min(760px, 100%) !important;
}

.hub-legacy-hero .hero-sub,
.service-detail-legacy-hero .hero-sub {
  max-width: min(620px, 100%);
}

.hub-legacy-hero .hero-image,
.service-detail-legacy-hero .hero-image {
  width: min(100%, 410px);
  margin-left: auto;
  margin-right: 0;
}

@media (min-width: 1500px) {
  .hub-legacy-hero .container.hero-row,
  .service-detail-legacy-hero .container.hero-row {
    width: min(1200px, calc(100% - 96px));
    max-width: 1200px;
  }
}

@media (max-width: 900px) {
  .hub-legacy-hero .container.hero-row,
  .service-detail-legacy-hero .container.hero-row {
    width: min(100%, calc(100% - 32px));
    max-width: 100%;
  }

  .hub-legacy-hero .hero-row,
  .service-detail-legacy-hero .hero-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-legacy-hero .hero-title,
  .service-detail-legacy-hero .hero-title {
    max-width: 100% !important;
  }

  .hub-legacy-hero .hero-image,
  .service-detail-legacy-hero .hero-image {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 520px) {
  .hub-legacy-hero .container.hero-row,
  .service-detail-legacy-hero .container.hero-row {
    width: min(100%, calc(100% - 24px));
  }
}


/* DW_IMAGE_AUDIT_20260710: preserve service and hub hero photography */
/* Hub cover images are 4:3. Keep the full image visible instead of forcing a square crop. */
.hub-legacy-hero:not(.service-detail-legacy-hero) .hero-image {
  width: min(100%, 410px);
}
.hub-legacy-hero:not(.service-detail-legacy-hero) .hero-image img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}
/* Most service-detail cover images are square. These three source images are landscape. */
.service-detail-legacy-hero[data-service="commercial-door-repair"] .hero-image img,
.service-detail-legacy-hero[data-service="commercial-glass-repair"] .hero-image img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}
.service-detail-legacy-hero[data-service="window-crank"] .hero-image img {
  aspect-ratio: 1000 / 809;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

/* Wave 1 mobile heroes keep the verified copy and primary action above the fold. */
@media (max-width: 768px) {
  body.service-wave1 .service-detail-legacy-hero {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  body.service-wave1 .service-detail-legacy-hero .hero-image {
    display: none;
  }

  body.service-wave1 .service-detail-legacy-hero .hero-title {
    margin-bottom: 12px;
    font-size: clamp(34px, 9.5vw, 42px);
    line-height: 0.98;
  }

  body.service-wave1 .service-detail-legacy-hero .hero-sub {
    margin-bottom: 14px;
    font-size: 13.5px;
    line-height: 1.5;
  }

  body.service-wave1 .service-detail-legacy-hero .hero-proof {
    gap: 6px;
  }

  body.service-wave1 .service-detail-legacy-hero .hero-proof .trust-item {
    min-height: 34px;
    padding: 4px 8px;
  }
}
