/* =========================================================
   CUTLER BAY PLUMBING - REVIEWS PAGE
   Loads after css/styles.css
   ========================================================= */

.main-nav a[aria-current="page"] {
  color: var(--green);
}

.main-nav a[aria-current="page"]::after {
  right: 0 !important;
}

/* =========================================================
   HERO
   ========================================================= */

.reviews-hero {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(5, 45, 90, .84), rgba(2, 32, 70, .92)),
    url("../images/cutler-bay-plumbing-truck-02.jpg") center / cover no-repeat;
}

.reviews-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(31, 147, 109, .26),
      transparent 32%
    ),
    linear-gradient(
      90deg,
      rgba(8, 47, 99, .22),
      transparent 62%
    );
}

.reviews-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 940px;
  padding: 76px 0;
  color: #fff;
}

.reviews-hero .eyebrow {
  color: rgba(255, 255, 255, .88);
}

.reviews-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
}

.reviews-hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 20px;
}

.reviews-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

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

.review-summary-section {
  padding: 54px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.review-summary-grid {
  display: grid;
  grid-template-columns: .9fr 1.5fr;
  gap: 28px;
  align-items: stretch;
}

.review-summary-score {
  padding: 34px;
  border-radius: 26px;
  background: var(--navy-dark);
  box-shadow: var(--shadow);
}

.summary-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.review-summary-score strong {
  display: block;
  color: #fff;
  font-size: 32px;
  line-height: 1.05;
}

.summary-stars {
  margin: 17px 0 15px;
  color: #f2b21b;
  font-size: 23px;
  letter-spacing: .08em;
}

.review-summary-score p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.review-summary-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review-summary-points > div {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--light);
}

.review-summary-points span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.review-summary-points strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--navy-dark);
  font-size: 20px;
}

.review-summary-points p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.reviews-wall-section {
  overflow: hidden;
  background:
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.reviews-section-header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
  margin-bottom: 34px;
}

.reviews-section-header .section-heading {
  max-width: 760px;
  margin: 0;
  text-align: left;
}

.reviews-section-header .section-heading h2 {
  margin-bottom: 12px;
}

.reviews-section-header .section-heading p:last-child {
  margin-bottom: 0;
}

/* Slider controls */

.reviews-slider-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.reviews-slider-button {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--navy-dark);
  box-shadow: 0 8px 22px rgba(8, 47, 99, .1);
  font: inherit;
  cursor: pointer;
  transition:
    color .2s ease,
    border-color .2s ease,
    background-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease,
    opacity .2s ease;
}

.reviews-slider-button span {
  display: block;
  transform: translateY(-1px);
  font-size: 24px;
  line-height: 1;
}

.reviews-slider-button:hover:not(:disabled),
.reviews-slider-button:focus-visible:not(:disabled) {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 26px rgba(31, 147, 109, .25);
  transform: translateY(-2px);
}

.reviews-slider-button:focus-visible {
  outline: 3px solid rgba(31, 147, 109, .25);
  outline-offset: 3px;
}

.reviews-slider-button:disabled {
  opacity: .38;
  box-shadow: none;
  cursor: not-allowed;
}

/* Slider structure */

.reviews-slider {
  position: relative;
  width: 100%;
}

.reviews-slider:focus {
  outline: none;
}

.reviews-slider:focus-visible {
  border-radius: 26px;
  outline: 3px solid rgba(31, 147, 109, .22);
  outline-offset: 6px;
}

.reviews-slider-viewport {
  width: 100%;
  overflow: hidden;
  padding: 4px 0 12px;
  touch-action: pan-y pinch-zoom;
}

.reviews-slider-track {
  --reviews-gap: 24px;
  --reviews-per-view: 3;

  display: flex;
  gap: var(--reviews-gap);
  align-items: stretch;
  will-change: transform;
  transition: transform .48s cubic-bezier(.22, .75, .25, 1);
}

.reviews-slider-track.no-transition {
  transition: none;
}

/* Review cards */

.full-review-card {
  position: relative;
  min-width: calc(
    (100% - ((var(--reviews-per-view) - 1) * var(--reviews-gap)))
    / var(--reviews-per-view)
  );
  flex: 0 0 calc(
    (100% - ((var(--reviews-per-view) - 1) * var(--reviews-gap)))
    / var(--reviews-per-view)
  );
  min-height: 280px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(8, 47, 99, .09);
  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease;
}

.full-review-card:hover {
  border-color: rgba(31, 147, 109, .3);
  box-shadow: 0 20px 44px rgba(8, 47, 99, .15);
  transform: translateY(-4px);
}

.full-review-card::after {
  content: "“";
  position: absolute;
  right: 20px;
  bottom: -24px;
  color: rgba(31, 147, 109, .08);
  font-family: Georgia, serif;
  font-size: 150px;
  line-height: 1;
  pointer-events: none;
}

