/* ============================================================
   WOODLEY COLLISION — SERVICE SINGLE (service detail) PAGE
   Reuses: breadcrumb, .process (dark 4-step band), .gallery
   (+ .ba/.ba--labeled sliders), .faq-section (+ accordion),
   .svc-card (related services), .cta-banner, header/footer.
   Adds: the hero (white bordered card + image, two-col) and
   the "What's Included" demage-card grid.
   ============================================================ */

/* "See Our Collision Repair Work" — on service pages the gallery follows
   the dark process band directly, so it needs its own top spacing
   (home.css sets .gallery { padding-top: 0 } for the homepage flow). */
.single-service .gallery { padding-top: 120px; }
@media (max-width: 760px) {
  .single-service .gallery { padding-top: 60px; }
}

/* ---------- HERO (white bordered card + image) ---------- */
.svc-hero {
  max-width: var(--container-outer);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: var(--sp-16);
  padding-bottom: 80px;
  display: flex;
  gap: var(--sp-32);
  align-items: stretch;
}
.svc-hero__card {
  flex: 0 0 740px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-24);
  padding: var(--sp-40);
  background: var(--white);
  border: 1px solid var(--gray-50);
  border-radius: 32px;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.01);
}
.svc-hero__heading { display: flex; flex-direction: column; gap: var(--sp-12); }
.svc-hero__title {
  font-size: clamp(2.5rem, 1.6rem + 2.8vw, 3.875rem);   /* 40 -> 62px */
  font-weight: 600;
  line-height: 1.06;
  color: var(--gray-900);
}
.svc-hero__subtitle {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: #555;
}
.svc-hero__actions { display: flex; gap: var(--sp-8); align-items: center; }
.svc-hero__media {
  flex: 1 1 auto;
  min-height: 460px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--gray-100);
}
.svc-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- WHAT'S INCLUDED (demage-card grid) ---------- */
.included {
  max-width: var(--container-outer);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-36);
}
.included__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-24);
}
.included__heading { display: flex; flex-direction: column; gap: var(--sp-12); max-width: 600px; }
.included__title {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);   /* 28 -> 36px */
  font-weight: 600;
  line-height: 1.22;
  color: var(--gray-900);
}
.included__subtitle {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: #555;
}
.included__cta { flex-shrink: 0; }
.included__cta--mobile { display: none; }

/* 3-col grid of feature cards */
.included__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-24);
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  padding: var(--sp-24);
  background: var(--white);
  border: 1px solid var(--gray-50);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.01);
}
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-round);
  background: var(--gray-900);
  color: var(--white);
  flex-shrink: 0;
}
.feature-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.feature-card__body { display: flex; flex-direction: column; gap: var(--sp-8); }
.feature-card__title {
  font-size: 1.5rem;            /* 24px */
  font-weight: 600;
  line-height: 1.167;
  color: var(--gray-900);
}
.feature-card__desc {
  font-size: var(--fs-body-s);  /* 14px */
  font-weight: 400;
  line-height: 1.571;
  color: #555;
}

/* Related services: 4-up grid of the shared .svc-card */
.related {
  max-width: var(--container-outer);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: 60px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-36);
}
.related__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-24);
}
.related__title {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);   /* 28 -> 36px */
  font-weight: 600;
  line-height: 1.22;
  color: var(--gray-900);
}
.related__cta { flex-shrink: 0; }
.related__cta--mobile { display: none; }
.related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-16);
}
.related__grid .svc-card { width: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .svc-hero { flex-direction: column; }
  .svc-hero__card { flex: 1 1 auto; width: 100%; min-height: 0; }
  .svc-hero__media { width: 100%; min-height: 340px; }
  .related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .included__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .svc-hero { padding-bottom: 60px; }
  .svc-hero__card { padding: var(--sp-24); border-radius: 24px; text-align: center; align-items: center; }
  .svc-hero__heading { align-items: center; }
  .svc-hero__title { font-size: clamp(2.125rem, 1.75rem + 1.6vw, 2.25rem); line-height: 1.1; }
  .svc-hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .svc-hero__actions .btn { width: 100%; justify-content: space-between; }
  .svc-hero__media { border-radius: 24px; min-height: auto; }

  .included { padding-bottom: 120px; gap: var(--sp-32); }
  .included__title { font-size: 1.75rem; }   /* 28px */
  .included__cta { display: none; }
  .included__cta--mobile { display: block; width: 100%; }
  .included__cta--mobile .btn { width: 100%; justify-content: space-between; }
  .included__grid { grid-template-columns: 1fr; gap: var(--sp-16); }
  .feature-card__title { font-size: 1.25rem; }   /* 20px mobile */

  .related { padding-block: 60px 120px; gap: var(--sp-32); }
  .related__title { font-size: 1.75rem; }   /* 28px */
  .related__cta { display: none; }
  .related__cta--mobile { display: block; width: 100%; }
  .related__cta--mobile .btn { width: 100%; justify-content: space-between; }
  .related__grid { grid-template-columns: 1fr; gap: var(--sp-16); }
}

/* ============================================================
   SERVICE GALLERY SLIDER
   Arrow-driven carousel for the related work examples: 3 cards
   per view on desktop, 2 on tablet, 1 on mobile. Arrows are shown
   by JS only when there is somewhere to go (start: next only,
   middle: both, end: prev only; no overflow: none).
   ============================================================ */
.svc-slider { position: relative; }

.gallery--svc .gallery__grid {
  display: flex;
  gap: var(--sp-24);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery--svc .gallery__grid::-webkit-scrollbar { display: none; }
.gallery--svc .gallery__grid .ba {
  flex: 0 0 calc((100% - 2 * var(--sp-24)) / 3);
  width: auto;
  scroll-snap-align: start;
}

.svc-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-round);
  background: var(--gray-900);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: background-color var(--dur) var(--ease);
}
.svc-slider__arrow:hover,
.svc-slider__arrow:focus-visible {
  background: var(--color-red);
}
.svc-slider__arrow svg { width: 18px; height: 18px; }
.svc-slider__arrow--prev { left: -14px; }
.svc-slider__arrow--next { right: -14px; }
.svc-slider__arrow[hidden] { display: none; }

@media (max-width: 1024px) {
  .gallery--svc .gallery__grid .ba {
    flex-basis: calc((100% - var(--sp-24)) / 2);   /* 2 per view */
  }
}

@media (max-width: 600px) {
  /* One full-width card per view; arrows overlay inside the edges.
     Neutralize home.css's edge-bleed margins so paging math is exact. */
  .gallery--svc .gallery__grid {
    margin-inline: 0;
    padding-inline: 0;
  }
  .gallery--svc .gallery__grid .ba {
    flex: 0 0 100%;
    width: 100%;
  }
  .svc-slider__arrow--prev { left: 8px; }
  .svc-slider__arrow--next { right: 8px; }
}
