/* Fleet offer pages and the homepage offers row. Builds on raid-home-v2.css
   (hero, buttons, gold tokens). */

.offer-page > :is(section) { width: min(calc(100% - 2rem), 84rem); margin-inline: auto; }
@media (max-width: 35.99rem) {
  .offer-page > :is(section) { width: min(calc(100% - 1.25rem), 84rem); }
}
.offer-page h2 { margin: 0 0 .8rem; color: var(--p-ink); font-size: clamp(1.15rem, 4vw, 1.45rem); font-weight: 800; }

/* Price in the hero */
.raid-home-v2 .offer-hero .offer-price {
  margin: 0 0 .25rem;
  color: #fbf9f2;
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  font-weight: 600;
}
.raid-home-v2 .offer-hero .offer-price strong {
  color: #f0d9a6;
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.raid-home-v2 .offer-hero .offer-price-note {
  max-width: 36ch;
  margin: 0 0 1.25rem;
  color: rgb(251 249 242 / 85%);
  font-size: .95rem;
}

/* Colours, mileage, spec */
.offer-facts {
  display: grid;
  gap: .75rem;
}
@media (min-width: 48rem) { .offer-facts { grid-template-columns: 1.4fr 1fr 1fr; } }
.offer-fact {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--p-line);
  border-radius: .9rem;
  background: var(--p-surface);
}
.offer-fact h2 { margin-bottom: .6rem; color: var(--p-muted); font-size: .9rem; font-weight: 600; }
.offer-colors { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0; padding: 0; list-style: none; }
.offer-colors li { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; }
.offer-swatch {
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid rgb(0 0 0 / 14%);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%);
}
.offer-mileage { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* What the price includes */
.offer-included {
  padding: 1.3rem 1.2rem;
  border-radius: .9rem;
  background: #f2ede1;
}
.offer-included ul { display: grid; gap: .55rem; margin: 0 0 .8rem; padding: 0; list-style: none; }
@media (min-width: 48rem) { .offer-included ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.offer-included li { display: flex; align-items: center; gap: .55rem; font-weight: 700; }
.offer-included svg { flex: none; width: 1.3rem; height: 1.3rem; color: var(--p-green); }
.offer-included p { margin: 0; color: var(--p-soft-ink); font-weight: 600; }

/* Guarantee: dark card in the brand colours */
.offer-guarantee {
  padding: 1.4rem 1.2rem;
  border-radius: .9rem;
  background: #171715;
  color: #f4efe4;
}
.offer-guarantee-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.offer-guarantee-head svg { width: 1.8rem; height: 1.8rem; color: #c9a15d; }
.offer-guarantee h2 { margin: 0; color: #fff; }
.offer-guarantee-parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 48rem) { .offer-guarantee-parts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.offer-guarantee-parts li {
  padding: .8rem .5rem;
  border: 1px solid rgb(201 161 93 / 35%);
  border-radius: .7rem;
  color: #f0d9a6;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}
.offer-guarantee p { margin: 0; color: rgb(244 239 228 / 88%); font-weight: 600; }

/* Finance partners (shown to installment visitors only) */
.offer-partners ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.offer-partners li {
  padding: .65rem 1rem;
  border: 1px solid var(--p-line);
  border-radius: .7rem;
  background: var(--p-surface);
  font-weight: 700;
}

/* Photos of cars in this offer */
.offer-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}
@media (min-width: 48rem) { .offer-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.offer-gallery-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: .8rem;
  aspect-ratio: 4 / 3;
  background: #e9e5dc;
}
.offer-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.offer-gallery-grid a:hover img { transform: scale(1.04); }
.offer-gallery-grid span {
  position: absolute;
  inset-inline-start: .45rem;
  bottom: .45rem;
  padding: .2rem .5rem;
  border-radius: .45rem;
  background: rgb(18 18 16 / 70%);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Closing call to action */
.offer-cta {
  padding: 1.6rem 1.2rem;
  border-radius: .9rem;
  background: #171715;
  text-align: center;
}
.offer-cta h2 { color: #fff; }
.offer-cta .v2-hero-actions { justify-content: center; }

/* Homepage: the offers row right after the hero */
.home-offers h2 { margin: 0 0 .9rem; font-size: clamp(1.3rem, 4.6vw, 1.75rem); font-weight: 800; }
.home-offers-grid { display: grid; gap: .75rem; }
@media (min-width: 48rem) { .home-offers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-offer-card {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 15rem;
  border-radius: 1rem;
  background: #171715;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.home-offer-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.home-offer-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(to top, rgb(14 14 12 / 92%) 10%, rgb(14 14 12 / 35%) 60%, rgb(14 14 12 / 5%));
  content: "";
}
.home-offer-card:hover img { transform: scale(1.04); }
.home-offer-body { align-self: end; padding: 1rem 1.1rem; }
.home-offer-body h3 { margin: 0 0 .2rem; color: #fff; font-size: 1.25rem; font-weight: 800; }
.home-offer-price { margin: 0; color: #f0d9a6; font-size: 1.05rem; font-weight: 700; }
.home-offer-price strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.home-offer-note { margin: .15rem 0 0; color: rgb(251 249 242 / 82%); font-size: .82rem; }
.home-offer-swatches { display: flex; gap: .3rem; margin-top: .55rem; }
.home-offer-swatches span { width: .9rem; height: .9rem; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; background: var(--swatch); }

.storefront-main > .home-offers { width: min(calc(100% - 2rem), 84rem); margin-inline: auto; }
@media (max-width: 35.99rem) {
  .storefront-main > .home-offers { width: min(calc(100% - 1.25rem), 84rem); }
}
