/* ==========================================================================
   Himalayan Trails — "why us" reasons and the partner logo band
   ========================================================================== */

/* ---- Five reasons -------------------------------------------------------- */

.ht-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ht-space-8) var(--ht-space-6);
}

@media (min-width: 40rem) {
  .ht-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 68rem) {
  /* Five equal columns, matching the count exactly so no cell is left empty. */
  .ht-why__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--ht-space-6);
  }
}

.ht-why__item {
  display: flex;
  flex-direction: column;
  gap: var(--ht-space-4);
  padding-left: var(--ht-space-5);
  border-left: 2px solid var(--ht-clay-500);
}

@media (max-width: 39.9375rem) {
  .ht-why__item {
    padding-left: var(--ht-space-4);
  }
}

.ht-why__media {
  position: relative;
  border-radius: var(--ht-radius-md);
  overflow: hidden;
  background: var(--ht-pine-900);
}

.ht-why__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  color: var(--ht-white);
  background: rgb(11 22 17 / 0.28);
  transition: background-color var(--ht-duration-base) var(--ht-ease);
}

.ht-why__play::before {
  content: "";
  position: absolute;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--ht-clay-600);
  box-shadow: 0 6px 20px -6px rgb(11 22 17 / 0.6);
  transition: transform var(--ht-duration-base) var(--ht-ease);
}

.ht-why__play svg {
  position: relative;
  /* The glyph is a triangle; nudging it right centres it optically. */
  margin-left: 0.15rem;
}

.ht-why__play:hover {
  background: rgb(11 22 17 / 0.42);
}

.ht-why__play:hover::before {
  transform: scale(1.08);
}

/* The embed takes the poster's place without moving anything around it. */
.ht-video__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ht-why__media[data-playing="true"] {
  aspect-ratio: 3 / 2;
}

.ht-why__title {
  font-family: var(--ht-font-display);
  font-size: var(--ht-text-xl);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

.ht-why__body {
  color: var(--ht-text-soft);
  font-size: var(--ht-text-base);
  line-height: var(--ht-leading-relaxed);
}

/* ---- Partner logos ------------------------------------------------------- */

.ht-partners {
  background: var(--ht-surface-alt);
}

.ht-section-head--simple {
  margin-bottom: var(--ht-space-8);
}

.ht-partners__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ht-space-4);
  align-items: center;
}

@media (min-width: 34rem) {
  .ht-partners__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .ht-partners__grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.ht-partners__item {
  display: grid;
  place-items: center;
  min-height: 5.5rem;
  padding: var(--ht-space-4);
  background: var(--ht-surface-card);
  border: 1px solid var(--ht-border-soft);
  border-radius: var(--ht-radius-md);
}

.ht-partners__item img {
  max-height: 3rem;
  width: auto;
  object-fit: contain;
  background: transparent;
}

/* Empty frames: the layout, visibly waiting for the client's own marks. Dashed
   and unlabelled by any real name so it can never be mistaken for a claim. */
.ht-partners__item--empty {
  background: transparent;
  border-style: dashed;
  border-color: var(--ht-stone-300);
  color: var(--ht-stone-400);
  font-size: var(--ht-text-xs);
  font-weight: 600;
  letter-spacing: var(--ht-tracking-caps);
  text-transform: uppercase;
}

.ht-partners__note {
  margin-top: var(--ht-space-5);
  max-width: 60ch;
  font-size: var(--ht-text-sm);
  line-height: var(--ht-leading-normal);
  color: var(--ht-text-muted);
}
