/* =========================================
   Crosstek Google Reviews
   ========================================= */

.ct-reviews {
  --ct-navy: #142d3d;
  --ct-navy-deep: #0d2230;
  --ct-orange: #f3791c;
  --ct-white: #ffffff;

  padding: 110px 40px;

  overflow: hidden;

  background: var(--ct-navy);
  color: var(--ct-white);

  font-family: "Poppins", sans-serif;
}


/* =========================================
   Reset / box sizing
   ========================================= */

.ct-reviews *,
.ct-reviews *::before,
.ct-reviews *::after {
  box-sizing: border-box;
}


/* =========================================
   Inner
   ========================================= */

.ct-reviews__inner {
  width: min(100%, 1260px);
  margin: 0 auto;
}


/* =========================================
   Header
   ========================================= */

.ct-reviews__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 40px;

  margin-bottom: 34px;
}

.ct-reviews__eyebrow {
  margin: 0 0 18px;

  color: var(--ct-orange);

  font-size: 16px;
  font-weight: 700;
  line-height: 1;

  letter-spacing: 1px;
  text-transform: uppercase;
}

.ct-reviews__title {
  max-width: 780px;

  margin: 0;

  font-size: clamp(38px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;

  color: var(--ct-white);
}

.ct-reviews__dot {
  color: var(--ct-orange);
}


/* =========================================
   View all reviews button
   ========================================= */

.ct-reviews .ct-reviews__button {
  min-height: 58px;

  padding: 17px 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  flex: 0 0 auto;

  border: 1px solid var(--ct-orange);
  border-radius: 999px;

  background: var(--ct-orange);

  color: var(--ct-navy-deep);

  font-size: 15px;
  font-weight: 700;
  line-height: 1;

  text-decoration: none;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.ct-reviews .ct-reviews__button:hover {
  background: var(--ct-white);
  border-color: var(--ct-white);

  color: var(--ct-navy-deep);

  transform: translateY(-2px);
}


/* =========================================
   Google rating summary
   ========================================= */

.ct-reviews__summary {
  display: flex;
  align-items: center;

  gap: 14px;

  margin-bottom: 26px;
}


/* Google logo */

.ct-reviews__google {
  width: 44px;
  height: 44px;

  flex: 0 0 44px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #ffffff;

  box-shadow: 0 4px 14px rgba(13, 34, 48, 0.12);
}

.ct-reviews__google svg {
  width: 24px;
  height: 24px;

  display: block;
}


/* Rating */

.ct-reviews__summary strong {
  display: inline-block;

  margin-right: 10px;

  font-size: 26px;
  line-height: 1;

  color: var(--ct-white);
}

.ct-reviews__summary span {
  display: block;

  margin-top: 4px;

  color: rgba(255, 255, 255, 0.68);

  font-size: 13px;
}


/* =========================================
   Stars
   ========================================= */

.ct-stars {
  display: inline-flex;

  gap: 2px;

  color: rgba(255, 255, 255, 0.22);
}

.ct-stars__star--on {
  color: var(--ct-orange);
}


/* =========================================
   Carousel
   ========================================= */

.ct-reviews__carousel {
  position: relative;

  padding: 0 54px 34px;
}

.ct-reviews__viewport {
  overflow: hidden;

  touch-action: pan-y;
}

.ct-reviews__track {
  display: flex;

  gap: 18px;

  transition: transform 0.35s ease;

  will-change: transform;
}


/* =========================================
   Review cards
   ========================================= */

.ct-review-card {
  flex: 0 0 calc((100% - 36px) / 3);

  min-width: 0;

  padding: 28px;

  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.07);
}


/* =========================================
   Review header
   ========================================= */

.ct-review-card__header {
  display: flex;
  align-items: center;

  gap: 13px;

  margin-bottom: 18px;
}

.ct-review-card__avatar {
  width: 46px;
  height: 46px;

  flex: 0 0 46px;

  border-radius: 50%;

  object-fit: cover;
}

.ct-review-card__avatar--fallback {
  display: grid;
  place-items: center;

  background: rgba(243, 121, 28, 0.16);

  color: var(--ct-orange);

  font-weight: 700;
}

.ct-review-card__author {
  display: block;

  color: #ffffff;

  font-size: 15px;
  font-weight: 700;

  text-decoration: none;
}

.ct-review-card__author:hover {
  color: var(--ct-orange);
}

.ct-review-card__date {
  display: block;

  margin-top: 3px;

  color: rgba(255, 255, 255, 0.58);

  font-size: 12px;
}


/* =========================================
   Review text
   ========================================= */

.ct-review-card__text {
  min-height: 150px;

  margin: 18px 0 24px;

  color: rgba(255, 255, 255, 0.82);

  font-size: 15px;
  line-height: 1.7;
}


/* =========================================
   Review footer
   ========================================= */

.ct-review-card__footer {
  display: flex;
  flex-wrap: wrap;

  gap: 14px;
}

.ct-review-card__footer a {
  color: var(--ct-orange);

  font-size: 12px;
  font-weight: 700;

  text-decoration: none;
}

.ct-review-card__footer a:hover {
  color: #ffffff;
}


/* =========================================
   Carousel navigation
   ========================================= */

.ct-reviews .ct-reviews__nav {
  position: absolute;
  top: 42%;

  width: 46px;
  height: 46px;

  min-width: 46px;
  min-height: 46px;

  padding: 0;
  margin: 0;

  display: grid;
  place-items: center;

  border: 1px solid var(--ct-orange);
  border-radius: 50%;

  background: var(--ct-orange);

  color: var(--ct-navy-deep);

  box-shadow: none;

  font-family: inherit;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;

  text-align: center;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}


/* Previous */

.ct-reviews .ct-reviews__nav--prev {
  left: 0;
}


/* Next */

.ct-reviews .ct-reviews__nav--next {
  right: 0;
}


/* Hover */

.ct-reviews .ct-reviews__nav:not(:disabled):hover,
.ct-reviews .ct-reviews__nav:not(:disabled):focus-visible {
  background: #ffffff;
  border-color: #ffffff;

  color: var(--ct-navy-deep);

  transform: scale(1.06);
}


/* Disabled */

.ct-reviews .ct-reviews__nav:disabled {
  border-color: rgba(243, 121, 28, 0.35);

  background: transparent;

  color: rgba(243, 121, 28, 0.45);

  opacity: 1;

  cursor: default;

  transform: none;
}


/* =========================================
   Carousel dots
   ========================================= */

.ct-reviews__dots {
  display: flex;
  justify-content: center;

  gap: 8px;

  margin-top: 22px;
}

.ct-reviews .ct-reviews__dot-button {
  width: 8px;
  height: 8px;

  min-width: 8px;
  min-height: 8px;

  padding: 0;
  margin: 0;

  border: 0;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.26);

  box-shadow: none;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  transition:
    width 0.25s ease,
    background-color 0.25s ease;
}

