/* =========================================================
   SECTION — Hero (docs/sections/hero.md)
   ========================================================= */

.hero {
  --hero-inset: 38px;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 616px;
  padding: 140px 0 61px;
  overflow: hidden;
  color: var(--color-white);
  background-color: #001229; /* shown while the first slide loads */
}

/* ---------- Background slider ---------- */
.hero__bg,
.hero__bg .carousel-inner,
.hero__bg .carousel-item { position: absolute; inset: 0; height: 100%; }
.hero__bg { z-index: 0; }
.hero__bg .carousel-item { transition-duration: 1.2s; }
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Readability overlay: darker on the text side */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 12, 34, 0.55) 0%, rgba(0, 12, 34, 0.2) 50%, rgba(0, 12, 34, 0) 75%),
    linear-gradient(0deg, rgba(0, 7, 23, 0.35) 0%, rgba(0, 7, 23, 0) 40%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 2; }

/* ---------- Left: copy ---------- */
.hero__content { padding-left: var(--hero-inset); }

.hero__eyebrow {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
}

.hero__title {
  margin: 0 0 15px;
  color: var(--color-white);
}
.hero__title-accent { display: block; color: var(--color-gold); }

.hero__text {
  max-width: 450px;
  margin: 0 0 28px;
  color: var(--color-white);
}

.hero__actions { gap: 17px; }

/* ---------- Right: card stack ---------- */
.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 322px;
  margin-left: auto;
}

/* Must-See slider card */
.hero-card {
  height: 138px;
  padding: 11px;
}
.hero-card .carousel-item { transition-duration: .7s; }
.hero-card__slide {
  display: flex;
  gap: 12px;
  height: 116px;
}
.hero-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}
.hero-card__title {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-white);
}
.hero-card__title a { color: inherit; }
.hero-card__counter {
  position: absolute;
  left: 12px;
  bottom: 13px;
  z-index: 2;
  font-size: 12px;
  line-height: 16px;
}
.hero-card__media {
  flex: 0 0 139px;
  width: 139px;
  height: 117px;
  border-radius: var(--radius-media);
  overflow: hidden;
}
.hero-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Contact bar */
.hero-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 12px;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  transition: background-color .2s ease;
}
.hero-contact:hover { color: var(--color-white); background: rgba(50, 96, 161, 0.8); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero { min-height: 0; padding: 150px 0 48px; }
  .hero__bg-img { object-position: 65% center; }
  .hero__overlay { background: linear-gradient(0deg, rgba(0, 7, 23, 0.7) 0%, rgba(0, 12, 34, 0.35) 100%); }
  .hero__content { padding-left: 0; margin-bottom: 40px; }
  .hero__aside { width: 100%; max-width: 420px; margin-left: 0; }
}

/* Tablet: centre the stacked copy and card stack */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero__content { text-align: center; }
  .hero__text { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__aside { margin-inline: auto; }
}

@media (max-width: 575.98px) {
  .hero { padding-top: 130px; }
  .hero__actions .btn-ds { width: 100%; justify-content: space-between; }
  .hero__actions .btn-ds--outline-light { justify-content: center; }
  .hero-card__media { flex-basis: 120px; width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .carousel-item { transition: none; }
}
