/* =========================================================
   Section 01 – Main banner  |  Multi-animation slider
   5 transition styles cycle in sequence:
     1. slide-right  – new slide pushes in from right
     2. zoom-in      – new slide grows from centre
     3. slide-up     – new slide rises from bottom
     4. slide-left   – new slide pushes in from left
     5. zoom-out     – old slide shrinks, new one fades in
   ========================================================= */

/* ---- Container ---- */
.hero {
  position: relative;
  background: var(--navy-dark);
  overflow: hidden;
}
.hero-slides {
  position: relative;
  height: clamp(480px, 80vh, 740px);
}

/* ---- Base slide state ---- */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* ================================================================
   ANIMATION TYPE 1: slide-right
   ================================================================ */
.hero-slides[data-anim="slide-right"] .hero-slide.is-leaving {
  animation: exitLeft 0.5s cubic-bezier(.77,0,.18,1) forwards;
  z-index: 2;
}
.hero-slides[data-anim="slide-right"] .hero-slide.is-active {
  animation: enterRight 0.5s cubic-bezier(.77,0,.18,1) forwards;
  opacity: 1;
}
@keyframes enterRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
@keyframes exitLeft {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(-100%); opacity: 1; }
}

/* ================================================================
   ANIMATION TYPE 2: zoom-in
   ================================================================ */
.hero-slides[data-anim="zoom-in"] .hero-slide.is-leaving {
  animation: exitFadeOut 0.55s ease forwards;
  z-index: 2;
}
.hero-slides[data-anim="zoom-in"] .hero-slide.is-active {
  animation: enterZoomIn 0.55s cubic-bezier(.22,1,.36,1) forwards;
  opacity: 1;
}
@keyframes enterZoomIn {
  from { transform: scale(1.18); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
@keyframes exitFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ================================================================
   ANIMATION TYPE 3: slide-up
   ================================================================ */
.hero-slides[data-anim="slide-up"] .hero-slide.is-leaving {
  animation: exitSlideUp 0.5s cubic-bezier(.77,0,.18,1) forwards;
  z-index: 2;
}
.hero-slides[data-anim="slide-up"] .hero-slide.is-active {
  animation: enterSlideUp 0.5s cubic-bezier(.77,0,.18,1) forwards;
  opacity: 1;
}
@keyframes enterSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes exitSlideUp {
  from { transform: translateY(0);     opacity: 1; }
  to   { transform: translateY(-100%); opacity: 0; }
}

/* ================================================================
   ANIMATION TYPE 4: slide-left
   ================================================================ */
.hero-slides[data-anim="slide-left"] .hero-slide.is-leaving {
  animation: exitRight 0.5s cubic-bezier(.77,0,.18,1) forwards;
  z-index: 2;
}
.hero-slides[data-anim="slide-left"] .hero-slide.is-active {
  animation: enterLeft 0.5s cubic-bezier(.77,0,.18,1) forwards;
  opacity: 1;
}
@keyframes enterLeft {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
@keyframes exitRight {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(100%); opacity: 1; }
}

/* ================================================================
   ANIMATION TYPE 5: zoom-out
   ================================================================ */
.hero-slides[data-anim="zoom-out"] .hero-slide.is-leaving {
  animation: exitZoomOut 0.55s cubic-bezier(.22,1,.36,1) forwards;
  z-index: 2;
}
.hero-slides[data-anim="zoom-out"] .hero-slide.is-active {
  animation: enterFadeIn 0.5s ease forwards;
  opacity: 1;
}
@keyframes exitZoomOut {
  from { transform: scale(1);    opacity: 1; }
  to   { transform: scale(1.14); opacity: 0; }
}
@keyframes enterFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Ken-Burns slow zoom on active image ---- */
.hero-slide.is-active img {
  animation: heroKenBurns 10s ease-out forwards;
  animation-delay: 0.9s;
}
@keyframes heroKenBurns {
  from { transform: scale(1);    }
  to   { transform: scale(1.07); }
}

/* ---- Gradient overlay ---- */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(18,40,75,.88) 0%,
      rgba(18,40,75,.60) 48%,
      rgba(18,40,75,.08) 100%),
    linear-gradient(0deg,
      rgba(18,40,75,.55) 0%,
      transparent 55%);
}

/* ---- Overlay content ---- */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  /* keep content away from bottom nav */
  padding-bottom: 60px;
}
.hero-text {
  max-width: 600px;
  color: var(--white);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s .5s ease, transform .65s .5s ease;
}
.hero-text.hero-text--in {
  opacity: 1;
  transform: translateY(0);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px;
  color: var(--gold-fill); background: rgba(255,196,20,.12); padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,196,20,.4);
}
.hero-text h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  margin-bottom: 18px;
  line-height: 1.1;
}
.hero-text h1 span { color: var(--gold); }
.hero-text p {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: #d8e3f5;
  margin: 0 0 32px;
  max-width: 520px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 5;
}

/* ---- Hero-specific button overrides ---- */
.hero .btn--gold {
  background: var(--gold-fill);
  color: var(--navy-dark);
  border-color: var(--gold-fill);
}
.hero .btn--gold:hover {
  background: var(--gold-fill-dark);
  border-color: var(--gold-fill-dark);
  color: var(--navy-dark);
}
/* Solid semi-opaque background so the outline button is always readable */
.hero .btn--outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: rgba(18,40,75,.35);
  backdrop-filter: blur(6px);
}
.hero .btn--outline:hover {
  background: var(--white);
  color: var(--navy-dark);
}

