/* concept-a.css — Concept A "Shop Floor" layout.
   Dark garage hall: full-bleed hero under work-light scrim, steel trust
   band, stenciled service plates, and the signature before/after slider.
   Visual values reference design-tokens-a.css only. */

/* --- Hero: full-bleed shop floor, headline stacked bottom-left --- */

.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-scrim);
}
.hero-inner {
  padding-block: var(--s-14) var(--s-12);
  display: grid;
  gap: var(--s-6);
  max-width: 44rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  justify-self: start;
  font-size: var(--text-xs);
  font-weight: var(--w-semibold);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--heading);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  padding: var(--s-2) var(--s-4);
  background: var(--chip-bg);
}
.hero h1 { font-size: var(--text-hero); }
.hero .lede { color: var(--text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-4); }

@media (max-width: 720px) {
  .hero { align-items: flex-end; min-height: 88vh; }
  .hero::after { background: var(--hero-scrim-mobile); }
}

/* Stacked on a phone, the two hero CTAs must match width or the pair reads
   as a primary button with a stray link under it. */
@media (max-width: 560px) {
  .hero-ctas { display: grid; grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}

/* --- Trust band: riveted steel strip --- */

.trust {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  /* brushed-steel cue: hairline horizontal grain, traces to rolled metal */
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0px, transparent 3px,
    var(--steel-line) 3px, var(--steel-line) 4px
  );
}
.trust .shell {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: var(--s-8);
}
.trust-item {
  padding-inline: var(--s-6);
  border-left: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: var(--s-1);
}
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-num {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  text-transform: var(--display-case);
  font-size: var(--text-stat);
  line-height: 1;
  color: var(--accent);
}
.trust-label {
  font-size: var(--text-sm);
  font-weight: var(--w-semibold);
  color: var(--heading);
}
.trust-sub { font-size: var(--text-xs); color: var(--text-mute); }

@media (max-width: 860px) {
  .trust .shell { grid-template-columns: 1fr 1fr; gap: var(--s-6) 0; }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* --- Trade strip: painted wall sign creeping with scroll (from concept E) --- */

.strip-band {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding-block: var(--s-8);
}
.strip-track {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  width: max-content;
  will-change: transform;
}
.strip-word {
  font-family: var(--font-strip);
  font-weight: var(--w-strip);
  font-size: var(--text-strip);
  line-height: 1;
  letter-spacing: var(--track-strip);
  white-space: nowrap;
}
.strip-dot {
  flex: none;
  width: 0.35em;
  height: 0.35em;
  font-size: var(--text-strip);
  background: var(--field-yellow);
}

/* --- Services: Carbon tiles (from concept E, dark skin) --- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.tile {
  background: var(--bg-zone);
  border: 1px solid var(--line);
  border-bottom: var(--tile-bar) solid transparent;
  padding: var(--s-6);
  min-height: 11rem;
  display: grid;
  gap: var(--s-3);
  align-content: start;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tile:hover { background: var(--bg-zone-hover); border-bottom-color: var(--accent); }
.tile h3 { font-size: var(--text-lg); }
.tile p { color: var(--text-mute); font-size: var(--text-sm); }
.tile-yellow { background: var(--field-yellow); border-color: var(--field-yellow); }
.tile-yellow:hover { background: var(--field-yellow); border-bottom-color: var(--on-yellow); }
.tile-yellow h3, .tile-yellow p { color: var(--on-yellow); }

@media (max-width: 960px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tile-grid { grid-template-columns: 1fr; } }

/* --- SIGNATURE: before/after turnaround slider --- */

.ba-section { background: var(--bg-deep); border-block: 1px solid var(--line); }
.ba-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  touch-action: pan-y;
}
.ba-frame img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.ba-before {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* width follows --pos (0-100) set by the range input */
  clip-path: inset(0 calc(100% - var(--pos, 50) * 1%) 0 0);
}
.ba-before img { filter: var(--ba-before-filter); }
.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--pos, 50) * 1%);
  width: 2px;
  margin-left: -1px;
  background: var(--ba-handle-line);
  pointer-events: none;
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: calc(var(--pos, 50) * 1%);
  transform: translate(-50%, -50%);
  width: var(--s-12);
  height: var(--s-12);
  border-radius: 50%;
  background: var(--ba-handle);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-weight: var(--w-bold);
  font-size: var(--text-md);
  box-shadow: var(--shadow-1);
  pointer-events: none;
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.ba-label {
  position: absolute;
  bottom: var(--s-4);
  z-index: 2;
  font-size: var(--text-xs);
  font-weight: var(--w-semibold);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--heading);
  background: var(--ba-label-bg);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.ba-label-before { left: var(--s-4); }
