/* ═══════════════════════════════════════════════════════════════
   RHIVEX — HOME TEMPLATE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* HERO */
.rh-home-hero {
  position: relative;
  min-height: 80vh;
  padding: 80px 56px 100px;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
  overflow: hidden;
}

.rh-hero-text {
  position: relative;
  z-index: 3;
}

.rh-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp 0.9s 0.2s forwards;
}

.rh-hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.rh-home-hero h1 {
  font-size: clamp(48px, 6.6vw, 104px);
  line-height: 0.98;
  color: var(--ink);
  margin-bottom: 28px;
}

.rh-home-hero h1 .word {
  display: block;
  opacity: 0;
  transform: translateY(50px);
}

.rh-home-hero h1 .word:nth-child(1) {
  animation: wordIn 1s 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rh-home-hero h1 .word:nth-child(2) {
  animation: wordIn 1s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rh-home-hero h1 .word:nth-child(3) {
  animation: wordIn 1s 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rh-home-hero h1 em {
  color: var(--accent);
}

.rh-hero-sub {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--charcoal);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.9s 0.95s forwards;
}

.rh-hero-desc {
  font-size: 16px;
  max-width: 460px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 42px;
  opacity: 0;
  animation: fadeUp 0.9s 1.1s forwards;
}

.rh-hero-cta {
  display: flex;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.9s 1.3s forwards;
  flex-wrap: wrap;
}

.rh-hero-visual {
  position: relative;
  height: 70vh;
  min-height: 560px;
}

.rh-hero-img-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  animation: imageReveal 1.4s 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rh-hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: subtleZoom 14s ease-in-out infinite alternate 1.8s;
}

.rh-hero-meta-card {
  position: absolute;
  bottom: 30px;
  left: -36px;
  z-index: 4;
  background: var(--cream);
  padding: 22px 26px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -25px rgba(14, 14, 14, 0.25);
  opacity: 0;
  animation: fadeUp 1s 1.5s forwards;
  display: flex;
  align-items: center;
  gap: 18px;
}

.rh-hero-meta-card .icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rh-hero-meta-card .num {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  color: var(--ink);
  display: block;
  line-height: 1;
  font-weight: 400;
}

.rh-hero-meta-card .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

.rh-hero-tag {
  position: absolute;
  top: 30px;
  right: -22px;
  z-index: 4;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0;
  animation: fadeIn 1s 1.7s forwards;
}

/* TRUST STRIP */
.rh-trust {
  background: var(--paper);
  padding: 38px 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 4;
}

.rh-trust-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.rh-trust-item {
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid var(--line);
}

.rh-trust-item:last-child {
  border-right: none;
}

.rh-trust-item:first-child {
  padding-left: 0;
}

.rh-trust-item svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.rh-trust-item .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.rh-trust-item .sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* BESTSELLERS */
.rh-bestsellers {
  padding: 130px 56px 80px;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.rh-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  margin-bottom: 64px;
}

.rh-section-head .left {
  max-width: 700px;
}

.rh-section-head .eyebrow {
  display: block;
  margin-bottom: 18px;
}

.rh-section-head h2 {
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.05;
}

.rh-section-head .right a {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.rh-section-head .right a:hover {
  gap: 14px;
}

.rh-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.rh-product {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.rh-product-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--cream-2);
  margin-bottom: 20px;
}

.rh-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.rh-product:hover .rh-product-img-wrap img {
  transform: scale(1.07);
}

.rh-product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--ink);
  color: var(--cream);
  padding: 5px 11px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

.rh-product-tag.sale {
  background: var(--accent);
}

.rh-product-quick {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: var(--cream);
  color: var(--ink);
  padding: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.rh-product:hover .rh-product-quick {
  opacity: 1;
  transform: translateY(0);
}

.rh-product-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.rh-product-meta h3 {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
}

.rh-product-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.rh-product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.rh-product-price .now {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}

.rh-product-price .was {
  font-size: 12px;
  color: var(--muted-2);
  text-decoration: line-through;
}

/* CATEGORIES */
.rh-categories {
  padding: 80px 56px 130px;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.rh-categories-head {
  text-align: center;
  margin-bottom: 64px;
}

.rh-categories-head .eyebrow {
  display: block;
  margin-bottom: 18px;
}

.rh-categories-head h2 {
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.05;
  max-width: 700px;
  margin: 0 auto;
}

.rh-cat-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 16px;
}

.rh-cat {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream-2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  text-decoration: none;
}

.rh-cat.featured {
  grid-row: span 2;
}

.rh-cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  filter: saturate(0.95);
}

.rh-cat:hover img {
  transform: scale(1.06);
}

.rh-cat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 14, 14, 0.7) 0%, rgba(14, 14, 14, 0.05) 50%, transparent 100%);
  transition: background 0.4s;
}

.rh-cat:hover::after {
  background: linear-gradient(0deg, rgba(14, 14, 14, 0.85) 0%, rgba(14, 14, 14, 0.15) 50%, transparent 100%);
}

.rh-cat-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
}

.rh-cat-count {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
  font-weight: 500;
}

.rh-cat-name {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 12px;
}

.rh-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cream);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--cream);
  transition: gap 0.3s;
}

.rh-cat:hover .rh-cat-link {
  gap: 14px;
}

/* CRAFT */
.rh-craft {
  background: var(--ink);
  color: var(--cream);
  padding: 140px 56px;
  position: relative;
  overflow: hidden;
}

.rh-craft::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}

.rh-craft-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.rh-craft-inner {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  align-items: center;
}

.rh-craft-images {
  position: relative;
  height: 640px;
}

.rh-craft-img {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line-cream);
}

.rh-craft-img-1 {
  top: 0;
  left: 0;
  width: 65%;
  height: 70%;
}

