/* Shared form and approved website-review styling; the scoped review wall follows. */
.cs-reviews-main {
  margin: 0;
  padding: 0;
  background: var(--cs-paper, #f7f4eb);
}

.wp-site-blocks > .cs-reviews-main {
  margin-block-start: 0;
}

.cs-reviews-main .cs-reviews-page {
  display: block;
  margin: 0;
}

.cs-reviews-page__shell {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}

.cs-reviews-main .cs-reviews-page__intro {
  max-width: none;
  padding-block: clamp(40px, 5vw, 64px);
  background: var(--cs-ink, #171918);
  color: #fffaf2;
}

.cs-reviews-page__intro h1 {
  margin: 14px 0 20px;
  color: inherit;
  font: 600 var(--cs-heading-hero)/1.08 "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
}

.cs-reviews-page__intro .cs-eyebrow {
  margin: 0;
  color: #ff9b56;
}

.cs-reviews-page__intro p:not(.cs-eyebrow) {
  max-width: 55ch;
  margin: 0;
  color: #e9e0d5;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
}

.cs-reviews-page__body {
  padding-block: clamp(36px, 5vw, 64px) clamp(48px, 7vw, 88px);
}

.cs-reviews-page__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 28px;
}


.cs-reviews-page .cs-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.cs-reviews-page .cs-testimonial {
  min-width: 0;
  margin: 0;
  padding: 32px 0;
  border: 0;
  border-bottom: 1px solid #d9d1c5;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cs-reviews-page .cs-testimonial blockquote {
  margin: 0;
  color: #242825;
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  line-height: 1.6;
}

.cs-reviews-page .cs-testimonial blockquote > p {
  margin: 0;
}

.cs-reviews-page .cs-testimonial__rating {
  margin-bottom: 16px;
  color: #a13d06;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.cs-reviews-page .cs-testimonial:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  column-gap: 48px;
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: 8px;
  border: 0;
  background: #213e35;
  color: #fffaf2;
}

.cs-reviews-page .cs-testimonial:first-child .cs-testimonial__rating {
  grid-column: 1 / -1;
  color: #ffb77e;
  margin-bottom: 24px;
}

.cs-reviews-page .cs-testimonial:first-child blockquote {
  color: inherit;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.5;
}

.cs-reviews-page .cs-testimonial:first-child figcaption {
  margin: 0;
  padding: 4px 0 0;
  align-self: end;
}

.cs-reviews-page .cs-testimonial:first-child figcaption strong {
  color: #fffaf2;
}

.cs-reviews-page .cs-testimonial:first-child figcaption :is(time, span) {
  color: #d8e6df;
}

.cs-reviews-page .cs-testimonial:first-child figcaption a {
  color: #ffb77e;
}

.cs-reviews-page .cs-testimonial blockquote > :last-child {
  margin-bottom: 0;
}

.cs-reviews-page .cs-testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
  padding-top: 0;
  border: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cs-reviews-page .cs-testimonial figcaption > * {
  margin: 0;
}

/* WordPress may insert line breaks while formatting shortcode output. */
.cs-reviews-page .cs-testimonial figcaption > br {
  display: none;
}

.cs-reviews-page .cs-testimonial figcaption strong {
  color: #242825;
  font-weight: 700;
}

.cs-reviews-page .cs-testimonial figcaption :is(span, time),
.cs-reviews-page__note {
  color: #54564f;
}

.cs-reviews-page__feedback {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 48px;
  padding-block: 40px;
  border-block: 1px solid #d9d1c5;
}

.cs-reviews-page__feedback :is(h2, h3) {
  margin: 0 0 12px;
  font: 600 clamp(1.5rem, 2.5vw, 2rem)/1.2 "Oswald", "Arial Narrow", sans-serif;
  color: #242825;
}

.cs-reviews-page__feedback p {
  margin: 0 0 12px;
  max-width: 45ch;
  color: #54564f;
  line-height: 1.6;
}

.cs-reviews-page__text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  color: #a13d06;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.cs-reviews-page__intro .cs-reviews-page__text-link {
  color: #fffaf2;
}

