/* =========================================================
   Memory Bears By Laura — Testimonials / Reviews
   Full replacement CSS
   Desktop: premium editorial cards
   Mobile: stacked product image + readable review text
   ========================================================= */

body {
  background: #f6f2eb;
  color: #22304a;
}

/* -----------------------------
   Shared layout
----------------------------- */

.reviews-hero,
.review-submit-card,
.reviews-empty,
.reviews-cta,
.reviews-grid,
.reviews-controls,
.reviews-more-wrap,
.review-form-hero,
.review-form-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: rgba(34, 48, 74, 0.62);
  margin: 0 0 16px;
}

/* -----------------------------
   Hero
----------------------------- */

.reviews-hero {
  padding: 96px 0 54px;
}

.reviews-hero h1,
.reviews-empty h2,
.reviews-cta h2,
.review-form-hero h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  margin: 0 0 24px;
  color: #22304a;
}

.reviews-hero p,
.reviews-empty p,
.review-submit-card p,
.reviews-cta p,
.review-form-hero p,
.reviews-empty-inline p {
  max-width: 720px;
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(34, 48, 74, 0.74);
}

/* -----------------------------
   Submit prompt
----------------------------- */

.review-submit-card {
  border-top: 1px solid rgba(34, 48, 74, 0.12);
  border-bottom: 1px solid rgba(34, 48, 74, 0.12);
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.review-submit-card h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0 0 14px;
  color: #22304a;
}

/* -----------------------------
   Rating filters
----------------------------- */

.reviews-controls {
  padding: 34px 0 0;
}

.rating-filter,
.review-filters,
.reviews-filter,
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rating-filter button,
.review-filters button,
.reviews-filter button,
.filter-buttons button {
  border: 1px solid rgba(34, 48, 74, 0.22);
  background: transparent;
  color: #22304a;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rating-filter button.is-active,
.review-filters button.is-active,
.reviews-filter button.is-active,
.filter-buttons button.is-active {
  background: #22304a;
  color: #fff;
  border-color: #22304a;
}

/* -----------------------------
   Review groups
----------------------------- */

.reviews-grid {
  padding: 54px 0 72px;
  display: grid;
  gap: 38px;
}

.review-group {
  display: grid;
  gap: 18px;
}

.review-group-heading h2,
.customer-photos h2,
.photo-reviews h2 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: #22304a;
}

.photo-review-grid,
.text-review-grid,
.written-reviews {
  display: grid;
  gap: 18px;
}

/* -----------------------------
   Cards: desktop
----------------------------- */

.review-card {
  border: 1px solid rgba(34, 48, 74, 0.12);
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 34px rgba(34, 48, 74, 0.08);
}

.review-card--with-image {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 260px;
}

.review-card-image {
  background: #ece5d8;
  overflow: hidden;
}