.rh-craft-img-2 {
  bottom: 0;
  right: 0;
  width: 60%;
  height: 56%;
  border: 6px solid var(--ink);
}

.rh-craft-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}

.rh-craft-stamp {
  position: absolute;
  bottom: 50%;
  right: -30px;
  z-index: 5;
  background: var(--accent);
  color: var(--cream);
  padding: 16px 18px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  transform: rotate(-6deg);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5);
}

.rh-craft-stamp .small {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0.85;
  margin-top: 4px;
}

.rh-craft-text .eyebrow {
  color: var(--accent-soft);
  display: block;
  margin-bottom: 22px;
}

.rh-craft-text h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--cream);
}

.rh-craft-text>p {
  font-size: 16px;
  color: rgba(245, 237, 224, 0.65);
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 540px;
}

.rh-craft-pillars {
  display: flex;
  flex-direction: column;
}

.rh-pillar-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line-cream);
  align-items: center;
  cursor: pointer;
  transition: padding-left 0.4s;
}

.rh-pillar-row:last-child {
  border-bottom: 1px solid var(--line-cream);
}

.rh-pillar-row:hover {
  padding-left: 12px;
}

.rh-pillar-num {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--accent-soft);
  font-weight: 300;
}

.rh-pillar-info h4 {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 4px;
}

.rh-pillar-info p {
  font-size: 13px;
  color: rgba(245, 237, 224, 0.55);
  line-height: 1.5;
}

.rh-pillar-arrow {
  color: var(--accent-soft);
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.4s;
}

.rh-pillar-row:hover .rh-pillar-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* MANIFESTO */
.rh-manifesto {
  padding: 140px 56px;
  max-width: 1440px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.rh-manifesto .eyebrow {
  display: block;
  margin-bottom: 24px;
}

.rh-manifesto h2 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05;
  margin-bottom: 28px;
}

.rh-manifesto h2 em {
  color: var(--accent);
}

.rh-manifesto p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 44px;
}

.rh-manifesto .signature {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--charcoal);
}

.rh-manifesto .signature::before,
.rh-manifesto .signature::after {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent);
}

/* REVIEWS */
.rh-reviews {
  background: var(--paper);
  padding: 130px 56px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.rh-reviews-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.rh-reviews-head {
  text-align: center;
  margin-bottom: 80px;
}

.rh-reviews-head .eyebrow {
  display: block;
  margin-bottom: 18px;
}

.rh-reviews-head h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05;
}

.rh-stars-overall {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.rh-stars-overall .rating {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--accent);
}

.rh-stars-overall svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

.rh-stars-overall .count {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Reviews carousel */
.rh-reviews-carousel {
  position: relative;
}

.rh-reviews-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.rh-reviews-track::-webkit-scrollbar {
  display: none;
}

.rh-reviews-track>.rh-review {
  flex: 0 0 calc((100% - 56px) / 3);
  scroll-snap-align: start;
}

.rh-reviews-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 50px;
}

.rh-reviews-nav button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s, opacity 0.3s, transform 0.3s;
}

.rh-reviews-nav button:hover:not(:disabled) {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.rh-reviews-nav button:active:not(:disabled) {
  transform: scale(0.94);
}

.rh-reviews-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.rh-reviews-carousel.no-nav .rh-reviews-nav {
  display: none;
}

.rh-review {
  background: var(--cream);
  padding: 40px 32px;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.4s, box-shadow 0.4s;
}

.rh-review:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(14, 14, 14, 0.15);
}

.rh-review .stars {
  display: flex;
  gap: 3px;
  margin-bottom: 18px;
}

.rh-review .stars svg {
  width: 13px;
  height: 13px;
  fill: var(--accent);
}

.rh-review blockquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 28px;
}

.rh-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.rh-review-author .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream-3);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 500;
}

.rh-review-author .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.rh-review-author .meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.rh-review-author .verified {
  color: var(--accent);
}

/* FINAL CTA */
.rh-final-cta {
  padding: 140px 56px;
  background: var(--cream-2);
  text-align: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.rh-final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(92, 74, 56, 0.08), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.rh-final-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.rh-final-cta .eyebrow {
  display: block;
  margin-bottom: 22px;
}

.rh-final-cta h2 {
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 1;
  margin-bottom: 26px;
}

.rh-final-cta h2 em {
  color: var(--accent);
}

.rh-final-cta p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 42px;
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .rh-home-hero {
    grid-template-columns: 1fr;
    padding: 50px 22px 70px;
    gap: 50px;
    min-height: auto;
  }

  .rh-hero-visual {
    height: 60vh;
    min-height: 420px;
  }

  .rh-trust {
    padding: 28px 22px;
  }

  .rh-trust-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .rh-trust-item {
    padding: 0;
    border-right: none;
  }

  .rh-bestsellers,
  .rh-categories {
    padding-left: 22px;
    padding-right: 22px;
    padding-top: 80px;
  }

  .rh-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .rh-products {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .rh-cat-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 240px);
  }

  .rh-cat.featured {
    grid-row: span 1;
  }

  .rh-craft {
    padding: 80px 22px;
  }

  .rh-craft-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .rh-craft-images {
    height: 480px;
  }

  .rh-manifesto,
  .rh-reviews,
  .rh-final-cta {
    padding: 80px 22px;
  }

  .rh-reviews-track>.rh-review {
    flex-basis: 100%;
  }

  .rh-reviews-nav {
    margin-top: 36px;
  }

  .rh-reviews-nav button {
    width: 46px;
    height: 46px;
  }
}

@media (min-width: 969px) and (max-width: 1199px) {
  .rh-reviews-track>.rh-review {
    flex-basis: calc((100% - 28px) / 2);
  }
}