/* =========================================================
   Home page section backgrounds
   Sections after the hero alternate: white / warm ivory framed by gold hairlines.
   :nth-of-type counts only the sections actually rendered, so the pattern stays
   even/odd when an optional section (offers, blog, FAQ...) is hidden.
   Loaded after the home-*.css files.
   ========================================================= */

.home-page {
  --hs-white: #ffffff;
  --hs-ivory: #f9f5ec;
  --hs-sand: #f2eadb; /* inner panels on ivory, so white cards inside them still stand out */
  --hs-gold: #b8903f;
  --hs-gold-line: rgba(184, 144, 63, 0.32);
  --hs-space: clamp(4rem, 7vw, 6.25rem);
}

/* One vertical rhythm for every section (each home-*.css tuned its own for a single white page) */
.home-page > section:not(.hero) {
  position: relative;
  padding-top: var(--hs-space) !important;
  padding-bottom: var(--hs-space) !important;
  background: var(--hs-white);
}

/* ---------- Tinted sections (2nd, 4th, ... after the hero) ---------- */

.home-page > section:nth-of-type(odd):not(.hero) {
  background:
    /* gold hairlines, fading out at the edges */
    linear-gradient(90deg, transparent, var(--hs-gold-line) 18%, var(--hs-gold-line) 82%, transparent) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, var(--hs-gold-line) 18%, var(--hs-gold-line) 82%, transparent) bottom / 100% 1px no-repeat,
    /* soft light: gold top-right, brand violet bottom-left */
    radial-gradient(55rem 28rem at 100% 0%, rgba(184, 144, 63, 0.09), transparent 65%),
    radial-gradient(45rem 26rem at 0% 100%, rgba(31, 42, 68, 0.05), transparent 65%),
    var(--hs-ivory);
}

/* small gold diamond centred on the top hairline */
.home-page > section:nth-of-type(odd):not(.hero)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(184, 144, 63, 0.65);
  background: var(--hs-ivory);
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}

/* Panels tinted lavender for a white page clash with ivory: warm them up instead */
.home-page > section:nth-of-type(odd) .hf-panel {
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgba(184, 144, 63, 0.14), transparent 60%),
    var(--hs-sand);
}

/* The partners band is lavender-tinted for a white page; on ivory it reads better as a white card
   (its logo tiles have their own borders) */
.home-page > section:nth-of-type(odd) .hp-band {
  background:
    radial-gradient(30rem 16rem at 0% 0%, rgba(184, 144, 63, 0.1), transparent 60%),
    var(--hs-white);
  box-shadow: 0 1px 2px rgba(23, 27, 36, 0.04), 0 22px 44px -26px rgba(23, 27, 36, 0.22);
}
