/* public_html/assets/css/home.css
 * Homepage-only layout. Shared components (glass-card, product-card, tile,
 * trust-strip) live in components.css and get reused on other pages.
 */

.hero {
  position: relative;
  overflow: hidden;
  padding: 50px 0 62px; /* reduced ~30% from the original 72px/88px per feedback that the hero was too tall */
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero__eyebrow-free h1 {
  max-width: 12ch;
}
.hero__sub {
  font-size: 1.05rem;
  max-width: 42ch;
}
.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- Admin-managed rotating background (Theme -> Hero Banners) ----------
   Only rendered when at least one banner exists — falls back to the plain
   orb background below otherwise. A scrim keeps the headline readable over
   a photo background in both light and dark mode. */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg-layer {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__bg-layer.is-active { opacity: 1; }
.hero__bg-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(250,250,248,0.88), rgba(250,250,248,0.55));
}
[data-theme~="dark"] .hero__bg-scrim {
  background: linear-gradient(120deg, rgba(14,21,18,0.85), rgba(14,21,18,0.55));
}

/* Layered card collage — three offset glass cards standing in for
   category imagery until real product photography exists. Sizes/offsets
   scaled down to match the shorter hero above. */
.hero__collage {
  position: relative;
  height: 266px;
}
.hero__collage .glass-card {
  position: absolute;
  padding: 16px;
  width: 150px;
}
.hero__collage .glass-card:nth-child(1) {
  top: 0; right: 30px;
  transform: rotate(-4deg);
}
.hero__collage .glass-card:nth-child(2) {
  top: 91px; right: 140px;
  transform: rotate(3deg);
  width: 128px;
}
.hero__collage .glass-card:nth-child(3) {
  bottom: 0; right: 64px;
  transform: rotate(-2deg);
  width: 143px;
}
.hero__collage .glass-card__swatch {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  margin-bottom: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg-orb-1), var(--bg-orb-2)); /* shows while the image loads, or if it 404s */
}

/* One orchestrated load-in — hero only, not repeated across the page */
.hero__grid { animation: hero-rise 0.7s ease both; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__grid { animation: none; }
  .hero__bg-layer { transition: none; }
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section__head p { margin: 4px 0 0; }

/* Promo banner */
.promo-banner {
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.promo-banner h2 { margin-bottom: 6px; }
.promo-banner p { margin: 0; }

/* Community / testimonial */
.community {
  padding: 44px 40px;
  text-align: center;
}
.community__video {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16/9;
  margin: 0 auto 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bg-orb-1), var(--bg-orb-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  color: var(--text-muted);
}
.community blockquote {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  max-width: 52ch;
  margin: 0 auto;
  color: var(--text);
}
.community cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__collage { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
