/* ============================================================
   home.css — homepage-specific layout
   ============================================================ */

.hero {
  background: var(--color-bg-dark);
  color: var(--color-fg-inverse);
  padding: var(--space-24) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  line-height: 1.06;
  letter-spacing: var(--tracking-tight);
  max-width: 700px;
  margin-bottom: var(--space-6);
}
.hero__title .accent { color: var(--teal-400); }

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: var(--space-12);
}

.hero__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

/* ── Featured event (homepage hero) ───────────────── */
/* Single-column copy block on the left; the right side of the hero
   is occupied by the HeroPhotoStack carousel (see .hps-* below). */
.featured-event {
  display: block;
  max-width: 580px;
}

.featured-event__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.featured-event__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.6vw, 50px);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  letter-spacing: var(--tracking-tight);
  line-height: 1.08;
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
  max-width: 720px;
}

.featured-event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
.featured-event__meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
}
.featured-event__meta-item svg {
  width: 18px; height: 18px;
  color: var(--teal-400);
  flex-shrink: 0;
}

.featured-event__price {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  padding: 10px 18px;
  background: rgba(232, 168, 74, 0.12);
  border: 1px solid rgba(232, 168, 74, 0.35);
  border-radius: var(--radius-md);
}
.featured-event__price-amount {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--amber-400);
  letter-spacing: var(--tracking-tight);
}
.featured-event__price-note {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: var(--tracking-wide);
}

.featured-event__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 900px) {
  .featured-event { max-width: none; }
}

/* ============================================================
   Hero photo stack (HPS) — crossfading carousel on the right
   side of the dark hero. 6 photos × 6s = 36s loop. Pure CSS.
   Original spec: handoff/hero-photo-stack/README.md.
   ============================================================ */

.hps-root {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Photo layer — slightly desaturated so it reads as background. */
.hps-photos {
  position: absolute;
  inset: 0;
  filter: saturate(0.7) contrast(1.02) brightness(0.92);
}

.hps-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: hps-rotate 36s infinite;
  will-change: opacity, transform;
}

.hps-p1 { animation-delay:  0s; }
.hps-p2 { animation-delay:  6s; }
.hps-p3 { animation-delay: 12s; animation-name: hps-rotate-flip; transform: scaleX(-1); }
.hps-p4 { animation-delay: 18s; }
.hps-p5 { animation-delay: 24s; }
.hps-p6 { animation-delay: 30s; }

@keyframes hps-rotate {
  0%, 13%        { opacity: 1; transform: scale(1.00); }
  16.66%, 96.66% { opacity: 0; transform: scale(1.04); }
  100%           { opacity: 1; transform: scale(1.00); }
}

/* Mirrored variant for photo #3 (preserves scaleX(-1) through keyframes). */
@keyframes hps-rotate-flip {
  0%, 13%        { opacity: 1; transform: scaleX(-1) scale(1.00); }
  16.66%, 96.66% { opacity: 0; transform: scaleX(-1) scale(1.04); }
  100%           { opacity: 1; transform: scaleX(-1) scale(1.00); }
}

/* Light navy multiply to keep brand cohesion. */
.hps-tint {
  position: absolute;
  inset: 0;
  background: var(--navy-900);
  mix-blend-mode: multiply;
  opacity: 0.18;
}

/* Subtle teal duotone in highlights. */
.hps-duotone {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 173, 168, 0.18),
    rgba(12, 27, 51, 0) 55%
  );
  mix-blend-mode: screen;
}

/* Left-edge fade so photos blend seamlessly into the navy text side. */
.hps-fade-x {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--navy-900)           0%,
    rgba(12, 27, 51, 0.85)   16%,
    rgba(12, 27, 51, 0.25)   40%,
    rgba(12, 27, 51, 0)      70%
  );
}

/* Top/bottom edge softening to avoid hard seams. */
.hps-fade-y {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--navy-900)        0%,
    rgba(12, 27, 51, 0)   14%,
    rgba(12, 27, 51, 0)   86%,
    var(--navy-900)      100%
  );
}

/* Respect users who don't want motion. */
@media (prefers-reduced-motion: reduce) {
  .hps-photo { animation: none; opacity: 0; }
  .hps-p1    { opacity: 1; }
}

/* Hide on narrow viewports — the headline column needs the full width
   and the photos can't carry the layout below ~900px without overlap. */
@media (max-width: 900px) {
  .hps-root { display: none; }
}

/* Featured CTA band */
.cta-band {
  background: var(--navy-900);
  color: var(--white);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}
.cta-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--white);
  margin-bottom: var(--space-3);
}
.cta-band p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
  line-height: 1.6;
}
