/* Phoenix Drywall · service pages, direction C (website/redesign/BUILD-C.md §5; round 8, 6 Nov 2026). Loaded after inner.css on /services
   and the eight /services/* pages (and, for the compatibility part, on the project, area and about pages that
   still use the old svc-* classes). The inner page system itself is inner.css; this file is only what the service
   layout (Service.astro) and the hub add. Page-specific styles for the other seven service pages go in
   /css/services-pages.css (SERVICES-REST group). Base builder, 3 Nov 2026. */

/* ============================================================ 1. SERVICE LAYOUT ==== */
/* the intro right under the fold (Service.astro, round 8): the page's lede, then its own list (slot "head"): one under
   the other on phones, side by side on desktop (lede 5fr, list 7fr), tops aligned */
.svc-intro__b { margin-top: 24px; }
.svc-intro__b > :first-child { margin-top: 0; }
.svc-intro__b > * + * { margin-top: 20px; }
.svc-intro .specrows { margin-top: 0; }
/* where we work: the page's own area sentence, then the three regions */
.svc-where .rows { margin-top: 24px; }
.svc-where .rows + .txt { margin-top: 20px; }
/* a reel in a photo row: muted, plays while on screen (loops.js), a labelled Pause (44px) */
.mrow__img.loop__frame { aspect-ratio: 4 / 5; }
.loop__toggle--text { width: auto; padding: 0 12px; font: 400 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
/* at the photo-row size the label would cover a quarter of the frame (fix 8): it sits under the frame instead, a
   44px text button, so the reel stays clear. <div class="mrow__media"><div class="frame mrow__img loop__frame">
   <video data-loop/></div><button class="loop__toggle loop__toggle--text loop__toggle--under">…</button></div>
   (also the projects' Stages.astro) */
.mrow__media { display: grid; align-content: start; min-width: 0; }
.loop__toggle--under { position: static; justify-self: start; place-items: center start; min-width: 44px; padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--fg2); }
@media (hover: hover) { .loop__toggle--under:hover { color: var(--fg); } }

@media (min-width: 1024px) {
  .svc-intro .svc-intro__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 96px; align-items: start; }
  .svc-intro__b { margin-top: 0; }
  .svc-where .rows { margin-top: 0; }
}

/* The fold's photo row (IFold, a shared component): its grid row was sized by the photo, so a photo taller than the
   fold hung from its top edge and object-position (pos / posD) did nothing; the subject sat under the copy or out of
   frame. One row the fold's height. (Reported to the shared group for inner.css; harmless once it is there too.) */
.ifold__media { grid-template-rows: minmax(0, 1fr); }
.ifold__media img { min-height: 0; }

/* ===================================================================== 2. THE HUB ==== */
/* /services, round 8 (6 Nov 2026; lab/round8/audit/funnel-services_hub_plan.md): What we do is the shared ServiceTiles
   (big photo tiles: project types, then trades), each tier under its own sub-head (their H2 "New build or renovation?",
   "Or pick a trade", the builders line as a note under the trades); Recent work is three of the home's project tiles (the first the column wide on phones) with
   the inline ask under them; Reviews: the rating beside two quotes on desktop (no photo, no sticky column). */
.hub-sub { margin: 0; max-width: 24ch; font: 300 24px/1.2 var(--display); letter-spacing: -.006em; color: var(--fg); text-wrap: balance; }
/* the builders line, a one-line note under the trade tiles (its "call Nicky" a 44px tap) */
.hub-note { margin: 18px 0 0; max-width: 52ch; font: 400 16px/1.5 var(--sans); color: var(--fg2); text-wrap: pretty; }
.hub-note a { display: inline-block; padding: 10px 0; margin: -10px 0; color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--line2); white-space: nowrap; }
@media (hover: hover) { .hub-note a:hover { text-decoration-color: currentColor; } }
/* the tiers: the sub-head 18px over its tiles (the section rhythm), the second tier 40px under the first */
.hub-what .svt__sub { margin: 0 0 14px; }
.hub-what .svt__grid--a + .svt__sub { margin-top: 32px; }
/* Recent work: the first job the column wide on phones (a 4:5 at 358px), the other two 2-up under it */
@media (max-width: 767px) { .hub-work > li:first-child { grid-column: 1 / -1; } .hub-work > li:first-child .tile__name { font-size: 22px; } }
.hub-work { margin-top: 0; }
/* Reviews: the H2 and the rating, then the two quotes */
.hub-revs .hub-rating.rating-line { margin-top: 20px; }
.hub-revs__b { margin-top: 28px; }
.hub-revs__b .voice:last-child { padding-bottom: 0; }
@media (min-width: 1024px) {
  .hub-sub { font-size: 32px; max-width: none; }
  .hub-note { margin-top: 28px; font-size: 18px; }
  .hub-what .svt__sub { margin-bottom: 24px; }
  .hub-what .svt__grid--a + .svt__sub { margin-top: 64px; }
  .hub-revs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 56px; align-items: start; }
  .hub-revs > .head { grid-column: 1 / -1; }
  .hub-revs__b { margin-top: 0; }
  .hub-revs__b .voice:first-child { padding-top: 0; border-top: 0; }
}

