/*
 * hero.css
 * ReyBelen Standalone Theme — Homepage Hero
 *
 * Layout: Split — left column (label + headline + tagline + sub + CTAs)
 *                 right column (portrait + attribution quote)
 *
 * Cycling text: hero.js rotates .rb-hero__cycle inner text every 3.5s.
 * Entrance animation: hero.js adds .rb-hero--loaded on DOMContentLoaded.
 */


/* ── Hero: Shell ─────────────────────────────────────────────────────────── */

.rb-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--rb-navy);
  padding-top: 120px;
  padding-bottom: var(--sp-10);
  display: flex;
  align-items: center;
}

.rb-hero .rb-container {
  width: 100%;
}


/* ── Hero: Split Grid ────────────────────────────────────────────────────── */

.rb-hero__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--sp-8);
  align-items: center;
}


/* ── Hero: Left Column ───────────────────────────────────────────────────── */

.rb-hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


/* ── Hero: Label ─────────────────────────────────────────────────────────── */

.rb-hero__label {
  display: block;
  font-family: var(--rb-font-mono);
  font-weight: 400;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--rb-cognac);
  margin: 0 0 var(--sp-3);
}


/* ── Hero: Headline ──────────────────────────────────────────────────────── */

.rb-hero__headline {
  font-family: var(--rb-font-heading);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 var(--sp-3);
  max-width: 640px;
}


/* ── Hero: Cycling Second Line ───────────────────────────────────────────── */

/*
 * Fraunces italic — cycling variant, distinct from white first line.
 * hero.js fades out → swaps text → fades in every 3.5s.
 */

.rb-hero__cycle {
  display: block;
  font-family: var(--rb-font-heading);
  font-weight: 300;
  font-style: italic;
  color: var(--rb-cognac-lt);
  transition: opacity 400ms ease;
}

.rb-hero__cycle.rb-hero__cycle--fade {
  opacity: 0;
}


/* ── Hero: Tagline ───────────────────────────────────────────────────────── */

.rb-hero__tagline {
  font-family: var(--rb-font-heading);
  font-weight: 300;
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 var(--sp-3);
  max-width: 520px;
}


/* ── Hero: Sub ───────────────────────────────────────────────────────────── */

.rb-hero__sub {
  font-family: var(--rb-font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.50);
  margin: 0 0 var(--sp-2);
  max-width: 520px;
}

.rb-hero__sub + .rb-hero__sub {
  margin-top: 0;
  margin-bottom: 0;
}


/* ── Hero: CTAs ──────────────────────────────────────────────────────────── */

.rb-hero__ctas {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: var(--sp-5);
}


/* ── Hero: Right Column ──────────────────────────────────────────────────── */

.rb-hero__right {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}


/* ── Hero: Portrait ──────────────────────────────────────────────────────── */

.rb-hero__portrait-wrap {
  width: 100%;
  overflow: hidden;
}

.rb-hero__portrait {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.85);
  object-fit: cover;
  object-position: center top;
}


/* ── Hero: Attribution Quote ─────────────────────────────────────────────── */

.rb-hero__quote {
  margin: 0;
  padding: 0 0 0 var(--sp-3);
  border-left: 3px solid var(--rb-cognac);
}

.rb-hero__quote p {
  font-family: var(--rb-font-heading);
  font-weight: 300;
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.60);
  margin: 0 0 var(--sp-1);
}

.rb-hero__quote cite {
  font-family: var(--rb-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  font-style: normal;
}


/* ── Entrance Animation ──────────────────────────────────────────────────── */

.rb-hero__label,
.rb-hero__headline,
.rb-hero__tagline,
.rb-hero__sub,
.rb-hero__ctas,
.rb-hero__right {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.rb-hero__label      { transition-delay:   0ms; }
.rb-hero__headline   { transition-delay:  60ms; }
.rb-hero__tagline    { transition-delay: 120ms; }
.rb-hero__sub        { transition-delay: 160ms; }
.rb-hero__ctas       { transition-delay: 220ms; }
.rb-hero__right      { transition-delay: 100ms; }

.rb-hero--loaded .rb-hero__label,
.rb-hero--loaded .rb-hero__headline,
.rb-hero--loaded .rb-hero__tagline,
.rb-hero--loaded .rb-hero__sub,
.rb-hero--loaded .rb-hero__ctas,
.rb-hero--loaded .rb-hero__right {
  opacity: 1;
  transform: translateY(0);
}