.cs-reviews-page__text-link span {
  display: inline-block;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-reviews-page__text-link:is(:hover, :focus-visible) span {
  transform: translateX(4px);
}

.cs-reviews-page .cs-testimonial figcaption a {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #a13d06;
  text-underline-offset: 4px;
}

.cs-reviews-page__note {
  margin: 22px 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.cs-reviews-page .cs-reviews-page__cta {
  margin-top: clamp(36px, 5vw, 64px);
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
  background: #222523;
}

.cs-reviews-page__cta h2 {
  margin: 0 0 16px;
  font-size: var(--cs-heading-section-compact);
}

.cs-reviews-page__cta p {
  max-width: 50ch;
  color: #e9e0d5;
  line-height: 1.65;
}

.cs-reviews-page .wp-element-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--cs-primary-background, #c04b08);
  color: #fff;
  border: 1px solid var(--cs-primary-background, #c04b08);
  text-align: center;
  font: 600 1rem/1.4 "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
}

.cs-reviews-page .wp-element-button:is(:hover, :focus-visible) {
  background: var(--cs-primary-hover, #a63f06);
  border-color: var(--cs-primary-hover, #a63f06);
  color: #fff;
}

.cs-reviews-page a:focus-visible {
  outline: 3px solid #fb872f;
  outline-offset: 4px;
}

.cs-reviews-page .cs-reviews-empty {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #d9d1c5;
}

@media (max-width: 760px) {
  .cs-reviews-page__shell {
    width: calc(100% - 40px);
  }

  .cs-reviews-page .cs-testimonial-grid,
  .cs-reviews-page .cs-testimonial:first-child,
  .cs-reviews-page__feedback,
  .cs-reviews-page .cs-reviews-page__cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-reviews-page .cs-testimonial:first-child figcaption {
    margin-top: 24px;
  }

  .cs-reviews-page__feedback {
    gap: 28px;
  }

  .cs-reviews-page .wp-element-button {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-reviews-page__text-link span {
    transition: none;
    transform: none;
  }
}
.cs-review-intake {
  /* Inherit the existing brand; keep private feedback calm, legible and compact. */
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(36px, 5vw, 64px);
  margin-block: 40px;
  border-block: 1px solid #d9d1c5;
  scroll-margin-top: 160px;
}
.cs-review-intake__intro h2 { margin: 8px 0 20px; font-size: clamp(36px, 4vw, 52px); }
.cs-review-intake__intro p { max-width: 36ch; }
.cs-review-intake__privacy { color: #54564f; font-size: 16px; }
.cs-review-intake__form { display: grid; gap: 20px; position: relative; }
.cs-review-intake [hidden] { display: none !important; }
.cs-review-intake__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cs-review-intake__field { display: flex; flex-direction: column; gap: 7px; font-weight: 650; color: #171918; min-width: 0; }
.cs-review-intake__form > p:empty { display: none; }
.cs-review-intake__field small, .cs-review-intake__permission small { font-size: 14px; line-height: 1.5; font-weight: 400; color: #54564f; }
.cs-review-intake__field input, .cs-review-intake__field textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #77796f; border-radius: 2px;
  background: #fffef9; color: #171918; min-height: 50px; padding: 12px 14px;
  font: inherit; font-weight: 400; font-size: 16px; line-height: 1.5;
}
.cs-review-intake__field input::placeholder { color: #62645b; opacity: 1; }
.cs-review-intake__field textarea { resize: vertical; }
.cs-review-intake__rating { margin: 0; padding: 0; border: 0; min-width: 0; }
.cs-review-intake__rating legend { font-weight: 650; margin-bottom: 10px; }
.cs-review-intake__rating > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cs-review-intake__rating label { position: relative; cursor: pointer; }
.cs-review-intake__rating input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cs-review-intake__rating label > span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 50px; border: 1px solid #77796f; border-radius: 2px; background: #fffef9; color: #171918; font-weight: 650; }
.cs-review-intake__rating input:checked + span { background: #213e35; color: #fffaf2; border-color: #213e35; }
.cs-review-intake__rating input:focus-visible + span, .cs-review-intake :is(input, textarea, button, a):focus-visible { outline: 3px solid #a13d06; outline-offset: 3px; }
.cs-review-intake__permission { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.6; cursor: pointer; padding-block: 4px; }
.cs-review-intake__permission input { width: 22px; height: 22px; margin-top: 3px; flex-shrink: 0; accent-color: #213e35; }
.cs-review-intake__permission small { display: block; margin-top: 4px; }
.cs-review-intake__small { font-size: 14px; color: #54564f; margin: 0; }
.cs-review-intake__small a { color: #8d3505; text-underline-offset: 3px; }
.cs-review-intake__form .wp-element-button { justify-self: start; cursor: pointer; }
.cs-review-intake__form .wp-element-button:disabled { opacity: .7; cursor: wait; }
.cs-review-intake__message { border-left: 4px solid #a13d06; padding: 18px 22px; background: #fffef9; color: #171918; line-height: 1.6; }
.cs-review-intake__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cs-reviews-page__website { margin-top: 48px; }
@media (max-width: 760px) {
  .cs-review-intake { grid-template-columns: 1fr; scroll-margin-top: 100px; }
  .cs-review-intake__intro p { max-width: none; }
}
@media (max-width: 440px) {
  .cs-review-intake__row { grid-template-columns: 1fr; }
  .cs-review-intake__rating > div { gap: 6px; }
  .cs-review-intake__form .wp-element-button { width: 100%; }
}

/* User-pinned reference: staggered project imagery and layered customer words.
   Keep the existing Comfort Shield palette/type and the private intake below. */
.cs-reviews-page__showcase {
  width: min(1440px, calc(100% - 48px));
  margin: 24px auto 0;
  border-radius: 16px;
  background: radial-gradient(ellipse at 0 10%, #f2d7bf 0, transparent 52%),
    radial-gradient(ellipse at 100% 90%, #dce6de 0, transparent 60%), #f4f0e6;
  color: #171918;
}
.cs-reviews-main .cs-reviews-page__showcase .cs-reviews-page__intro {
  background: transparent;
  color: #171918;
  padding: 32px 0 8px;
  text-align: center;
}
.cs-reviews-page__showcase .cs-reviews-page__intro h1 {
  margin: 8px auto 12px;
  max-width: none;
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.1;
  text-wrap: balance;
}
.cs-reviews-page__showcase .cs-eyebrow { color: #923700; }
.cs-reviews-page__showcase .cs-reviews-page__intro p:not(.cs-eyebrow) {
  margin-inline: auto;
  color: #38443c;
  font-size: 18px;
}
.cs-reviews-page__showcase .cs-reviews-page__actions { justify-content: center; margin-top: 16px; }
.cs-reviews-page__showcase .cs-reviews-page__text-link { color: #213e35; font-size: 15px; }
.cs-review-wall { position: relative; isolation: isolate; min-width: 0; padding-bottom: 32px; }
.cs-review-wall__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #8a998c transparent;
  scroll-padding-inline: 26px;
  padding: 24px 26px 30px;
  -webkit-overflow-scrolling: touch;
}
.cs-review-wall__track { display: flex; align-items: center; gap: 20px; width: max-content; min-width: 100%; }
.cs-review-wall__column { flex: 0 0 350px; width: 350px; display: grid; gap: 18px; align-content: center; }
.cs-review-card { position: relative; margin: 0; min-width: 0; }
.cs-review-card__trigger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  height: 310px;
  overflow: hidden;
  padding: 24px;
  border: 0;
  border-radius: 14px;
  background: #213e35;
  color: #fffaf2;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
  isolation: isolate;
}
.cs-review-wall__column--stacked .cs-review-card__trigger { height: 184px; }
.cs-review-card__trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(9 19 15 / 94%) 0%, rgb(9 19 15 / 10%) 65%);
}
.cs-review-card__trigger img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 400ms cubic-bezier(.16, 1, .3, 1);
}
.cs-review-card__trigger:is(:hover, :focus-visible) img { transform: scale(1.035); }
.cs-review-card__trigger > strong,
.cs-review-card__identity strong { font-size: 20px; line-height: 1.2; font-weight: 700; color: inherit; max-width: 22ch; }
.cs-review-card__identity { display: flex; flex-direction: column; gap: 8px; }
.cs-review-card__identity > span { font-size: 14px; color: #f9dcc6; }
.cs-review-card__hint { font-size: 14px; margin-top: 8px; color: #f9dcc6; }
.cs-review-card__initials { position: absolute; top: 22px; left: 22px; font: 500 64px/1 'Oswald', 'Arial Narrow', sans-serif; color: #cddccf; }
.cs-review-wall__column:nth-child(3n) .cs-review-card__trigger { background: #8d3505; }
.cs-review-wall__column:nth-child(3n) .cs-review-card__initials { color: #ffe5ce; }
.cs-review-wall__controls { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px 0; }
.cs-review-wall__browse { display: flex; gap: 8px; }
.cs-review-wall__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cs-review-wall__controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #718174;
  border-radius: 6px;
  color: #213e35;
  background: transparent;
  font: 600 14px/1.3 'Inter', Arial, sans-serif;
  cursor: pointer;
}
.cs-review-wall__controls button:hover { background: #213e35; color: #fffaf2; }
.cs-review-wall__controls button:disabled { opacity: .35; cursor: default; }
.cs-review-wall__controls [data-cs-wall-motion] { border-color: transparent; }
.cs-review-wall__caption { margin: 16px auto 0; padding-inline: 24px; max-width: 80ch; text-align: center; color: #47574c; font-size: 12px; line-height: 1.6; }
.cs-review-wall__overlay { position: absolute; inset: 0; overflow: clip; pointer-events: none; z-index: 8; }
.cs-review-card__panel {
  box-sizing: border-box;
  padding: 30px;
  border: 0;
  border-radius: 14px;
  background: #213e35;
  color: #fffaf2;
  text-align: left;
  line-height: 1.6;
}
.is-enhanced .cs-review-card__panel {
  position: absolute;
  width: 344px;
  max-width: calc(100% - 32px);
  max-height: 410px;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 16px 30px rgb(12 30 20 / 22%);
  opacity: 0;
  transform: translateY(12px) rotate(0deg);
  transform-origin: 50% 75%;
  transition: opacity 350ms cubic-bezier(.16, 1, .3, 1), transform 350ms cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
.is-enhanced .cs-review-card__panel.is-open { opacity: 1; transform: translateY(-4px) rotate(-3deg); pointer-events: auto; }
.cs-review-card__panel:nth-child(even) { background: #8d3505; }
.cs-review-card__panel:nth-child(even).is-open { transform: translateY(-4px) rotate(3deg); }
.cs-review-card__rating { color: #ffbd89; font-size: 21px; letter-spacing: .08em; margin: 4px 0 16px; }
.cs-review-card__panel blockquote { margin: 0 0 20px; padding: 0; border: 0; color: inherit; font: 400 18px/1.55 'Inter', Arial, sans-serif; }
.cs-review-card__panel blockquote p { margin: 0; font-size: inherit; line-height: inherit; }
.cs-review-card__panel :is(a, summary) { color: #fffaf2; text-underline-offset: 4px; }
.cs-review-card__panel a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.cs-review-card__meta { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.cs-review-card__meta strong { color: #fffaf2; font-size: 16px; }
.cs-review-card__meta time { color: #e2eee4; }
.cs-review-card__close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fffaf2;
  font: 400 28px/1 Arial, sans-serif;
  cursor: pointer;
}
.cs-review-card__close:hover { background: rgb(255 255 255 / 12%); border-radius: 6px; }
.cs-review-card__full summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-weight: 600; }
.cs-review-card__full[open] { padding-bottom: 16px; }
.cs-review-card__full blockquote { font-size: 17px; }
.cs-review-wall :is(button, a, summary):focus-visible { outline: 3px solid #bb500e; outline-offset: 4px; }
.cs-review-card__panel :is(button, a, summary):focus-visible { outline-color: #fffaf2; outline-offset: 2px; }
.cs-review-wall [hidden] { display: none !important; }
.cs-review-wall:not(.is-enhanced) .cs-review-wall__controls,
.cs-review-wall:not(.is-enhanced) .cs-review-card__close { display: none; }
.cs-review-wall:not(.is-enhanced) .cs-review-card__panel { margin-top: 12px; }
.cs-review-wall:not(.is-enhanced) .cs-review-wall__track { align-items: start; }
.cs-review-intake { padding-top: 48px; border-top: 1px solid #d9d1c5; }
@media (max-width: 760px) {
  .cs-reviews-page__showcase { width: calc(100% - 24px); margin-top: 18px; }
  .cs-reviews-page__showcase .cs-reviews-page__intro .cs-reviews-page__shell { width: calc(100% - 32px); }
  .cs-reviews-page__showcase .cs-reviews-page__actions { gap: 8px 16px; }
  .cs-review-wall__column { flex-basis: 260px; width: 260px; }
}
@media (max-width: 600px) {
  .cs-reviews-page__showcase .cs-reviews-page__intro { padding-top: 30px; }
  .cs-reviews-page__showcase .cs-reviews-page__intro p:not(.cs-eyebrow) { font-size: 16px; }
  .cs-reviews-page__showcase .cs-reviews-page__actions { flex-direction: column; }
  .cs-review-wall__viewport { padding: 22px 16px 18px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
  .cs-review-wall__track { gap: 14px; align-items: stretch; }
  .cs-review-wall__column { display: contents; }
  .cs-review-card { flex: 0 0 min(280px, 78vw); scroll-snap-align: center; }
  .cs-review-card__trigger,
  .cs-review-wall__column--stacked .cs-review-card__trigger { height: 350px; padding: 22px; }
  .is-enhanced .cs-review-card__panel { width: 320px; max-width: calc(100% - 16px); max-height: 338px; padding: 28px 24px 22px; }
  .is-enhanced .cs-review-card__panel.is-open { transform: none; }
  .cs-review-card__panel blockquote { font-size: 17px; }
  .cs-review-wall__caption { font-size: 12px; padding-inline: 16px; }
  .cs-review-wall__controls { padding-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-review-wall *, .cs-review-wall *::after { transition: none !important; scroll-behavior: auto !important; }
  .is-enhanced .cs-review-card__panel.is-open { transform: none; }
}
