/* Section: Guest reviews (#reviews) - Tony, 2026-10-28. The strip of reviews + the "Leave a review" dialog.
   Built on the site tokens, so it follows the theme (ICE today). assets/js/reviews.js */
.reviews { overflow-x: clip; }
.reviews .sec-head { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rv-summary { margin: 0; color: var(--ink-2); font-size: 15px; }
.rv-summary b { font-size: 22px; color: var(--ink); margin-right: 4px; }
.rv-stars-show { color: #f2b01e; letter-spacing: 2px; margin: 0; }
.rv-stars-show .rv-off { color: var(--line-2); }

/* ---- the strip ---- */
.rv-carousel { position: relative; margin-top: clamp(28px, 4vw, 48px); }
.rv-strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 10px var(--gutter) 26px;
  scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.rv-strip::-webkit-scrollbar { display: none; }
.rv-strip:focus-visible { box-shadow: inset 0 0 0 2px var(--cyan); border-radius: 18px; }
.reviews.is-few .rv-strip, .reviews.is-empty .rv-strip { justify-content: center; }
.reviews.is-few .rv-side, .reviews.is-empty .rv-side { display: none; }
.rv-loading { color: var(--muted); margin: 40px auto; }

.rv-card { flex: 0 0 clamp(260px, 26vw, 330px); scroll-snap-align: start; display: flex; flex-direction: column; border-radius: var(--radius);
  background: var(--grad-soft, var(--glass)); border: 1px solid var(--line); box-shadow: var(--shadow-1, none); overflow: hidden; }
.rv-open { all: unset; cursor: pointer; display: block; }
.rv-open:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.rv-cover { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-3); overflow: hidden; }
.rv-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.rv-open:hover .rv-cover img { transform: scale(1.04); }
.rv-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: #0a1f36; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45); }
.rv-play .ico { width: 26px; height: 26px; margin-left: 3px; }
.rv-badge { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(6, 22, 44, .72); color: #fff;
  font: 600 12px var(--sans); letter-spacing: .02em; }
.rv-quote { display: grid; place-items: center; aspect-ratio: auto; height: 96px; font: 800 120px/1 Georgia, serif; color: var(--ice, var(--cyan));
  background: linear-gradient(160deg, var(--bg-2), var(--bg-3)); }
.rv-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rv-text { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; white-space: pre-line; }
.rv-card.is-text .rv-text { -webkit-line-clamp: 8; }
.rv-card.is-open .rv-text { -webkit-line-clamp: unset; }
.rv-who { margin: auto 0 0; display: flex; flex-direction: column; gap: 2px; }
.rv-who b { color: var(--ink); font-size: 15px; }
.rv-who span { color: var(--muted); font-size: 13px; }
.rv-first { flex-basis: min(440px, 88vw); text-align: center; }
.rv-first .rv-card-body { align-items: center; padding: 34px 26px; gap: 12px; }
.rv-first-big { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.rv-first p { margin: 0; color: var(--ink-2); }

/* side arrows (half see-through, full on hover - Tony, Oct 28) */
.rv-side { position: absolute; top: 42%; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; z-index: 3;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: var(--shadow-1, none); opacity: .5;
  left: clamp(6px, 2vw, 28px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.rv-side.next { left: auto; right: clamp(6px, 2vw, 28px); }
.rv-side.next .ico { transform: scaleX(-1); }
.rv-side .ico { width: 22px; height: 22px; }
.rv-side:hover { opacity: 1; transform: scale(1.06); }
@media (max-width: 759px) { .rv-side { width: 42px; height: 42px; margin-top: -21px; } .rv-card { flex-basis: 78vw; } }

/* ---- the dialog ---- */
html.rv-open { overflow: hidden; }
.rv-dialog { width: min(680px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow-2, 0 30px 80px -30px rgba(0, 0, 0, .5)); overflow: auto; overscroll-behavior: contain; }
.rv-dialog::backdrop { background: rgba(6, 22, 44, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rv-form { padding: clamp(18px, 3vw, 28px); display: block; }
.rv-form-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rv-form-top h3 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.rv-x { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--frost, #fff); color: var(--ink); cursor: pointer; }
.rv-x .ico { width: 16px; height: 16px; }
.rv-body { display: grid; gap: 14px; }
.rv-req { color: #c0392b; }
.rv-stars { border: 0; padding: 0; margin: 0; }
.rv-stars legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.rv-stars-row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rv-stars-row input { position: absolute; opacity: 0; pointer-events: none; }
.rv-stars-row label { font-size: 38px; line-height: 1; color: var(--line-2); cursor: pointer; transition: color .15s, transform .15s; }
.rv-stars-row label:hover, .rv-stars-row label:hover ~ label, .rv-stars-row input:checked ~ label { color: #f2b01e; }
.rv-stars-row label:hover { transform: scale(1.12); }
.rv-stars-row input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.rv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rv-field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.rv-field em, .rv-media-h em { font-style: normal; font-weight: 400; color: var(--muted); }
.rv-field input, .rv-field textarea { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--frost, #fff); color: var(--ink); font: 16px var(--sans); resize: vertical; }
.rv-field input:focus, .rv-field textarea:focus { outline: 2px solid var(--ice, var(--cyan)); outline-offset: 1px; border-color: transparent; }
.rv-media { display: grid; gap: 8px; }
.rv-media-h { margin: 0; font-weight: 700; font-size: 14px; }
.rv-media-btns, .rv-photos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rv-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--frost, #fff);
  color: var(--cyan); font: 600 14px var(--sans); cursor: pointer; }
.rv-chip:hover { border-color: var(--cyan); }
.rv-chip svg { width: 20px; height: 20px; flex: none; }
.rv-chip[hidden] { display: none; }
.rv-rec { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.rv-rec[hidden] { display: none; }
.rv-rec-screen { position: relative; border-radius: 12px; overflow: hidden; background: #0a1f36; aspect-ratio: 16 / 9; }
.rv-rec-screen video, .rv-rec-screen canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.rv-rec-screen #rvLive { transform: scaleX(-1); object-fit: cover; }
.rv-rec-screen [hidden] { display: none; }
.rv-rec-time { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(192, 57, 43, .9); color: #fff; font: 700 13px var(--mono); }
.rv-rec-msg { margin: 0; color: var(--ink-2); font-size: 14px; }
.rv-rec-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-rec-btns [hidden] { display: none; }
#rvRecGo.is-rec { background: #c0392b; color: #fff; }
.rv-thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rv-thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(6, 22, 44, .72); color: #fff; cursor: pointer; }
.rv-thumb button .ico { width: 12px; height: 12px; }
.rv-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.rv-consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--cyan); flex: none; }
.rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rv-msg { margin: 0; color: #b3261e; font-weight: 600; font-size: 14px; }
.rv-msg:empty { display: none; }
.rv-send { display: grid; gap: 10px; }
.rv-send .btn { justify-self: start; }
.rv-progress { position: relative; height: 34px; border-radius: 999px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); }
.rv-progress[hidden] { display: none; }
.rv-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--grad-btn, var(--grad)); transition: width .3s; }
.rv-progress span { position: relative; display: block; text-align: center; line-height: 32px; font-size: 13px; font-weight: 600; color: var(--ink); }
.rv-done { text-align: center; padding: 20px 6px 8px; display: grid; gap: 10px; justify-items: center; }
.rv-done[hidden] { display: none; }
.rv-done-burst { font-size: 44px; margin: 0; }
.rv-done h3 { margin: 0; font-size: 28px; font-weight: 800; }
.rv-done p { margin: 0; color: var(--ink-2); max-width: 420px; }
@media (max-width: 600px) {
  .rv-dialog { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; margin: 0; }
  .rv-row { grid-template-columns: 1fr; }
  .rv-send .btn { justify-self: stretch; justify-content: center; }
}
