/* DoorWin service-hub-legacy-hero — maintained cascade, stage 7.2.
 * Source order, selector scope, responsive rules and interaction states are intentional.
 * Historical declarations fully superseded in the same scope have been removed.
 * Do not append override patches; edit the responsible component rule. */
.hub-legacy-hero { color: #fff; 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; }
.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 .accent { background: linear-gradient(120deg, #22d3ee, #38bdf8, #818cf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hub-legacy-hero .hero-sub { margin: 0 0 18px; font-weight: 400; letter-spacing: 0; text-shadow: none; }
.hub-legacy-hero .btn { 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 { 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 { transition: transform .5s ease; }
.hub-legacy-hero .hero-image:hover { transform: perspective(1000px) rotateY(0deg); }
.hub-legacy-hero .hero-image img { height: auto; 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::before { opacity: .18; }
}
@media (max-width: 640px) {
  .hub-legacy-hero .breadcrumb { font-size: 11px; letter-spacing: .12em; margin-bottom: 14px; }
  .hub-legacy-hero .hero-cta { flex-direction: column; }
  .hub-legacy-hero .btn { width: 100%; }
  .hub-legacy-hero .trust { gap: 10px; }
}
.service-detail-legacy-hero .breadcrumb { margin-bottom: 12px; }
.hub-legacy-hero,
.service-detail-legacy-hero { padding: 58px 0 46px; }
.hub-legacy-hero .hero-row,
.service-detail-legacy-hero .hero-row { align-items: center; }
.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; }
.hub-legacy-hero .hero-sub,
.service-detail-legacy-hero .hero-sub { font-size: 15.5px; line-height: 1.7; color: #cbd5f5; 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 { 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; }
@media (max-width: 900px) {
  .hub-legacy-hero,
  .service-detail-legacy-hero { padding: 48px 0 40px; }
  .hub-legacy-hero .hero-image,
  .service-detail-legacy-hero .hero-image { 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(36px, 10.3vw, 44px); font-weight: 900; line-height: .98; letter-spacing: -.025em; margin-bottom: 16px; overflow-wrap: break-word; word-break: normal; }
  .hub-legacy-hero .hero-sub,
  .service-detail-legacy-hero .hero-sub { font-size: 14px; line-height: 1.6; }
  .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 .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 { 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)); }
}
.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; }
.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; }
@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; }
}
.service-detail-legacy-hero .service-scope-marker { display: inline-flex; align-items: center; width: max-content; max-width: 100%; margin: 0 0 12px; padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; background: rgba(15, 23, 42, .36); color: #dbeafe; font-size: .72rem; line-height: 1.2; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
@media (max-width: 640px) {
  .service-detail-legacy-hero .service-scope-marker { white-space: normal; font-size: .66rem; letter-spacing: .075em; }
}
@media (max-width: 768px) {
  .hub-legacy-hero::before { background-image: var(--legacy-hero-bg-mobile-url, var(--legacy-hero-bg-url)), radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px); }
}