.review-card-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.review-card-content {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.review-card--text-only,
.written-reviews .review-card {
  padding: 34px 38px;
}

.stars,
.review-stars {
  color: #22304a;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  margin: 0 0 16px;
}

.review-card blockquote,
.review-text {
  margin: 0 0 18px;
  color: #22304a;
  font-size: clamp(1.16rem, 1.35vw, 1.5rem);
  line-height: 1.48;
  font-weight: 500;
  max-width: 72ch;
}

.review-card cite,
.review-author {
  font-style: normal;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(34, 48, 74, 0.88);
}

.review-author::before {
  content: "— ";
  font-weight: 400;
}

/* -----------------------------
   Empty states / More button
----------------------------- */

.reviews-empty {
  padding: 80px 0;
}

.reviews-empty-inline {
  border-top: 1px solid rgba(34, 48, 74, 0.12);
  border-bottom: 1px solid rgba(34, 48, 74, 0.12);
  padding: 56px 0;
}

.reviews-empty-inline h2 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.reviews-more-wrap {
  margin: 0 auto 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
}

.reviews-more-wrap .primary-btn,
.reviews-more-wrap .secondary-btn,
.reviews-more-wrap button {
  width: auto;
  min-width: 190px;
}

/* -----------------------------
   CTA
----------------------------- */

.reviews-cta {
  text-align: center;
  padding: 80px 0 100px;
  border-top: 1px solid rgba(34, 48, 74, 0.12);
}

.reviews-cta p,
.reviews-cta h2 {
  margin-left: auto;
  margin-right: auto;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.primary-btn {
  background: #22304a;
  color: #fff;
}

.secondary-btn {
  border: 2px solid #22304a;
  color: #22304a;
}

/* -----------------------------
   Leave review form
----------------------------- */

.review-form-hero {
  max-width: 900px;
  padding: 90px 0 42px;
}

.review-form-section {
  max-width: 900px;
  padding: 0 0 100px;
}

.review-form {
  border-top: 1px solid rgba(34, 48, 74, 0.14);
  padding-top: 36px;
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.review-form label,
.rating-field {
  display: grid;
  gap: 9px;
  font-weight: 700;
  color: #22304a;
}

.review-form label span {
  font-weight: 400;
  color: rgba(34, 48, 74, 0.6);
}

.review-form input,
.review-form textarea,
.review-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(34, 48, 74, 0.18);
  background: #fffdf9;
  color: #22304a;
  padding: 16px;
  font: inherit;
  font-size: 1rem;
  border-radius: 14px;
}

.review-form textarea {
  resize: vertical;
}

.review-note,
.review-message {
  color: rgba(34, 48, 74, 0.68);
  line-height: 1.6;
}

.review-message {
  font-weight: 700;
}

.rating-label {
  font-weight: 700;
  color: #22304a;
}

.star-rating {
  display: flex;
  gap: 8px;
  align-items: center;
}

.star-rating button {
  border: 0;
  background: transparent;
  color: rgba(34, 48, 74, 0.25);
  font-size: 2.4rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  min-height: auto;
}

.star-rating button.is-active,
.star-rating button:hover {
  background: transparent;
  color: #22304a;
}

/* -----------------------------
   Tablet
----------------------------- */

@media (max-width: 900px) {
  .reviews-hero,
  .review-submit-card,
  .reviews-empty,
  .reviews-cta,
  .reviews-grid,
  .reviews-controls,
  .reviews-more-wrap,
  .review-form-hero,
  .review-form-section {
    width: min(100% - 36px, 1120px);
  }

  .reviews-hero,
  .review-form-hero {
    padding: 72px 0 42px;
  }

  .review-submit-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-card--with-image {
    grid-template-columns: 220px 1fr;
    min-height: 220px;
  }

  .review-card-image img {
    min-height: 220px;
  }

  .review-card-content {
    padding: 24px 26px;
  }

  .review-card blockquote,
  .review-text {
    font-size: 1.12rem;
    line-height: 1.52;
  }

  .rating-filter button,
  .review-filters button,
  .reviews-filter button,
  .filter-buttons button {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 130px;
  }
}

/* -----------------------------
   Mobile: stacked visual review cards
----------------------------- */

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .reviews-hero,
  .review-submit-card,
  .reviews-empty,
  .reviews-cta,
  .reviews-grid,
  .reviews-controls,
  .reviews-more-wrap,
  .review-form-hero,
  .review-form-section {
    width: min(100% - 32px, 1120px);
  }

  .reviews-hero,
  .review-form-hero {
    padding: 52px 0 30px;
  }

  .reviews-hero h1,
  .reviews-empty h2,
  .reviews-cta h2,
  .review-form-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
    letter-spacing: -0.065em;
  }

  .reviews-hero p,
  .reviews-empty p,
  .review-submit-card p,
  .reviews-cta p,
  .review-form-hero p,
  .reviews-empty-inline p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .reviews-controls {
    padding-top: 24px;
  }

  .rating-filter,
  .review-filters,
  .reviews-filter,
  .filter-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .rating-filter button,
  .review-filters button,
  .reviews-filter button,
  .filter-buttons button {
    width: 100%;
    min-width: 0;
    padding: 12px 10px;
    font-size: 0.98rem;
  }

  .reviews-grid {
    padding: 38px 0 42px;
    gap: 32px;
  }

  .review-group-heading h2,
  .customer-photos h2,
  .photo-reviews h2 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    margin-bottom: 14px;
  }

  .photo-review-grid,
  .text-review-grid,
  .written-reviews {
    gap: 16px;
  }

  .review-card {
    background: rgba(255, 255, 255, 0.55);
  }

  .review-card:hover {
    transform: none;
    box-shadow: none;
  }

  .review-card--with-image {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .review-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    background: #ece5d8;
    border-bottom: 1px solid rgba(34, 48, 74, 0.1);
  }

  .review-card-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    display: block;
  }

  .review-card-content {
    padding: 20px 22px 24px;
    display: block;
  }

  .review-card--text-only,
  .written-reviews .review-card {
    padding: 20px 22px;
  }

  .stars,
  .review-stars {
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
  }

  .review-card blockquote,
  .review-text {
    font-size: 1.02rem;
    line-height: 1.58;
    font-weight: 500;
    max-width: none;
    margin: 0 0 14px;
  }

  .review-card cite,
  .review-author {
    font-size: 0.92rem;
  }

  .reviews-more-wrap {
    margin: 8px auto 72px;
    min-height: 56px;
    display: flex;
    justify-content: center;
  }

  .reviews-more-wrap .primary-btn,
  .reviews-more-wrap .secondary-btn,
  .reviews-more-wrap button {
    width: 100%;
    max-width: 320px;
  }

  .reviews-cta {
    padding: 64px 0 80px;
  }

  .cta-row,
  .review-form .primary-btn {
    width: 100%;
  }

  .cta-row .primary-btn,
  .cta-row .secondary-btn {
    width: 100%;
  }

  .primary-btn,
  .secondary-btn {
    min-height: 54px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Very narrow phones */

@media (max-width: 390px) {
  .review-card-content,
  .review-card--text-only,
  .written-reviews .review-card {
    padding: 18px;
  }

  .review-card blockquote,
  .review-text {
    font-size: 0.98rem;
  }

  .stars,
  .review-stars {
    font-size: 1rem;
  }
}

/* -----------------------------
   Header safety override
   Keeps reviews/gallery nav matching homepage behaviour
----------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ddd4c4;
  border-bottom: 1px solid rgba(34, 48, 74, 0.12);
}

.site-header__inner {
  width: min(1480px, calc(100% - 72px));
  margin: 0 auto;
  padding: 22px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  flex-wrap: nowrap;
}

.site-nav a {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .site-header__inner {
    width: min(100%, calc(100% - 36px));
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-nav {
    width: 100%;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    font-size: 0.98rem;
  }
}

@media (max-width: 520px) {
  .site-brand__title {
    font-size: 2.1rem;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 0.92rem;
  }
}


@media (max-width: 900px) {
  .site-nav {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    padding-left: 0;
  }
}