/**
 * ============================================================================
 * TUSHKABINI.MK — HOMEPAGE (Riho-inspired editorial / minimalist)
 * Loaded only on front-page via functions.php (is_front_page()).
 * Uses design tokens from custom.css.
 * ============================================================================
 *
 * Design principles:
 *   - Neutral palette: white, off-white, graphite; no colored hero gradients
 *   - Generous whitespace, airy vertical rhythm
 *   - Large imagery dominates, decoration is absent
 *   - CTAs are underlined text-links with arrows, not filled buttons
 *   - Editorial typography: big headlines, tight tracking, thin body
 */

/* ============================================================================
   HOMEPAGE RESET
   ============================================================================ */

.homepage--editorial {
  /* Brand-aligned editorial palette (Tushka Navy + Sky on cool whites) */
  --rh-ink:       #0A2B5C;           /* heading/body — Tushka Navy */
  --rh-ink-soft:  #2D3748;           /* secondary text */
  --rh-muted:     #718096;           /* muted text */
  --rh-line:      #E5E9F0;           /* hairline divider (brand soft) */
  --rh-bg:        #ffffff;           /* base */
  --rh-bg-alt:    #F5F7FA;           /* cool off-white (brand soft gray) */
  --rh-bg-dark:   #0A2B5C;           /* dark sections — Tushka Navy */
  --rh-accent:    #00AEEF;           /* accent — Tushka Sky */
  --rh-accent-dark: #0095CC;         /* accent hover */

  color: var(--rh-ink-soft);
  background-color: var(--rh-bg);
  font-family: var(--font-secondary);
}

.homepage--editorial h1,
.homepage--editorial h2,
.homepage--editorial h3,
.homepage--editorial h4 {
  font-family: var(--font-primary);
  color: var(--rh-ink);
  letter-spacing: var(--tracking-tight);
}

/* ============================================================================
   SHARED PRIMITIVES
   ============================================================================ */

/* Eyebrow (section kicker) */
.rh-eyebrow {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--rh-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: var(--space-4);
}

.rh-eyebrow--light {
  color: rgba(255, 255, 255, 0.7);
}

.rh-eyebrow--accent {
  position: relative;
  padding-left: var(--space-6);
  color: var(--rh-ink);
}

.rh-eyebrow--accent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--space-4);
  height: 1px;
  background-color: var(--rh-ink);
  transform: translateY(-50%);
}

/* Text-link CTA (the Riho signature) */
.rh-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--rh-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rh-ink);
  transition: gap var(--duration-300) var(--ease-out),
              color var(--duration-200) var(--ease-out),
              border-color var(--duration-200) var(--ease-out);
}

.rh-link:hover {
  color: var(--rh-ink);
  gap: var(--space-3);
  text-decoration: none;
}

.rh-link__arrow {
  display: inline-block;
  transition: transform var(--duration-300) var(--ease-out);
}

.rh-link:hover .rh-link__arrow {
  transform: translateX(4px);
}

.rh-link--lg {
  font-size: var(--text-lg);
  padding: var(--space-2-5) 0;
}

.rh-link--sm {
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
}

.rh-link--muted {
  color: var(--rh-muted);
  border-bottom-color: var(--rh-line);
}

.rh-link--muted:hover {
  color: var(--rh-ink);
  border-bottom-color: var(--rh-ink);
}

.rh-link--light {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
}

.rh-link--light:hover {
  color: var(--color-white);
}

.rh-link--inverse {
  color: var(--color-white);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.rh-link--inverse:hover {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
}

/* Section wrapper */
.rh-section {
  padding: var(--space-20) 0;
  background-color: var(--rh-bg);
}

@media (min-width: 1024px) {
  .rh-section { padding: var(--space-24) 0; }
}

.rh-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--rh-line);
  flex-wrap: wrap;
}

.rh-section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .rh-section { padding: var(--space-16) 0; }
  .rh-section__head { margin-bottom: var(--space-8); }
}

