/* WO-383 — Reusable emotional hero system (Experience Layer).
   Fail-closed: navy canvas if photo missing. Prefer authentic Dude RV photography.
   Respects prefers-reduced-motion. No aggressive carousel. */

@import url("./experience-tokens.css");

.exp-hero {
  position: relative;
  color: var(--exp-hero-ink);
  background-color: var(--exp-navy-deep);
  overflow: hidden;
  isolation: isolate;
}

.exp-hero__media,
.exp-hero__picture,
.exp-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* WO-393A — shared warm family tone across cornerstone experience photos */
.exp-hero__img {
  filter: saturate(1.08) contrast(1.04) brightness(1.01);
}

.exp-hero__media {
  background-color: var(--exp-navy-deep);
  background-size: cover;
  background-position: center;
}

.exp-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--exp-overlay-top), var(--exp-overlay-bottom));
}

.exp-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.25rem 1.25rem 3.5rem;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .exp-hero--split .exp-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    padding: 4.25rem 1.5rem 4.5rem;
    gap: 2.5rem;
  }
}

.exp-hero__copy {
  max-width: 38rem;
}

.exp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  color: var(--exp-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1.35;
}

.exp-hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--exp-hero-ink);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.exp-hero__title-em {
  color: var(--exp-gold);
}

.exp-hero__story {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--exp-hero-muted);
  max-width: 36rem;
}

.exp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.exp-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 0.65rem;
  background: var(--exp-gold);
  color: var(--exp-ink);
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
}

.exp-hero__cta:hover,
.exp-hero__cta:focus-visible {
  background: #fbbf24;
}

.exp-hero__cta:focus-visible,
.exp-hero__cta-secondary:focus-visible {
  outline: 3px solid var(--exp-focus);
  outline-offset: 2px;
}

.exp-hero__cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--exp-hero-ink);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid rgba(248, 250, 252, 0.55);
}

.exp-hero__cta-secondary:hover,
.exp-hero__cta-secondary:focus-visible {
  border-color: var(--exp-gold);
  color: var(--exp-gold);
}

.exp-hero__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  color: var(--exp-hero-muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.exp-hero__benefits li::before {
  content: "·";
  margin-right: 0.45rem;
  color: var(--exp-gold);
}

.exp-hero__visual {
  display: flex;
  justify-content: center;
}

.exp-hero__companion {
  width: min(100%, 22rem);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}

.exp-hero__companion img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 16rem;
  object-fit: contain;
}

@media (prefers-reduced-motion: no-preference) {
  .exp-hero__companion {
    transition: transform 0.28s ease;
  }
  .exp-hero__companion:hover,
  .exp-hero__companion:focus-within {
    transform: scale(1.02);
  }
}

/* Compact utility strip (map / tools) */
.exp-hero--utility {
  color: var(--exp-ink);
  background: var(--exp-canvas);
  border-bottom: 1px solid #e7e5e4;
}

.exp-hero--utility .exp-hero__shade {
  background: linear-gradient(90deg, rgba(248, 245, 240, 0.92), rgba(248, 245, 240, 0.55));
}

.exp-hero--utility .exp-hero__title {
  color: var(--exp-navy);
  text-shadow: none;
}

.exp-hero--utility .exp-hero__story,
.exp-hero--utility .exp-hero__eyebrow {
  color: var(--exp-muted);
}

.exp-hero--utility .exp-hero__eyebrow {
  color: var(--exp-red);
  letter-spacing: 0.12em;
}

.exp-hero--utility .exp-hero__inner {
  padding: 2.25rem 1.25rem;
}

.exp-hero--utility .exp-hero__cta {
  background: var(--exp-gold);
  color: var(--exp-ink);
}

.exp-hero--utility .exp-hero__cta-secondary {
  color: var(--exp-navy);
  border-color: rgba(6, 26, 51, 0.35);
}

.exp-hero--utility .exp-hero__cta-secondary:hover,
.exp-hero--utility .exp-hero__cta-secondary:focus-visible {
  border-color: var(--exp-red);
  color: var(--exp-red);
}


/* Shop variant keeps commerce energy but prefers photo over void gradient */
.exp-hero--shop .exp-hero__shade {
  background: linear-gradient(180deg, rgba(6, 26, 51, 0.72), rgba(6, 26, 51, 0.92));
}

/* Locations hub band — photo behind Places We’ve Been copy */
.exp-hero--places .exp-hero__inner {
  padding: 2.75rem 1.25rem 3rem;
  text-align: left;
}

.exp-hero--places .exp-hero__copy {
  max-width: 42rem;
}

/* WO-389B — campfire invite + short story lines (not a destination directory) */
.exp-hero--places .exp-hero__lede {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--exp-hero-ink);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
}

.exp-hero--places .exp-hero__story {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.exp-hero--places .exp-hero__story p {
  margin: 0;
}

/* Fail-closed: no photo assigned / broken */
.exp-hero--fallback .exp-hero__media,
.exp-hero--fallback .exp-hero__picture {
  display: none;
}

.exp-hero--fallback {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(245, 179, 1, 0.18), transparent 45%),
    linear-gradient(160deg, var(--exp-navy), var(--exp-navy-deep));
}

.exp-hero--fallback .exp-hero__shade {
  background: transparent;
}

/* Bridge with legacy hp-hero when both classes present */
.exp-hero.hp-hero {
  background-image: none;
  text-align: left;
}

.exp-hero.hp-hero .hp-hero__inner {
  width: 100%;
  max-width: 72rem;
}
