/* ==========================================================================
   sections/service-page.css — the master service-page layout.
   Reused by RV repair, living-quarters, general trailer repair and the
   short warranty variant. Section-specific pieces only; the hero, how-we-work
   steps, proof stats, before/after slot, slider buttons, closing form and
   lightbox are reused from the homepage's stylesheets.
   ========================================================================== */

/* --- Who this page talks to: two moments, addressed directly -------------- */
.audience {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background: var(--white);
  border-bottom: 1px solid var(--paper-edge);
}

/* The customer's own question, marked in red inside the intro copy */
.audience .section-head__intro q {
  color: var(--red-ink);
  quotes: '“' '”';
}

.audience__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Media card: a photo up top, the body below, joined into one unit */
.audience-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.audience-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-tint);
}

.audience-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audience-card__body {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.audience-card h3 {
  font-size: var(--step-1);
  margin-bottom: var(--sp-2);
}

.audience-card p { color: var(--ink-soft); }

/* White fill for the warranty "other situations" media cards */
.audience-card--white { background: var(--white); }

/* --- "Broken down now?" callout: an urgent moment, kept calm ------------- */
.callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
}

.callout__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}

/* The warning mark sits still, then gives a quick shake every few seconds so
   it reads as an alert without ever being distracting. */
.callout__icon svg {
  width: 26px;
  height: 26px;
  transform-origin: center;
  animation: alert-jiggle 4.5s var(--ease) infinite;
}

@keyframes alert-jiggle {
  0%, 84%, 100% { transform: rotate(0); }
  86% { transform: rotate(-10deg); }
  88% { transform: rotate(9deg); }
  90% { transform: rotate(-7deg); }
  92% { transform: rotate(5deg); }
  94% { transform: rotate(-3deg); }
  96% { transform: rotate(1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .callout__icon svg { animation: none; }
}
.callout__body h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.callout__body p { color: var(--ink-soft); max-width: 52ch; }
.callout__cta { white-space: nowrap; }

@media (max-width: 720px) {
  .callout {
    grid-template-columns: auto 1fr;
    row-gap: var(--sp-4);
  }
  .callout__cta { grid-column: 1 / -1; justify-self: start; }
}

/* Lighter beige variant of the why-this-shop band, matching the hero ground
   (parts shelves, about page). Two classes so it beats the base .whyshop white
   defined later in this file. */
.whyshop.whyshop--tint,
.whyshop.shelves { background: var(--paper); }

/* Room for the card shadow inside the scroll track */
.shelf-strip .brands__track { padding-block: 18px; }

.shelf-card {
  flex: 0 0 clamp(180px, 20vw, 230px);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) clamp(1.1rem, 2vw, 1.5rem);
  background: var(--white);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px -22px rgba(28, 27, 25, 0.5);
}

.shelf-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: rgba(200, 32, 42, 0.1);
  color: var(--red);
}

.shelf-card__icon svg { width: 22px; height: 22px; }

.shelf-card > span:last-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  color: var(--ink);
}

/* --- Authorized-brand strip: a self-running loop, same motion as the shop
   gallery. The tiles are honest placeholders until the real logos arrive. --- */
.brands { position: relative; margin-top: clamp(2rem, 4vw, 3rem); }

.brands__label {
  display: block;
  margin: 0 0 var(--sp-3);
  padding-inline: var(--gutter);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.brands__track {
  display: flex;
  gap: calc(var(--grid-gap) / 2);
  overflow-x: auto;
  padding-inline: var(--gutter);
  padding-block: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.brands__track::-webkit-scrollbar { display: none; }

.brand-chip {
  flex: 0 0 clamp(180px, 20vw, 240px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 104px;
  padding: var(--sp-4);
  border: 1.5px dashed var(--paper-edge);
  border-radius: var(--radius-lg);
  background: var(--paper-tint);
  color: var(--ink-mute);
}

.brand-chip svg { width: 22px; height: 22px; opacity: 0.6; }

.brand-chip span {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* --- What we handle: cards in a row, each with an icon ------------------- */
.handle {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  border-bottom: 1px solid var(--paper-edge);
}

.handle__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--grid-gap);
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

/* Fixed three-across layout, e.g. the six cards on the trailer-repair page */
@media (min-width: 861px) {
  .handle__list--3col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.handle__item {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.handle__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.handle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--sp-3);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background-color 0.3s var(--ease);
}

/* The circle swells and picks up a soft red halo with the card, matching the
   number badges on the homepage */
.handle__item:hover .handle__icon {
  transform: scale(1.14);
  background: var(--red-deep);
  box-shadow: 0 0 0 7px rgba(200, 32, 42, 0.12);
}

.handle__icon svg { width: 24px; height: 24px; }

.handle__item h3 {
  font-size: var(--step-1);
  margin-bottom: var(--sp-2);
}

.handle__item p {
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --- Why this shop: heading, a facility photo, then the numbers ---------- */
.whyshop {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background: var(--white);
  border-bottom: 1px solid var(--paper-edge);
}

/* Same full-window-minus-gutter width as the parts-counter photo */
.whyshop__photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 21 / 8;
  min-height: 240px;
  margin-block: clamp(2rem, 4vw, 3rem);
  margin-inline: calc(50% - 50vw + var(--gutter));
  background: var(--paper-tint);
}

.whyshop__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

/* Narrower than this, the 21/8 ratio and the 240px floor fight each other and
   force the full-bleed band wider than the screen. Keep the floor, drop the
   ratio: at 630px both agree on 240px, so the switch is seamless. */
@media (max-width: 630px) {
  .whyshop__photo { aspect-ratio: auto; height: 240px; }
}

/* --- Warranty & insurance: a dark band over a faded repair photo --------- */
.cross {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background: var(--ink);
  color: var(--paper);
}

.cross::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../../images/service-hub-bearing.webp');
  background-size: cover;
  background-position: center 45%;
  opacity: 0.28;
}

.cross::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
              rgba(28, 27, 25, 0.94) 0%,
              rgba(28, 27, 25, 0.82) 45%,
              rgba(28, 27, 25, 0.62) 100%);
}

