/* homea.css (2026-11-03): home page, mockup A "Photo first" shipped as the real home. Full-bleed trench photo, black band with heading and phone, calm 3 up service row, white reviews band. Linked after compd.css. Black, white, the logo and call buttons red only. */
body.home-a { --a-arch: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #000; font-size: 1.0625rem; }
.home-a main picture { display: block; }
.home-a main picture img { height: auto; }
@media (min-width: 761px) { .home-a .main-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.a-hero { padding: 0; }
.a-photo { margin: 0; }
.a-frame { position: relative; display: block; width: 100%; height: clamp(240px, 58vh, 560px); overflow: hidden; container-type: size; }
.home-a .a-photo picture { position: absolute; inset: 0; }
.home-a .a-photo picture img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* Plan-sheet overlay on the hero (same look as the plan sheets). --py is the image object-position y so markers track the crop. */
.compd .a-frame .d-ov { display: block; }
.compd .a-frame .d-co { top: calc((100cqh - var(--H)) * var(--py, 0.5) + var(--H) * var(--y)); }
.a-band { background: #000; border-top: 1px solid #fff; }
.a-band-in { display: grid; gap: 1.25rem 3rem; align-items: end; padding-top: 1.5rem; padding-bottom: 1.75rem; }
body.home-a main .a-h1 { margin: 0; display: grid; gap: 0.15rem; font-family: var(--a-arch) !important; font-stretch: 100% !important; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.06; letter-spacing: -0.01em; color: #fff; }
body.home-a main .a-h1 span { font-family: var(--a-arch) !important; font-stretch: 100% !important; }
body.home-a main .a-l1 { font-weight: 300; }
body.home-a main .a-l2 { font-weight: 800; letter-spacing: -0.02em; }
.a-kick { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 400; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.5rem; }
.a-side { display: grid; gap: 0.6rem; }
.a-tel { display: flex; flex-direction: column; gap: 0.25rem; min-height: 44px; color: #fff; text-decoration: none; }
.a-k { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.a-n { font-family: var(--a-arch); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.a-tel:hover .a-n { text-decoration-thickness: 4px; }
.a-tel:focus-visible, .a-tile:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.a-facts { margin: 0; font-size: 0.9375rem; color: #fff; }
@media (min-width: 901px) { .a-band-in { grid-template-columns: minmax(0, 1fr) auto; } .a-tel { align-items: flex-end; text-align: right; } .a-facts { text-align: right; } }

.a-svc { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3.25rem); }
.a-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.a-tile { display: block; color: #fff; text-decoration: none; }
.a-tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 0.9rem; }
.a-name { display: block; font-family: var(--a-arch); font-weight: 800; font-size: 1.125rem; line-height: 1.2; margin-bottom: 0.3rem; }
.a-line { display: block; font-size: 1rem; line-height: 1.5; color: #e4e4e4; }
.a-tile:hover .a-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
/* VIP row (2026-11-03): the Diagnostic tile shows the whole 3:4 VIP photo, so every tile on its row goes 3:4 and the row
   stays even. Stacked on phones, the neighbours go back to 3:2 and only the VIP stays 3:4. */
.a-row-tall .a-tile img, .a-tile-whole img { aspect-ratio: 3 / 4; }
@media (max-width: 760px) {
  .a-row-tall .a-tile:not(.a-tile-whole) img { aspect-ratio: 3 / 2; }
  .a-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .a-frame { height: clamp(220px, 40vh, 320px); }
}

/* Reviews band (Andy 2026-11-03: "smaller and matches white site, not blue"): white, black type, black hairlines, compact;
   the Google G and the yellow stars are the only colour. */
.a-rev { background: #fff; color: #000; padding: clamp(0.85rem, 1.6vw, 1.1rem) 0; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.a-rev-score { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.85rem; min-height: 44px; color: #000; text-decoration: none; margin-bottom: clamp(0.5rem, 1vw, 0.7rem); }
.a-rev-score svg { width: 28px; height: 28px; }
.a-rev-score:focus-visible { outline: 3px solid #000; outline-offset: 4px; }
.a-rev-n { font-family: var(--a-arch); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1; letter-spacing: -0.03em; color: #000; }
.a-rev-stars { font-size: clamp(1rem, 1.5vw, 1.2rem); letter-spacing: 0.06em; line-height: 1; color: #FBBC05; }
.a-rev-c { font-size: 0.9rem; color: #000; text-decoration: underline; text-underline-offset: 4px; }
.a-rev-score:hover .a-rev-c { text-decoration-thickness: 2px; }
.a-rev-grid { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: clamp(1rem, 2.5vw, 2.25rem); border-top: 1px solid #000; padding-top: clamp(0.6rem, 1vw, 0.8rem); }
.a-rev-grid figure { margin: 0; }
.a-rev-grid blockquote { margin: 0; font-family: var(--a-arch); font-weight: 600; font-size: clamp(0.85rem, 0.95vw, 0.9rem); line-height: 1.35; letter-spacing: -0.01em; color: #000; }
.a-rev-grid figcaption { margin-top: 0.2rem; font-size: 0.8rem; font-weight: 700; color: #000; }
@media (max-width: 900px) { .a-rev-grid { grid-template-columns: 1fr; gap: 0.7rem; } .a-rev-grid figure + figure { border-top: 1px solid #000; padding-top: 0.7rem; } }
.home-a .d-psheet { background: #000; }

/* ===== Rollout 2026-11-03: the same hero on every inner page. Shorter photo, the plan-sheet layer with one black sheet tag (no callouts, so nothing can point at the wrong thing), the black band with kicker, title, one line and the phone. ===== */
.a-hero-p .a-frame { height: clamp(220px, 40vh, 400px); }
.a-tag { position: absolute; left: clamp(0.75rem, 2vw, 1.5rem); bottom: clamp(0.75rem, 2vw, 1.25rem); display: inline-flex; align-items: center; max-width: calc(100% - 1.5rem); overflow: hidden;
  padding-right: 0.55rem; background: #000; border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.72rem; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; }
.a-tag b { font-weight: 400; padding: 0.3rem 0.55rem; margin-right: 0.55rem; border-right: 1px solid rgba(255, 255, 255, 0.55); }
.a-hero-p .a-h1 { gap: 0.35rem; }
body.home-a main .a-hero-p .a-h1 .a-l2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.a-lede { margin: 0.75rem 0 0; max-width: 46ch; font-size: 1.0625rem; line-height: 1.5; color: #e4e4e4; }
.a-lede em { font-style: normal; }
@media (max-width: 700px) { .a-tag { font-size: 0.66rem; } }
.a-fig { margin: 0; }
.a-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 0.75rem; }
/* Phone crop of a hero (2026-11-03): when the -m image has another shape, --Am is its aspect and --xm/--ym put each
   callout on the same object in that crop. Pages without them keep the desktop values. */
@media (max-width: 700px) {
  .compd .a-frame .d-ov[style*="--Am"] { --W: max(100cqw, calc(100cqh * var(--Am))); --H: max(100cqh, calc(100cqw / var(--Am))); }
  .compd .a-frame .d-co[style*="--xm"] { left: calc((100cqw - var(--W)) * 0.5 + var(--W) * var(--xm)); top: calc((100cqh - var(--H)) * var(--py, 0.5) + var(--H) * var(--ym)); }
}
