/* ═══════════════════════════════════════════════════════════════
   LUNAR INSPECTIONS — CATEGORY HUB LAYER
   Extends site-core.css. Shared by the four /services/<category>/
   hubs: photographic hero, child-service rail, scope-boundary cards.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Photographic hero ─────────────────────────────────────────
   Image-forward header adapted from source-template/about/index.html
   (h7-hero image banner). A full-bleed photo backs the whole hero;
   a horizontal scrim seats the copy on a dark left panel and clears
   to the photo on the right (subject shifted into that clear zone).
   Distinct from the homepage (centred stage) and from the service /
   landing pages (split hero with booking card).                    */
.hero-hub {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(500px, 58vh, 660px);
  padding: 0 0 clamp(28px, 3vw, 40px);
  overflow: hidden;
}
.hero-hub .container { position: relative; z-index: 2; }

/* Full-bleed photo — no exposed section edge, so no vertical seam. */
.hub-media { position: absolute; inset: 0; z-index: 0; }
.hub-media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 44%; }
/* Layer 1 (horizontal): opaque brand-black under the copy, clearing
   to the photo past ~58%. Layer 2 (vertical): a light top wash for
   the nav and a strong bottom fade so the hero seats on the page. */
.hub-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #02030a 0%, rgba(2,3,10,0.97) 30%, rgba(2,3,10,0.72) 52%, rgba(2,3,10,0.34) 74%, rgba(2,3,10,0.18) 100%),
    linear-gradient(180deg, rgba(2,3,10,0.55) 0%, transparent 26%, transparent 60%, rgba(2,3,10,0.9) 100%);
}
.hub-media .hub-caption {
  position: absolute; right: 22px; bottom: 20px; z-index: 1;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.86);
  background: rgba(2,3,10,0.6); border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hub-media .hub-caption i { color: var(--accent-cyan); }

.hero-hub .breadcrumb { padding-top: clamp(20px, 3vw, 34px); }
.hub-copy { max-width: 620px; padding-top: clamp(16px, 2vw, 26px); }
.hub-copy .hero-sub { max-width: 540px; }
.hub-copy .hero-trust { border-top-color: rgba(255,255,255,0.16); }

.hero-hub #hero-h1 { line-height: 1.04; }
.hero-hub #hero-h1 .h1-svc { display: block; color: #fff; }
.hero-hub #hero-h1 .h1-hook {
  display: block; margin-top: 0.28em;
  font-size: 0.5em; font-weight: 500; letter-spacing: -0.01em;
  color: rgba(255,255,255,0.78);
}
.hero-hub #hero-h1 .h1-hook .grad {
  background: linear-gradient(135deg, #8ab4f8 0%, #22d3ee 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (max-width: 720px) { .hero-hub #hero-h1 .h1-hook { font-size: 0.6em; } }

/* Below the split point the copy needs the whole width dark, and the
   subject re-centres so it isn't lost behind the rail. */
@media (max-width: 1000px) {
  .hero-hub { min-height: clamp(440px, 74vw, 560px); padding-bottom: clamp(24px, 5vw, 36px); }
  .hub-media img { object-position: 60% 42%; }
  .hub-media::after {
    background:
      linear-gradient(90deg, rgba(2,3,10,0.95) 0%, rgba(2,3,10,0.82) 55%, rgba(2,3,10,0.6) 100%),
      linear-gradient(180deg, rgba(2,3,10,0.72) 0%, rgba(2,3,10,0.42) 32%, rgba(2,3,10,0.96) 100%);
  }
  .hub-media .hub-caption { display: none; }
  .hub-copy { max-width: none; padding-top: 26px; }
}

/* ─── Child-service rail (replaces the hero booking panel) ────── */
.hub-rail {
  position: relative; z-index: 2;
  margin-top: clamp(30px, 4vw, 46px);
  display: grid; grid-template-columns: repeat(var(--rail-cols, 4), minmax(0, 1fr)); gap: 12px;
  padding: 14px; border-radius: var(--radius-lg);
  background: rgba(10,14,26,0.72); border: 1px solid var(--border-card);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hub-rail.cols-2 { --rail-cols: 2; max-width: 720px; }
@media (max-width: 980px) { .hub-rail { --rail-cols: 2; } }
@media (max-width: 560px) { .hub-rail, .hub-rail.cols-2 { --rail-cols: 1; } }

.hub-rail a {
  display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px;
  padding: 13px 14px; border: 1px solid transparent; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.hub-rail a:hover { border-color: rgba(66,133,244,0.45); background: var(--bg-card-hover); transform: translateY(-3px); }
.hub-rail .qi {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 15px;
  background: linear-gradient(135deg, rgba(66,133,244,0.2), rgba(34,211,238,0.1));
  color: var(--accent-light); border: 1px solid rgba(66,133,244,0.25);
}
.hub-rail strong { display: block; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; }
.hub-rail span.d { display: block; color: var(--text-muted); font-size: 11.5px; line-height: 1.35; }
.hub-rail .go { color: var(--accent-light); font-size: 13px; }

/* ─── Assurance row (button-only final CTA) ────────────────────── */
.cta-assure {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border-subtle);
}
.cta-assure span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-tertiary); }
.cta-assure i { color: var(--accent-cyan); font-size: 12px; }
.cta-aside { margin-top: 26px; font-size: 14px; color: var(--text-muted); }
.cta-aside a { color: var(--accent-light); font-weight: 500; }
.cta-aside a:hover { text-decoration: underline; }

