/* The inventory, the work and the counter. Native pages share the shop's
   materials and typography; their layouts follow the task on each page. */

:is(.workshop-products, .workshop-fabrication, .quote-page) main h1,
:is(.workshop-products, .workshop-fabrication, .quote-page) main h2 {
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

:is(.workshop-products, .workshop-fabrication, .quote-page) .crumb {
  margin-bottom: 1.25rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
}

:is(.workshop-products, .workshop-fabrication, .quote-page) .phead__call {
  font-weight: 550;
}

.quote-page .quote__photo picture,
.quote-page .quote__photo img {
  display: block;
  width: 100%;
}
.quote-page .quote__photo img {
  height: auto;
  aspect-ratio: 4 / 3;
}
.quote-page .quote__photo figcaption {
  padding-top: 0.65rem;
  color: var(--ink-3);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Contact: a short full-bleed photo of the labeled remnant bins with the navy panel cut into it,
   then the four-field intake beside the shop details. At 1440 x 900 the form
   fields start on the first screen; on a 390px phone within one scroll. */
.quote-page .quote-hero { --bleed-focus: 50% 60%; min-height: clamp(24rem, 58svh, 33rem); }
/* A narrower panel than the default so the navy bin labels stay in view. */
.quote-page .quote-hero .bleed-hero__panel { width: min(100%, calc(var(--gutter) + 37rem)); }
@media (min-width: 1761px) {
  .quote-page .quote-hero .bleed-hero__panel { width: calc((100vw - var(--page)) / 2 + var(--gutter) + 37rem); }
}
.quote-page .quote { padding-block: var(--section-compact) var(--section-y); background: var(--paper); }
.quote-page .quote__grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
  gap: var(--layout-gap);
  align-items: start;
}
.quote-page .quote__intake { min-width: 0; }
.quote-page .quote__intake > h2,
.quote-page .quote__aside > h2 {
  font-size: var(--type-sub);
  font-weight: var(--w-medium);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.quote-page .quote__promise {
  max-width: 62ch;
  text-wrap: balance;
  margin: 0.6rem 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-2);
}
/* Validation and keyboard focus scroll a field to the top: keep it and its label clear of the sticky header. */
.quote-page .form :is(input, textarea, button) { scroll-margin-top: calc(72px + 3.25rem); }
.quote-page .form { gap: 1.25rem; }
.quote-page .field { gap: 0.5rem; }
.quote-page .field label { font-size: 0.9rem; font-weight: var(--w-medium); }
.quote-page .field input { min-height: 52px; }
.quote-page .field textarea:not([readonly]) { min-height: 176px; }
.quote-page .field .hint { font-size: 0.8rem; line-height: 1.5; color: var(--ink-2); }
.quote-page .form__status { max-width: none; border-left-width: 1px; }

/* Send on the left, a customer's own words beside it. */
.quote-page .quote__submit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem var(--layout-gap);
  align-items: start;
  padding-top: 0.25rem;
}
.quote-page .form__actions { gap: 0.75rem; }
.quote-page .form__intro { max-width: 36ch; margin-top: 0.75rem; font-size: 0.88rem; }
.quote-page .quote__review {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 1px solid var(--rule-strong);
}
.quote-page .quote__review blockquote p {
  text-wrap: balance;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote-page .quote__review figcaption { margin-top: 0.6rem; }
.quote-page .form__note { max-width: 76ch; font-size: 0.8rem; line-height: 1.6; color: var(--ink-2); }

/* The shop details: a raised panel with the live status in the hours row. */
.quote-page .quote__aside {
  scroll-margin-top: calc(72px + 1rem);
  padding: clamp(1.25rem, 2.2vw, 2rem);
  border-radius: var(--radius-panel);
  background: var(--paper-raised);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.quote-page .quote__aside > h2 { margin-bottom: 1.1rem; }
@media (min-width: 821px) {
  /* The form runs longer than the details, so the details stay in view beside it. */
  .quote-page .quote__aside { position: sticky; top: calc(72px + 1.5rem); }
}
.quote-page .visit__rows { border-top: 1px solid var(--rule); }
.quote-page .visit__row {
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.85rem;
}
.quote-page .visit__row dt { padding-top: 0.22rem; font-size: 0.72rem; color: var(--ink-2); }
.quote-page .visit__row dd { font-size: 0.95rem; overflow-wrap: anywhere; }
.quote-page .visit__row dd > span { display: block; }
.quote-page .quote__clock { font-weight: var(--w-medium); }
.quote-page .quote__clock[data-shop-state='open'] { color: var(--accent); }
/* With JS the first line becomes the live status, so the weekday hours move to the next line. */
.quote-page .visit__row .quote__week { display: none; }
.quote-page .visit__row .quote__clock[data-shop-state] + .quote__week { display: block; }

/* Directions and the map facade share one row; the cookie note sits below both. */
.quote-page .quote__map {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.quote-page .quote__map .btn { min-height: 48px; padding-inline: 1.25rem; border-color: var(--control-border); }
.quote-page .quote__map .btn:hover { border-color: var(--ink); }
.quote-page .quote__mapbox:not([hidden]) { display: contents; }
.quote-page .quote__mapnote { flex-basis: 100%; font-size: 0.8rem; line-height: 1.5; color: var(--ink-2); }
.quote-page .quote__mapbox iframe {
  order: -1;
  flex-basis: 100%;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius-control);
}

@media (max-width: 1080px) {
  .quote-page .quote__submit { grid-template-columns: 1fr; }
  .quote-page .visit__row { grid-template-columns: 1fr; gap: 0.35rem; }
}
@media (max-width: 820px) {
  .quote-page .quote__grid { grid-template-columns: 1fr; }
  .quote-page .visit__row { grid-template-columns: 5.25rem minmax(0, 1fr); gap: 1rem; }
}
/* Tablets stack like phones: the panel would otherwise cover the bin labels. */
@media (min-width: 761px) and (max-width: 1000px) {
  .quote-page .quote-hero { display: block; min-height: 0; background: #284080; }
  .quote-page .quote-hero .bleed-hero__photo { position: relative; z-index: auto; aspect-ratio: 21 / 9; }
}
@media (max-width: 760px) {
  .quote-page .quote-hero .bleed-hero__photo { aspect-ratio: 3 / 1; }
  .quote-page .quote-hero .bleed-hero__panel { width: 100%; border-radius: 0; }
}
@media (max-width: 760px) {
  .quote-page .quote-hero { min-height: 0; }
  .quote-page .quote-hero h1 { font-size: clamp(2.6rem, 11vw, 3.5rem); }
  .quote-page .quote-hero .bleed-hero__panel { padding-block: 1.5rem 1.75rem; }
  .quote-page .quote-hero .bleed-hero__lead { margin-top: 0.75rem; }
  .quote-page .quote-hero .bleed-hero__actions { gap: 0.25rem 1.25rem; margin-top: 0.9rem; }
  .quote-page .quote-hero .tlink { min-height: 44px; }
}
@media (max-width: 620px) {
  .quote-page .form__actions .btn { flex: 1 1 auto; padding-inline: 1rem; }
  .quote-page .visit__row { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* The new composition hooks remain static without the optional motion layer. */

@media (max-width: 1080px) {
}
@media (max-width: 620px) {
  :is(.workshop-products, .workshop-fabrication, .quote-page) .crumb { margin-bottom: 1.35rem; }
}
