/*!
 * Sotransoda Core - seasonal hero + trust strip.
 * Loaded only on pages that use [sotransoda_hero]. Depends on core.css tokens.
 */

.sts-hero {
  position: relative;
  width: 100%;
  background:
    radial-gradient(60rem 28rem at 100% 0%, rgba(32, 58, 128, 0.07), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--sts-bg-alt) 100%);
  color: var(--sts-text);
}

/* ---------- Slides ---------- */
.sts-slide[hidden] {
  display: none;
}
.sts-slide.is-active {
  animation: sts-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes sts-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sts-slide__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sts-s-5);
  padding-bottom: var(--sts-s-6);
}

/* Media: full-bleed on phones */
.sts-slide__media {
  position: relative;
  margin-inline: calc(-1 * var(--sts-gutter));
}
.sts-slide__pic {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0 0 var(--sts-r-lg) var(--sts-r-lg);
  background: var(--sts-bg-alt);
}
.sts-slide__pic img,
.sts-slide__pic picture {
  display: block;
  width: 100%;
  height: 100%;
}
.sts-slide__pic img {
  object-fit: cover;
  object-position: var(--sts-pos, 50% 50%);
}

/* Date badge */
.sts-badge {
  position: absolute;
  z-index: 2;
  left: var(--sts-gutter);
  bottom: -1.1rem;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0.55rem 1rem 0.5rem;
  border-radius: var(--sts-r-md);
  background: #fff;
  border-top: 4px solid var(--sts-red);
  box-shadow: var(--sts-sh-3);
  color: var(--sts-navy);
}
.sts-badge__top {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sts-muted);
  line-height: 1.3;
}
.sts-badge__main {
  font-family: var(--sts-font-display);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Body */
.sts-slide__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sts-s-4);
  justify-items: start;
  padding-top: var(--sts-s-5);
}
.sts-slide__body .sts-h1,
.sts-slide__body .sts-h2 {
  font-size: var(--sts-fs-h1);
  line-height: 0.95;
}

/* Destination picker + CTAs */
.sts-pick {
  display: grid;
  gap: var(--sts-s-2);
  width: 100%;
  max-width: 30rem;
  margin-top: var(--sts-s-2);
}
.sts-hero:not(.is-js) .sts-pick {
  display: none; /* needs JS to update the WhatsApp message; link below still works */
}
.sts-pick__label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--sts-navy);
}
.sts-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sts-s-3);
  width: 100%;
  max-width: 30rem;
}
.sts-actions .sts-btn {
  width: 100%;
}
.sts-note {
  margin: 0;
  font-size: var(--sts-fs-small);
  color: var(--sts-muted);
}

/* ---------- Controls (only when >1 slide) ---------- */
.sts-hero__controls {
  display: flex;
  align-items: center;
  gap: var(--sts-s-1);
  padding-bottom: var(--sts-s-4);
}
.sts-ctrl {
  display: inline-grid;
  place-items: center;
  min-width: var(--sts-tap);
  min-height: var(--sts-tap);
  padding: 0;
  border: 0;
  border-radius: var(--sts-r-pill);
  background: transparent;
  color: var(--sts-navy);
  cursor: pointer;
}
.sts-ctrl svg {
  width: 1.25rem;
  height: 1.25rem;
}
.sts-ctrl--pause {
  background: #fff;
  box-shadow: var(--sts-sh-1);
}
.sts-ctrl--pause[aria-pressed="true"] .sts-i-pause,
.sts-ctrl--pause[aria-pressed="false"] .sts-i-play {
  display: none;
}
.sts-ctrl--dot::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--sts-line);
  border: 2px solid var(--sts-navy);
  box-sizing: border-box;
}
.sts-ctrl--dot[aria-current="true"]::before {
  background: var(--sts-navy);
}

/* ---------- Trust strip ---------- */
.sts-trust {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--sts-navy-900);
  color: #fff;
}
.sts-trust__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sts-trust__li {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.sts-trust__li:last-child {
  border-bottom: 0;
}
.sts-trust__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sts-s-3);
  min-height: 4.25rem;
  padding: var(--sts-s-3) 0;
  color: #fff;
  text-decoration: none;
}
.sts-trust__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--sts-amber);
}
.sts-trust__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.sts-trust__text {
  display: grid;
  gap: 0.1rem;
  line-height: 1.3;
}
.sts-trust__title {
  font-weight: 600;
  font-size: 1rem;
}
.sts-trust__sub {
  font-size: 0.9375rem;
  color: #d6def0; /* 9.6:1 on navy-900 */
}
a.sts-trust__item:hover .sts-trust__sub {
  color: #fff;
  text-decoration: underline;
}
a.sts-trust__item:focus-visible {
  outline: 3px solid var(--sts-amber);
  outline-offset: -3px;
}

/* ---------- Tablet / desktop ---------- */
@media (min-width: 600px) {
  .sts-trust__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--sts-s-6);
  }
  .sts-trust__li:nth-last-child(2) {
    border-bottom: 0;
  }
  .sts-actions {
    grid-template-columns: auto auto;
    max-width: none;
    justify-content: start;
  }
  .sts-actions .sts-btn {
    width: auto;
  }
}

@media (min-width: 900px) {
  .sts-slide__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(2rem, 4.5vw, 5rem);
    padding-block: clamp(2rem, 4vw, 4.5rem);
  }
  .sts-slide__media {
    order: 2;
    margin-inline: 0;
  }
  .sts-slide__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: translate(-1rem, 1rem);
    border-radius: var(--sts-r-lg);
    background: var(--sts-navy);
  }
  .sts-slide__media::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: -0.75rem;
    top: 2rem;
    width: 0.4rem;
    height: 38%;
    border-radius: 4px;
    background: var(--sts-red);
  }
  .sts-slide__pic {
    aspect-ratio: 7 / 5;
    border-radius: var(--sts-r-lg);
    box-shadow: var(--sts-sh-3);
  }
  .sts-badge {
    left: 1.25rem;
    bottom: 1.25rem;
    padding: 0.7rem 1.15rem 0.6rem;
  }
  .sts-badge__main {
    font-size: 2.5rem;
  }
  .sts-slide__body {
    padding-top: 0;
    gap: var(--sts-s-5);
  }
  .sts-hero__controls {
    padding-bottom: var(--sts-s-5);
  }
  .sts-actions {
    grid-template-columns: minmax(0, 1fr);
    max-width: 30rem;
  }
  .sts-actions .sts-btn {
    width: 100%;
  }
  .sts-trust__inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--sts-s-5);
  }
  .sts-trust__li {
    border-bottom: 0;
  }
  .sts-trust__item {
    padding-block: var(--sts-s-4);
  }
}

@media (min-width: 1200px) {
  .sts-slide__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sts-slide.is-active {
    animation: none;
  }
}