/* Scope boundaries (what this is / what it is not) */
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .scope-grid { grid-template-columns: 1fr; } }
.scope-card { border-radius: var(--radius-lg); padding: 28px 26px; border: 1px solid var(--border-card); background: var(--bg-card); }
.scope-card.is-yes { border-color: rgba(34,211,238,0.3); }
.scope-card.is-no { border-color: rgba(255,255,255,0.12); }
.scope-card h3 { font-size: 17px; color: #fff; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.scope-card.is-yes h3 i { color: var(--accent-cyan); }
.scope-card.is-no h3 i { color: var(--text-muted); }
.scope-card ul { display: flex; flex-direction: column; gap: 10px; }
.scope-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-tertiary); line-height: 1.55; }
.scope-card.is-yes li i { color: var(--accent-cyan); font-size: 12px; padding-top: 5px; }
.scope-card.is-no li i { color: var(--text-muted); font-size: 12px; padding-top: 5px; }

/* Bundle / deliverable stack panel */
.report-card-stack {
  background: linear-gradient(180deg, rgba(66,133,244,0.10) 0%, rgba(22,28,48,0.9) 100%);
  border: 1px solid rgba(66,133,244,0.28); border-radius: var(--radius-lg); padding: 30px 28px;
}
.report-card-stack .std-list { margin-top: 0; }

/* ─── Service-areas hub: county coverage cards ──────────────────
   One card per county; linked communities render as accent chips
   with an arrow, service-only communities as muted chips. Rhymes
   with .related-card (icon chip, radius, border) and the sitewide
   pill vocabulary. */
.county-stack { display: flex; flex-direction: column; gap: clamp(18px, 2.2vw, 26px); }
.county-card {
  border: 1px solid var(--border-card); border-radius: var(--radius-lg);
  background: var(--bg-card); padding: clamp(22px, 2.8vw, 34px);
}
.county-head {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.county-ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 18px;
  color: var(--accent-light);
  background: linear-gradient(135deg, rgba(66,133,244,0.16) 0%, rgba(34,211,238,0.08) 100%);
  border: 1px solid rgba(66,133,244,0.28);
}
.county-meta h3 { font-size: 20px; color: #fff; letter-spacing: -0.01em; margin: 2px 0 0; }
.county-meta p { color: var(--text-tertiary); font-size: 13.5px; margin: 4px 0 0; }
.county-side { margin-left: auto; align-self: center; }
.county-count {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle); background: var(--bg-glass); white-space: nowrap;
}
.county-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-light); font-weight: 600; font-size: 14px; text-decoration: none;
}
.county-link:hover { color: #fff; }
.county-link i { font-size: 11px; }
.loc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.loc-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-pill);
  font-size: 14px; line-height: 1.2; text-decoration: none;
  color: var(--text-primary);
  border: 1px solid rgba(66,133,244,0.36); background: rgba(66,133,244,0.10);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.loc-chip i { font-size: 10.5px; color: var(--accent-light); transition: transform var(--transition-fast); }
a.loc-chip:hover { transform: translateY(-2px); border-color: rgba(66,133,244,0.65); background: rgba(66,133,244,0.18); }
a.loc-chip:hover i { transform: translateX(2px); }
a.loc-chip:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.loc-chip--plain {
  color: var(--text-secondary);
  border-color: var(--border-subtle); background: var(--bg-glass);
}
@media (prefers-reduced-motion: reduce) {
  a.loc-chip, .loc-chip i { transition: none; }
  a.loc-chip:hover { transform: none; }
  a.loc-chip:hover i { transform: none; }
}
@media (max-width: 560px) {
  .county-side { margin-left: 62px; align-self: flex-start; }
  .loc-chip { font-size: 13px; padding: 8px 13px; }
}