/* ============================================================================
   1. HERO
   ============================================================================ */

.rh-hero {
  background-color: var(--rh-bg);
  padding: var(--space-16) 0 var(--space-20);
}

@media (min-width: 1024px) {
  .rh-hero { padding: var(--space-20) 0 var(--space-32); }
}

.rh-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .rh-hero__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-16);
  }
}

.rh-hero__title {
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
  font-weight: var(--font-medium);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 var(--space-8);
  color: var(--rh-ink);
  text-wrap: balance;
}

.rh-hero__title-accent {
  display: inline-block;
  position: relative;
  color: var(--rh-ink);
  background-image: linear-gradient(120deg, transparent 0%, transparent 8%, rgba(0, 174, 239, 0.18) 8%, rgba(0, 174, 239, 0.18) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 0.42em;
  background-position: 0 88%;
  padding: 0 0.06em;
}

.rh-hero__title-mark {
  display: inline-block;
  margin-left: 0.04em;
  color: var(--rh-accent);
  transform: translateY(-0.02em);
}

.rh-hero__lead {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--rh-ink-soft);
  margin: 0 0 var(--space-10);
  max-width: 34rem;
}

.rh-hero__lead strong {
  color: var(--rh-ink);
  font-weight: var(--font-semibold, 600);
}

.rh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.rh-hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.rh-hero__image {
  position: absolute;
  inset: 0;
  background-color: var(--rh-bg-alt);
  overflow: hidden;
}

/* Decorative image placeholder — swap for <img> when photo is available */
.rh-hero__image-inner {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 30% 20%, rgba(255,255,255,0.7) 0%, transparent 55%),
    radial-gradient(600px 400px at 80% 90%, rgba(10, 43, 92, 0.08) 0%, transparent 55%),
    linear-gradient(160deg, #E8F7FE 0%, #C0DFF0 45%, #8FA8CB 100%);
}

.rh-hero__image-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* subtle shower cabin silhouette hint */
    linear-gradient(180deg, transparent 40%, rgba(255,255,255,0.08) 60%, transparent 80%);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .rh-hero__visual { aspect-ratio: 5 / 6; }
}

/* ============================================================================
   2. PROMO BAND
   ============================================================================ */

.rh-promo {
  background-color: var(--rh-bg-dark);
  color: var(--color-white);
  padding: var(--space-12) 0;
}

.rh-promo__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 1024px) {
  .rh-promo__inner {
    grid-template-columns: 1fr auto;
    gap: var(--space-12);
    padding: var(--space-2) 0;
  }
}

.rh-promo__badge {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-3);
}

.rh-promo__title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.1;
  font-weight: var(--font-medium);
  color: var(--color-white);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
}

.rh-promo__sub {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 40rem;
  line-height: 1.6;
}

/* ============================================================================
   3. CATEGORIES — 4-column editorial grid
   ============================================================================ */

.rh-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8) var(--space-6);
}

@media (min-width: 640px) {
  .rh-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .rh-categories { grid-template-columns: repeat(4, 1fr); }
}

.rh-cat-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-decoration: none !important;
  color: var(--rh-ink);
  transition: transform var(--duration-500) var(--ease-out);
}

.rh-cat-card:hover {
  text-decoration: none;
  color: var(--rh-ink);
}

.rh-cat-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--rh-bg-alt);
}

.rh-cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.rh-cat-card:hover .rh-cat-card__img {
  transform: scale(1.04);
}

/* Placeholder when no category image is set — brand-aligned cool palette */
.rh-cat-card__placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 300px at 30% 30%, rgba(255,255,255,0.6) 0%, transparent 50%),
    linear-gradient(160deg, #E8F7FE 0%, #99E0FB 100%);
}

