/* ============================= */
/* BASE */
/* ============================= */

.c-testimonials {
  padding: clamp(80px, 10vw, 140px) 0;
}

.c-testimonials__container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}


/* ============================= */
/* HEADER */
/* ============================= */

.c-testimonials__label {
  display: inline-block;
  margin-bottom: 16px;

  color: #C98028;
  font-family: "Lexend Deca", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.c-testimonials__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: clamp(40px, 6vw, 72px);
}

.c-testimonials__heading {
  max-width: 680px;
}

.c-testimonials__title {
  margin: 0 0 16px;

  color: #291F46;
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
}

.c-testimonials__intro {
  color: #291F46;
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  line-height: 1.6;
}

.c-testimonials__intro p {
  margin: 0;
}


/* ============================= */
/* SWIPER */
/* ============================= */

.c-testimonials__swiper {
  overflow: visible !important;
}

.c-testimonials__swiper .swiper-wrapper {
  align-items: stretch;
}

.c-testimonials__swiper .swiper-slide {
  height: auto !important;
  display: flex;
}


/* ============================= */
/* CARD */
/* ============================= */

.c-testimonials__card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;

  height: 100%;
  min-height: 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 16px;

  background: linear-gradient(
    135deg,
    #0A052D 0%,
    #1A1238 100%
  );

  border: 1px solid rgba(255, 255, 255, .08);

  transition:
    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}

.c-testimonials__card:hover {
  transform: translateY(-4px);
  border-color: rgba(223, 179, 126, .22);
  box-shadow: 0 18px 42px rgba(10, 5, 45, .22);
}


/* ============================= */
/* QUOTE */
/* ============================= */

.c-testimonials__quote {
  flex: 0 1 auto;

  color: rgba(255, 255, 255, .92);
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.8;

  overflow-wrap: anywhere;
  word-break: normal;
}

.c-testimonials__quote p {
  margin: 0;
}

.c-testimonials__quote p + p {
  margin-top: 1em;
}


/* ============================= */
/* FOOTER */
/* ============================= */

.c-testimonials__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;

  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.c-testimonials__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;

  flex: 1 1 220px;
  min-width: 0;
}

.c-testimonials__name {
  display: block;
  color: #ffffff;
  font-family: "Lexend Deca", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.c-testimonials__company {
  display: block;
  color: rgba(223, 179, 126, .9);
  font-family: "Lexend Deca", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}


/* ============================= */
/* CTA */
/* ============================= */

.c-testimonials__cta {
  flex: 0 1 auto;
  max-width: 100%;
}

.c-testimonials__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;

  height: auto;
  padding: 12px 22px;

  white-space: normal;
  text-align: center;
  line-height: 1.5;

  border: none;
  border-radius: 5px;

  background: linear-gradient(
    180deg,
    var(--color-accent-soft) 0%,
    var(--color-accent) 100%
  );

  color: var(--color-primary-900);
  font-family: "Lexend Deca", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;

  box-shadow:
    0 6px 18px rgba(201, 128, 40, .35),
    inset 0 1px 0 rgba(255, 255, 255, .35);

  transition:
    transform .2s var(--ease-standard),
    box-shadow .2s var(--ease-standard);
}

.c-testimonials__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(201, 128, 40, .45);
}


/* =========================================================
   AUTHOR
========================================================= */

.c-testimonials__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;

  flex: 1;
}

.c-testimonials__avatar {
  width: 56px;
  height: 56px;

  border-radius: 50%;
  object-fit: cover;
  object-position: center;

  border: 2px solid rgba(223,179,126,.25);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.c-testimonials__author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.c-testimonials__name {
  margin: 0;

  color: #fff;
  font-family: "Lexend Deca", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.c-testimonials__rating {
  display: flex;
  gap: 4px;
}

.c-testimonials__rating i {
  font-size: 13px;
  color: var(--color-accent);
}


/* ============================= */
/* CONTROLS */
/* ============================= */

.c-testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  margin-top: 0;
}

.c-testimonials__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;
  padding: 0;

  border: 1px solid rgba(41, 31, 70, .14);
  border-radius: 999px;
  background: #fff;
  color: #291F46;
  cursor: pointer;

  box-shadow: 0 10px 24px rgba(41, 31, 70, .08);

  transition:
    transform .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease,
    box-shadow .2s ease;
}

.c-testimonials__nav:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 128, 40, .35);
  color: #C98028;
  box-shadow: 0 14px 28px rgba(41, 31, 70, .12);
}

.c-testimonials__nav:focus {
  outline: none;
}

.c-testimonials__nav:focus-visible {
  outline: 3px solid #C98028;
  outline-offset: 3px;
}

.c-testimonials__nav.swiper-button-disabled {
  opacity: .45;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.c-testimonials__nav span {
  font-size: 20px;
  line-height: 1;
}


/* ============================= */
/* TABLET */
/* ============================= */

@media (max-width: 991px) {

  .c-testimonials {
    padding: 64px 0;
  }

  .c-testimonials__container {
    width: calc(100% - 40px);
  }

  .c-testimonials__swiper .swiper-slide {
    width: calc(50% - 12px);
  }

}


/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 640px) {

  .c-testimonials {
    padding: 48px 0;
  }

  .c-testimonials__container {
    width: 100%;
    padding-left: 16px;
  }

  .c-testimonials__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-right: 16px;
  }

  .c-testimonials__heading {
    max-width: 100%;
  }

  .c-testimonials__swiper {
    overflow: visible;
    padding-bottom: 8px;
  }

  .c-testimonials__swiper .swiper-slide {
    width: 78vw;
  }

  .c-testimonials__title {
    font-size: 28px;
  }

  .c-testimonials__intro {
    font-size: 16px;
  }

  .c-testimonials__quote {
    font-size: 15px;
  }

  .c-testimonials__controls {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 0;
    padding: 0;
  }

  .c-testimonials__nav {
    width: 44px;
    height: 44px;
  }

}