/* Virts home merchandising — Shop-by-Virtue tiles, LiG offer banner,
   Giveback impact panel. design/lifeisgood-brief.md §3/§4/§6.
   Each tier tile wears its play palette; charcoal ink on every surface
   used here is ≥4.9:1 (marigold) or ≥9:1 (cream/white). */

.virts-shopby {
  padding-block: 4.5rem 2rem;
  color: var(--virts-ink, #393D3C);
}

.virts-shopby-title {
  font-family: var(--font-heading-family, 'Libre Franklin', 'Franklin Gothic', Arial, sans-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 0.75rem;
}

.virts-shopby-sub {
  text-align: center;
  color: color-mix(in srgb, var(--virts-ink, #393D3C) 72%, transparent);
  max-width: 34rem;
  margin: 0 auto 2.75rem;
  line-height: 1.55;
}

.virts-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 739px) {
  .virts-tiles { grid-template-columns: 1fr; }
}

.virts-tile {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  min-height: 260px;
  padding: 1.5rem 1.4rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--virts-ink, #393D3C);
  transition: box-shadow 160ms ease;
}

.virts-tile:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--virts-ink, #393D3C) 16%, transparent); }

.virts-tile:focus-visible {
  outline: 2px solid var(--virts-ink, #393D3C);
  outline-offset: 2px;
}

.virts-tile-kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.virts-tile-name {
  font-family: var(--font-heading-family, 'Libre Franklin', 'Franklin Gothic', Arial, sans-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.virts-tile-copy {
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 24rem;
}

.virts-tile-go {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.15rem;
}

/* Core — marigold (charcoal label = 5.1:1 ✓). */
.virts-tile.is-core { background: var(--virts-marigold, #F59E0B); }

/* Deep List — navy, cream/white text (10.8:1 ✓), marigold underline CTA
   (on-navy marigold = 5.0:1, large/bold only ✓). */
.virts-tile.is-deep {
  background: var(--virts-navy, #2A3C67);
  color: var(--virts-paper, #FFFFFF);
}
.virts-tile.is-deep .virts-tile-go { border-bottom-color: var(--virts-marigold, #F59E0B); }

/* Desert Fathers — the pastel joke (charcoal on each ≥7.4:1 ✓). */
.virts-tile.is-df { background: var(--virts-pink, #FFDEDE); }

/* LiG offer banner: direct promo energy, charcoal band, marigold headline
   (5.1:1 — large display text only ✓). */
.virts-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 14px;
  padding: 1.6rem 1.5rem;
  border-radius: 16px;
  background: var(--virts-ink, #393D3C);
  text-decoration: none;
  text-align: center;
}

.virts-offer-headline {
  font-family: var(--font-heading-family, 'Libre Franklin', 'Franklin Gothic', Arial, sans-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--virts-marigold, #F59E0B);
}

.virts-offer-sub {
  color: var(--virts-bg, #EFE9DB);
  font-size: 0.9375rem;
}

/* --- Giveback impact (brief §4: LiG's kids-healing slot). --- */
.virts-giveback-bleed {
  background: var(--virts-ink, #393D3C);
  margin-top: 4.5rem;
}

.virts-giveback {
  padding-block: 4.5rem;
  text-align: center;
  color: var(--virts-bg, #EFE9DB);
}

.virts-giveback-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--virts-bg, #EFE9DB) 75%, transparent);
}

.virts-giveback-headline {
  font-family: var(--font-heading-family, 'Libre Franklin', 'Franklin Gothic', Arial, sans-serif);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0.75rem auto 1.25rem;
  max-width: 22ch;
  color: var(--virts-marigold, #F59E0B); /* 5.1:1 on charcoal, display size */
}

.virts-giveback-copy {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  font-size: 1.0625rem;
  color: color-mix(in srgb, var(--virts-bg, #EFE9DB) 90%, transparent);
}

.virts-giveback-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  margin-bottom: 2.5rem;
}

.virts-stat { display: grid; gap: 0.35rem; justify-items: center; }

.virts-stat-n {
  font-family: var(--font-heading-family, 'Libre Franklin', 'Franklin Gothic', Arial, sans-serif);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--virts-paper, #FFFFFF);
  font-variant-numeric: tabular-nums;
}

.virts-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--virts-bg, #EFE9DB) 75%, transparent);
}

.virts-giveback-cta {
  display: inline-block;
  background: var(--virts-marigold, #F59E0B);
  color: var(--virts-ink, #393D3C);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
}

/* ---------------------------------------------------------------------------
   Photo hero + campaign band (t_867a15d8). Full-bleed stock photography;
   overlay CTAs are % of the image box so they stay registered at any width.
   Geometry below was measured pixel-exact from the source PNG (1916x821):
   printed 'SHOP THE LIST' pill = x98..333 y550..609, 'OUR STORY' outline =
   x355..542 y550..609; overlays are those boxes grown by 8px. Mobile crop
   (48,110)-(720,660) shifts the same boxes; both variants swap in the one
   (max-width: 739px) media query that also swaps the <picture> source. */

.virts-hero-photo {
  --ov1-l: 4.697%;  /* (98-8)/1916 */
  --ov1-w: 13.100%; /* (333-98+16)/1916 */
  --ov2-l: 18.110%; /* (355-8)/1916 */
  --ov2-w: 10.595%; /* (542-355+16)/1916 */
  --ov-t: 66.017%;  /* (550-8)/821 */
  --ov-h: 9.135%;   /* (609-550+16)/821 */
  position: relative;
  width: 100%;
  margin: 0;
  line-height: 0; /* no phantom gap under the image */
}

.virts-hero-photo-pic { display: block; }

.virts-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.virts-hero-photo .virts-hero-ovl {
  position: absolute;
  top: var(--ov-t);
  height: var(--ov-h);
  left: var(--ov1-l);
  width: var(--ov1-w);
  border-radius: 10px;
  background: transparent;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.virts-hero-photo .virts-hero-ovl-2 {
  left: var(--ov2-l);
  width: var(--ov2-w);
  border-radius: 6px;
}

/* hover/focus proves the printed buttons are real, without painting over them */
.virts-hero-photo .virts-hero-ovl:hover {
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 2px rgba(57, 61, 60, 0.35);
}

.virts-hero-photo .virts-hero-ovl:focus-visible {
  outline: 3px solid var(--virts-accent, #F59E0B);
  outline-offset: 2px;
  background-color: rgba(255, 255, 255, 0.10);
}

@media (max-width: 739px) {
  .virts-hero-photo {
    --ov1-l: 6.250%;  /* (98-8-48)/672 */
    --ov1-w: 37.351%; /* 251/672 */
    --ov2-l: 44.494%; /* (355-8-48)/672 */
    --ov2-w: 30.208%; /* 203/672 */
    --ov-t: 78.545%;  /* (550-8-110)/550 */
    --ov-h: 13.636%;  /* 75/550 */
  }
  /* the mobile <source> is a different aspect than the img's width/height
     attrs; pin it so the reserved box matches and CLS stays zero */
  .virts-hero-photo img { aspect-ratio: 672 / 550; }
}

/* ---------------------------------------------------------------------------
   Campaign band: mosaic on wide screens, 2-tile strip crop on mobile. */

.virts-campaign {
  padding-block: 4.5rem 4rem;
  color: var(--virts-ink, #393D3C);
}

.virts-campaign-head { margin-bottom: 2.25rem; }

.virts-campaign-title {
  font-family: var(--font-heading-family, 'Libre Franklin', 'Franklin Gothic', Arial, sans-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 0.75rem;
}

.virts-campaign-title a {
  color: inherit;
  text-decoration: none;
}

.virts-campaign-title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

.virts-campaign-sub {
  text-align: center;
  color: color-mix(in srgb, var(--virts-ink, #393D3C) 72%, transparent);
  max-width: 38rem;
  margin: 0 auto;
  line-height: 1.55;
}

.virts-campaign-figure {
  display: block;
  max-width: min(100vw, 1536px);
  margin-inline: auto;
  line-height: 0;
}

.virts-campaign-figure img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 739px) {
  /* mobile source is the wide 2-tile strip, not the square mosaic */
  .virts-campaign-figure img { aspect-ratio: 734 / 392; }
}
