/* =========================================================
   VALAPPILA — Client Reviews Page
   (Header, hero, intro block & footer live in common.css)
   ========================================================= */

/* =========================================================
   WHAT CLIENTS SAY
   ========================================================= */
.client-reviews {
  background: #ED241C;
  padding: 90px 0 80px;
  scroll-margin-top: 20px;
}

.cr-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.cr-strap {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: #FFFFFFD9;
  margin-bottom: 44px;
}

/* ---------- Review cards ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-card {
  display: flex;
  flex-direction: column;
  min-height: 236px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 26px 26px 28px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card[hidden] {
  display: none;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -18px rgba(0, 0, 0, 0.45);
}

.review-quote {
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: #171513;
}

/* 5 rating dots */
.review-dots {
  display: flex;
  gap: 4px;
  margin-top: auto;
  margin-bottom: 16px;
}

.review-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ED241C;
}

.review-company {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  color: #171513;
  margin-bottom: 4px;
}

.review-person {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: #746E69;
}

/* Fade-in when switching pages */
.review-grid.is-switching .review-card {
  animation: reviewIn 0.45s ease both;
}

@keyframes reviewIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   WHY CLIENTS TRUST US
   ========================================================= */
.trust {
  background: #F6F1EA;
  padding: 90px 0 100px;
}

.trust-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
}

.trust-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  color: #000000;
  max-width: 560px;
}

.trust-intro {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #746E69;
  max-width: 470px;
  padding-top: 20px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 28px 28px 30px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(157, 6, 0, 0.3);
}

.trust-icon {
  display: flex;
  color: #ED241C;
  margin-bottom: 36px;
}

.trust-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  color: #171513;
  margin-bottom: 8px;
}

.trust-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #746E69;
}

/* =========================================================
   LEAVE A REVIEW
   ========================================================= */
.leave-review {
  background: #FFFFFF;
  padding: 80px 0;
}

.lr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.lr-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  color: #E5231B;
  margin-bottom: 18px;
}

.lr-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #746E69;
  max-width: 700px;
}

.lr-btn {
  flex-shrink: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .trust {
    padding: 80px 0;
  }

  .trust-title,
  .lr-title {
    font-size: 36px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leave-review {
    padding: 70px 0;
  }

  .client-reviews {
    padding: 80px 0 70px;
  }

  .cr-title {
    font-size: 36px;
  }

  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .trust {
    padding: 64px 0;
  }

  .trust-head {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
  }

  .trust-intro {
    padding-top: 0;
    font-size: 15px;
  }

  .trust-title,
  .lr-title {
    font-size: 32px;
  }

  .trust-icon {
    margin-bottom: 26px;
  }

  .leave-review {
    padding: 60px 0;
  }

  .lr-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .lr-text {
    font-size: 15px;
  }

  .client-reviews {
    padding: 64px 0 56px;
  }

  .cr-title {
    font-size: 32px;
  }

  .cr-strap {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .review-card {
    min-height: 0;
    padding: 22px;
  }
}

@media (max-width: 600px) {
  .review-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .trust {
    padding: 52px 0;
  }

  .trust-title,
  .lr-title {
    font-size: 27px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trust-card {
    padding: 22px;
  }

  .trust-icon {
    margin-bottom: 18px;
  }

  .trust-icon svg {
    width: 32px;
    height: 32px;
  }

  .trust-name {
    font-size: 18px;
  }

  .leave-review {
    padding: 52px 0;
  }

  .client-reviews {
    padding: 52px 0 48px;
  }

  .cr-title {
    font-size: 27px;
  }

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

  .review-company {
    font-size: 16px;
  }
}
