/* ==========================================================================
   Reviews — page-specific styles. Loads after styles.css and reuses its
   tokens, buttons, eyebrows and the homepage .stats-bar. Prefix .rv-.
   Font sizes are rem so the site-wide text-size control scales them.
   Review data: site/reviews.json (real Google reviews only).
   ========================================================================== */

/* ---------- Hero ---------- */
.rv-hero{position:relative;overflow:hidden;background:var(--navy-2);}
.rv-hero-img{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  object-position:34% 62%;
  transform:scaleX(-1);
}
.rv-hero-scrim{
  position:absolute;inset:0;
  background:
    linear-gradient(90deg, rgba(0,28,59,.96) 0%, rgba(0,28,59,.9) 30%, rgba(0,28,59,.55) 50%, rgba(0,28,59,.12) 68%, rgba(0,28,59,0) 82%),
    linear-gradient(180deg, rgba(0,28,59,.25) 0%, rgba(0,28,59,0) 40%, rgba(0,28,59,.35) 100%);
}
.rv-hero-inner{
  position:relative;z-index:2;
  padding-block:clamp(36px,3.6vw,56px) clamp(24px,2.4vw,36px);
}
.rv-hero-content{max-width:640px;}
.rv-hero-eyebrow{margin-bottom:14px;}
.rv-hero-eyebrow span{color:#fff;opacity:.92;}
.rv-hero h1{
  font-size:clamp(2.125rem,4.6vw,3.625rem);
  letter-spacing:-1.4px;
  line-height:1.05;
  color:#fff;
  margin-bottom:18px;
}
.rv-hero h1 .accent{color:var(--accent);}
.rv-hero-sub{
  color:rgba(255,255,255,.88);
  font-size:1.0625rem;
  line-height:1.6;
  max-width:560px;
  margin-bottom:28px;
}
.rv-hero-actions{display:flex;gap:14px;flex-wrap:wrap;}

/* trust strip sits on the bottom of the hero photo: the homepage stats bar, tightened */
.rv-hero .rv-trust{position:relative;z-index:2;background:linear-gradient(180deg,rgba(0,28,59,0) 0%,rgba(0,28,59,.55) 100%);}
.rv-trust .stats-inner{padding-block:16px 22px;justify-content:space-between;}
.rv-trust .stat-text strong{white-space:nowrap;}
.rv-trust .stat-item{flex:1 1 0;padding-inline:24px;}
.rv-trust .stat-item:first-child{padding-left:0;}
.rv-trust .stat-icon{background:rgba(94,205,250,.12);border-color:rgba(94,205,250,.35);box-shadow:none;color:var(--accent);}
.rv-trust .stat-text small{text-transform:none;letter-spacing:0;font-size:0.8438rem;font-weight:500;color:rgba(255,255,255,.72);}

/* ---------- Google summary card ---------- */
.rv-google{padding-block:clamp(26px,2.6vw,40px) 0;}
.rv-google-card{
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:center;
  column-gap:clamp(22px,2.6vw,44px);
  background:var(--light-bg);
  border:1px solid rgba(0,38,75,.06);
  border-radius:22px;
  padding:clamp(22px,2.4vw,36px) clamp(22px,2.6vw,44px);
}
.rv-g-brand{display:flex;align-items:center;gap:14px;}
.rv-g-brand svg{flex:none;width:64px;height:64px;}
.rv-g-brand span{
  font-family:var(--font-head);font-weight:600;font-size:1.5rem;line-height:1.1;color:var(--navy);
}
.rv-g-brand span b{display:block;font-weight:700;}
.rv-g-score{display:flex;flex-direction:column;gap:6px;}
.rv-g-score-top{display:flex;align-items:center;gap:14px;}
.rv-g-score-top strong{
  font-family:var(--font-head);font-weight:800;font-size:3.25rem;line-height:1;letter-spacing:-1.5px;color:var(--navy);
}
.rv-g-score p{font-size:0.9063rem;color:var(--gray-text);}
.rv-g-score .btn{
  margin-top:10px;align-self:flex-start;
  background:#fff;color:var(--navy);border:1.5px solid rgba(0,38,75,.22);
  font-size:0.875rem;padding:11px 20px;
}
.rv-g-score .btn:hover{border-color:var(--icon-blue);color:var(--icon-blue);opacity:1;}
.rv-g-points{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(14px,1.6vw,26px);
  padding-left:clamp(22px,2.6vw,44px);
  border-left:1px solid rgba(0,38,75,.12);
}
.rv-g-point{text-align:center;}
.rv-g-point-icon{
  width:50px;height:50px;margin:0 auto 10px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;background:var(--icon-bg);color:var(--icon-blue);
}
.rv-g-point h3{font-size:1rem;margin-bottom:5px;}
.rv-g-point p{font-size:0.8438rem;line-height:1.5;color:var(--gray-text);}

/* stars (shared) */
.rv-stars{display:inline-flex;gap:3px;line-height:0;}
.rv-stars svg{width:22px;height:22px;fill:#F3BF27;}
.rv-stars--lg svg{width:30px;height:30px;}
.rv-stars--sm svg{width:17px;height:17px;}
.rv-star-part{position:relative;display:inline-block;line-height:0;}
.rv-star-part .rv-star-fill{position:absolute;inset:0;overflow:hidden;width:var(--fill,70%);}
.rv-star-part .rv-star-fill svg{fill:#F3BF27;}
.rv-star-part > svg{fill:#D5DEE7;}

/* ---------- Section heads ---------- */
.rv-head{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;column-gap:24px;
  padding-top:clamp(36px,4vw,60px);padding-bottom:clamp(18px,2.2vw,30px);
}
.rv-head .eyebrow{margin-bottom:10px;color:var(--icon-blue);gap:0;}
.rv-head .eyebrow i{display:none;}
.rv-head h2{font-size:clamp(1.875rem,3.4vw,2.875rem);letter-spacing:-1.1px;margin-bottom:10px;}
.rv-head h2 .accent{color:var(--icon-blue);}
.rv-head p{font-size:1.0313rem;line-height:1.55;color:var(--gray-text);max-width:800px;}
.rv-head h3{font-size:clamp(1.25rem,1.8vw,1.5rem);letter-spacing:-.5px;}
.rv-nav{display:flex;gap:10px;align-self:center;}
.rv-nav button{
  width:46px;height:46px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  border:1.5px solid rgba(0,38,75,.25);color:var(--navy);background:#fff;
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.rv-nav button:hover,.rv-nav button:focus-visible{background:var(--navy);color:#fff;border-color:var(--navy);}
.rv-nav button[disabled]{opacity:.4;cursor:default;background:#fff;color:var(--navy);border-color:rgba(0,38,75,.25);}

/* ---------- Review cards ---------- */
.rv-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(14px,1.5vw,22px);
}
.rv-card{
  position:relative;
  display:flex;flex-direction:column;
  background:#fff;
  border:1px solid rgba(0,38,75,.07);
  border-radius:18px;
  padding:clamp(18px,1.6vw,24px);
  box-shadow:0 6px 24px rgba(0,38,75,.06);
}
.rv-card-top{display:flex;align-items:center;gap:12px;margin-bottom:14px;}
.rv-card-top{gap:clamp(14px,1.6vw,24px);}
.rv-g{flex:none;width:30px;height:30px;}
.rv-who{display:flex;flex-direction:column;line-height:1.2;min-width:0;}
.rv-who strong{font-family:var(--font-head);font-weight:700;font-size:0.9375rem;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.rv-who small{font-size:0.75rem;color:var(--gray-text);margin-top:3px;}
.rv-quote{
  position:relative;
  font-size:0.9688rem;line-height:1.58;color:#2A4760;
  font-style:normal;
  margin:0;
  padding-left:14px;
}
.rv-quote::before{
  content:"\201C";position:absolute;left:0;top:-2px;
  font-family:var(--font-head);font-weight:800;font-size:1.5rem;line-height:1;color:var(--navy);
}
.rv-quote p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;white-space:pre-line;}
.rv-quote.is-open p{-webkit-line-clamp:unset;display:block;}
.rv-more{
  align-self:flex-start;
  margin-top:8px;margin-left:14px;padding:0;
  font-family:var(--font-head);font-weight:700;font-size:0.8125rem;color:var(--icon-blue);
}
.rv-more:hover{text-decoration:underline;}
.rv-more[hidden]{display:none;}
.rv-ba{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
  margin-top:18px;
}
.rv-ba figure{position:relative;margin:0;border-radius:10px;overflow:hidden;aspect-ratio:1.08;background:var(--light-bg);}
.rv-ba img{width:100%;height:100%;object-fit:cover;}
.rv-ba figcaption{
  position:absolute;bottom:8px;
  font-family:var(--font-head);font-weight:700;font-size:0.6875rem;letter-spacing:.6px;
  padding:6px 11px;border-radius:5px;color:#fff;
}
.rv-ba .rv-before figcaption{left:8px;background:var(--navy);}
.rv-ba .rv-after figcaption{right:8px;background:var(--icon-blue);}
.rv-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;}
.rv-tags a,.rv-tags span{
  font-family:var(--font-head);font-weight:600;font-size:0.75rem;
  padding:7px 12px;border-radius:7px;
  background:var(--icon-bg);color:var(--navy);
}
.rv-tags a:hover{background:var(--navy);color:#fff;}

/* featured carousel: pages of three */
.rv-featured{overflow:hidden;}
.rv-pages{display:grid;grid-template-columns:100%;}
.rv-page{grid-area:1/1;transition:opacity .4s ease,transform .4s ease;}
.rv-page[hidden]{display:grid;opacity:0;pointer-events:none;visibility:hidden;transform:translateX(16px);}
.rv-page:not([hidden]){opacity:1;transform:none;}
.rv-featured .rv-card{height:100%;}

/* rotating grid */
.rv-more-reviews{padding-bottom:clamp(44px,5vw,76px);}
.rv-more-reviews .rv-head{padding-top:clamp(34px,3.6vw,54px);padding-bottom:16px;}
.rv-live{display:flex;align-items:center;gap:8px;font-size:0.8125rem;color:var(--gray-text);}
.rv-live i{width:8px;height:8px;border-radius:50%;background:#2DBE6C;box-shadow:0 0 0 4px rgba(45,190,108,.18);}
.rv-rotor .rv-card{transition:opacity .45s ease,transform .45s ease;}
.rv-rotor .rv-card.is-out{opacity:0;transform:translateY(10px);}
.rv-rotor .rv-quote p{-webkit-line-clamp:4;}
/* reserve four lines + the "read full review" row so swapping a short review
   for a long one never changes the card height (no layout jump) */
.rv-rotor .rv-quote{min-height:calc(0.9688rem * 1.58 * 4);}
.rv-rotor .rv-more[hidden]{display:block;visibility:hidden;}
.rv-rotor .rv-quote.is-open{min-height:0;}
.rv-pool-note{margin-top:18px;font-size:0.8438rem;color:var(--gray-text);}
.rv-pool-note a{color:var(--icon-blue);font-weight:600;}

/* ---------- CTA band (same band as the About page) ---------- */
.rv-cta{
  position:relative;overflow:hidden;
  background:linear-gradient(100deg,#0B4D7A 0%,#012145 45%,#00203F 100%);
}
.rv-cta-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:left center;}
.rv-cta-inner{
  position:relative;z-index:1;
  max-width:1760px;
  margin-inline:auto;
  min-height:clamp(200px,17.8vw,273px);
  padding-top:clamp(28px,2.6vw,40px);
  padding-bottom:clamp(28px,2.9vw,45px);
  padding-left:max(clamp(18px,3.84vw,66px), calc(45.1vw - max(0px, (100vw - 1760px) / 2)));
  padding-right:clamp(18px,3.84vw,66px);
}
.rv-cta-eyebrow{font-size:clamp(0.6875rem,.85vw,0.875rem);letter-spacing:2.4px;gap:25px;margin-left:-73px;margin-bottom:clamp(3px,.3vw,5px);}
.rv-cta-eyebrow i{width:48px;}
.rv-cta-eyebrow span{color:#5ECDFA;}
.rv-cta h2{color:#fff;font-size:clamp(1.5rem,2.48vw,2.375rem);line-height:1.1;letter-spacing:-1px;margin-bottom:clamp(3px,.3vw,5px);}
.rv-cta p{color:rgba(255,255,255,.92);font-size:clamp(0.9375rem,1.17vw,1.125rem);line-height:1.5;max-width:690px;margin-bottom:clamp(12px,1vw,15px);}
.rv-cta-actions{display:flex;gap:clamp(10px,.75vw,12px);flex-wrap:wrap;}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:1240px){
  .rv-google-card{grid-template-columns:auto minmax(0,1fr);row-gap:22px;}
  .rv-g-points{grid-column:1 / -1;padding-left:0;border-left:none;padding-top:22px;border-top:1px solid rgba(0,38,75,.12);}
}
@media (max-width:1024px){
  .rv-hero-img{object-position:40% 62%;}
  .rv-hero-scrim{background:linear-gradient(90deg, rgba(0,28,59,.95) 0%, rgba(0,28,59,.86) 45%, rgba(0,28,59,.6) 75%, rgba(0,28,59,.45) 100%);}
  .rv-trust .stats-inner{justify-content:flex-start;gap:14px 0;}
  .rv-trust .stat-item{flex:1 1 46%;border-right:none;padding-inline:0;}
  .rv-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rv-cta-inner{padding-left:clamp(18px,3.84vw,66px);min-height:0;}
  .rv-cta-eyebrow{margin-left:0;}
  .rv-cta-bg{opacity:.35;}
}
@media (max-width:760px){
  .rv-hero-inner{padding-block:40px 36px;}
  .rv-hero h1{font-size:2.125rem;}
  .rv-hero-sub{font-size:0.9688rem;}
  .rv-hero-actions .btn{width:100%;justify-content:center;}
  .rv-trust .stat-item{flex-basis:100%;}
  .rv-trust .stat-text strong{white-space:normal;}
  .rv-trust .stat-text small{font-size:0.75rem;}
  .rv-google-card{grid-template-columns:minmax(0,1fr);padding:22px 18px;border-radius:16px;}
  .rv-g-brand svg{width:52px;height:52px;}
  .rv-g-brand span{font-size:1.25rem;}
  .rv-g-score-top strong{font-size:2.75rem;}
  .rv-g-points{grid-template-columns:minmax(0,1fr);gap:18px;}
  .rv-g-point{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:14px;text-align:left;align-items:center;}
  .rv-g-point-icon{width:44px;height:44px;margin:0;grid-row:1 / span 2;}
  .rv-head{grid-template-columns:minmax(0,1fr);row-gap:12px;}
  .rv-head h2{font-size:1.75rem;}
  .rv-head p{font-size:0.9375rem;}
  .rv-nav{justify-self:start;}
  .rv-grid{grid-template-columns:minmax(0,1fr);}
  .rv-card{padding:18px;}
  .rv-cta h2{font-size:1.5rem;}
  .rv-cta-actions .btn{width:100%;justify-content:center;}
}
@media (prefers-reduced-motion:reduce){
  .rv-page,.rv-rotor .rv-card{transition:none;}
}
