/* ═══════════════════════════════════════════════════════════
   Homepage — Spare Parts Offers + Full-Width Banner + Industrial
   Enquiries. Three closing sections: a light-lavender discount-card
   strip, a full-bleed promo banner image, then a dark CTA banner.
   The CTA section reuses the .ambient-bg glow pattern (see
   assets/css/ambient-bg.css) so the page keeps one visual language
   end to end.
   ═══════════════════════════════════════════════════════════ */

/* ── Spare Parts Offers ───────────────────────────────────────
   Light lavender outer panel, white cards inside — pairs visually
   with .home-banner directly below it. No per-part photography
   exists yet (see index.php), so each card is icon + discount
   badge + CTA rather than a cropped product photo. */
.spare-offers {
  padding-inline: var(--space-6);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.spare-offers__panel {
  max-width: var(--container-2xl);
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-2xl);
  background: #EDE9FE;
}

.spare-offers__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.spare-offers__heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--color-text-dark);
  margin: 0;
}

.spare-offers__all {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-text-dark);
  color: #fff;
  transition: transform 0.2s ease;
}

.spare-offers__all:hover {
  transform: translateX(2px);
}

.spare-offers__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.spare-offers__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
}

.spare-offers__badge {
  align-self: flex-end;
  margin-left: auto;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: #F2994A;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.spare-offers__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-light);
}

.spare-offers__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Title left, CTA right, on the same row — replaces the earlier
   stacked layout so the button sits aligned with the card text
   instead of on its own line below it. */
.spare-offers__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  margin-top: auto;
}

.spare-offers__title {
  flex: 1;
  min-width: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--color-text-dark);
}

.spare-offers__cta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: #F2994A;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.spare-offers__cta:hover {
  background: #D97F2E;
}

@media (max-width: 899.98px) {
  .spare-offers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479.98px) {
  .spare-offers__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Full-Width Banner ────────────────────────────────────────
   Placeholder image until a real banner photo is supplied — see
   the comment in index.php for exactly where to drop it in. Fixed
   aspect-ratio (not a fixed px height) so it scales cleanly at
   every viewport width without ever cropping oddly or leaving
   letterboxing. */
.home-banner {
  display: block;
  width: 100%;
  line-height: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.home-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 600;
  object-fit: cover;
}

/* ── Industrial Enquiries ─────────────────────────────────── */
/* Was permanently dark (var(--color-primary)) regardless of theme, with
   text hardcoded to white/white-72% to match — none of it ever followed
   the light/dark toggle. Now themed like the rest of the page. */
.industrial-cta {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--color-bg-light);
  overflow: hidden;
  text-align: center;
}

.industrial-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

/* Thin feature strip beneath the CTA — gives the section a second
   layer of structure instead of one small centred block floating in
   a full-height band. Supporting detail rather than competing with the
   headline/CTA, so icons stay small and muted like the label text. */
.industrial-cta__features {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--color-border);
}

.industrial-cta__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.industrial-cta__feature-icon {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}

.industrial-cta .section-tag {
  justify-content: center;
  color: var(--color-accent);
}

.industrial-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-weight: var(--font-black);
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.industrial-cta__desc {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-body);
  max-width: 56ch;
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
}

/* Glow reads as a highlight on the old dark band; on the light band it
   should stay a hint, same treatment as .range-marquee. */
.industrial-cta .ambient-bg__glow {
  opacity: 0.45;
}

@media (max-width: 599.98px) {
  .industrial-cta {
    min-height: 0;
  }

  .industrial-cta__features {
    flex-wrap: wrap;
    gap: var(--space-4) clamp(1.5rem, 6vw, 2.5rem);
  }
}
