/* reviews.css: the page's own layout (plan.md "## Reviews"). Only places and sizes its parts, with system.css's
   tokens; the components (header base, reviews, close) come from components.css. */

/* ---------- 1. the header: the business's album as a wall of prints in four columns drifting up (scene reviewwall),
   a still grade in its middle, and the white rating card centred over it ---------- */
.rhero { display: grid; padding: 12px 12px 0; }
.rhero > * { grid-area: 1 / 1; }
.rwall { position: relative; height: clamp(600px, calc(100svh - var(--header-h) - 24px), 820px); overflow: hidden; border-radius: var(--radius-l); background: var(--c-paper-alt); isolation: isolate; }
.rwall__cols { position: absolute; inset: 0 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 0.5rem + 1vw, 26px); }
.rwall__col { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 0.5rem + 1vw, 26px); align-content: start; will-change: transform; }
.rwall__col:nth-child(2) { padding-top: 70px; }
.rwall__col:nth-child(4) { padding-top: 40px; }
.rwall__col li { margin: 0; }
.rwall__print { display: block; width: 100%; padding: 8px 8px 9px; border: 0; border-radius: 6px; background: var(--c-white); box-shadow: var(--shadow-print); cursor: zoom-in; rotate: -1.4deg; transition: rotate 0.25s ease, translate 0.25s ease; }
.rwall__col li:nth-child(even) .rwall__print { rotate: 1.2deg; }
.rwall__col li:nth-child(3n) .rwall__print { rotate: -0.6deg; }
.rwall__print:hover { rotate: 0deg; translate: 0 -3px; }
.rwall__print:focus-visible { outline: 3px solid var(--c-cobalt); outline-offset: 3px; }
.rwall__print img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.rwall__scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.rwall__grade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse 44% 52% at 50% 50%, color-mix(in srgb, var(--c-paper) 92%, transparent) 0%, color-mix(in srgb, var(--c-paper) 70%, transparent) 55%, color-mix(in srgb, var(--c-paper) 0%, transparent) 100%), linear-gradient(to bottom, color-mix(in srgb, var(--c-paper-alt) 60%, transparent), transparent 14%, transparent 86%, color-mix(in srgb, var(--c-paper-alt) 60%, transparent)); }
.rwall .stop { z-index: 4; }
.rhero__card { position: relative; z-index: 3; align-self: center; justify-self: center; box-sizing: border-box; display: grid; justify-items: center; gap: 0.9rem; width: min(calc(100% - 48px), 600px); padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem) clamp(1.25rem, 0.8rem + 1.8vw, 2.75rem); border-radius: var(--radius-l); background: var(--c-white); box-shadow: 0 30px 80px color-mix(in srgb, var(--c-ink) 22%, transparent); text-align: center; }
.rhero__card .ihero__title { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.5rem); max-width: 16ch; }
.rhero__card .ihero__line { max-width: 30rem; }
.rhero__score { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.2rem; }
.rhero__num { font-family: var(--font-display); font-weight: var(--fw-display); font-size: clamp(3rem, 2.4rem + 2vw, 4.2rem); line-height: 1; color: var(--c-ink); }
.rhero__of { display: grid; justify-items: start; gap: 0.25rem; font-size: var(--fs-small); font-weight: var(--fw-strong); color: var(--c-ink-soft); }
.rhero__stars { font-size: 1.35rem; color: var(--c-star); }
.rhero__cta { justify-content: center; gap: var(--space-3) var(--space-4); }
.rhero__note { margin: 0.2rem 0 0; font-size: var(--fs-small); color: var(--c-ink-soft); }
@media (max-width: 1179px) { .rwall__cols { inset: 0 10px; } }
/* the phone: a band of three columns at the top, the card under it, rising over its foot */
@media (max-width: 679px) {
  .rhero { display: block; padding: 8px 8px 0; }
  .rwall { height: 300px; border-radius: 22px; }
  .rwall__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); inset: 0 8px; gap: 10px; }
  .rwall__col { gap: 12px; }
  .rwall__col:nth-child(4) { display: none; }
  .rwall__print { padding: 5px 5px 6px; }
  .rwall__grade { background: linear-gradient(to bottom, transparent 55%, color-mix(in srgb, var(--c-paper) 85%, transparent)); }
  .rhero__card { width: calc(100% - 16px); margin: -64px auto 0; padding: 1.4rem 1.1rem 1.25rem; }
  .rhero__card .ihero__title { font-size: clamp(1.95rem, 1.4rem + 3vw, 2.6rem); }
  .rhero__cta { flex-direction: column; }
}

