/* =============================================================================
   Block layouts matched to the old site, measured against the archived home page:
   edge-to-edge image/text splits, colour bands, photo tiles, two-column FAQ, the CTA
   with a pop-out product shot, and the product cut-out overlapping the home hero.
   ========================================================================== */

/* ---- Section backgrounds, by the old theme's names ---------------------------------- */
.bg-white { background: #fff; }
.bg-tan { background: var(--bg-tan); }
.bg-tan-new { background: var(--bg-tan-new); }
.bg-light-grey { background: var(--bg-light-grey); }
.bg-eggshell { background: var(--bg-eggshell); }
.bg-fog { background: var(--bg-fog); }
.bg-green { background: var(--bg-green); }
.bg-forest-green { background: var(--bg-forest-green); }
.bg-forest-green-dark { background: var(--bg-forest-green-dark); }
.bg-pumpkin-orange { background: var(--bg-pumpkin-orange); }
.bg-lime { background: var(--bg-lime); }
.bg-grey { background: var(--bg-grey); }

.on-dark, .on-dark h2, .on-dark h3, .on-dark p, .on-dark .prose { color: #fff; }
.on-dark a:not(.btn) { color: #fff; }
.btn--light { background: #fff; color: var(--brand-strong); }
.btn--light:hover { background: var(--brand-soft); color: var(--brand-strong); }

/* ---- Home hero: the product cut-out sits over the bottom edge ------------------------ */
.phero { overflow: visible; }
.phero__img { overflow: hidden; }
.phero__product { display: block; position: relative; z-index: 2; width: min(300px, 70%); margin: -40px auto -60px; }
@media (min-width: 900px) {
  .phero__product { position: absolute; right: 4%; bottom: -84px; width: min(420px, 30vw); margin: 0; }
}
.phero:has(.phero__product) + * { padding-top: 80px; }

/* ---- Split: two edge-to-edge halves ------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr; }
.split__text { display: flex; align-items: center; }
.split__inner { padding: 48px var(--gutter); width: 100%; }
.split__media { position: relative; min-height: 280px; background: var(--bg-light-grey); }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-height: none; border-radius: 0; }
.split--solo .split__inner { max-width: 820px; margin: 0 auto; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; min-height: 520px; }
  .split--solo { grid-template-columns: 1fr; min-height: 0; }
  .split--flip .split__media { order: -1; }
  .split__media { min-height: 100%; }
  /* Text sits against the page's content edge, not the window edge. */
  .split__inner { max-width: calc(var(--wrap) / 2); padding: 64px 56px; }
  .split:not(.split--flip) .split__inner { margin-left: auto; }
  .split--flip .split__inner { margin-right: auto; }
}

.split__media--video { display: block; color: #fff; text-decoration: none; }
.split__media--video::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .18); transition: background .15s; }
.split__media--video:hover::after { background: rgb(0 0 0 / .32); }
.split__play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 96px; height: 96px; transform: translate(-50%, -60%);
  border: 2px solid #fff; border-radius: 50%;
}
.split__play::before {
  content: ""; position: absolute; left: 38px; top: 28px;
  border-style: solid; border-width: 20px 0 20px 32px; border-color: transparent transparent transparent #fff;
}
.split__play-label { position: absolute; z-index: 1; left: 0; right: 0; top: calc(50% + 40px); text-align: center; font-weight: 700; }

/* ---- Ribbon: colour band, icon left, copy, button right ------------------------------ */
.ribbon { border: 0; }
.ribbon__inner { flex-wrap: nowrap; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.ribbon__icon { width: 72px; height: 72px; flex: none; }
.ribbon__logo { width: 120px; height: auto; flex: none; }
.ribbon__copy { flex: 1; }
.ribbon .btn-row { flex: none; }
@media (max-width: 700px) {
  .ribbon__inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .ribbon__copy { flex-basis: 100%; }
}

/* ---- FAQ: two columns of questions -------------------------------------------------- */
.faqband { background: #fff; }
.faq__cols { display: grid; gap: 0 32px; max-width: 1040px; margin: 0 auto; }
@media (min-width: 900px) { .faq__cols { grid-template-columns: 1fr 1fr; } }
.faq__cols .faq__item { border: 0; border-radius: 0; border-bottom: 1px solid var(--ink-100); margin: 0; background: transparent; }
.faq__cols .faq__item summary { padding: 14px 8px 14px 36px; color: var(--brand); }
.faq__cols .faq__item summary::after {
  left: 4px; right: auto; width: 22px; height: 22px; line-height: 19px; text-align: center;
  border: 2px solid var(--brand); border-radius: 50%; font-size: 1.1rem; font-weight: 700;
}
.faq__cols .faq__item .prose { padding: 0 8px 16px 36px; }

/* ---- CTA band with a pop-out product shot ------------------------------------------- */
.ctaband--popout { margin-top: 110px; }
.ctaband--popout .cta { padding-top: 0; }
.cta__popout { display: block; width: min(335px, 70%); margin: -110px auto 18px; }

/* ---- Product category tiles: title over the photo ----------------------------------- */
.cards--tiles .card {
  position: relative; padding: 0; overflow: hidden; border: 0; aspect-ratio: 1 / 1; justify-content: center; align-items: center;
  max-width: 360px; background: var(--ink-900);
}
.cards--tiles .card__img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform .3s; }
.cards--tiles .card::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .38); transition: background .2s; }
.cards--tiles .card:hover::after { background: rgb(0 0 0 / .5); }
.cards--tiles .card:hover .card__img { transform: scale(1.04); }
.cards--tiles .card__title {
  position: relative; z-index: 1; color: #fff; text-align: center; font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  padding: 0 20px; text-shadow: 0 1px 3px rgb(0 0 0 / .4);
}
.cards--tiles .card:hover { transform: none; box-shadow: var(--shadow); }
