/* Rivora — homepage hero + trust bar */

@keyframes rivora-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes rivora-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rivora-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Set once here so every child (eyebrow/heading/subtitle/badge/buttons)
     inherits Vazirmatn — previously only the heading and buttons declared
     this explicitly, so the rest fell back to Kadence's default system font
     stack instead. */
  font-family: var(--rivora-font-body);
}

/* Always present, sits under the poster/video — the true zero-cost background. */
.rivora-hero__bg-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #efe2c7, #fbf6ec, #ddc491, #f6efdf, #e8d3a4);
  background-size: 300% 300%;
  animation: rivora-shimmer 18s ease-in-out infinite;
}

.rivora-hero__picture {
  position: absolute;
  inset: 0;
  display: block;
}

.rivora-hero__poster,
.rivora-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rivora-hero__video {
  /* Hidden until hero.js confirms it can actually play — avoids a flash of an
     unplayed/black video frame on connections where it never loads at all. */
  opacity: 0;
  transition: opacity .5s ease;
}

.rivora-hero__video.is-ready {
  opacity: 1;
}

.rivora-hero__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(30, 30, 30, .28), rgba(30, 30, 30, 0) 60%);
}

.rivora-hero__panel {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 clamp(16px, 5vw, 32px);
  padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 40px);
  /* Opaque enough that ink-1 text stays readable no matter what frame the
     video is on; the heavy blur keeps the "glass" feel without letting the
     footage bleed through into the text. Same surface tone as the palette. */
  background: rgba(250, 248, 245, .78);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 24px 60px -24px rgba(30, 30, 30, .35);
  border-radius: 20px;
  text-align: center;
  animation: rivora-fade-up .9s ease both;
}

/* No backdrop-filter support (older Safari/Firefox): the panel must carry
   the contrast entirely on its own. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .rivora-hero__panel {
    background: rgba(250, 248, 245, .94);
  }
}

.rivora-hero__eyebrow {
  font-size: clamp(11px, 2vw, 14px);
  letter-spacing: .12em;
  color: var(--rivora-ink-1);
  text-shadow: 0 1px 10px rgba(255, 255, 255, .5);
  margin-bottom: 14px;
}

.rivora-hero__heading {
  font-family: var(--rivora-font-body);
  font-weight: 600;
  font-size: clamp(38px, 9vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--rivora-ink-1);
  text-shadow: 0 2px 16px rgba(255, 255, 255, .55);
  margin: 0 0 18px;
}

.rivora-hero__subtitle {
  font-size: clamp(15px, 3vw, 19px);
  line-height: 1.9;
  color: var(--rivora-ink-1);
  text-shadow: 0 1px 12px rgba(255, 255, 255, .55);
  margin: 0 auto 34px;
  max-width: 520px;
}

.rivora-hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rivora-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--rivora-gold-dark);
}

.rivora-hero__badge span {
  font-size: 12.5px;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(255, 255, 255, .5);
}

/* .rivora-btn (primary/outline) lives in custom.css now — it's a shared
   component used outside the hero too (e.g. the archive's empty-state and
   "clear filters" actions), and custom.css loads on every page. */

/* Hero-only override: on plain pages the transparent outline button sits on a
   solid surface, but over video footage the gold hairline alone disappears.
   Give it a solid light backing here without touching the shared component. */
.rivora-hero .rivora-btn--outline {
  background: rgba(255, 255, 255, .82);
}

.rivora-hero .rivora-btn--outline:hover,
.rivora-hero .rivora-btn--outline:focus {
  background: #fff;
}

/* Trust bar */
.rivora-trust-bar {
  background: var(--rivora-surface-2);
  border-bottom: 1px solid var(--rivora-border-subtle);
  font-family: var(--rivora-font-body);
}

.rivora-trust-bar__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 34px);
  flex-wrap: wrap;
}

.rivora-trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rivora-gold-dark);
}

.rivora-trust-bar__item span {
  font-size: 13.5px;
  color: var(--rivora-ink-2);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .rivora-hero__bg-fallback {
    animation: none;
  }

  .rivora-hero__panel {
    animation: none;
  }

  .rivora-hero__video {
    display: none;
  }
}