.rh-cat-card:nth-child(2) .rh-cat-card__placeholder {
  background: linear-gradient(160deg, #E0E7F0 0%, #8FA8CB 100%);
}

.rh-cat-card:nth-child(3) .rh-cat-card__placeholder {
  background: linear-gradient(160deg, #D0EFFD 0%, #66D1F8 100%);
}

.rh-cat-card:nth-child(4) .rh-cat-card__placeholder {
  background: linear-gradient(160deg, #C2CFE2 0%, #5C82B3 100%);
}

.rh-cat-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.rh-cat-card__tag {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rh-muted);
}

.rh-cat-card__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-medium);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.rh-cat-card__cta {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--rh-ink);
  padding-top: var(--space-2);
  display: inline-flex;
  gap: var(--space-2);
  transition: gap var(--duration-300) var(--ease-out);
}

.rh-cat-card:hover .rh-cat-card__cta { gap: var(--space-3); }

/* ============================================================================
   4. WHY — editorial 2-column
   ============================================================================ */

.rh-why {
  background-color: var(--rh-bg-alt);
}

.rh-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .rh-why__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
  }
}

.rh-why__visual { aspect-ratio: 4 / 5; overflow: hidden; }

.rh-why__image {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(500px 400px at 70% 30%, rgba(255,255,255,0.5) 0%, transparent 55%),
    linear-gradient(150deg, #C2CFE2 0%, #5C82B3 100%);
}

.rh-why__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-medium);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-6);
}

.rh-why__lead {
  font-size: var(--text-lg);
  color: var(--rh-ink-soft);
  line-height: 1.6;
  margin: 0 0 var(--space-10);
  max-width: 38rem;
}

.rh-why__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rh-why__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: flex-start;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--rh-line);
}

.rh-why__list li:last-child { border-bottom: 1px solid var(--rh-line); }

.rh-why__num {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--rh-muted);
  min-width: 2ch;
  padding-top: 4px;
}

.rh-why__list h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

.rh-why__list p {
  font-size: var(--text-base);
  color: var(--rh-ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================================
   5. FEATURED PRODUCTS (override colored WC styles for editorial look)
   ============================================================================ */

.rh-featured .woocommerce ul.products {
  gap: var(--space-10) var(--space-6);
}

.rh-featured .woocommerce ul.products li.product {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  transition: none;
}

.rh-featured .woocommerce ul.products li.product:hover {
  transform: none;
  box-shadow: none;
}

.rh-featured .woocommerce ul.products li.product .wp-post-image,
.rh-featured .woocommerce ul.products li.product img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background-color: var(--rh-bg-alt);
  border-radius: 0;
  width: 100%;
  height: auto;
  transition: transform 700ms var(--ease-out);
}

.rh-featured .woocommerce ul.products li.product:hover img {
  transform: scale(1.03);
}

.rh-featured .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--rh-ink);
  padding: var(--space-5) 0 var(--space-2);
  margin: 0;
  letter-spacing: -0.01em;
}

.rh-featured .woocommerce ul.products li.product .price {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--rh-ink-soft);
  padding: 0;
  margin: 0 0 var(--space-4);
}

.rh-featured .woocommerce ul.products li.product .price del {
  color: var(--rh-muted);
}

.rh-featured .woocommerce ul.products li.product .price ins {
  text-decoration: none;
  color: var(--rh-ink);
}

/* Replace bulky add-to-cart with text link */
.rh-featured .woocommerce ul.products li.product .button {
  background-color: transparent;
  color: var(--rh-ink);
  border: 0;
  border-bottom: 1px solid var(--rh-ink);
  border-radius: 0;
  padding: var(--space-2) 0;
  margin: 0;
  width: auto;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0;
}

.rh-featured .woocommerce ul.products li.product .button:hover {
  background-color: transparent;
  color: var(--rh-ink);
  transform: none;
  box-shadow: none;
  border-bottom-color: var(--rh-ink);
}

/* ============================================================================
   6. SERIES SPOTLIGHT — full-bleed
   ============================================================================ */

