/* ==========================================================================
   Simplex — Home page only: hero carousel, key figures band and partner marquee.
   ========================================================================== */

/* ---------- Hero carousel ---------- */
/* Mobile first: short slide, text at the bottom, compact type and buttons; grows from 576px up */
.hero {
  position: relative;
  background: var(--sx-dark);
}
.hero .carousel-item {
  height: 400px;
}
.hero-slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
}
.hero-slide .ph {
  position: absolute;
  inset: 0;
  border-radius: 0;
  align-items: flex-start;
  justify-content: flex-end;
}
.hero-slide .ph::after {
  padding: 1.25rem 1.5rem;
}
.hero-slide::before {
  /* readability overlay — keeps text legible once real photos are in */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(20, 18, 17, 0.92) 0%, rgba(20, 18, 17, 0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 40rem;
}
.hero-content h1, .hero-content h2 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.hero-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.25rem;
}
.hero-content .eyebrow {
  font-size: 0.7rem;
  margin-bottom: 0.6rem;
}
.hero .btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.95rem;
}
@media (min-width: 576px) {
  .hero .carousel-item {
    height: 460px;
  }
  .hero-content h1, .hero-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
  }
  .hero-content .eyebrow {
    font-size: 0.78rem;
    margin-bottom: 0.9rem;
  }
  .hero .btn {
    padding: 0.75rem 1.6rem;
    font-size: 1.05rem;
  }
}
@media (min-width: 768px) {
  .hero .carousel-item {
    height: clamp(460px, 78vh, 720px);
  }
  .hero-slide {
    align-items: center;
    padding-bottom: 0;
  }
  .hero-slide::before {
    background: linear-gradient(90deg, rgba(20, 18, 17, 0.88) 0%, rgba(20, 18, 17, 0.6) 45%, rgba(20, 18, 17, 0.1) 100%);
  }
  .hero-content h1, .hero-content h2 {
    font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    margin-bottom: 1.1rem;
  }
  .hero-content p {
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    margin-bottom: 2rem;
  }
}
.hero-content .eyebrow {
  color: #fff;
  opacity: 0.9;
}
.hero-content .eyebrow::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--sx-red);
  vertical-align: middle;
  margin-right: 0.75rem;
}
.hero .carousel-indicators {
  z-index: 3;
  justify-content: flex-start;
  margin: 0 auto 1.5rem;
  max-width: var(--bs-container-max-width, 1320px);
  padding-inline: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}
.hero .carousel-indicators [data-bs-target] {
  width: 2.5rem;
  height: 3px;
  margin: 0 0.5rem 0 0;
  border: 0;
  opacity: 0.4;
  background-color: #fff;
}
.hero .carousel-indicators .active {
  opacity: 1;
  background-color: var(--sx-red);
}
.hero .carousel-control-prev, .hero .carousel-control-next {
  z-index: 3;
  width: 4rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.hero:hover .carousel-control-prev,
.hero:hover .carousel-control-next,
.hero .carousel-control-prev:focus-visible,
.hero .carousel-control-next:focus-visible {
  opacity: 0.8;
}
@media (max-width: 767.98px) {
  .hero .carousel-control-prev, .hero .carousel-control-next {
    display: none;
  }
}

/* ---------- Home: key figures band ---------- */
.figures {
  background: var(--sx-dark);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.figures dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  margin: 0;
}
.figures dl > div {
  display: flex;
  flex-direction: column-reverse;
  text-align: center;
}
.figures dd {
  margin: 0 0 0.35rem;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.figures dt {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sx-dark-muted);
}
.figures span {
  color: var(--sx-red-ink);
}
@media (min-width: 768px) {
  .figures dl {
    grid-template-columns: repeat(4, 1fr);
  }
  .figures dl > div + div {
    border-left: 1px solid var(--sx-dark-line);
  }
}

/* ---------- Partner marquee ---------- */
.partners {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.partners-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sx-muted);
  margin-bottom: 2.25rem;
}
@media (min-width: 768px) {
  .partners-title {
    font-size: 1.25rem;
    margin-bottom: 3rem;
  }
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.marquee-track li {
  flex: none;
  padding-inline: 1.25rem;
}
.marquee-track .ph {
  width: 160px;
  height: 64px;
  border-radius: var(--sx-radius-sm);
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0;
}
.marquee-track .partner-img {
  display: block;
  width: 150px;
  height: 60px;
  object-fit: contain;
}
@media (min-width: 768px) {
  .marquee-track li {
    padding-inline: 1.75rem;
  }
  .marquee-track .partner-img {
    width: 180px;
    height: 72px;
  }
}
/* site.js duplicates the items and adds .is-animated; without JS the logos simply wrap */
.marquee.is-animated .marquee-track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  animation: sx-marquee var(--marquee-duration, 60s) linear infinite;
}
.marquee.is-animated:hover .marquee-track,
.marquee.is-animated:focus-within .marquee-track {
  animation-play-state: paused;
}
@keyframes sx-marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee.is-animated .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
