/* ============================================================
   Google reviews: hero rating badge, review wall, quote by the form.
   Markup is baked by tools/reviews-widget/bake.mjs and works with JS off.
   reviews.js adds the moving wall, swipe controls, star fill and the full review dialog.
   No inline styles anywhere: the CSP has no 'unsafe-inline' in style-src.
   ============================================================ */

:root{--rv-gold:#FBBC04;--rv-off:#D5D8DE;--rv-card-w:368px;--rv-gap:1.1rem}

/* ---------- stars ---------- */
.sg-rv-stars{display:block;flex:none;width:100px;height:20px}
.sg-rv-stars--solid path{fill:var(--rv-gold)}
.sg-rv-stars--solid .is-off{fill:var(--rv-off)}

/* ---------- hero badge ----------
   Google's brand rules: rating described as "on Google", no stars beside the Google logo, and an
   "as of" date with any rating or count. So the G sits at the far end, away from the stars. */
.sg-rbadge{display:inline-flex;align-items:center;gap:.85rem;margin-top:1.6rem;padding:.6rem .7rem .6rem 1.05rem;border-radius:14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.18);color:var(--silver-2);line-height:1;transition:background .2s ease,border-color .2s ease,transform .2s ease}
.sg-rbadge:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.34);transform:translateY(-1px)}
.sg-rbadge__num{font-family:var(--font-head);font-weight:800;font-size:2.4rem;line-height:.9;color:#fff}
.sg-rbadge__body{display:flex;flex-direction:column;gap:.32rem}
.sg-rbadge .sg-rv-stars{width:90px;height:18px}
.sg-rbadge__txt{color:var(--silver-1);font-size:.92rem;font-weight:500}
.sg-rbadge__txt b{color:#fff;font-weight:700}
.sg-rbadge__asof{color:var(--silver-3);font-size:.74rem}
.sg-rbadge__g{display:grid;place-items:center;flex:none;width:34px;height:34px;margin-left:.4rem;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.3)}
.sg-rbadge__g img{width:18px;height:18px}
@media(max-width:420px){
  .sg-rbadge{gap:.7rem;padding:.55rem .6rem .55rem .9rem}
  .sg-rbadge__num{font-size:2.1rem}
  .sg-rbadge__txt{font-size:.88rem}
  .sg-rbadge__g{width:30px;height:30px;margin-left:.2rem}
}

/* ---------- section ---------- */
.sg-rv{position:relative;overflow:hidden;scroll-margin-top:72px}
.sg-rv::before{content:"";position:absolute;top:-220px;right:-160px;width:760px;height:560px;background:radial-gradient(closest-side,rgba(197,45,47,.10),transparent);pointer-events:none}
@media(max-width:939px){.sg-rv::before{top:-180px;right:-220px;width:440px;height:380px;opacity:.6}}
.sg-rv > .sg-wrap{position:relative}
.sg-rv__head{display:grid;gap:2rem;align-items:end;margin-bottom:2.2rem}
.sg-rv__intro h2{margin-top:.6rem}
.sg-rv__intro .sg-lead{margin-top:1rem;max-width:34rem}
@media(min-width:940px){.sg-rv__head{grid-template-columns:minmax(0,1fr) 440px;gap:3.5rem;margin-bottom:2.8rem}}

/* score card */
.sg-rv-score{position:relative;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-md);padding:1.4rem 1.5rem 1.5rem}
.sg-rv-score::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,transparent,var(--red),transparent)}
.sg-rv-score__brand{display:flex;align-items:center;gap:.55rem;font-family:var(--font-head);font-size:.8rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--muted)}
.sg-rv-score__brand img{width:20px;height:20px}
.sg-rv-score__main{display:flex;align-items:center;gap:1.1rem;margin-top:.55rem}
.sg-rv-score__num{min-width:2.15ch;font-family:var(--font-head);font-weight:800;font-size:clamp(4.2rem,10vw,5.6rem);line-height:.86;color:var(--ink);font-variant-numeric:tabular-nums}
.sg-rv-score .sg-rv-stars{width:140px;height:28px}
.sg-rv-score__count{display:block;margin-top:.5rem;color:var(--muted);font-size:.98rem;line-height:1.3}
.sg-rv-score__count b{color:var(--ink)}
.sg-rv-score__asof{display:block;margin-top:.25rem;color:var(--muted);font-size:.8rem}
.sg-rv-score__cta{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.25rem}
.sg-rv-score__cta .sg-btn{flex:1 1 auto;min-height:48px;padding:.75rem 1.05rem;font-size:.92rem;letter-spacing:.07em}