.rh-spotlight {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .rh-spotlight { min-height: 680px; }
}

.rh-spotlight__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(5, 22, 52, 0.75) 0%, rgba(10, 43, 92, 0.45) 55%, rgba(5, 22, 52, 0.7) 100%),
    radial-gradient(1200px 600px at 70% 30%, #14457E 0%, transparent 60%),
    linear-gradient(160deg, #0A2B5C 0%, #051634 100%);
}

.rh-spotlight__container {
  position: relative;
  z-index: 1;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.rh-spotlight__content {
  max-width: 42rem;
}

.rh-spotlight__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: var(--font-medium);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin: 0 0 var(--space-6);
}

.rh-spotlight__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0 0 var(--space-10);
}

/* ============================================================================
   7. TIPS & INSPIRATION
   ============================================================================ */

.rh-tips__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .rh-tips__grid { grid-template-columns: repeat(3, 1fr); }
}

.rh-tip { display: flex; flex-direction: column; gap: var(--space-5); }

.rh-tip__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #E8F7FE 0%, #99E0FB 100%);
  overflow: hidden;
}

.rh-tip__media--alt2 { background: linear-gradient(150deg, #E0E7F0 0%, #8FA8CB 100%); }
.rh-tip__media--alt3 { background: linear-gradient(150deg, #D0EFFD 0%, #66D1F8 100%); }

.rh-tip__body { display: flex; flex-direction: column; gap: var(--space-2); }

.rh-tip__tag {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rh-muted);
}

.rh-tip__title {
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}

.rh-tip .rh-link { align-self: flex-start; }

/* ============================================================================
   8. SOCIAL GALLERY
   ============================================================================ */

.rh-social {
  padding: var(--space-20) 0;
  background-color: var(--rh-bg);
}

.rh-social__head {
  text-align: center;
  margin-bottom: var(--space-12);
}

.rh-social__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: var(--font-medium);
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}

.rh-social__sub {
  font-size: var(--text-base);
  color: var(--rh-muted);
  margin: 0;
}

.rh-social__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

@media (min-width: 640px) { .rh-social__grid { grid-template-columns: repeat(3, 1fr); } }

@media (min-width: 1024px) { .rh-social__grid { grid-template-columns: repeat(6, 1fr); } }

.rh-social__tile {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #E8F7FE 0%, #99E0FB 100%);
  transition: opacity var(--duration-300) var(--ease-out);
  display: block;
}

.rh-social__tile:hover { opacity: 0.85; }

.rh-social__tile--2 { background: linear-gradient(135deg, #D0EFFD 0%, #66D1F8 100%); }
.rh-social__tile--3 { background: linear-gradient(135deg, #C2CFE2 0%, #8FA8CB 100%); }
.rh-social__tile--4 { background: linear-gradient(135deg, #E0E7F0 0%, #5C82B3 100%); }
.rh-social__tile--5 { background: linear-gradient(135deg, #F0F4F9 0%, #C0DFF0 100%); }
.rh-social__tile--6 { background: linear-gradient(135deg, #99E0FB 0%, #00AEEF 100%); }

/* ============================================================================
   9. HELP CTA
   ============================================================================ */

.rh-help {
  padding: var(--space-20) 0 var(--space-24);
  background-color: var(--rh-bg);
  border-top: 1px solid var(--rh-line);
}

.rh-help__inner {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.rh-help__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: var(--font-medium);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}

.rh-help__text {
  font-size: var(--text-lg);
  color: var(--rh-ink-soft);
  margin: 0 0 var(--space-10);
  line-height: 1.6;
}

.rh-help__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
}

/* ============================================================================
   MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  .rh-link,
  .rh-link__arrow,
  .rh-cat-card,
  .rh-cat-card__img,
  .rh-featured .woocommerce ul.products li.product img {
    transition: none !important;
  }
}
