/* ==========================================================================
   HOME (gift shop, user 2026-10-15) — page-only styles (see ARCHITECTURE.md "index.html: Home")
   hero · products (CSS-only filter) · how-it-works · family · faq · updates · contact · choose-product
   The former home's styles moved to magnets/style.css.
   ========================================================================== */

/* ---------- Hero: dark like every hero (user, 2026-10-16): the slides (global .bg-slider, 3 photos) fill the section at every width,
   the cover overlay darkens them and the copy is bright ---------- */
.home-hero { position: relative; overflow: hidden; color: var(--color-text-inverse); background: var(--color-surface-inverse); }
.home-hero__inner { position: relative; z-index: var(--z-base); padding-block: var(--section-padding-y) calc(var(--section-padding-y) + var(--space-12)); }   /* room for the arrows below the copy */
.home-hero__content { display: flex; flex-direction: column; gap: var(--space-5); max-width: var(--container-narrow); }
.home-hero h1 { font-size: var(--text-4xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); color: var(--color-text-inverse); }
.home-hero__text { font-size: var(--text-lg); color: var(--color-text-inverse-muted); max-width: var(--measure); }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.home-hero__stage { position: absolute; inset: 0; }
.home-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--overlay-hero-cover-sm); }
@media (min-width: 1024px) {
  .home-hero { min-height: var(--home-hero-min-height); display: flex; align-items: center; }
  .home-hero .bg-slider__slide .media { object-position: right center; }
  .home-hero .bg-slider__controls { right: calc(max(var(--space-4), (100% - var(--container-max)) / 2 + var(--container-gutter))); bottom: var(--space-6); }
  .home-hero::after { background: var(--overlay-hero-cover); }
  .home-hero__inner { width: 100%; padding-block: var(--section-padding-y); }
  .home-hero__content { max-width: var(--home-hero-copy); }
}

/* ---------- Products: filter chips (radios) + tiles ---------- */
.products__head { margin-bottom: var(--space-5); }
.products__head .lead { max-width: var(--measure); margin-top: var(--space-2); color: var(--color-text-muted); }
.products__filters { margin-bottom: var(--space-6); }
.products__grid { display: grid; gap: var(--grid-gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .products__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* The filter: a chosen category hides the other tiles (no JS) */
.products:has([name="product-filter"][value="photo"]:checked) .product-tile:not([data-category="photo"]),
.products:has([name="product-filter"][value="cards"]:checked) .product-tile:not([data-category="cards"]),
.products:has([name="product-filter"][value="apparel"]:checked) .product-tile:not([data-category="apparel"]),
.products:has([name="product-filter"][value="business"]:checked) .product-tile:not([data-category="business"]) { display: none; }

.product-tile {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--color-surface); border: var(--card-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow);
}
.product-tile__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.product-tile__body { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; padding: var(--card-padding); }
.product-tile__category { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-muted); }
.product-tile__title { font-size: var(--text-lg); }
.product-tile__text { font-size: var(--text-sm); color: var(--color-text-muted); }
.product-tile__link { color: var(--color-heading); text-decoration: none; }
.product-tile__link::after { content: ""; position: absolute; inset: 0; z-index: var(--z-raised); }   /* the whole tile opens the page */
.product-tile__link:focus-visible { outline: none; }
.product-tile__cta { display: inline-flex; align-items: center; gap: var(--space-1); margin-top: auto; padding-top: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-primary); }
/* Live products lift on hover; coming-soon tiles don't react at all */
.product-tile:has(.product-tile__link) { transition: box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard); }
.product-tile:has(.product-tile__link):hover { box-shadow: var(--shadow-md); transform: translateY(var(--hover-lift)); }
.product-tile:has(.product-tile__link:focus-visible) { box-shadow: var(--shadow-focus); }
.product-tile--soon { cursor: default; }
.product-tile__badge { position: absolute; top: var(--space-3); left: var(--space-3); box-shadow: var(--shadow-sm); }

/* ---------- How it works: 3 steps ---------- */
.how-it-works__steps { display: grid; gap: var(--grid-gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .how-it-works__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.how-step { display: flex; flex-direction: column; overflow: hidden; background: var(--color-surface); border: var(--card-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.how-step__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; }
.how-step__body { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--card-padding); }
.how-step__num {
  display: grid; place-items: center; width: var(--space-10); height: var(--space-10);
  font-weight: var(--weight-semibold); color: var(--color-on-primary); background: var(--color-primary); border-radius: var(--radius-full);
}
.how-step__title { font-size: var(--text-lg); }
.how-step__text { grid-column: 1 / -1; color: var(--color-text-muted); }

/* ---------- Family business: text + our son with magnets (portrait) + the family at the worktable (square) ---------- */
.family__inner { display: grid; gap: var(--space-8); align-items: center; }
.family__text { display: flex; flex-direction: column; gap: var(--space-4); max-width: var(--measure); }
.family__media { display: grid; grid-template-columns: 2fr 3fr; gap: var(--space-4); align-items: end; }
.family__portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--card-radius); }
.family__workshop { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--card-radius); } /* square: keeps faces and the magnets on the table */
@media (min-width: 1024px) { .family__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }

/* ---------- FAQ: compact accordion ---------- */
.home-faq h2 { margin-bottom: var(--space-6); text-align: center; }

/* ---------- Updates: lg+ the photo is the backdrop (its left half is empty), text + email over it; below lg the photo's right part under the text ---------- */
.updates { position: relative; overflow: hidden; }
.updates__inner { display: grid; gap: var(--space-6); }
.updates__text { position: relative; z-index: var(--z-base); display: flex; flex-direction: column; gap: var(--space-4); max-width: var(--measure); }
.updates__text > p { color: var(--color-text-muted); }
.updates__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: right center; border-radius: var(--card-radius); }
@media (min-width: 1024px) {
  .updates { padding-block: calc(var(--section-padding-y) * 1.5); }
  .updates__img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
  .updates__text { max-width: var(--home-hero-copy); }
}

/* ---------- Contact: LexHost form + photo ---------- */
.home-contact__inner { display: grid; gap: var(--space-8); align-items: center; }
.home-contact__form { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.home-contact__form > p { color: var(--color-text-muted); max-width: var(--measure); }
.home-contact__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--card-radius); }
@media (max-width: 1023.98px) { .home-contact__img { display: none; } }   /* phones and tablets: the form alone */
@media (min-width: 1024px) { .home-contact__inner { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }

/* ---------- Choose product: dark band over a lazy photo (both products), two offers (shared .hero__offers / .hero-offer, styles/sections.css);
   side by side from md, stacked on phones (user, 2026-10-17) ---------- */
.choose-product { position: relative; isolation: isolate; overflow: hidden; color: var(--color-text-inverse); background: var(--color-surface-inverse); }
.choose-product__bg { z-index: -2; }
.choose-product::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--overlay-section-cover); }
.choose-product__head { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); margin-bottom: calc(var(--space-8) * var(--title-gap-scale)); text-align: center; }
.choose-product__head h2 { color: var(--color-text-inverse); }
.choose-product__head .lead { color: var(--color-text-inverse-muted); }
.choose-product__offers { max-width: var(--container-narrow); margin: 0 auto; }
@media (max-width: 639.98px) { .choose-product .hero-offer .btn { align-self: stretch; white-space: normal; } }
@media (min-width: 768px) {
  .choose-product__offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .choose-product .hero-offer { padding-inline: var(--space-8); }
  .choose-product .hero-offer + .hero-offer { padding-top: 0; border-top: 0; border-left: var(--border-width) solid var(--color-border-inverse); }
}
