/* =========================================================
   WCC REVIEWS CSS
========================================================= */

/* =========================================================
   REVIEW PAGE
========================================================= */

.review-page .breadcrumb {
  margin-bottom: clamp(24px, 4vw, 38px);
}

.review-platform-section {
  max-width: 1060px;
  margin: 0 auto clamp(48px, 7vw, 76px);
  text-align: center;
}

.review-helptext {
  max-width: 820px;
  margin: 0 auto 18px;
  color: var(--colour-text-mid, #555f6b);
  font-size: 15px;
  line-height: 1.7;
}

.review-wrapper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 20px);
  align-items: stretch;
  margin-top: clamp(20px, 4vw, 34px);
}

.review-wrapper a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.review-source {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  min-height: 250px;
  padding: 22px 16px 16px;
  overflow: hidden;
  text-align: center;
  border-radius: 20px;
}

.review-source img {
  width: auto;
  max-width: 140px;
  height: 58px;
  margin-bottom: 10px;
  object-fit: contain;
}

.review-source-score {
  margin: 5px 0 4px;
  color: var(--colour-dark, #202832);
  font-size: 20px;
  line-height: 1.2;
}

.review-source-score strong,
.review-source small strong,
#totalReviewsText strong {
  font-weight: 800;
}

.review-source small {
  display: block;
  margin-top: 6px;
  color: var(--colour-text-muted, #6f7a86);
  font-size: 12px;
  line-height: 1.35;
  text-transform: lowercase;
}

.review-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 6px 10px;
  color: #0b6b8f;
  background: rgba(0, 174, 239, 0.12);
  border: 1px solid rgba(0, 174, 239, 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.stars-outer {
  position: relative;
  display: inline-block;
  margin-top: 2px;
  color: #ccd3da;
  font-size: 32px;
  letter-spacing: 1px;
  line-height: 1;
}

.stars-inner {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #f5b301;
  white-space: nowrap;
  transition: width 0.6s ease-in-out;
}

.review-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  padding: 10px 12px;
  color: var(--colour-dark, #202832);
  background: rgba(42, 48, 55, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.review-source:hover .review-cta,
.review-wrapper a:focus-visible .review-cta {
  background: rgba(0, 174, 239, 0.12);
  border-color: rgba(0, 174, 239, 0.22);
}

.review-open {
  margin-top: 8px;
  color: var(--colour-text-muted, #6f7a86);
  font-size: 11px;
}

#totalReviewsText {
  margin: 18px auto 0;
  color: var(--colour-text-mid, #555f6b);
  font-weight: 500;
  text-align: center;
}

.review-page-list {
  margin-inline: -20px;
}

.review-page-list .section-title {
  margin-top: 0;
  margin-bottom: 30px;
}


/* =========================================================
   LEGACY / GENERAL REVIEWS SECTION
========================================================= */

.reviews {
  text-align: center;
  overflow: hidden;
  position: relative;
  z-index: 4;
}

.reviews .container {
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
}

.reviews .container h2 {
  margin-bottom: 30px;
}


/* =========================================================
   LEGACY REVIEW GRID
========================================================= */

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin: 0 auto;
}

.review-grid a {
  text-decoration: none;
}

.review-item {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-width: 0;
}

/* Alternating desktop effect */
.review-item:nth-child(odd) {
  transform: translateX(-10px);
}

.review-item:nth-child(even) {
  transform: translateX(10px);
}

.review-logo {
  margin-bottom: 10px;
  display: block;
  float: left;
  margin: 0;
  width: 84px;
}

.review-item p {
  font-size: 1rem;
  color: #333;
  flex-grow: 1;
}

.review-item span {
  font-style: italic;
  color: #555;
  margin-top: 10px;
}


/* =========================================================
   SERVICE REVIEWS SECTION
========================================================= */

.service-reviews {
  text-align: center;
  overflow: hidden;
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 100%;
}

.service-reviews .container {

  width: 100%;
  box-sizing: border-box;
}

.service-reviews .container h2 {
  color: #292929d1;
  margin-bottom: 30px;
}

.service-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.service-review-grid a {
  text-decoration: none;
}

.service-review-item {
  background: #ffffffdb;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.33);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-width: 0;
}

.service-review-logo {
  max-width: 30px;
  margin-right: 15px;
}

.service-rating {
  display: flex;
  color: #ffc83d;
  flex-wrap: nowrap;
  justify-content: center;
  flex-direction: row;
  align-items: center;
}

.service-review-item p {
  font-size: 1rem;
  color: #333;
  flex-grow: 1;
}

.service-review-item span {
  font-style: italic;
  font-weight: 600;
  color: #555;
  margin-top: 10px;
}

.service-review-item a {
  color: #4d4d4d;
  font-size: 11px;
}


/* =========================================================
   MODERN REVIEWS HEADER
========================================================= */

.reviews-header {
  max-width: 760px;
  margin: 0 auto clamp(18px, 3vw, 28px);
  text-align: center;
}

.reviews-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.08);
  color: #0088bc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reviews-intro {
  margin: 0 auto;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(0, 0, 0, .66);
}


/* =========================================================
   MODERN REVIEW GRID
========================================================= */

.review-block .review-grid,
#reviewGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  align-items: stretch;
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.review-block {
  max-width: 1000px;
  margin-inline: auto;
}

.review-block .view-all-container {
  margin: clamp(18px, 3vw, 26px) 0 0;
}

.service-review-section .review-block {
  max-width: 1100px;
}

.service-review-section .review-block .review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-review-section .review-block .review-grid > [data-review-item]:nth-child(n+5) {
  display: none;
}

.service-review-section .review-grid-viewport {
  overflow: visible !important;
  max-height: none !important;
}

.service-review-section .review-block .view-all-container:not(.service-review-more) {
  display: none;
}

.service-review-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(22px, 3vw, 32px);
}

.review-show-more-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.review-all-link {
  display: none;
}

.review-all-link.is-visible {
  display: inline-flex;
}

.review-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}


