/* ============================================================
   Testimonios
   ============================================================ */

.testimonials-page {
  background: #ffffff;
}

.testimonials-hero .resources-hero__title {
  max-width: 860px;
}

.testimonials-section {
  padding: 58px 0;
}

.testimonials-section--soft,
.testimonials-cta {
  background: #eefafa;
}

.testimonials-section__header {
  max-width: 800px;
  margin-bottom: 26px;
}

.testimonials-section__title {
  color: var(--color-black);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.16;
  margin-bottom: 12px;
}

.tiktok-grid,
.youtube-grid {
  display: grid;
  gap: 18px;
}

.story-card,
.video-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.story-card__media,
.video-card__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111111;
  cursor: pointer;
  overflow: hidden;
}

.story-card__media {
  aspect-ratio: 16 / 10;
}

.video-card__media {
  aspect-ratio: 16 / 9;
}

.story-card__media img,
.video-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.story-card__media:hover img,
.video-card__media:hover img {
  transform: scale(1.04);
}

.story-card__media span,
.video-card__media span {
  position: absolute;
  inset: 50% auto auto 50%;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  background: var(--color-brand);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 30px rgba(1, 174, 171, 0.35);
}

.story-card__body {
  padding: 20px;
}

.story-card__body > i {
  color: var(--color-brand);
  font-size: 1.65rem;
  margin-bottom: 8px;
}

.story-card__body p,
.video-card p,
.testimonials-cta p {
  color: var(--color-text);
  line-height: 1.65;
}

.story-card__body p {
  font-weight: 700;
}

.story-card h3,
.video-card h3 {
  color: var(--color-black);
  font-size: 1.12rem;
  line-height: 1.25;
  margin-top: 14px;
}

.story-card small {
  color: var(--color-brand-dark);
  font-weight: 800;
}

.video-card {
  padding-bottom: 18px;
}

.video-card h3,
.video-card p {
  padding: 0 18px;
}

.video-card h3 {
  margin-top: 16px;
  margin-bottom: 6px;
}

.testimonials-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.memory-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.memory-intro {
  max-width: 680px;
  color: var(--color-text);
  line-height: 1.68;
}

.memory-controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.memory-arrow {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--color-brand);
  background: #ffffff;
  border: 1px solid rgba(1, 174, 171, 0.26);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.memory-arrow:hover {
  color: #ffffff;
  background: var(--color-brand);
  transform: translateY(-1px);
}

.memory-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 31%);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  padding: 4px 4px 18px;
  scrollbar-width: none;
}

.memory-carousel::-webkit-scrollbar {
  display: none;
}

.memory-slide {
  position: relative;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  background: #f2f2f2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.memory-slide:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
}

.memory-slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