/* ---- Navigation arrows ---- */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  cursor: pointer;
  background: rgba(18,40,75,.4);
  color: var(--white);
  font-size: 1.2rem;
  backdrop-filter: blur(6px);
  transition: background .25s, border-color .25s, transform .25s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-arrow:hover {
  background: var(--gold-fill);
  border-color: var(--gold-fill);
  color: var(--navy-dark);
  transform: translateY(-50%) scale(1.12);
}
.hero-arrow--prev { left: 20px; }
.hero-arrow--next { right: 20px; }

/* ---- Dots ---- */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .25s, border-color .25s, width .3s, border-radius .3s;
}
.hero-dots button.is-active {
  background: var(--gold);
  border-color: var(--gold);
  width: 28px;
  border-radius: 999px;
}

/* ---- Slide label pill ---- */
.hero-label {
  position: absolute;
  bottom: 50px;
  right: 24px;
  z-index: 4;
  background: rgba(18,40,75,.65);
  backdrop-filter: blur(8px);
  color: #e4ecf8;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201,162,75,.4);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s, transform .4s;
}
.hero-label.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Slide counter (top-left) ---- */
.hero-counter {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 4;
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  letter-spacing: .06em;
  pointer-events: none;
}
.hero-counter .current { color: var(--gold); font-size: 1.1rem; }

/* ---- Progress bar ---- */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,.12);
  z-index: 5;
  overflow: hidden;
}
.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #ffe27a);
  border-radius: 0 2px 2px 0;
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .hero::after {
    background:
      linear-gradient(0deg, rgba(18,40,75,.88) 0%, rgba(18,40,75,.4) 60%, transparent 100%);
  }
  .hero-content {
    align-items: flex-end;
    padding-bottom: 72px;
  }
  .hero-arrow { display: none; }
  .hero-label { display: none; }
  .hero-counter { display: none; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-leaving,
  .hero-slide.is-active,
  .hero-text { animation: none !important; transition: none !important; }
  .hero-slide.is-active { opacity: 1; }
  .hero-progress-bar { transition: none; }
}


/* =========================================================
   v2 redesign: full-screen hero, bold type, glass card
   ========================================================= */
.hero-slides { height: clamp(620px, 100svh, 900px); }
.hero::after {
  background:
    linear-gradient(90deg, rgba(10,26,48,.9) 0%, rgba(10,26,48,.62) 42%, rgba(10,26,48,.1) 100%),
    linear-gradient(0deg, rgba(10,26,48,.62) 0%, transparent 40%);
}
.hero-content { padding-top: calc(var(--header-h) + 56px); padding-bottom: 110px; }
.hero-text { max-width: 720px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
  padding: 6px 13px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: 0;
  background: rgba(255,255,255,.14); backdrop-filter: blur(8px); color: var(--white);
  border: 1px solid rgba(255,255,255,.22);
}
.hero-badge-star { color: var(--gold); }

.hero-text h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em;
  color: var(--white); margin-bottom: 18px;
}
.hero-text h1 .hl { color: var(--gold); position: relative; display: inline-block; }
.hero-text h1 .scribble {
  position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .2em; color: var(--gold);
}
.hero-text p { font-size: clamp(.95rem, 1.3vw, 1.08rem); margin-bottom: 26px; color: rgba(255,255,255,.82); max-width: 520px; }
.hero .btn--outline { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }
.hero .btn--outline:hover { background: var(--white); color: var(--navy); }

.hero-scroll-wrap { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 4; pointer-events: none; }
.hero-scroll { display: inline-flex; align-items: flex-end; gap: 12px; color: var(--white); font-weight: 600; font-size: .95rem; pointer-events: auto; }
.hero-scroll svg { width: 14px; height: 26px; }
.hero-scroll:hover { color: var(--gold); }

.hero-card {
  position: absolute; right: max(24px, calc((100vw - var(--container)) / 2 + var(--gutter))); bottom: 72px; z-index: 4;
  width: 300px; padding: 10px; text-align: left; cursor: pointer; font-family: var(--font-body);
  background: rgba(255,255,255,.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.4); border-radius: 18px; color: var(--white);
  transition: transform .25s, background .25s;
}
.hero-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.24); }
.hero-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.hero-card-text { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 6px 4px; font-weight: 600; font-size: .95rem; }
.hero-card-text svg { width: 18px; height: 18px; flex: none; }

.hero-arrow, .hero-counter { display: none; }
.hero-dots { left: auto; right: max(24px, calc((100vw - var(--container)) / 2 + var(--gutter))); transform: none; bottom: 30px; }
.hero-progress-bar { background: var(--gold); }

@media (max-width: 760px) {
  .hero-card { display: none; }
  .hero-content { padding-bottom: 110px; align-items: flex-end; }
  .hero-text h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .hero-dots { left: 50%; right: auto; transform: translateX(-50%); }
  .hero-scroll-wrap { display: none; }
}

.hero .btn { padding: 12px 22px; font-size: .92rem; }
.hero-scroll { font-size: .88rem; }

/* ---- Video card + modal ---- */
.hero-card { width: 320px; }
.hero-card-thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; }
.hero-card-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 0; background: var(--navy-dark); }
.hero-play {
  position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-fill); color: var(--navy-dark);
  box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .25s;
}
.hero-play svg { width: 26px; height: 26px; margin-left: 3px; }
.hero-card:hover .hero-play { transform: scale(1.1); }
.hero-watch { display: none; }
@media (max-width: 760px) { .hero-watch { display: inline-flex; align-items: center; gap: 8px; } }

.video-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.video-modal[hidden] { display: none; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(8,18,34,.86); }
.video-modal-box { position: relative; width: min(960px, 100%); }
.video-modal-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute; right: 0; top: -48px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); background: transparent; color: var(--white);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.video-modal-close:hover { background: var(--gold-fill); border-color: var(--gold-fill); color: var(--navy-dark); }
