/* ── Reviews Section ────────────────────────────────────────────────────── */

.rw-section {
  background: #f4f6fb;
  border-top: 1px solid #e2e6f0;
  border-bottom: 1px solid #e2e6f0;
  padding: 52px 0 48px;
  overflow: hidden;
}

.rw-section__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Head row */
.rw-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.rw-section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 40, 95, .07);
  border: 1px solid rgba(0, 40, 95, .13);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.rw-section__kicker .material-symbols-outlined {
  font-size: 14px;
  color: #f78b00;
  font-variation-settings: 'FILL' 1;
}

.rw-section__title {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--color-heading);
  line-height: 1.15;
}

.rw-section__sub {
  margin: 6px 0 0;
  color: #666;
  font-size: 14px;
}

/* Facebook button */
.rw-section__fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #1877f2;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .12s;
  flex-shrink: 0;
}

.rw-section__fb-btn:hover {
  background: #166fe5;
  color: #fff;
  transform: translateY(-1px);
}

.rw-section__fb-btn .material-symbols-outlined {
  font-size: 17px;
}

/* ── Sliding track ──────────────────────────────────────────────────────── */

.rw-track-wrap {
  /* Fade edges with a mask */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  overflow: hidden;
}

.rw-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: rw-slide 80s linear infinite;
}

@keyframes rw-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Review card ────────────────────────────────────────────────────────── */

.rw-card {
  background: #fff;
  border: 1px solid #e2e6f0;
  border-radius: 14px;
  padding: 20px 22px;
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 14px rgba(0, 40, 95, .06);
  transition: box-shadow .2s, transform .2s;
}

.rw-card:hover {
  box-shadow: 0 8px 28px rgba(0, 40, 95, .12);
  transform: translateY(-2px);
}

/* Card top row */
.rw-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rw-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy) 0%, #1a6bcf 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rw-card__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.rw-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rw-card__date {
  font-size: 11px;
  color: #aaa;
}

/* Source badge */
.rw-card__badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f0fe;
  flex-shrink: 0;
}

.rw-card__badge .material-symbols-outlined {
  font-size: 15px;
  color: #888;
}

.rw-card__badge--fb .material-symbols-outlined {
  color: #1877f2;
}

/* Stars */
.rw-stars {
  display: flex;
  gap: 2px;
}

.rw-stars__star {
  font-size: 17px;
  color: #dde0ea;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.rw-stars__star--filled {
  color: #f78b00;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* Comment text */
.rw-card__comment {
  font-size: 13.5px;
  color: #555;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA below slider */
.rw-section__cta {
  margin-top: 32px;
  text-align: center;
}

.rw-section__cta-text {
  color: #666;
  font-size: 14px;
  margin: 0 0 14px;
}

/* Accessible list (visually hidden) */
.rw-sr-list {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rw-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }
  .rw-track-wrap {
    -webkit-mask-image: none;
    mask-image: none;
    overflow: visible;
  }
  .rw-card {
    width: 100%;
  }
}

/* ── Review submission page (review.php) ────────────────────────────────── */

.review-page {
  max-width: 560px;
  margin: 0 auto;
}

.review-page__header {
  text-align: center;
  margin-bottom: 28px;
}

.review-page__icon {
  font-size: 48px;
  color: var(--color-orange);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.review-page__title {
  margin: 8px 0 6px;
  font-size: clamp(1.3rem, 4vw, 1.75rem);
}

.review-page__sub {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.review-form {
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0, 40, 95, .07);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.review-label-optional {
  font-weight: 400;
  text-transform: none;
  color: #999;
  letter-spacing: 0;
}

.review-field { gap: 8px; }

.review-input {
  border: 1.5px solid #d6dae6;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 15px;
  color: #333;
  background: #fff;
  transition: border-color .15s;
  font-family: var(--font-body);
  width: 100%;
}

.review-input:focus {
  outline: none;
  border-color: var(--color-orange);
}

.review-textarea {
  resize: vertical;
  min-height: 90px;
}

/* Star picker */
.review-stars-field {
  border: none;
  padding: 0;
  margin: 0;
}

.review-stars-field legend {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-heading);
  margin-bottom: 10px;
}

.review-stars {
  display: flex;
  gap: 6px;
}

.review-star-label {
  cursor: pointer;
  display: flex;
}

.review-star-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.review-star-icon {
  font-size: 36px;
  color: #d0d4e0;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 36;
  transition: color .1s, font-variation-settings .1s;
  user-select: none;
}

.review-star-label--filled .review-star-icon,
.review-star-label:hover .review-star-icon {
  color: #f78b00;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 36;
}

.review-error {
  background: #fff0f0;
  border: 1px solid #fcc;
  border-radius: 8px;
  padding: 10px 14px;
  color: #c0392b;
  font-size: 14px;
}

.review-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s, transform .12s;
}

.review-submit:hover:not(:disabled) {
  background: #e07a00;
  transform: translateY(-1px);
}

.review-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.review-submit .material-symbols-outlined { font-size: 20px; }

.review-fb-nudge {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 20px;
}

.review-fb-nudge a {
  color: #1877f2;
  text-decoration: underline;
}

/* State pages */
.review-state {
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 40, 95, .07);
  max-width: 480px;
  margin: 0 auto;
}

.review-state--done    { border-color: #b7e4c7; background: #f0faf5; }
.review-state--invalid { border-color: #fcc;    background: #fff8f8; }

.review-state__icon {
  font-size: 52px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.review-state--done .review-state__icon    { color: #1a9c5b; }
.review-state--invalid .review-state__icon { color: #c0392b; }

.review-state h1,
.review-state h2 { margin: 12px 0 8px; font-size: 1.35rem; }

.review-state p {
  color: #666;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 20px;
}

.review-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-navy);
  color: #fff;
  border-radius: 10px;
  padding: 11px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s;
}

.review-btn:hover       { background: var(--color-orange); color: #fff; }
.review-btn--fb         { background: #1877f2; }
.review-btn--fb:hover   { background: #166fe5; color: #fff; }