.ct-reviews .ct-reviews__dot-button:hover {
  background: rgba(255, 255, 255, 0.5);
}

.ct-reviews .ct-reviews__dot-button.is-active {
  width: 24px;

  border-radius: 999px;

  background: var(--ct-orange);
}

/* Keep review arrows on-brand after click/focus */
.ct-reviews .ct-reviews__nav:not(:disabled),
.ct-reviews .ct-reviews__nav:not(:disabled):focus,
.ct-reviews .ct-reviews__nav:not(:disabled):active {
  background: var(--ct-orange) !important;
  border-color: var(--ct-orange) !important;
  color: var(--ct-navy-deep) !important;
  box-shadow: none !important;
}

/* Hover */
.ct-reviews .ct-reviews__nav:not(:disabled):hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--ct-navy-deep) !important;
  transform: scale(1.06);
}

/* Keyboard focus */
.ct-reviews .ct-reviews__nav:not(:disabled):focus-visible {
  background: var(--ct-orange) !important;
  border-color: var(--ct-orange) !important;
  color: var(--ct-navy-deep) !important;

  outline: 3px solid rgba(243, 121, 28, 0.3);
  outline-offset: 3px;
}

/* Disabled arrow */
.ct-reviews .ct-reviews__nav:disabled {
  background: transparent !important;
  border-color: rgba(243, 121, 28, 0.35) !important;
  color: rgba(243, 121, 28, 0.45) !important;

  opacity: 1;
  box-shadow: none !important;
}

/* =========================================
   Disclosure
   ========================================= */

.ct-reviews__disclosure {
  display: flex;
  justify-content: space-between;

  gap: 20px;

  margin-top: 8px;

  color: rgba(255, 255, 255, 0.5);

  font-size: 11px;
}

.ct-reviews__disclosure a {
  color: rgba(255, 255, 255, 0.72);

  text-decoration: none;
}

.ct-reviews__disclosure a:hover {
  color: var(--ct-orange);
}


/* =========================================
   Fallback / error
   ========================================= */

.ct-reviews__fallback,
.ct-reviews-error {
  padding: 28px;

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.07);

  color: #ffffff;
}


/* =========================================
   Tablet
   ========================================= */

@media (max-width: 1100px) {

  .ct-review-card {
    flex-basis: calc((100% - 18px) / 2);
  }

}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 767px) {

  .ct-reviews {
    padding: 75px 20px;
  }

  .ct-reviews__header {
    align-items: flex-start;
    flex-direction: column;

    margin-bottom: 28px;
  }

  .ct-reviews .ct-reviews__button {
    width: 100%;

    justify-content: center;
  }

  .ct-reviews__carousel {
    padding: 0 0 34px;
  }

  .ct-review-card {
    flex-basis: 100%;

    padding: 24px 21px;
  }

  .ct-review-card__text {
    min-height: 0;
  }

  .ct-reviews .ct-reviews__nav {
    display: none;
  }

  .ct-reviews__disclosure {
    flex-direction: column;
  }

}