.cross > .page-width { position: relative; z-index: 1; }

/* No trailing margin, so the content sits centred with equal gaps top and bottom */
.cross .section-head { margin-bottom: 0; }

/* Lighter call-to-action red on the dark band, not the deep ink-red */
.cross .eyebrow { color: var(--red); }

.cross h2 { color: var(--white); }

.cross__body {
  margin-top: var(--sp-3);
  color: rgba(251, 248, 245, 0.72);
}

/* Red button, matching the call-to-action buttons */
.cross__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: var(--sp-4);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}

.cross__link:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -12px rgba(164, 22, 31, 0.75);
}

.cross__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.cross__link:hover svg { transform: translateX(3px); }

/* Broken-down call band (trailer-repair): same dark cross, phone-icon hover */
.cross--broken .cross__link:hover svg { transform: rotate(-12deg) scale(1.06); }

/* --- What it costs: white cards on the off-white section ----------------- */
.cost {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  border-bottom: 1px solid var(--paper-edge);
}

.cost__body {
  margin-top: var(--sp-3);
  max-width: 60ch;
  color: var(--ink-soft);
}

.cost__ranges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

/* Small outline cards: a red figure that counts up, with a label below */
.cost__range {
  padding: var(--sp-4);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
}

.cost__range strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--red-deep);
  font-variant-numeric: tabular-nums;
}

.cost__range span {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* --- FAQ: schema-ready accordion ----------------------------------------- */
.faq {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background: var(--white);
  border-bottom: 1px solid var(--paper-edge);
}

.faq__list {
  grid-column: 2 / -1;
  border-top: 1px solid var(--paper-edge);
}

.faq__item { border-bottom: 1px solid var(--paper-edge); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-4) 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.faq__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--red);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }

.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--ease);
}

.faq__a-inner {
  padding-bottom: var(--sp-4);
  max-width: 64ch;
  color: var(--ink-soft);
}

.js .faq__a { max-height: 0; }
.js .faq__item.is-open .faq__a { max-height: 40rem; }

/* --- Proof ---------------------------------------------------------------
   The gallery reuses the homepage's self-running shop strip (.gallery).
   The rating sits under the heading; the before/after note runs full width. */
.svc-proof__review {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  flex-wrap: wrap;
}

.ba__note--full { max-width: none; }

/* Review cards interleaved into the photo strip, so it reads as social proof */
/* No fixed ratio: the card stretches to the photo row height so the two always
   match, whatever the quote length (the track stretches items by default). */
.gallery__track { align-items: stretch; }

.gallery__review {
  flex: 0 0 clamp(240px, 24vw, 330px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  text-align: left;
}

.gallery__review-mark {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.gallery__review .stars svg { width: 17px; height: 17px; }

.gallery__review-note {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--paper-edge);
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

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

/* Icon cards go two-up on a phone rather than one tall column */
@media (max-width: 620px) {
  .handle__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .handle__item { padding: var(--sp-3); }
  .handle__icon { width: 40px; height: 40px; }
}

/* Filled gallery review card (real approved quote, handoff #3) */
.gallery__review-text {
  margin: 0;
  min-height: 0;
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--ink-soft);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.gallery__review-note strong {
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--step--1);
  color: var(--ink);
}

/* --- Parts page: what parts customers say (real Google reviews) --------- */
.parts-reviews {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background: var(--white);
  border-bottom: 1px solid var(--paper-edge);
}

/* --- Parts hero only: the primary CTA carries the phone number, so give it
   more width (and the outline less) so its text sits on one line. --- */
/* minmax(0, …) rather than a bare fr, and no nowrap: an fr track's minimum is
   its content, so an unwrappable button set the track width instead of the
   other way round. A 60-character label made the button 532px of the 583px
   row, squeezing the second button's column to nothing and spilling its label
   over the hero photo, and at 390 it pushed 182px of horizontal overflow onto
   the document, so the whole page scrolled sideways on a phone. */
.hero__actions--parts { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }

@media (max-width: 560px) {
  .hero__actions--parts { grid-template-columns: 1fr; }
}