/* =========================================================
   MODERN REVIEW CARD
========================================================= */

.review-card {
  position: relative;
  height: 100%;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.94));
  border: 1px solid rgba(32, 40, 50, 0.08);
  overflow: hidden;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(32, 40, 50, 0.08);
  backdrop-filter: blur(8px);
  min-width: 0;
}

.review-link:hover .review-card,
.review-link:focus-visible .review-card {
  transform: translateY(-2px);
  border-color: rgba(0, 174, 239, 0.2);
  box-shadow: 0 18px 34px rgba(32, 40, 50, 0.12);
}

.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 5px;
  border-radius: 0 0 8px 8px;
  background: rgba(0, 0, 0, .08);
}

.review-card[data-platform="google"]::before {
  background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853);
}

.review-card[data-platform="facebook"]::before {
  background: linear-gradient(90deg, #1877F2, #0b5fcc);
}

.review-card[data-platform="trustpilot"]::before {
  background: linear-gradient(90deg, #00B67A, #009d68);
}

.review-card[data-platform="yell"]::before {
  background: linear-gradient(90deg, #FFD300, #FFB800);
}

.review-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(18px, 2.2vw, 22px);
  min-width: 0;
}


/* =========================================================
   MODERN REVIEW TOP
========================================================= */

.review-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
  color: #111;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.review-avatar.avatar-a1 { background: #E3F2FD; }
.review-avatar.avatar-a2 { background: #E8F5E9; }
.review-avatar.avatar-a3 { background: #FFF3E0; }
.review-avatar.avatar-a4 { background: #F3E5F5; }
.review-avatar.avatar-a5 { background: #E0F7FA; }
.review-avatar.avatar-a6 { background: #FCE4EC; }
.review-avatar.avatar-a7 { background: #EDE7F6; }
.review-avatar.avatar-a8 { background: #F1F8E9; }
.review-avatar.avatar-a9 { background: #FFFDE7; }
.review-avatar.avatar-a10 { background: #ECEFF1; }

.review-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.review-identity {
  min-width: 0;
}

.review-name {
  font-weight: 600;
  color: #131313;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0;
}

.review-date {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(0, 0, 0, .52);
}

.review-platform-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(32, 40, 50, 0.06);
  flex: 0 0 auto;
}

.review-platform-icon {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain;
}

.review-platform-text {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: rgba(0, 0, 0, .60);
  text-align: center;
  padding: 0 6px;
}


/* =========================================================
   MODERN REVIEW RATING
========================================================= */

.review-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: nowrap;
  justify-content: center;
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.review-stars .gold-star {
  font-size: 13px;
  color: #f5b400;
}

.review-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.10);
}

.review-verified i {
  font-size: 12px;
  color: #00a0dd;
}

.review-rated {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(0, 0, 0, .62);
  font-weight: 700;
  display: flex;
  justify-content: center;
}


/* =========================================================
   MODERN REVIEW TEXT
========================================================= */

.review-text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.62;
  color: #232323;
  min-width: 0;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* =========================================================
   MODERN REVIEW FOOTER
========================================================= */

.review-footer {
  margin-top: 18px;
}

.review-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #008fca;
  letter-spacing: .02em;
}

.review-readmore i {
  font-size: 12px;
  transition: transform .18s ease;
}

.review-link:hover .review-readmore i {
  transform: translateX(3px);
}


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

@media (max-width: 1040px) {
  .review-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-block .review-grid,
  #reviewGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 980px) {
  .service-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
    padding: 0 16px;
  }
}


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

@media (max-width: 768px) {
  .review-item:nth-child(odd),
  .review-item:nth-child(even) {
    transform: none;
  }

  .review-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 680px) {
  .review-platform-section {
    margin-bottom: 42px;
  }

  .review-wrapper {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .review-helptext {
    font-size: 14px;
  }

  .reviews {
    padding: 42px 16px;
  }

  .reviews-header {
    padding-top: 5px;
    margin-bottom: 24px;
  }

  .reviews-intro {
    font-size: 14px;
    line-height: 1.6;
  }

  .review-block .review-grid,
  #reviewGrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-review-section .review-block .review-grid {
    grid-template-columns: 1fr;
  }

  .review-card-inner {
    padding: 16px;
  }

  .review-top {
    gap: 12px;
  }

  .review-head {
    gap: 10px;
  }

  .review-avatar {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .review-name {
    font-size: 14px;
  }

  .review-platform-badge {
    width: 42px;
    height: 42px;
  }

  .review-platform-icon {
    width: 31px !important;
    height: 31px !important;
  }

  .review-rating-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .review-rated {
    justify-content: flex-start;
    text-align: left;
  }

  .review-text {
    font-size: 13.5px;
    line-height: 1.6;
    -webkit-line-clamp: 4;
  }

  .view-all-container {
    margin-top: 26px;
  }

  .service-reviews {
    padding: 34px 0 42px;
  }

  .service-review-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    gap: 16px;
    padding: 0 16px;
  }

  .service-review-item {
    padding: 18px;
  }

  .service-rating {
    flex-wrap: wrap;
    gap: 4px;
  }

  .service-review-item p {
    font-size: 14px;
    line-height: 1.6;
  }
}


/* =========================================================
   SMALL MOBILE RESPONSIVE
========================================================= */

@media (max-width: 420px) {
  .review-head {
    align-items: flex-start;
  }

  .review-platform-badge {
    transform: scale(0.92);
    transform-origin: top right;
  }

  .review-card-inner {
    padding: 16px;
  }

  .reviews-header {
    padding-left: 4px;
    padding-right: 4px;
  }

  .reviews-intro {
    font-size: 14px;
    line-height: 1.6;
  }
}
