/* User-approved warm beige chapters. Load last; keep the gallery, glass
   geometry and carousel behavior unchanged. All RGB values are brand colors. */
#portfolio,
#reviews {
  color: #2e3e44;
  background: #fdf4e3;
  border-color: rgba(46, 62, 68, .14);
}

#portfolio::before,
#portfolio::after,
#reviews::before,
#reviews::after { color: rgba(46, 62, 68, .7); }

#portfolio .section-heading h2,
#reviews .section-heading h2,
#portfolio .section-heading .eyebrow,
#reviews .section-heading .eyebrow { color: #2e3e44; }

#portfolio .section-heading > p:last-child,
#reviews .section-heading > p:last-child { color: rgba(46, 62, 68, .88); }

#portfolio .section-heading .eyebrow::before,
#reviews .section-heading .eyebrow::before { background: #b59357; }

/* These labels sit on photographs, not on the new paper background. */
#portfolio .portfolio-path-card__body h3 { color: #fdf4e3; }
#portfolio .portfolio-grid.portfolio-path-grid .portfolio-path-card__body > p {
  color: rgba(253, 244, 227, .9);
}
#portfolio .portfolio-path-card__action { color: #b59357; }

#reviews .reviews-stats,
#reviews .review-stat,
#reviews .reviews-toolbar,
#reviews .reviews-platforms { border-color: rgba(46, 62, 68, .2); }

#reviews .review-stat strong,
#reviews .reviews-counter strong { color: #2e3e44; }

#reviews .review-stat > span,
#reviews .reviews-toolbar > p,
#reviews .reviews-counter,
#reviews .reviews-platforms__label { color: rgba(46, 62, 68, .84); }

#reviews .reviews-toolbar,
#reviews .reviews-stats,
#reviews .review-stat { background: transparent; }

/* Gold icons retain their contrast on a solid brand-blue control surface. */
#reviews .reviews-socials a,
#reviews .reviews-controls button {
  color: #b59357;
  background: #2e3e44;
  border-color: #2e3e44;
  box-shadow: none;
}

#reviews .reviews-socials a:hover,
#reviews .reviews-socials a:focus-visible,
#reviews .reviews-controls button:not(:disabled):hover,
#reviews .reviews-controls button:focus-visible {
  color: #2e3e44;
  background: #b59357;
  border-color: #b59357;
  box-shadow: 0 6px 18px rgba(46, 62, 68, .12);
}

#reviews .reviews-socials a:focus-visible,
#reviews .reviews-controls button:focus-visible {
  outline: 2px solid #2e3e44;
  outline-offset: 4px;
}

#reviews .reviews-progress { background: rgba(46, 62, 68, .18); }
#reviews .reviews-progress span { background: #b59357; }

/* Light frosted glass: the surface changes, never the opacity of the copy. */
#reviews #reviewsCarousel {
  background:
    radial-gradient(ellipse at 18% 10%, rgba(255, 255, 255, .42), transparent 52%),
    radial-gradient(ellipse at 82% 70%, rgba(181, 147, 87, .07), transparent 56%);
}

#reviews #reviewsCarousel .testimonials-track > .testimonial-card {
  color: #2e3e44;
  border-color: rgba(181, 147, 87, .38) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .48), rgba(255, 255, 255, .1) 48%, rgba(255, 255, 255, .25)),
    rgba(46, 62, 68, .035) !important;
  opacity: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .78),
    inset 0 -1px 0 rgba(181, 147, 87, .08),
    0 8px 18px rgba(46, 62, 68, .06);
}

#reviews #reviewsCarousel .testimonials-track > .testimonial-card::after {
  background:
    radial-gradient(ellipse at 0 0, rgba(255, 255, 255, .25), transparent 48%),
    linear-gradient(120deg, transparent 42%, rgba(255, 255, 255, .12) 56%, transparent 70%);
}

#reviews #reviewsCarousel .testimonials-track > .testimonial-card.is-review-active {
  border-color: rgba(181, 147, 87, .72) !important;
  background:
    radial-gradient(ellipse at 95% 0, rgba(181, 147, 87, .09), transparent 56%),
    linear-gradient(135deg, rgba(255, 255, 255, .54), rgba(255, 255, 255, .12) 50%, rgba(255, 255, 255, .28)),
    rgba(46, 62, 68, .035) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    inset 0 -1px 0 rgba(181, 147, 87, .12),
    0 8px 18px rgba(46, 62, 68, .08);
}

#reviews #reviewsCarousel .testimonial-card__quote,
#reviews #reviewsCarousel .testimonial-card__name,
#reviews #reviewsCarousel .testimonial-card--more h3,
#reviews #reviewsCarousel .testimonial-card--more > p { color: #2e3e44; }

#reviews #reviewsCarousel .testimonial-card__quote::before { color: #b59357; }
#reviews #reviewsCarousel .testimonial-card__meta { border-top-color: rgba(46, 62, 68, .18); }

#reviews .testimonial-card__src,
#reviews .review-read-more {
  color: #2e3e44;
  border-color: rgba(181, 147, 87, .7);
}
#reviews .testimonial-card__src[href]:hover,
#reviews .testimonial-card__src[href]:focus-visible,
#reviews .review-read-more:hover,
#reviews .review-read-more:focus-visible {
  color: #2e3e44;
  border-color: #2e3e44;
}

#reviews #reviewsCarousel .review-source-grid a,
#reviews .reviews-platforms a {
  color: #2e3e44;
  background: rgba(255, 255, 255, .34);
  border-color: rgba(46, 62, 68, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
#reviews #reviewsCarousel .review-source-grid a:hover,
#reviews #reviewsCarousel .review-source-grid a:focus-visible,
#reviews .reviews-platforms a:hover,
#reviews .reviews-platforms a:focus-visible {
  color: #2e3e44;
  background: rgba(181, 147, 87, .16);
  border-color: #b59357;
}

#reviews .review-source-icon {
  color: #b59357;
  background: #2e3e44;
  border-color: #2e3e44;
}
#reviews .review-source-grid a:hover .review-source-icon,
#reviews .review-source-grid a:focus-visible .review-source-icon {
  color: #2e3e44;
  background: #b59357;
  border-color: #b59357;
}

#reviews #reviewsCarousel .review-source-grid a:focus-visible,
#reviews .reviews-platforms a:focus-visible,
#reviews .review-read-more:focus-visible,
#reviews .testimonial-card__src[href]:focus-visible {
  outline: 2px solid #2e3e44;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  #reviews #reviewsCarousel .testimonials-track > .testimonial-card:hover {
    border-color: rgba(181, 147, 87, .72) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86), 0 8px 18px rgba(46, 62, 68, .09);
  }
}