/* the album: one print large over a soft backdrop, with arrows; the wall holds while it is open */
.album { box-sizing: border-box; width: min(94vw, 760px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: var(--radius-l); background: var(--c-white); box-shadow: 0 40px 100px color-mix(in srgb, var(--c-ink) 45%, transparent); overflow: visible; }
.album::backdrop { background: color-mix(in srgb, var(--c-ink) 62%, transparent); backdrop-filter: blur(3px); }
.album__in { position: relative; padding: 12px 12px 10px; }
.album__fig { margin: 0; }
.album__img { display: block; width: 100%; height: auto; max-height: 74svh; object-fit: contain; border-radius: 6px; background: var(--c-paper-alt); }
.album__cap { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; padding: 0 0.25rem; font-size: var(--fs-small); color: var(--c-ink-soft); }
.album__count { flex: none; font-weight: var(--fw-strong); }
.album__btn, .album__close { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--c-white); color: var(--c-ink); box-shadow: var(--shadow-m); font-size: 24px; cursor: pointer; }
.album__btn { top: 42%; }
.album__btn--prev { left: -18px; }
.album__btn--next { right: -18px; }
.album__close { top: -16px; right: -16px; width: 42px; height: 42px; font-size: 20px; }
.album__btn:focus-visible, .album__close:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
@media (max-width: 679px) { .album__btn--prev { left: 4px; } .album__btn--next { right: 4px; } .album__close { top: 6px; right: 6px; } }

/* ---------- 2. Google: a pull quote, then the reviews as cards in three columns (a swipe row on the phone) ---------- */
.google__head { margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); }
.google__pull { margin: 0 0 clamp(1.5rem, 1rem + 1.6vw, 2.5rem); padding: clamp(1.25rem, 1rem + 1vw, 1.9rem) clamp(1.25rem, 1rem + 1.4vw, 2.25rem); border-radius: var(--radius-l); background: var(--c-brand-tint); }
.google__pull blockquote { margin: 0; }
.google__pull p { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); line-height: 1.35; color: var(--c-ink); }
.google__pull figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.75rem; font-size: var(--fs-small); font-weight: var(--fw-strong); color: var(--c-ink-soft); }
.google__pull .stars { color: var(--c-star); }
.google__grid { columns: 3 300px; column-gap: clamp(14px, 0.6rem + 1vw, 24px); }
.google__grid .review { break-inside: avoid; margin: 0 0 clamp(14px, 0.6rem + 1vw, 24px); }
.google__grid .review__text p + p { margin-top: 0.7em; }
.google__more { margin: 0.5rem 0 0; text-align: center; }
@media (max-width: 679px) {
  .google__grid { columns: auto; display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: none; }
  .google__grid::-webkit-scrollbar { display: none; }
  .google__grid .review { flex: 0 0 82%; margin: 0; scroll-snap-align: center; }
}

/* ---------- 3. letters: cream letter cards in a masonry (a swipe row on the phone) ---------- */
.letters__grid { columns: 3 300px; column-gap: clamp(14px, 0.6rem + 1vw, 24px); margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); }
.letters__grid .letter { break-inside: avoid; margin: 0 0 clamp(14px, 0.6rem + 1vw, 24px); background: var(--c-paper); }
.letters__grid .letter .review__text p { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.55; }
@media (max-width: 679px) {
  .letters__grid { columns: auto; display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: none; }
  .letters__grid::-webkit-scrollbar { display: none; }
  .letters__grid .letter { flex: 0 0 82%; margin: 0; scroll-snap-align: center; }
}