.ba-label-after { right: var(--s-4); }
.ba-hint {
  margin-top: var(--s-4);
  font-size: var(--text-sm);
  color: var(--text-faint);
}

/* --- Work gallery: photography windows with depth drift (from concept C) --- */

.gallery-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
.work-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.work-window img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* --shift is set per-frame by the scroll engine; static zoom without JS */
  transform: translate3d(0, var(--shift, 0), 0) scale(var(--drift-scale));
  will-change: transform;
}
.work-window:first-child, .work-window:last-child { grid-column: 1 / -1; }
.work-window:first-child img, .work-window:last-child img { aspect-ratio: 21 / 9; }
.gallery-note { margin-top: var(--s-8); font-size: var(--text-sm); color: var(--text-faint); }

@media (max-width: 720px) {
  .gallery-wall { grid-template-columns: 1fr; }
  .work-window img, .work-window:first-child img, .work-window:last-child img { aspect-ratio: 3 / 2; }
}

/* --- Estimate --- */

.estimate { background: var(--surface); border-block: 1px solid var(--line); }
.estimate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: start;
}
.estimate-form { display: grid; gap: var(--s-5); }
.estimate-aside { display: grid; gap: var(--s-6); align-content: start; }
.call-block {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-2);
  background: var(--bg-deep);
}
.call-block .call-label { font-size: var(--text-sm); color: var(--text-mute); }
.call-block a {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  text-transform: var(--display-case);
  font-size: var(--text-xl);
  color: var(--heading);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--dur) var(--ease);
}
.call-block a:hover { color: var(--accent); }

@media (max-width: 860px) { .estimate-grid { grid-template-columns: 1fr; } }

/* --- Hours list (rendered into the sign-off footer) --- */

.hours-list { display: grid; gap: var(--s-1); }
.hours-list div { display: flex; justify-content: space-between; gap: var(--s-6); max-width: 20rem; }
.hours-list .t { color: var(--heading); }

/* --- Section-local spacing (kept out of markup) --- */
.ba-section .gallery-wall { margin-top: var(--s-10); }
.estimate .sec-head { margin-bottom: 0; }
.estimate .estimate-aside { margin-top: var(--s-8); }

/* --- Reduced motion: grafted choreography renders settled --- */
@media (prefers-reduced-motion: reduce) {
  .strip-track { transform: none !important; }
  .work-window img { transform: none; }
}

/* --- Standalone pages: compact page hero --- */

.page-hero {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  padding-block: var(--s-14) var(--s-12);
}
.page-hero .shell {
  display: grid;
  gap: var(--s-4);
  max-width: var(--maxw);
}
.page-hero h1 { font-size: var(--text-2xl); max-width: 24ch; }
.page-hero .lede { margin-top: var(--s-2); }

/* --- Services ledger (services page): six trades, one numbered row each.
   Alternating photo sides give the page its own scroll rhythm so it never
   reads as the home-page tile grid relocated. --- */

.ledger { display: grid; }
.ledger-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-12);
  align-items: center;
  padding-block: var(--s-12);
  border-top: 1px solid var(--line);
}
.ledger-row:first-child { border-top: 0; padding-top: 0; }
.ledger-row:nth-child(even) .ledger-photo { order: -1; }
.ledger-copy {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
  max-width: var(--maxw-text);
}
.ledger-num {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: var(--text-stat);
  line-height: 1;
  color: var(--accent);
}
.ledger-copy h2 { font-size: var(--text-2xl); }
.ledger-copy p { color: var(--text-mute); }
.ledger-chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.ledger-chips li {
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--w-semibold);
  letter-spacing: var(--track-wide);
  color: var(--text-mute);
}
.ledger-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: var(--w-semibold);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  transition: color var(--dur) var(--ease);
}
.ledger-link::after { content: "\2192"; text-decoration: none; }
.ledger-link:hover { color: var(--accent-strong); }
.ledger-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.ledger-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 860px) {
  .ledger-row { grid-template-columns: 1fr; gap: var(--s-6); padding-block: var(--s-10); }
  .ledger-row:nth-child(even) .ledger-photo { order: 0; }
}

/* --- Service detail: copy beside the shop photo --- */