.memory-progress {
  position: relative;
  height: 5px;
  width: 100%;
  margin-top: 6px;
  background: rgba(1, 174, 171, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.memory-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 24%;
  background: var(--color-brand);
  border-radius: inherit;
  transform: none;
  transform-origin: left center;
  transition: width 0.2s ease;
}

.testimonials-cta__inner {
  display: grid;
  gap: 18px;
  align-items: center;
}

.testimonials-cta h2 {
  color: var(--color-black);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.14;
  margin-bottom: 8px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.video-modal__dialog {
  position: relative;
  width: min(940px, 100%);
  max-height: min(86vh, 720px);
  background: #ffffff;
  border-radius: 8px;
  overflow: auto;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.video-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.video-modal__content {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 20px;
}

.video-modal__content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
}

.video-modal__content .tiktok-embed {
  margin: 0 auto !important;
}

.testimonials-footer .footer__container {
  width: min(1060px, calc(100% - 48px));
  padding: 58px 0 34px;
}

.testimonials-footer__grid {
  grid-template-columns: minmax(240px, 0.9fr) minmax(200px, 0.66fr) minmax(280px, 1fr);
  gap: 44px;
  align-items: start;
}

.testimonials-footer .footer__brand {
  grid-column: auto;
  max-width: none;
  display: flex;
  justify-content: flex-start;
}

.testimonials-footer .footer__logo {
  width: min(230px, 54vw);
  margin: 0;
}

.testimonials-footer__nav {
  display: none;
}

.testimonials-footer .footer__title {
  color: var(--color-brand);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.testimonials-footer .footer__title::after {
  content: "";
  display: block;
  width: 86px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--color-brand);
}

.testimonials-footer__nav .footer__links {
  gap: 0;
}

.testimonials-footer__nav .footer__link {
  position: relative;
  width: 100%;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.testimonials-footer__nav .footer__link::before {
  content: "›";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-52%);
  color: var(--color-brand);
  font-size: 2rem;
  line-height: 1;
}

.testimonials-footer__social .footer__links {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 16px;
}

.testimonials-footer__social .footer__social-link {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-size: 2rem;
}

.testimonials-footer__social .footer__social-link i {
  width: auto;
  min-width: 0;
}

.testimonials-footer__social .footer__social-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.testimonials-footer__contact .footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.testimonials-footer__contact .footer__social-link {
  width: 100%;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

.testimonials-footer__contact .footer__social-link i {
  width: 30px;
  min-width: 30px;
  color: var(--color-brand);
  font-size: 1.65rem;
}

.testimonials-footer .footer__bottom {
  grid-column: 1 / -1;
  margin-top: 0;
  text-align: center;
}

@media (min-width: 700px) {
  .tiktok-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .youtube-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testimonials-cta__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 1020px) {
  .tiktok-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) and (min-width: 561px) {
  .testimonials-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.85fr);
    gap: 38px 42px;
  }

  .testimonials-footer__nav {
    display: block;
  }

  .testimonials-footer .footer__brand,
  .testimonials-footer .footer__bottom {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .testimonials-footer__contact {
    grid-column: 1 / -1;
  }

  .testimonials-footer__contact .footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .testimonials-section {
    padding: 42px 0;
  }

  .testimonials-actions .btn,
  .testimonials-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .memory-header {
    display: grid;
    align-items: start;
  }

  .memory-controls {
    justify-self: start;
  }

  .memory-carousel {
    grid-auto-columns: minmax(245px, 82%);
    gap: 12px;
    scroll-padding-inline: 4px;
    padding-inline: 4px;
    margin-inline: calc(var(--container-padding) * -1);
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .memory-slide {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }

  .memory-progress {
    max-width: none;
  }

  .video-modal {
    padding: 12px;
  }

  .video-modal__content {
    padding: 12px;
  }

  .testimonials-footer .footer__container {
    width: min(100% - 36px, 1040px);
    padding: 48px 0 28px;
  }

  .testimonials-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 0.46fr);
    gap: 32px 18px;
    align-items: start;
  }

  .testimonials-footer .footer__brand {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .testimonials-footer .footer__logo {
    width: min(205px, 64vw);
  }

  .testimonials-footer__nav {
    display: block;
    grid-column: 1;
  }

  .testimonials-footer__social {
    grid-column: 2;
    justify-self: start;
  }

  .testimonials-footer .footer__title {
    font-size: 1.42rem;
    margin-bottom: 14px;
  }

  .testimonials-footer__nav .footer__link {
    padding: 13px 0 13px 32px;
    font-size: 1.08rem;
  }

  .testimonials-footer__social .footer__links {
    grid-template-columns: 46px;
    gap: 12px;
    justify-content: start;
    justify-items: start;
  }

  .testimonials-footer__contact .footer__social-link {
    font-size: 1.05rem;
  }

  .testimonials-footer__contact,
  .testimonials-footer .footer__bottom {
    grid-column: 1 / -1;
  }

  .testimonials-footer__contact .footer__links {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    gap: 14px;
    align-items: start;
  }

  .testimonials-footer__contact .footer__social-link {
    gap: 12px;
    align-items: center;
  }

  .testimonials-footer__contact .footer__social-link i {
    width: 28px;
    min-width: 28px;
    font-size: 1.6rem;
  }
}

@media (max-width: 390px) {
  .testimonials-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(78px, 0.38fr);
    gap: 30px 14px;
  }

  .testimonials-footer__contact .footer__links {
    grid-template-columns: 1fr;
  }
}