/* ============================================== 3. COMPATIBILITY (old svc-* bodies) ==== */
/* The old shared service classes, still used by pages not yet rebuilt in C (the seven service bodies, Area.astro,
   Project.astro, about): only the rules a page still uses (checked 3 Nov 2026), italics upright, hovers inside
   (hover: hover). The integrator deletes this section when no page uses it. */
.svc-head {padding-block: clamp(2.5rem, 6vw, 5rem) var(--sc-7); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.svc-head__copy {display: grid; gap: var(--sc-5); align-content: end; }
.svc-head__copy h1 {font-size: clamp(2.35rem, 1.5rem + 3.3vw, 4.15rem); line-height: 1.0; }
.svc-head__copy .lede {color: var(--sc-ink-soft); max-width: 34rem; }
.svc-head__photo {margin: 0; display: grid; gap: 0.7rem; }
.svc-head__photo img {width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 4 / 5; max-height: 62svh; background: var(--brand-dark-surface); }
.svc-head__photo figcaption {font-size: var(--sc-t-sm); color: var(--sc-ink-soft); line-height: 1.45; }
.band {padding-block: var(--sc-8); border-top: 1px solid var(--sc-hairline); scroll-margin-top: 6rem; }
.band--tight {padding-block: var(--sc-7); }
.band__head {display: grid; gap: var(--sc-3); max-width: 46rem; margin-bottom: var(--sc-6); }
.band__head .body {color: var(--sc-ink-soft); }
.band__split {display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.say {margin: 0; display: grid; gap: var(--sc-3); max-width: 44rem; padding-left: var(--sc-5); border-left: 1px solid var(--sc-hairline-strong); }
.say p {font-family: var(--sans); font-weight: 300; font-size: clamp(1.25rem, 2.4vw, 1.9rem); line-height: 1.25; margin: 0; color: var(--sc-ink); text-wrap: balance; }
.say figcaption {font-size: var(--sc-t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); }
.svc-foot {padding-block: var(--sc-8) var(--sc-9); display: grid; gap: var(--sc-8); }
.svc-cta {display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sc-6); align-items: center; padding-top: var(--sc-7); border-top: 1px solid var(--sc-hairline-strong); }
.svc-cta .body {color: var(--sc-ink-soft); max-width: 38rem; margin-top: var(--sc-4); }
.svc-cta__actions {display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.svc-others ul {list-style: none; margin: var(--sc-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.svc-others a {display: grid; gap: 0.6rem; text-decoration: none; color: var(--sc-ink-soft); }
.svc-others img {width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: cover; background: var(--brand-dark-surface); }
.svc-others b {font-weight: 400; font-size: var(--sc-t-sm); }
@media (hover: hover) { .svc-others a:hover {color: var(--sc-ink); } }
.svc-area {border-top: 1px solid var(--sc-hairline); padding-top: var(--sc-6); }
.svc-cta .svc-cta__contact {margin-top: var(--sc-3); }
.svc-cta__contact a {color: var(--sc-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; white-space: nowrap; }
.svc-faq {padding-block: var(--sc-8) 0; border-top: 1px solid var(--sc-hairline); scroll-margin-top: 6rem; }
.svc-faq .ch-head {margin-bottom: var(--sc-6); }
@media (max-width: 1100px) {
  .svc-others ul {grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .svc-head {grid-template-columns: minmax(0, 1fr); gap: var(--sc-6); }
  .svc-head__copy {max-width: none; }
  .svc-head__photo img {aspect-ratio: 3 / 2; max-height: 46svh; }
  .band__split {grid-template-columns: minmax(0, 1fr); }
  .svc-cta {grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .svc-others ul {grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-others li:last-child:nth-child(odd) {grid-column: 1 / -1; }
  .svc-others li:last-child:nth-child(odd) img {aspect-ratio: 2 / 1; }
  .svc-cta__actions .btn {flex: 1 1 auto; text-align: center; justify-content: center; }
}
.svc-head__list {list-style: none; margin: 0; padding: 0; counter-reset: hl; border-top: 1px solid var(--sc-hairline-strong); max-width: 36rem; }
.svc-head__list li {display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: baseline; gap: var(--sc-3); padding: 0.7rem 0; border-bottom: 1px solid var(--sc-hairline); font-family: var(--sc-font-display); font-size: clamp(1.2rem, 0.95rem + 0.9vw, 1.6rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--sc-ink); }
.svc-head__list li {counter-increment: hl; }
.svc-head__list li::before {content: counter(hl, decimal-leading-zero); font-family: var(--font-label); font-size: var(--sc-t-xs); letter-spacing: 0.1em; color: var(--sc-accent); }
.svc-head__list small {font-family: var(--sans); font-weight: 300; font-size: 0.72em; color: var(--mist); }
.svc-foot--last {padding-bottom: 0; }
