/* ==========================================================================
   Reviorum — pages/home.css  (index.html / front-page.php)
   ========================================================================== */

/* ---------- Hero ---------- */
.rv-home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  padding-block: 80px 96px;
}
.rv-home-hero__content { display: flex; flex-direction: column; gap: var(--rv-s-6); }
.rv-home-hero__content .rv-badge { align-self: flex-start; }
.rv-home-hero__popular { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rv-s-2); margin-top: -6px; }
.rv-home-hero__popular-label { margin-right: 4px; color: #9da2c4; font-size: var(--rv-fs-sm); }

.rv-home-hero__art { position: relative; height: 440px; }
.rv-home-hero__shape { position: absolute; display: block; }
.rv-home-hero__shape--square { top: -36px; right: -40px; width: 240px; height: 240px; border-radius: 44px; background: var(--rv-accent); }
.rv-home-hero__shape--sun { bottom: -24px; left: 300px; width: 128px; height: 128px; border-radius: 50%; background: var(--rv-sun); }
.rv-home-hero__shape--mint { top: 150px; left: 24px; width: 64px; height: 64px; border-radius: 16px; background: var(--rv-mint); }
.rv-home-hero__card {
  position: absolute;
  display: flex;
  flex-direction: column;
  box-shadow: var(--rv-shadow-pop);
}
.rv-home-hero__card--profile { top: 0; right: 0; width: 400px; padding: 22px; gap: 18px; }
.rv-home-hero__card--review { top: 236px; left: 0; width: 360px; padding: 18px; gap: 10px; }
.rv-home-hero__row { display: flex; align-items: center; gap: 14px; }
.rv-home-hero__row > div { flex: 1; min-width: 0; }
.rv-home-hero__name { display: flex; align-items: center; gap: 6px; font-size: 1.0625rem; font-weight: 700; }

/* ---------- Category grid ---------- */
.rv-home-cats { gap: var(--rv-s-4); }

/* ---------- Top rated ---------- */
.rv-home-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--rv-s-6);
  align-items: start;
}
.rv-home-top__aside { display: flex; flex-direction: column; gap: var(--rv-s-4); }
.rv-home-top__ad { position: relative; display: flex; flex-direction: column; gap: 14px; padding: var(--rv-s-5); }
.rv-home-top__ad .rv-sponsored { position: absolute; top: 14px; right: 14px; }
.rv-home-top__ad-head { display: flex; align-items: center; gap: var(--rv-s-3); }
.rv-home-top__note { display: flex; flex-direction: column; gap: 10px; padding: var(--rv-s-5); }
.rv-home-top__note p { line-height: 1.55; }

/* ---------- Business CTA ---------- */
.rv-home-biz {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rv-s-12);
  align-items: center;
  padding: var(--rv-s-12);
  border-radius: var(--rv-r-xl);
  background: var(--rv-night);
  color: #fff;
}
.rv-home-biz__content { display: flex; flex-direction: column; gap: var(--rv-s-4); }
.rv-home-biz__eyebrow { color: var(--rv-accent-tint); font-size: var(--rv-fs-sm); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.rv-home-biz__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); line-height: 1.15; font-weight: 700; }
.rv-home-biz__lead { color: #c3c8d4; line-height: 1.6; }
.rv-home-biz__actions { display: flex; flex-wrap: wrap; gap: var(--rv-s-3); margin-top: var(--rv-s-2); }
.rv-home-biz__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rv-s-3); margin: 0; padding: 0; list-style: none; }
.rv-home-biz__feature {
  display: flex;
  flex-direction: column;
  gap: var(--rv-s-2);
  padding: 18px;
  border: 1px solid #2a3142;
  border-radius: var(--rv-r-lg);
  background: #1a2030;
}
.rv-home-biz__feature svg { color: var(--rv-accent-tint); }
.rv-home-biz__feature h3 { font-size: 0.9375rem; font-weight: 600; }
.rv-home-biz__feature p { color: #aeb4c2; font-size: var(--rv-fs-sm); line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .rv-home-hero__inner { grid-template-columns: minmax(0, 1fr); padding-block: 56px 64px; }
  .rv-home-hero__art { display: none; }
  .rv-home-top,
  .rv-home-biz { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .rv-home-hero__inner { padding-block: 36px 40px; gap: var(--rv-s-6); }
  .rv-home-hero__lead { font-size: var(--rv-fs-base); }

  /* Categories stay 2-up on phones (mobile design) */
  .rv-home-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rv-home-cats .rv-cat-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }

  /* Trending becomes a horizontal snap-scroller */
  .rv-home-trend {
    display: flex;
    gap: var(--rv-s-3);
    margin-inline: calc(var(--rv-gutter) * -1);
    padding: 0 var(--rv-gutter) var(--rv-s-2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .rv-home-trend::-webkit-scrollbar { display: none; }
  .rv-home-trend > * { flex: 0 0 82%; scroll-snap-align: start; }

  .rv-home-top .rv-tabs__list,
  .rv-section__head .rv-tabs__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--rv-gutter) * -1);
    padding-inline: var(--rv-gutter);
    scrollbar-width: none;
  }

  .rv-home-biz { padding: var(--rv-s-6) var(--rv-s-5); gap: var(--rv-s-6); }
  .rv-home-biz__features { grid-template-columns: minmax(0, 1fr); }
  .rv-home-biz__actions .rv-btn { flex: 1; }
}
