
/* =========================================================
   TONY'S PLUMBING CO.
   REVIEWS PAGE
   ========================================================= */

/* =========================================================
   REVIEWS HERO
   =========================================================
.reviews-hero {

  padding: 90px 0 85px;
  text-align: center;
  background: #f4f7fa;
}
.reviews-hero .container {
  max-width: 900px;
}
.reviews-hero h1 {
  margin: 12px 0 20px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  color: #003b70;
}
.reviews-hero h1 span {
  color: #f64848;
}
.reviews-hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: #555;
}*/

/* =========================================================
   REVIEW SUMMARY
   ========================================================= */

.review-summary {
  padding-top: 70px;
  padding-bottom: 40px;
}

.review-summary-box {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 40px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 35px 40px;
  background: #ffffff;
  border: 1px solid #e2e7ec;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .07);
}

.rating-number {
  font-size: 68px;
  font-weight: 800;
  line-height: 1;
  color: #003b70;
}

.rating-content h2 {
  margin: 8px 0 4px;
  font-size: 24px;
  color: #003b70;
}

.rating-content p {
  margin: 0;
  color: #666;
}

.stars,
.review-stars {
  color: #f64848;
  letter-spacing: 3px;
  font-size: 21px;
}

.rating-breakdown {
  display: flex;
  gap: 22px;
}

.rating-breakdown div {
  text-align: center;
}

.rating-breakdown strong {
  display: block;
  font-size: 20px;
  color: #003b70;
}

.rating-breakdown span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #777;
}

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

.reviews-section {
  padding-top: 65px;
  padding-bottom: 90px;
}

.reviews-intro {
  max-width: 760px;
  margin: 0 auto 65px;
  text-align: center;
}

.reviews-intro h2 {
  margin: 12px 0 15px;
  font-size: clamp(32px, 4vw, 46px);
  color: #003b70;
}

.reviews-intro h2 span {
  color: #f64848;
}

.reviews-intro p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #666;
}

/* =========================================================
   REVIEW LIST
   ========================================================= */

.reviews-list {
  max-width: 1050px;
  margin: 0 auto;
}

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

.review-card {
  position: relative;
  overflow: visible;
  width: 76%;
  margin-bottom: 45px;
  padding: 32px 36px;
  background: #f7f9fb;
  border: 1px solid #e1e6eb;
  border-left: 5px solid #005baa;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

/* LEFT / RIGHT STAGGER */

.review-card:nth-child(odd) {
  margin-right: auto;
}

.review-card:nth-child(even) {
  margin-left: auto;
  border-left: 1px solid #e1e6eb;
  border-right: 5px solid #f64848;
}

/* =========================================================
   SHARP SPEECH BUBBLE TAILS
   BLUE: BOTTOM RIGHT
   ORANGE: BOTTOM LEFT
   ========================================================= */

/* BLUE ACCENT — OUTER BORDER */

.review-card:nth-child(odd)::before {
  content: "";
  position: absolute;
  right: 38px;
  bottom: -15px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid #e1e6eb;
  z-index: 1;
}

/* BLUE ACCENT — WHITE INTERIOR */

.review-card:nth-child(odd)::after {
  content: "";
  position: absolute;
  right: 39px;
  bottom: -12px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid #ffffff;
  z-index: 2;
}

/* ORANGE ACCENT — OUTER BORDER */

.review-card:nth-child(even)::before {
  content: "";
  position: absolute;
  left: 38px;
  bottom: -15px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid #e1e6eb;
  z-index: 1;
}

/* ORANGE ACCENT — WHITE INTERIOR */

.review-card:nth-child(even)::after {
  content: "";
  position: absolute;
  left: 39px;
  bottom: -12px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid #ffffff;
  z-index: 2;
}

/* =========================================================
   HOVER
   ========================================================= */

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .10);
}

/* =========================================================
   REVIEW STARS
   ========================================================= */

.review-stars {
  margin-bottom: 18px;
}

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

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

.review-card-header h3 {
  margin: 0 0 4px;
  font-size: 21px;
  color: #003b70;
}

.review-card-header span {
  font-size: 14px;
  color: #777;
}

.review-card-header time {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
}

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

.review-card p {
  margin: 0 0 15px;
  font-size: 16px;
  line-height: 1.75;
  color: #4f4f4f;
}

.review-card p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   BOTTOM REVIEW CTA
   ========================================================= */

.review-bottom {
  padding: 80px 0;
  background: #f4f7fa;
}

.review-bottom-box {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.review-bottom-box h2 {
  margin: 12px 0 15px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  color: #003b70;
}

.review-bottom-box h2 span {
  color: #f64848;
}

.review-bottom-box p {
  max-width: 650px;
  margin: 0 auto 28px;
  font-size: 17px;
  line-height: 1.7;
  color: #666;
}

.review-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: #f64848;
  color: #ffffff !important;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background .25s ease,
    transform .25s ease;
}

/* Yelp Logo */
.review-button::before {
  content: "";
  display: inline-block;
  width: 94px;
  height: 48px;
  background: url("../images/YelpIcon.webp") center / contain no-repeat;
  flex-shrink: 0;
}

.review-button:hover {
  background: #c62828;
  transform: translateY(-2px);
}

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

@media (max-width: 900px) {

  .review-summary-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .rating-breakdown {
    justify-content: center;
  }

  .rating-number {
    font-size: 58px;
  }

  .review-card {
    width: 88%;
  }
}

@media (max-width: 650px) {

  .reviews-hero {
    padding: 65px 0;
  }

  .review-summary {
    padding-top: 45px;
  }

  .review-summary-box {
    padding: 30px 22px;
    gap: 25px;
  }

  .rating-breakdown {
    flex-wrap: wrap;
    gap: 18px;
  }

  .review-card,
  .review-card:nth-child(even),
  .review-card:nth-child(odd) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 26px 24px;
    border-left: 4px solid #005baa;
    border-right: 1px solid #e1e6eb;
  }

  .review-card:nth-child(even) {
    border-left-color: #f64848;
  }

  /* MOBILE — BOTH TAILS BOTTOM RIGHT */

  .review-card:nth-child(odd)::before,
  .review-card:nth-child(even)::before {
    left: auto;
    right: 27px;
  }

  .review-card:nth-child(odd)::after,
  .review-card:nth-child(even)::after {
    left: auto;
    right: 28px;
  }

  .review-card-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .review-card-header time {
    white-space: normal;
  }

  .reviews-section {
    padding-bottom: 60px;
  }
}