.service-detail .shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-12);
  align-items: start;
}
.service-copy {
  display: grid;
  gap: var(--s-5);
  max-width: var(--maxw-text);
}
.service-copy h2 { font-size: var(--text-lg); margin-top: var(--s-4); }
.service-photo {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.service-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.service-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}
.service-list li {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  color: var(--text);
}
.service-list li::before {
  content: "";
  flex: none;
  width: 0.5em;
  height: 0.5em;
  background: var(--accent);
}

@media (max-width: 860px) {
  .service-detail .shell { grid-template-columns: 1fr; }
  .service-photo { order: -1; }
}

/* --- CTA band: the one next step on every standalone page --- */

.cta-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.cta-band .shell {
  display: grid;
  gap: var(--s-6);
  justify-items: start;
}
.cta-band h2 { font-size: var(--text-2xl); }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
}

/* --- Other services rail (service pages) --- */

.other-services {
  border-top: 1px solid var(--line);
  padding-block: var(--s-12);
}
.other-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.other-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s-2) var(--s-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--w-semibold);
  letter-spacing: var(--track-wide);
  color: var(--text-mute);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.other-link:hover { border-color: var(--accent); color: var(--accent); }
.other-services .sec-head { margin-bottom: var(--s-6); }

/* --- Footer: big brand sign-off --- */
/* The stacked sign closes the page as a physical object. Overrides the
   base.css footer skeleton (same specificity, later in the cascade). */
.footer-signoff {
  background: var(--bg-deep);
  padding-block: var(--s-14) var(--s-10);
}
.footer-signoff .footer-grid {
  display: grid;
  /* Fixed sign track: an auto track collapses here because the img width
     is a percentage of the track (cyclic), then overflows it. */
  /* Visit column gets the larger share so the email address fits unbroken. */
  grid-template-columns: 300px 1.25fr 1fr minmax(240px, 280px);
  gap: var(--s-10) var(--s-12);
  align-items: start;
  margin-bottom: var(--s-12);
}
.footer-sign {
  width: min(300px, 100%);
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.footer-col { display: grid; gap: var(--s-4); align-content: start; justify-items: start; }
.footer-head {
  font-size: var(--text-xs);
  font-weight: var(--w-semibold);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--accent);
}
.footer-addr { color: var(--heading); font-size: var(--text-md); line-height: var(--leading-body); }
.footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: var(--text-xl);
  letter-spacing: var(--track-display);
  color: var(--heading);
  transition: color var(--dur) var(--ease);
}
.footer-phone:hover { color: var(--accent); }
.footer-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  /* One step smaller so the address never breaks mid-token: the hours
     column's nowrap floor caps this column near 183px at desktop width. */
  font-size: var(--text-xs);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.footer-email:hover { color: var(--accent); }
/* Drawn locator map tile: the whole tile is the directions link. */
.footer-map {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  padding: var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color var(--dur) var(--ease);
}
.footer-map:hover { border-color: var(--accent); }
.footer-map-art { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.footer-map-art .map-minor line { stroke: var(--line); stroke-width: 1.5px; }
.footer-map-art .map-street { stroke: var(--line-strong); stroke-width: 2.5px; }
.footer-map-art .map-main { stroke: var(--accent); stroke-width: 3.5px; }
.footer-map-art .map-label {
  fill: var(--text-mute);
  font-family: var(--font-body);
  font-size: 10px; /* SVG user units: scales with the drawing */
  letter-spacing: var(--track-wide);
}
.footer-map-art .map-pin-ring { fill: none; stroke: var(--accent); opacity: 0.35; }
.footer-map-art .map-pin-drop { fill: var(--accent); }
.footer-map-art .map-pin-dot { fill: var(--on-accent); }
.footer-map-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: var(--w-semibold);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  transition: color var(--dur) var(--ease);
}
.footer-map:hover .footer-map-cta { color: var(--accent-strong); }
.footer-signoff .hours-list { font-size: var(--text-md); }
.footer-signoff .hours-list div { width: 100%; }
/* Short factual lines: never break mid-phrase in the narrow columns. */
.footer-signoff .hours-list span,
.footer-addr span { white-space: nowrap; }
.footer-signoff .footer-fine {
  border-top: 1px solid var(--line);
  padding-top: var(--s-6);
}
@media (max-width: 1100px) {
  /* Not enough width for four tracks: map drops to its own full row. */
  .footer-signoff .footer-grid { grid-template-columns: 300px 1fr 1fr; }
  .footer-map { grid-column: 1 / -1; width: min(360px, 100%); }
}
@media (max-width: 860px) {
  .footer-signoff .footer-grid { grid-template-columns: 1fr; }
  /* Single column: the sign centers instead of hugging the left gutter. */
  .footer-sign { margin-inline: auto; }
}