/* ---------- the wall: a swipeable row by default ---------- */
.sg-rv-wall{position:relative}
.sg-rv-track{list-style:none;display:flex;gap:var(--rv-gap);margin:0 -1.35rem;padding:.5rem 1.35rem 1.2rem;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:1.35rem;scrollbar-width:none}
.sg-rv-track::-webkit-scrollbar{display:none}
.sg-rv-track > li,.sg-rv-row > li{display:flex;flex:0 0 min(84vw,var(--rv-card-w))}
.sg-rv-track > li{scroll-snap-align:start}
@media(min-width:900px){.sg-rv-track{-webkit-mask-image:linear-gradient(90deg,#000 93%,transparent);mask-image:linear-gradient(90deg,#000 93%,transparent)}}

/* moving wall on wide screens, set up by reviews.js. Full bleed, edges fade out. */
.sg-rv-wall.is-moving{margin-inline:calc(50% - 50vw)}
.sg-rv-marquee{overflow:hidden;padding:.6rem 0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
.sg-rv-row{list-style:none;display:flex;gap:var(--rv-gap);width:max-content;margin:0;padding:0 var(--rv-gap) 0 0;animation:sg-rv-slide var(--rv-dur,80s) linear infinite}
@keyframes sg-rv-slide{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
.sg-rv-marquee:hover .sg-rv-row,.sg-rv-wall:focus-within .sg-rv-row,.sg-rv-wall.is-paused .sg-rv-row,.sg-rv-wall.is-offscreen .sg-rv-row{animation-play-state:paused}

/* ---------- spotlight: one still review, the customer's best line large ---------- */
.sg-rv-spot{position:relative;margin:0 0 1.5rem;padding:1.5rem 1.4rem 1.25rem;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-md)}
.sg-rv-spot::before{content:"";position:absolute;top:0;bottom:0;left:0;width:4px;background:linear-gradient(180deg,var(--red),var(--red-dark))}
.sg-rv-spot__pull{margin-top:1rem;color:var(--ink);font-size:clamp(1.4rem,2.5vw,1.95rem);font-weight:700;line-height:1.3}
.sg-rv-spot__mark{display:block;height:2.1rem;color:var(--red);font-family:var(--font-head);font-size:4.6rem;font-weight:800;line-height:.95}
.sg-rv-spot__text{margin:1.1rem 0 0}
.sg-rv-spot__text p{color:var(--text);font-size:1.02rem;line-height:1.65}
.sg-rv-spot mark{padding:0 .05em;background:linear-gradient(180deg,transparent 56%,rgba(197,45,47,.2) 56%);color:var(--ink);font-weight:600;-webkit-box-decoration-break:clone;box-decoration-break:clone}
@media(min-width:900px){
  .sg-rv-spot{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);align-items:center;gap:2.6rem;padding:2.1rem 2.4rem 1.9rem 2.6rem}
  .sg-rv-spot__side{padding-left:2.6rem;border-left:1px solid var(--line)}
  .sg-rv-spot__text{margin-top:0}
}

/* ---------- cards ---------- */
.sg-rv-card figure{display:flex;flex-direction:column;width:100%;margin:0;padding:1.35rem 1.4rem 1.15rem;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.sg-rv-card__top{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:26px}
.sg-rv-tag{padding:.42rem .7rem;border-radius:999px;background:#FBE9E9;color:var(--red);font-family:var(--font-head);font-size:.72rem;font-weight:700;letter-spacing:.14em;line-height:1;text-transform:uppercase;white-space:nowrap}
.sg-rv-card__text{flex:1 1 auto;margin:.95rem 0 0}
.sg-rv-card__text p{color:var(--text);font-size:1rem;line-height:1.62}
.sg-rv.is-ready .sg-rv-card__text p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;line-clamp:6;overflow:hidden}
.sg-rv-card mark,.sg-rv-dialog mark{padding:0 .05em;background:linear-gradient(180deg,transparent 56%,rgba(197,45,47,.2) 56%);color:var(--ink);font-weight:600;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.sg-rv-card__more{align-self:flex-start;margin-top:.55rem;padding:.2rem 0;border:0;background:none;color:var(--red);font:inherit;font-size:.9rem;font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer}
.sg-rv-card__more:hover{color:var(--red-dark)}
.sg-rv-card__by{display:flex;align-items:center;gap:.75rem;margin-top:1.05rem;padding-top:1rem;border-top:1px solid var(--line)}
.sg-rv-avatar{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:var(--charcoal);color:#fff;font-family:var(--font-head);font-size:1.2rem;font-weight:700;line-height:1}
.sg-rv-avatar.is-t1{background:var(--red)}
.sg-rv-avatar.is-t2{background:var(--charcoal)}
.sg-rv-avatar.is-t3{background:#3B4250}
.sg-rv-avatar.is-t4{background:#8E2224}
.sg-rv-avatar.is-t5{background:#5C626D}
.sg-rv-card__who{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.sg-rv-card__who b{color:var(--ink);font-size:.98rem;font-weight:700}
.sg-rv-card__who small{margin-top:.15rem;color:var(--muted);font-size:.84rem}
.sg-rv-card__g{flex:none;width:20px;height:20px;margin-left:auto}

/* ---------- controls ---------- */
.sg-rv-controls{display:flex;justify-content:center;margin-top:1rem}
.sg-rv-swipe{display:flex;align-items:center;gap:1rem;width:100%;max-width:420px}
.sg-rv-btn{display:grid;place-items:center;flex:none;width:46px;height:46px;border:1px solid var(--line-strong);border-radius:50%;background:#fff;color:var(--ink);cursor:pointer;transition:background .2s ease,border-color .2s ease,color .2s ease,opacity .2s ease}
.sg-rv-btn:hover:not(:disabled){background:var(--ink);border-color:var(--ink);color:#fff}
.sg-rv-btn:disabled{opacity:.35;cursor:default}
.sg-rv-progress{position:relative;flex:1;height:3px;overflow:hidden;border-radius:3px;background:var(--line-strong)}
.sg-rv-progress span{position:absolute;top:0;bottom:0;left:0;width:25%;border-radius:3px;background:var(--red)}
.sg-rv-pausebtn{display:inline-flex;align-items:center;gap:.55rem;min-height:44px;padding:0 1.1rem;border:1px solid var(--line-strong);border-radius:999px;background:#fff;color:var(--ink);font-family:var(--font-head);font-size:.8rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;cursor:pointer;transition:border-color .2s ease}
.sg-rv-pausebtn:hover{border-color:var(--ink)}
.sg-rv-cta{display:flex;justify-content:center;margin-top:1.8rem}
.sg-rv-ico-play,.sg-rv-wall.is-paused .sg-rv-ico-pause{display:none}
.sg-rv-wall.is-paused .sg-rv-ico-play{display:block}
.sg-rv button:focus-visible,.sg-rv a:focus-visible,.sg-rbadge:focus-visible,.sg-rv-dialog button:focus-visible{outline:2px solid var(--red);outline-offset:3px}

/* ---------- one review beside the quote form (dark section) ---------- */
.sg-rv-quote{max-width:520px;margin:1.9rem 0 0;padding:1.25rem 1.35rem 1.2rem;border:1px solid rgba(255,255,255,.1);border-left:3px solid var(--red);border-radius:var(--radius);background:rgba(255,255,255,.05)}
.sg-rv-quote .sg-rv-stars{width:90px;height:18px}
.sg-rv-quote blockquote{margin:.75rem 0 0}
.sg-rv-quote p{color:var(--silver-1);font-size:1.02rem;line-height:1.6}
.sg-rv-quote mark{padding:0 .05em;background:linear-gradient(180deg,transparent 56%,rgba(226,79,67,.4) 56%);color:#fff;font-weight:600}
.sg-rv-quote figcaption{display:flex;align-items:center;gap:.7rem;margin-top:1rem;line-height:1.25}
.sg-rv-quote figcaption b{display:block;color:#fff;font-size:.96rem}
.sg-rv-quote figcaption small{color:var(--silver-3);font-size:.84rem}
.sg-rv-quote .sg-rv-avatar{width:38px;height:38px;font-size:1.05rem;box-shadow:0 0 0 2px rgba(255,255,255,.2)}

/* ---------- full review dialog ---------- */
.sg-rv-dialog{width:min(560px,calc(100vw - 2rem));max-height:calc(100vh - 3rem);margin:auto;padding:0;border:0;background:transparent;overflow:visible}
.sg-rv-dialog::backdrop{background:rgba(18,19,23,.62);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.sg-rv-dialog[open]{animation:sg-rv-pop .22s ease-out}
@keyframes sg-rv-pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
.sg-rv-dialog__box{position:relative;max-height:calc(100vh - 3rem);overflow:auto;border-radius:var(--radius);background:#fff;box-shadow:var(--shadow-dark)}
.sg-rv-dialog__box::before{content:"";position:absolute;top:0;right:0;left:0;height:3px;background:linear-gradient(90deg,transparent,var(--red),transparent)}
.sg-rv-dialog figure{margin:0;padding:1.8rem 1.7rem 1.4rem}
.sg-rv-dialog .sg-rv-card__top{padding-right:2.8rem}
.sg-rv-dialog .sg-rv-card__text p{font-size:1.06rem;line-height:1.7}
.sg-rv-dialog__x{position:absolute;top:.75rem;right:.75rem;z-index:1;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:var(--bg-alt);color:var(--ink);cursor:pointer}
.sg-rv-dialog__x:hover{background:var(--bg-alt-2)}

/* ---------- demo only: printed when the data file is marked sample ---------- */
.sg-rv-sample{position:fixed;left:1rem;bottom:1rem;z-index:80;margin:0;padding:.55rem .95rem;border:1px solid var(--line-strong);border-radius:999px;background:#fff;color:var(--ink);box-shadow:var(--shadow-md);font-family:var(--font-head);font-size:.74rem;font-weight:700;letter-spacing:.14em;line-height:1;text-transform:uppercase;pointer-events:none}
.sg-rv-sample::before{content:"";display:inline-block;width:8px;height:8px;margin-right:.5rem;border-radius:50%;background:var(--rv-gold);vertical-align:1px}
@media(max-width:939px){.sg-rv-sample{left:.75rem;bottom:4.4rem}}

@media(prefers-reduced-motion:reduce){
  .sg-rv-row,.sg-rv-dialog[open]{animation:none}
  .sg-rbadge{transition:none}
}
