/* ═══════════════════════════════════════════════════════
   HERO — Split Screen Slider v5
   hero.css
   ═══════════════════════════════════════════════════════ */

#hero {
  width: 100%;
  height: calc(100vh - 148px);
  min-height: 520px;
  display: grid;
  grid-template-columns: 42% 58%;
  position: relative;
  background: var(--navy-dark);
  /* NO overflow:hidden here — SVG needs to bleed */
}

@media (min-width: 1921px) {
  #hero { height: 900px; }
}

/* ══════════════════════════════════════════════════════
   LEFT PANEL
══════════════════════════════════════════════════════ */
.hero-left {
  position: relative;
  z-index: 3;
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 52px 0 60px;
  /* NO overflow:hidden — lets SVG curves render fully */
}

/* Gold right border */
.hero-left::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 0;
  width: 1.5px;
  height: 80%;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  z-index: 2;
  pointer-events: none;
}

/* ── SVG Curve Wrapper ── */
.hero-svg-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden; /* clip curves to left panel only */
}

.hero-svg-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible; /* allow paths to go outside viewbox */
}

/* Base curve styles — NO fill, stroke only */
.hero-curve,
.hero-curve-2,
.hero-curve-3 {
  fill: none !important;
  stroke-linecap: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.hero-curve {
  stroke: rgba(201, 168, 76, 0.22);
  stroke-width: 1.2;
}

.hero-curve-2 {
  stroke: rgba(201, 168, 76, 0.13);
  stroke-width: 1.0;
}

.hero-curve-3 {
  stroke: rgba(201, 168, 76, 0.07);
  stroke-width: 0.8;
}

/* Draw state */
.hero-curve.draw,
.hero-curve-2.draw,
.hero-curve-3.draw {
  animation: curveDraw var(--cdur, 3s) ease forwards;
}

/* Erase state */
.hero-curve.erase,
.hero-curve-2.erase,
.hero-curve-3.erase {
  animation: curveErase var(--cdur, 2s) ease forwards;
}

@keyframes curveDraw {
  from { stroke-dashoffset: 1200; }
  to   { stroke-dashoffset: 0; }
}

@keyframes curveErase {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -1200; }
}

/* All content above SVG */
.hero-left > *:not(.hero-svg-wrap) {
  position: relative;
  z-index: 1;
}

/* ── Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

/* Large inline stars */
.hero-stars-inline {
  font-size: 24px;
  letter-spacing: 0;
  color: var(--gold);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

/* Remove dots entirely */
.hero-badge-dot {
  display: none;
}

/* ── Title ── */
.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 3.8vw, 66px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.06;
  margin: 0 0 14px;
}

.hero-title em {
  font-style: italic;
  color: var(--white);
  display: block;
}

/* ── Divider ── */
.hero-divider {
  width: 40px;
  height: 1.5px;
  background: var(--gold);
  display: block;
  margin-bottom: 60px;
}

/* ── Slide Content ── */
.hero-slide-content {
  display: none;
  flex-direction: column;
  gap: 0;
}

.hero-slide-content.is-active {
  display: flex;
  animation: contentFadeUp 0.55s ease both;
}

@keyframes contentFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-slide-tag {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 28px;
}

/* ── CTA Button ── */
.btn-hero-slide {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  color: var(--white);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 13px 26px;
  text-decoration: none;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.btn-hero-slide:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

.btn-hero-slide i { font-size: 11px; }

/* ── Counter — bottom RIGHT of LEFT panel ── */
.hero-counter {
  position: absolute !important;
  bottom: 24px;
  right: 24px;
  z-index: 4;
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.10em;
  pointer-events: none;
}

.hero-counter-current {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

/* ══════════════════════════════════════════════════════
   RIGHT PANEL
══════════════════════════════════════════════════════ */
.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.95s ease;
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Steady — no zoom */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(8, 16, 28, 0.04) 0%,
    rgba(8, 16, 28, 0.22) 100%
  );
}

/* ── Arrows — bottom right of RIGHT panel ── */
.hero-arrows {
  position: absolute;
  bottom: 20px;
  right: 16px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.hero-arrow {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 16, 28, 0.30);
  color: var(--white);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background: rgba(201, 168, 76, 0.22);
  border-color: var(--gold);
  color: var(--gold);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Tablet 768–991px
══════════════════════════════════════════════════════ */
@media (max-width: 991px) and (min-width: 768px) {
  #hero {
    grid-template-columns: 1fr;
    grid-template-rows: 40% 60%;
    height: calc(100vh - 90px);
    min-height: 520px;
  }

  .hero-right { order: -1; }
  .hero-slides { position: absolute; inset: 0; }

  .hero-left {
    padding: 28px 36px 28px 40px;
    justify-content: center;
  }
  .hero-left::after { display: none; }

  .hero-title { font-size: clamp(30px, 4.5vw, 44px); }
  .hero-slide-tag { font-size: 15px; white-space: normal; }
  .hero-counter { bottom: 16px; right: 16px; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Mobile < 768px
══════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  #hero {
    grid-template-columns: 1fr;
    grid-template-rows: 52% 48%;
    height: calc(100vh - 90px);
    min-height: 480px;
  }

  .hero-right { order: -1; }
  .hero-slides { position: absolute; inset: 0; }

  .hero-left {
    padding: 20px 20px 22px;
    justify-content: center;
  }
  .hero-left::after { display: none; }

  .hero-badge {
    font-size: 12px;
  }
  .hero-stars-inline {
        font-size: 20px;
  }


  .hero-title {
    font-size: clamp(26px, 7vw, 38px);
    margin-bottom: 10px;
  }

  .hero-divider { width: 30px; margin-bottom: 14px; }

  .hero-slide-tag {
    font-size: 13px;
    white-space: normal;
    margin-bottom: 20px;
  }

  .btn-hero-slide { padding: 11px 18px; font-size: 10px; }

  .hero-counter { bottom: 14px; right: 14px; }
  .hero-arrows  { bottom: 10px; right: 10px; }
  .hero-arrow   { width: 36px; height: 36px; font-size: 11px; }
}

@media (max-width: 400px) {
  #hero { grid-template-rows: 40% 60%; }
  .hero-title { font-size: 24px; }
  .hero-left  { padding: 16px 16px 18px; }
}
