/* ==========================================================
   Hero banner  —  templates/partials/hero.html
   Slider behaviour: static/js/hero-slider.js
   ========================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line-accent);
  background:
    radial-gradient(45% 75% at 68% 50%, rgba(255, 23, 68, 0.26), transparent 70%),
    radial-gradient(30% 55% at 12% 35%, rgba(255, 176, 0, 0.06), transparent 70%),
    linear-gradient(180deg, #060606 0%, var(--bg) 100%);
}

/* Line icons used across the hero */
.hero .ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.hero-inner {
  max-width: 1440px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

/* ---------- Left: copy ---------- */

.hero-kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-title {
  margin: 24px 0 0;
  font-family: var(--font);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(40px, 3.9vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.hero-title span,
.slide-title span {
  display: block;
}

.hero-title .hl,
.slide-title .hl {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(255, 23, 68, 0.35);
}

.hero-lead {
  max-width: 384px;
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-soft);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-features .ico {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 32px;
}

/* ---------- Buttons ---------- */

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--on-btn);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(255, 176, 0, 0.2);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-hero .ico {
  width: 20px;
  height: 20px;
}

.btn-hero:hover {
  background: var(--btn-bg-hover);
  box-shadow: var(--glow-btn), 0 8px 24px rgba(255, 176, 0, 0.3);
  transform: translateY(-1px);
}

.btn-hero-sm {
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 13px;
}

.btn-hero-sm .ico {
  width: 16px;
  height: 16px;
}

.btn-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s ease;
}

.btn-hero-link .ico {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}

.btn-hero-link:hover {
  color: var(--gold-light);
}

.btn-hero-link:hover .ico {
  transform: translateX(3px);
}

.btn-hero:focus-visible,
.btn-hero-link:focus-visible,
.slider-arrow:focus-visible,
.slider-dot:focus-visible,
.slider-pause:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ---------- Right: slider ---------- */

.hero-slider {
  width: 800px;
  max-width: 100%;
  padding-top: 40px; /* sits slightly lower than the copy, as in the design */
}

.slider-stage {
  position: relative;
  display: grid;
  grid-template-columns: 44px 310px 330px 44px;
  column-gap: 24px;
  align-items: center;
}

.slider-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.slider-arrow .ico {
  width: 18px;
  height: 18px;
}

.slider-arrow:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
}

/* Art: static 777 badge + one tile per slide */
.slider-art {
  position: relative;
  height: 210px;
}

.hero-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-4deg);
}

.hero-badge-box {
  display: grid;
  place-items: center;
  width: 150px;
  height: 94px;
  border: 3px solid var(--gold);
  border-radius: 16px;
  background: linear-gradient(160deg, #1c1c1c 0%, #050505 70%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 22px rgba(255, 176, 0, 0.22);
}

.hero-badge-777 {
  padding-right: 6px;
  font-family: var(--font);
  font-style: italic;
  font-weight: 900;
  font-size: 68px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow:
    0 0 4px #fff,
    0 0 16px rgba(255, 255, 255, 0.55),
    0 0 34px rgba(255, 211, 106, 0.45);
}

.hero-badge-label {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 800;
  line-height: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold);
}

.slide-tile {
  position: absolute;
  top: 60px;
  left: 160px;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 23, 68, 0.38) 0%, rgba(255, 23, 68, 0.08) 45%, transparent 70%),
    #080808;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.94);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    margin-left: 10px;

}

.slide-tile.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  margin-left: 10px;
}

.slide-tile svg {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 16px rgba(255, 176, 0, 0.25));
}

/* Text: slides stacked in one grid cell, only the active one visible */
.slider-texts {
  display: grid;
}

.slide-text {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.slide-text.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.slide-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.slide-title {
  margin: 16px 0 0;
  font-family: var(--font);
  font-style: italic;
  font-weight: 900;
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.slide-desc {
  max-width: 330px;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 21px;
  color: var(--text-soft);
}

.slide-text .btn-hero {
  margin-top: 20px;
}

/* Dots + pause */
.slider-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 64px;
}

.slider-dots {
  grid-column: 2;
  display: flex;
}

.slider-dot {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.slider-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 23, 68, 0.3);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.slider-dot:hover::before {
  background: rgba(255, 23, 68, 0.6);
}

.slider-dot[aria-current="true"]::before {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.7);
}

.slider-pause {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text-soft);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.slider-pause:hover {
  color: var(--gold-light);
}

.slider-pause .ico {
  width: 14px;
  height: 14px;
}

.slider-pause .ico-play,
.hero-slider.is-paused .slider-pause .ico-pause {
  display: none;
}

.hero-slider.is-paused .slider-pause .ico-play {
  display: block;
}

/* ---------- Responsive ---------- */

/* Not enough room side by side: stack copy above slider, centered */
@media (max-width: 1340px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    justify-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(32px, 8.5vw, 56px);
  }

  .hero-slider {
    padding-top: 0;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-features,
  .hero-actions {
    justify-content: center;
  }

  .slider-texts {
    text-align: left;
  }
}

/* Slider: art above text, arrows float beside the art */
@media (max-width: 860px) {
  .slider-stage {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .slider-art {
    width: 310px;
    justify-self: center;
  }

  .slider-texts {
    text-align: center;
  }

  .slide-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .slider-arrow {
    position: absolute;
    top: 83px;
    z-index: 2;
  }

  .slider-prev { left: 0; }
  .slider-next { right: 0; }

  .slider-controls {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0 32px;
  }

  .hero-inner {
    padding: 0 16px;
    gap: 48px;
  }

  .hero-actions {
    gap: 16px 24px;
  }

  .btn-hero {
    height: 52px;
  }

  .btn-hero-sm {
    height: 44px;
  }

  .slider-art {
    height: 174px;
    transform: scale(0.82);
    transform-origin: top center;
  }

  .slider-arrow {
    top: 54px;
    width: 38px;
    height: 38px;
  }

  .slide-title {
    font-size: 32px;
  }
}