.full-review-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.review-source {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.full-review-card h3 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 24px;
  line-height: 1.08;
}

.google-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light-green);
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.full-review-stars {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  color: #f2b21b;
  font-size: 21px;
  letter-spacing: .09em;
}

.full-review-card blockquote {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.full-review-card blockquote p {
  margin: 0;
  color: inherit;
}

/* Slider dots */

.reviews-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 18px;
  margin-top: 20px;
}

.reviews-slider-dots[hidden] {
  display: none;
}

.reviews-slider-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 47, 99, .22);
  cursor: pointer;
  transition:
    width .2s ease,
    background-color .2s ease,
    transform .2s ease;
}

.reviews-slider-dot:hover {
  background: rgba(31, 147, 109, .65);
  transform: scale(1.1);
}

.reviews-slider-dot.active {
  width: 30px;
  background: var(--green);
}

.reviews-slider-dot:focus-visible {
  outline: 3px solid rgba(31, 147, 109, .25);
  outline-offset: 3px;
}

/* =========================================================
   REVIEW NOTE
   ========================================================= */

.reviews-note {
  margin-top: 48px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--light-green);
}

.reviews-note h2 {
  font-size: clamp(30px, 3vw, 42px);
}

.reviews-note p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

/* =========================================================
   TRUST BAND
   ========================================================= */

.reviews-trust-band {
  background: var(--green);
}

.reviews-trust-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.reviews-trust-band-inner > div {
  padding: 30px 22px;
  border-right: 1px solid rgba(255, 255, 255, .18);
  text-align: center;
}

.reviews-trust-band-inner > div:last-child {
  border-right: 0;
}

.reviews-trust-band strong,
.reviews-trust-band span {
  display: block;
  color: #fff;
}

.reviews-trust-band strong {
  font-size: 31px;
  line-height: 1;
}

.reviews-trust-band span {
  margin-top: 8px;
  color: rgba(255, 255, 255, .86);
  font-weight: 800;
}

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

.reviews-cta-section {
  padding: 82px 0;
  background: var(--light);
}

.reviews-cta-box {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 36px;
  align-items: center;
  padding: 48px;
  border-radius: 30px;
  background:
    linear-gradient(
      125deg,
      rgba(8, 47, 99, .98),
      rgba(18, 77, 168, .92)
    );
  box-shadow: var(--shadow);
}

.reviews-cta-box h2,
.reviews-cta-box p {
  color: #fff;
}

.reviews-cta-box h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.reviews-cta-box p {
  max-width: 720px;
}

.reviews-cta-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 13px;
}

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

@media (max-width: 1100px) {
  .reviews-slider-track {
    --reviews-per-view: 2;
  }
}

@media (max-width: 980px) {
  .review-summary-grid,
  .reviews-cta-box {
    grid-template-columns: 1fr;
  }

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

  .reviews-note {
    grid-template-columns: 1fr;
  }

  .reviews-cta-actions {
    justify-content: flex-start;
  }
}

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

@media (max-width: 768px) {
  .reviews-hero {
    min-height: 430px;
  }

  .reviews-hero-inner {
    padding: 58px 0;
  }

  .reviews-hero h1 {
    font-size: 44px;
  }

  .reviews-hero-copy {
    font-size: 18px;
  }

  .review-summary-points,
  .reviews-trust-band-inner {
    grid-template-columns: 1fr;
  }

  .reviews-section-header {
    align-items: center;
  }

  .reviews-slider-track {
    --reviews-per-view: 1;
    --reviews-gap: 18px;
  }

  .full-review-card {
    min-height: 260px;
  }

  .reviews-trust-band-inner > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
  }

  .reviews-trust-band-inner > div:last-child {
    border-bottom: 0;
  }
}

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

@media (max-width: 620px) {
  .reviews-hero {
    min-height: 470px;
  }

  .reviews-hero h1 {
    font-size: 38px;
  }

  .reviews-hero-actions {
    display: none;
  }

  .review-summary-section {
    padding: 36px 0;
  }

  .review-summary-score,
  .review-summary-points > div,
  .full-review-card {
    padding: 24px;
  }

  .reviews-section-header {
    display: block;
    margin-bottom: 26px;
  }

  .reviews-slider-controls {
    justify-content: flex-end;
    margin-top: 22px;
  }

  .reviews-slider-button {
    width: 46px;
    height: 46px;
  }

  .full-review-card {
    min-height: 250px;
  }

  .reviews-note,
  .reviews-cta-box {
    padding: 30px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .reviews-slider-track,
  .reviews-slider-button,
  .reviews-slider-dot,
  .full-review-card {
    transition: none;
  }
}