/* ============================================================
   template-hero-section.css — aurelio travels v4.0
   Complete redesign — inner-page hero slideshow
   All values reference main.css variables only.
   NO hardcoded colors, fonts, or spacing.
   ============================================================ */

/* ── HERO WRAPPER ─────────────────────────────────────────── */
.hero-slideshow {
  position: relative;
  min-height: 65vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: var(--spacing-28) 0 var(--spacing-20);
  background: var(--color-navy-deepest);
}

/* ── BACKGROUND LAYERS (crossfade) ────────────────────────── */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: opacity 2s ease-in-out;
}
.hero-bg-layer-0 { opacity: 1; z-index: 1; }
.hero-bg-layer-1 { opacity: 0; z-index: 0; }

/* Deep cinematic overlay: strong top + bottom vignette */
.hero-bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(var(--color-navy-rgb), 0.72) 0%,
      rgba(var(--color-navy-rgb), 0.38) 40%,
      rgba(var(--color-navy-rgb), 0.52) 70%,
      rgba(var(--color-navy-rgb), 0.88) 100%
    ),
    linear-gradient(to right,
      rgba(var(--color-navy-rgb), 0.40) 0%,
      transparent 40%,
      transparent 60%,
      rgba(var(--color-navy-rgb), 0.30) 100%
    );
  z-index: 1;
}

/* ── CONTENT LAYER ─────────────────────────────────────────── */
.hero-slideshow .container {
  position: relative;
  z-index: var(--z-index-10);
}

/* ── EYEBROW LABEL ─────────────────────────────────────────── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  font-family: var(--font-elegant);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  background: var(--color-gold-bg);
  border: 1px solid var(--border-gold);
  padding: var(--spacing-1-5) var(--spacing-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-5);
  animation: heroFadeDown 0.8s ease-out both;
}

/* ── HEADLINE ──────────────────────────────────────────────── */
.hero-slideshow h1 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-6xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-primary);
  text-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-6);
  animation: heroFadeUp 0.9s ease-out 0.15s both;
}

/* Gradient accent on a span inside h1 — e.g. <span class="hero-accent">word</span> */
.hero-slideshow h1 .hero-accent {
  background: var(--gradient-text-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gold rule beneath headline */
.hero-slideshow h1::after {
  content: '';
  display: block;
  width: var(--spacing-16);
  height: 2px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  margin: var(--spacing-4) auto 0;
  animation: heroRuleExpand 1.2s ease-out 0.4s both;
}

/* ── SUBHEADING ────────────────────────────────────────────── */
.hero-slideshow .hero-sub {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-white-80);
  max-width: 580px;
  margin: 0 auto var(--spacing-8);
  text-shadow: var(--shadow-sm);
  animation: heroFadeUp 0.9s ease-out 0.30s both;
}

/* ── CTA BUTTON ROW ────────────────────────────────────────── */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-4);
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-10);
  animation: heroFadeUp 0.9s ease-out 0.45s both;
}

/* Primary CTA — inherits .btn-primary from main.css */
.hero-cta-row .btn-primary {
  padding: var(--spacing-3-5) var(--spacing-8);
  font-family: var(--font-elegant);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

/* Ghost CTA — inherits .btn-outline-primary-navy from main.css */
.hero-cta-row .btn-outline-primary-navy {
  padding: var(--spacing-3-5) var(--spacing-8);
  font-family: var(--font-elegant);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

/* ── STAT STRIP ────────────────────────────────────────────── */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-1);
  animation: heroFadeUp 0.9s ease-out 0.55s both;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-3) var(--spacing-5);
  background: var(--color-white-05);
  border: 1px solid var(--color-white-12);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-elegant);
}

.hero-stat:hover {
  background: var(--color-white-10);
  border-color: var(--color-white-20);
  transform: translateY(-2px);
}

.hero-stat-number {
  font-family: var(--font-elegant);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-gold);
  line-height: var(--leading-none);
}

.hero-stat-label {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-white-70);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  line-height: var(--leading-snug);
}

/* ── SLIDE PROGRESS BAR ────────────────────────────────────── */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-white-10);
  z-index: var(--z-index-10);
  overflow: hidden;
}

.hero-progress-fill {
  height: 100%;
  background: var(--gradient-gold);
  width: 0%;
  transition: width 10s linear;
  border-radius: var(--radius-full);
}

/* ── SLIDE DOTS ────────────────────────────────────────────── */
.hero-dots {
  position: absolute;
  bottom: var(--spacing-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-2);
  z-index: var(--z-index-10);
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-white-30);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition-base);
}

.hero-dot.active {
  width: var(--spacing-6);
  background: var(--color-gold);
}

/* ── SCROLL INDICATOR ──────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--spacing-8);
  right: var(--spacing-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2);
  z-index: var(--z-index-10);
  animation: heroFadeUp 1s ease-out 1s both;
}

.hero-scroll-hint span {
  font-family: var(--font-elegant);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-white-50);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: var(--spacing-10);
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: heroScrollPulse 2s ease-in-out infinite;
}

/* ── AMBIENT GLOW (bottom ocean) ──────────────────────────── */
.hero-glow-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--spacing-24);
  background: radial-gradient(ellipse at 50% 100%,
    var(--color-sapphire-glow) 0%,
    var(--color-cyan-glow-sm) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: var(--z-index-10);
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroRuleExpand {
  from { width: 0; opacity: 0; }
  to   { width: var(--spacing-16); opacity: 1; }
}

@keyframes heroScrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.08); }
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-slideshow {
    min-height: 55vh;
    padding: var(--spacing-24) 0 var(--spacing-16);
  }
  .hero-slideshow h1 { font-size: var(--text-5xl); }
  .hero-scroll-hint  { display: none; }
}

@media (max-width: 767px) {
  .hero-slideshow {
    min-height: 50vh;
    padding: var(--spacing-20) 0 var(--spacing-14);
    background-attachment: scroll;
  }
  .hero-bg-layer {
    background-attachment: scroll; /* fix iOS fixed bg */
  }
  .hero-slideshow h1  { font-size: var(--text-4xl); }
  .hero-slideshow .hero-sub { font-size: var(--text-base); }
  .hero-dots { display: none; }
}

@media (max-width: 575px) {
  .hero-slideshow {
    min-height: 45vh;
    padding: var(--spacing-16) 0 var(--spacing-12);
  }
  .hero-slideshow h1 { font-size: var(--text-3xl); }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-stats {
    gap: var(--spacing-2);
  }
  .hero-stat {
    flex: 1 1 120px;
    justify-content: center;
    text-align: center;
  }
}

/* ── REDUCED MOTION ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow h1,
  .hero-slideshow .hero-sub,
  .hero-eyebrow,
  .hero-cta-row,
  .hero-stats,
  .hero-scroll-hint { animation: none; }
  .hero-bg-layer     { transition: none; }
  .hero-progress-fill { transition: none; }
  .hero-scroll-line  { animation: none; }
}
