/* ==========================================================================
   Homepage "Special offers" section (templates/index.html)
   Sits on the page background like the other sections; the photo cards keep
   their dark gradient so the white text on them stays readable.
   Gold accents from the logo, WhatsApp green on claim.
   ========================================================================== */

.home-offers {
  --ho-ink: #0a0e17;
  --ho-heading: #171b24;
  --ho-muted: #676459;
  --ho-line: rgba(23, 27, 36, 0.15);
  --ho-primary: #1f2a44;
  --ho-surface: #171b24;
  --ho-gold: #b8903f;
  --ho-whatsapp: #1fa855;
  --ho-shadow: 0 1px 2px rgba(23, 27, 36, 0.04), 0 22px 44px -22px rgba(23, 27, 36, 0.35);

  padding: 1.5rem 0 !important;
  color: var(--ho-muted);
}

/* style.css removes the container's side padding site-wide; restore it here */
.home-offers .container {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

.ho-band {
  position: relative;
}

/* ---------- Heading ---------- */

.ho-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.ho-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  color: var(--ho-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ho-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.ho-head h2 {
  margin-bottom: 0.5rem;
  color: var(--ho-heading);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
  letter-spacing: 0;
}

.ho-head p {
  max-width: 34rem;
  margin: 0;
  color: var(--ho-muted);
  font-size: 1.05rem;
}

.ho-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--ho-line);
  border-radius: 999px;
  color: var(--ho-heading);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ho-all:hover {
  border-color: var(--ho-primary);
  color: var(--ho-primary);
}

/* ---------- Cards: grid on desktop, swipeable row on smaller screens ---------- */

.ho-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 1.25rem) / 3);
  gap: 1.25rem;
  /* room below the cards for their shadow (the scroller would clip it); margin cancels the extra space */
  margin: 0 0 -2.75rem;
  padding: 0 0 2.75rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ho-list::-webkit-scrollbar {
  display: none;
}

.ho-list > li {
  scroll-snap-align: start;
}

.ho-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 25rem;
  padding: 1.5rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--ho-surface);
  box-shadow: var(--ho-shadow);
  color: #fff;
  isolation: isolate;
}

.ho-card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ho-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 14, 23, 0.92) 0%, rgba(10, 14, 23, 0.55) 45%, rgba(10, 14, 23, 0.05) 75%);
}

.ho-card:hover > img {
  transform: scale(1.06);
}

.ho-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e2c27a, #b8903f);
  color: #1c1608;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ho-card h3 {
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.25;
}

.ho-card p {
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.home-offers .ho-claim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ho-ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.home-offers .ho-claim:hover {
  background: var(--ho-whatsapp);
  color: #fff;
}

.home-offers a:focus-visible {
  outline: 2px solid var(--ho-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .home-offers * {
    transition: none !important;
  }
}

@media (max-width: 991.98px) {
  .ho-list {
    grid-auto-columns: calc((100% - 1.25rem) / 2);
  }
}

@media (max-width: 575.98px) {
  .ho-list {
    grid-auto-columns: 82%;
    gap: 0.9rem;
  }

  .ho-card {
    min-height: 22rem;
    padding: 1.25rem;
  }

  .ho-all {
    width: 100%;
    justify-content: center;
  }
}
