/* Total Roof Services — generated by build.py. Edit the generator, not this file. */

:root{
  --maroon:#7b0d0d; --maroon-deep:#5e0a0a; --maroon-ink:#3d0707;
  --amber:#f5a524; --amber-deep:#d98b0f;
  --ink:#16181d; --body:#41474f; --muted:#5f676f;
  --paper:#fbf9f7; --paper-2:#f4efe9; --line:#e4ddd4; --line-strong:#cfc4b6;
  --white:#fff;
  --radius:4px; --radius-lg:10px;
  --shadow-sm:0 1px 2px rgba(22,24,29,.06),0 2px 8px rgba(22,24,29,.04);
  --shadow:0 18px 40px -24px rgba(22,24,29,.45);
  --wrap:1180px; --gut:clamp(1.15rem,4vw,2.5rem);
  --fs-display:clamp(2.35rem,6.2vw,4.35rem);
  --fs-h2:clamp(1.75rem,3.6vw,2.7rem);
  --fs-h3:clamp(1.15rem,1.9vw,1.4rem);
  --fs-body:clamp(1rem,.55vw + .9rem,1.09rem);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
body{
  margin:0;background:var(--paper);color:var(--body);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:var(--fs-body);line-height:1.65;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  font-feature-settings:"cv05" 1,"cv08" 1;
}
img{max-width:100%;height:auto;display:block}
/* <picture> is display:inline by default, which would introduce a baseline gap
   under every image and give the absolutely-positioned heroes a new inline box.
   display:contents makes the wrapper generate no box, so adding responsive
   sources changed no layout at all. */
picture{display:contents}
a{color:var(--maroon);text-underline-offset:.18em}
/* Links inside running copy carry an underline: color alone is not a
   sufficient distinguisher (WCAG 1.4.1). Navigation, buttons and cards opt out
   below because their affordance comes from position and shape. */
.content-main p a,.content-main li a,.acc-a a,.legal-body a,.form-note a{text-decoration:underline}
.content-main p a:hover,.content-main li a:hover,.acc-a a:hover{color:var(--maroon-deep)}
h1,h2,h3,h4{color:var(--ink);font-weight:800;letter-spacing:-.022em;line-height:1.1;margin:0 0 .5em}
h1{font-size:var(--fs-display);letter-spacing:-.032em}
h2{font-size:var(--fs-h2);letter-spacing:-.026em}
h3{font-size:var(--fs-h3);letter-spacing:-.016em}
p{margin:0 0 1.1em}
:focus-visible{outline:3px solid var(--amber);outline-offset:3px;border-radius:2px}

.wrap{max-width:var(--wrap);margin:0 auto;padding-inline:var(--gut)}
.narrow{max-width:74ch}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:-9999px;top:0;z-index:200;background:var(--maroon);color:#fff;padding:.75rem 1.15rem;font-weight:700}
.skip:focus{left:.5rem;top:.5rem}

/* ---- the dossier micro-label: 001 / SECTION NAME ---- */
.label{
  display:flex;align-items:center;gap:.7rem;
  font-size:.688rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase;
  color:var(--maroon);margin:0 0 1.1rem;
}
.label::before{content:attr(data-n);color:var(--amber-deep);font-variant-numeric:tabular-nums}
.label::after{content:"";flex:1;height:1px;background:var(--line-strong)}
.label.on-dark{color:#e9c9c9}
.label.on-dark::after{background:rgba(255,255,255,.22)}
.label.on-dark::before{color:var(--amber)}

/* ---------------------------------------------------------------- header ---- */
.hdr{position:sticky;top:0;z-index:100;background:rgba(251,249,247,.94);backdrop-filter:saturate(1.6) blur(10px);border-bottom:1px solid var(--line)}
.hdr-in{display:flex;align-items:center;gap:1.25rem;min-height:74px;max-width:var(--wrap);margin:0 auto;padding-inline:var(--gut)}
.brand{flex:0 0 auto;display:block;line-height:0}
.brand img{width:178px;height:auto}
.nav{display:none;margin-left:auto;align-items:center;gap:.15rem;flex:0 1 auto}
.nav a{
  color:var(--ink);text-decoration:none;font-weight:600;font-size:.925rem;
  padding:.55rem .7rem;border-radius:var(--radius);white-space:nowrap;
  transition:background .16s,color .16s;
}
.nav a:hover{background:var(--paper-2);color:var(--maroon)}
.nav a[aria-current="page"]{color:var(--maroon);box-shadow:inset 0 -2px 0 var(--amber)}

/* Services dropdown (desktop only; the mobile drawer lists everything flat).
   Anchored to its parent and left-aligned so it can never slide off-screen —
   the failure mode that shipped on a previous build. */
.has-sub{position:relative}
.sub-btn{
  display:inline-flex;align-items:center;gap:.4rem;font:inherit;font-weight:600;font-size:.925rem;
  color:var(--ink);background:none;border:0;cursor:pointer;padding:.55rem .7rem;border-radius:var(--radius);
}
.sub-btn:hover{background:var(--paper-2);color:var(--maroon)}
.sub-btn.is-cur{color:var(--maroon);box-shadow:inset 0 -2px 0 var(--amber)}
.caret{width:.42rem;height:.42rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-1px,-1px);transition:transform .18s}
.sub-btn[aria-expanded="true"] .caret{transform:rotate(-135deg) translate(-2px,-2px)}
.sub{
  display:none;position:absolute;top:calc(100% + .45rem);left:0;min-width:250px;z-index:120;
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);
  box-shadow:var(--shadow);padding:.45rem;
}
.has-sub:hover .sub,.sub-btn[aria-expanded="true"]+.sub{display:block}
.sub a{display:block;padding:.6rem .75rem;border-radius:var(--radius);white-space:nowrap;font-size:.925rem}
.sub a:hover{background:var(--paper-2)}
.hdr-cta{display:none;margin-left:.75rem;gap:.5rem;flex:0 0 auto}
.hdr-cta .btn{white-space:nowrap;padding:.7rem 1.05rem;font-size:.9rem;min-height:44px}
.burger{
  margin-left:auto;display:inline-flex;flex-direction:column;justify-content:center;gap:5px;
  width:46px;height:46px;padding:0 11px;background:var(--white);border:1px solid var(--line-strong);
  border-radius:var(--radius);cursor:pointer;
}
.burger span{display:block;height:2px;background:var(--ink);border-radius:2px;transition:transform .22s,opacity .18s}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Mobile drawer. The legacy site had NO mobile navigation at all below 960px —
   phone users could reach nothing but two CTA buttons and the footer. */
.drawer{display:none;border-top:1px solid var(--line);background:var(--paper);max-height:calc(100dvh - 74px);overflow-y:auto}
.drawer.open{display:block}
.drawer nav{display:flex;flex-direction:column;padding:.6rem var(--gut) 1.25rem}
.drawer nav a{
  color:var(--ink);text-decoration:none;font-weight:600;
  padding:.95rem .25rem;border-bottom:1px solid var(--line);min-height:48px;display:flex;align-items:center;
}
.drawer nav a[aria-current="page"]{color:var(--maroon)}
.drawer .d-sub{padding-left:1.1rem;font-weight:500;font-size:.95rem;color:var(--body)}
.drawer .d-cta{display:grid;gap:.6rem;padding:1.1rem var(--gut) 1.5rem}

@media (min-width:1000px){
  .nav,.hdr-cta{display:flex}
  .burger{display:none}
  .drawer{display:none!important}
}

/* ----------------------------------------------------------------- buttons -- */
.btn{
  --btn-bg:var(--maroon);--btn-fg:#fff;--btn-bd:var(--maroon);
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  min-height:48px;padding:.8rem 1.4rem;border:1.5px solid var(--btn-bd);border-radius:var(--radius);
  background:var(--btn-bg);color:var(--btn-fg);font-weight:700;font-size:.95rem;
  text-decoration:none;cursor:pointer;transition:transform .14s,box-shadow .16s,background .16s,color .16s;
}
.btn:hover{background:var(--maroon-deep);border-color:var(--maroon-deep);transform:translateY(-1px);box-shadow:0 8px 20px -10px rgba(123,13,13,.7)}
.btn:active{transform:translateY(0)}
.btn-amber{--btn-bg:var(--amber);--btn-fg:#2b1a02;--btn-bd:var(--amber)}
.btn-amber:hover{background:var(--amber-deep);border-color:var(--amber-deep);color:#2b1a02;box-shadow:0 8px 20px -10px rgba(217,139,15,.8)}
.btn-ghost{--btn-bg:transparent;--btn-fg:var(--ink);--btn-bd:var(--line-strong)}
.btn-ghost:hover{background:var(--ink);border-color:var(--ink);color:#fff;box-shadow:none}
.btn-on-dark{--btn-bg:transparent;--btn-fg:#fff;--btn-bd:rgba(255,255,255,.5)}
.btn-on-dark:hover{background:#fff;color:var(--maroon-ink);border-color:#fff}
.btn-lg{min-height:54px;padding:.95rem 1.7rem;font-size:1rem}

/* -------------------------------------------------------------------- hero -- */
.hero{position:relative;background:var(--maroon-ink);color:#fff;overflow:hidden;isolation:isolate}
.hero::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(102deg,var(--maroon-ink) 0%,rgba(61,7,7,.96) 34%,rgba(94,10,10,.62) 62%,rgba(94,10,10,.25) 100%);
}
.hero-img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}
.hero-in{max-width:var(--wrap);margin:0 auto;padding:clamp(3.25rem,7vw,5.75rem) var(--gut) clamp(3.5rem,7vw,6rem)}
.hero h1{color:#fff;max-width:17ch;text-wrap:balance}
.hero .sub{color:#f0dede;font-size:clamp(1.05rem,1.5vw,1.25rem);max-width:54ch;margin-bottom:1.9rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-bottom:2.2rem}
/* Spec strip — reads like the header row of a scope document. */
.spec{display:flex;flex-wrap:wrap;gap:0;border-top:1px solid rgba(255,255,255,.2);padding-top:1.35rem}
.spec div{padding-right:2.1rem;margin-right:2.1rem;border-right:1px solid rgba(255,255,255,.16)}
.spec div:last-child{border-right:0;margin-right:0;padding-right:0}
.spec dt{font-size:.66rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#d7a9a9;margin-bottom:.28rem}
.spec dd{margin:0;font-weight:700;color:#fff;font-size:.98rem;font-variant-numeric:tabular-nums}

/* page hero (interior pages) */
.phero{position:relative;background:var(--maroon-ink);color:#fff;isolation:isolate;overflow:hidden}
.phero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(96deg,rgba(61,7,7,.97) 0%,rgba(61,7,7,.88) 45%,rgba(94,10,10,.55) 100%)}
.phero-img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}
.phero-in{max-width:var(--wrap);margin:0 auto;padding:clamp(2.4rem,5vw,3.9rem) var(--gut) clamp(2.6rem,5vw,4rem)}
.phero h1{color:#fff;max-width:20ch}
.phero p{color:#f0dede;max-width:62ch;margin-bottom:1.6rem;font-size:1.06rem}
.phero .hero-actions{margin-bottom:0}

.crumb{font-size:.8rem;color:#dbb9b9;margin-bottom:1.15rem}
/* Breadcrumb links are underlined, not just tinted. Link and surrounding crumb
   text differ by only 1.4:1, which fails WCAG 1.4.1 on color alone. */
.crumb a{color:#f3dede;text-decoration:underline;text-underline-offset:.2em}
.crumb a:hover{color:#fff}
/* Opacity is scoped to the separator glyph. Applying it to every span dropped
   the current-page label to 2.47:1 on the light-background legal pages. */
.crumb .sep{opacity:.55;padding:0 .4rem}
.crumb-light{color:var(--body)}
.crumb-light a{color:var(--maroon)}
.crumb-light a:hover{color:var(--maroon-deep)}
.crumb-light .sep{color:var(--muted)}

/* ----------------------------------------------------------------- sections */
.sec{padding:clamp(3.1rem,6.5vw,5.2rem) 0}
.sec-tight{padding:clamp(2.2rem,4.5vw,3.4rem) 0}
.sec-paper{background:var(--paper-2)}
.sec-ink{background:var(--maroon-ink);color:#e9dede}
.sec-ink h2,.sec-ink h3{color:#fff}
.sec-head{max-width:62ch;margin-bottom:2.3rem}
.sec-head p{font-size:1.06rem}
.sec-ink .sec-head p{color:#e2cccc}

/* ------------------------------------------------------------------- cards -- */
.grid{display:grid;gap:1.15rem}
@media (min-width:640px){.g2{grid-template-columns:repeat(2,1fr)}}
@media (min-width:900px){.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}}
@media (min-width:640px) and (max-width:899px){.g4{grid-template-columns:repeat(2,1fr)}}

.card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);
  overflow:hidden;display:flex;flex-direction:column;
  transition:border-color .18s,box-shadow .18s,transform .18s;
}
.card:hover{border-color:var(--line-strong);box-shadow:var(--shadow);transform:translateY(-2px)}
.card-img{aspect-ratio:16/10;width:100%;object-fit:cover;background:var(--paper-2)}
.card-body{padding:1.3rem 1.35rem 1.45rem;display:flex;flex-direction:column;flex:1}
.card h3{margin-bottom:.45rem}
.card p{color:var(--body);font-size:.965rem;margin-bottom:1rem}
.card .more{margin-top:auto;font-weight:700;font-size:.9rem;color:var(--maroon);text-decoration:none;display:inline-flex;align-items:center;gap:.35rem}
.card .more::after{content:"→";transition:transform .16s}
.card:hover .more::after{transform:translateX(3px)}

/* checklist */
.checks{list-style:none;padding:0;margin:0 0 1.4rem;display:grid;gap:.62rem}
.checks li{position:relative;padding-left:1.75rem;color:var(--body)}
.checks li::before{
  content:"";position:absolute;left:0;top:.5em;width:.72rem;height:.4rem;
  border-left:2.5px solid var(--amber-deep);border-bottom:2.5px solid var(--amber-deep);
  transform:rotate(-45deg);
}
.sec-ink .checks li{color:#e2cccc}
.sec-ink .checks li::before{border-color:var(--amber)}

/* two-column content + sidebar */
.content-wrap{display:grid;gap:2.4rem}
@media (min-width:960px){.content-wrap{grid-template-columns:minmax(0,1fr) 330px;gap:3.2rem;align-items:start}}
.content-main h2{margin-top:2.4rem}
.content-main h2:first-child{margin-top:0}
.content-main h3{margin-top:1.7rem}
.sidebar{display:grid;gap:1rem;position:static}
@media (min-width:960px){.sidebar{position:sticky;top:96px;align-self:start}}
.side-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);padding:1.35rem}
.side-card h3{font-size:1.05rem;margin-bottom:.5rem}
.side-card p{font-size:.93rem;margin-bottom:1rem}
.side-card.dark{background:var(--maroon);border-color:var(--maroon);color:#f3dede}
.side-card.dark h3{color:#fff}
.side-card.dark p{color:#eccfcf}
.side-phone{display:block;font-size:1.5rem;font-weight:800;color:#fff;text-decoration:none;letter-spacing:-.02em;margin-bottom:.2rem}
.side-phone:hover{text-decoration:underline}

/* ------------------------------------------------------------------- specs -- */
.systems{list-style:none;padding:0;margin:0;display:grid;gap:0;border-top:1px solid var(--line)}
.systems li{
  display:flex;justify-content:space-between;align-items:baseline;gap:1rem;
  padding:.85rem 0;border-bottom:1px solid var(--line);
}
.systems b{color:var(--ink);font-weight:700}
.systems span{color:var(--muted);font-size:.9rem;text-align:right}

/* --------------------------------------------------------------- credibility */
/* Stands in for a testimonial band. There are no public reviews to show and we
   will not manufacture any (Rule 27), so this states verifiable facts only. */
.cred{display:grid;gap:1.15rem}
@media (min-width:760px){.cred{grid-template-columns:repeat(4,1fr)}}
.cred div{border-top:2px solid var(--amber);padding-top:.95rem}
.cred dt{font-weight:800;color:#fff;font-size:1.02rem;margin-bottom:.3rem}
.cred dd{margin:0;color:#dcc5c5;font-size:.93rem}

/* ------------------------------------------------------------------ gallery */
.figure{margin:0;border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--line);background:var(--white)}
.figure img{width:100%;aspect-ratio:4/3;object-fit:cover}
.figure figcaption{padding:.8rem 1rem;font-size:.83rem;color:var(--muted);border-top:1px solid var(--line)}
.figure figcaption b{color:var(--ink);font-weight:700;display:block;margin-bottom:.1rem}

/* --------------------------------------------------------------------- FAQ -- */
.faq{border-top:1px solid var(--line-strong)}
.acc-item{border-bottom:1px solid var(--line)}
.acc-q{
  width:100%;display:flex;justify-content:space-between;align-items:center;gap:1.1rem;
  background:none;border:0;padding:1.15rem 0;text-align:left;cursor:pointer;
  font:inherit;font-weight:700;color:var(--ink);font-size:1.03rem;min-height:48px;
}
.acc-q:hover{color:var(--maroon)}
.acc-q .ico{flex:0 0 auto;width:22px;height:22px;position:relative}
.acc-q .ico::before,.acc-q .ico::after{content:"";position:absolute;background:var(--maroon);border-radius:2px;transition:transform .2s}
.acc-q .ico::before{top:10px;left:2px;width:18px;height:2.5px}
.acc-q .ico::after{top:2px;left:9.75px;width:2.5px;height:18px}
.acc-q[aria-expanded="true"] .ico::after{transform:scaleY(0)}
.acc-a{display:none;padding:0 0 1.25rem;max-width:72ch;color:var(--body)}
.acc-a.open{display:block}
.acc-a p:last-child{margin-bottom:0}

/* Legal pages: prose carried over verbatim from the legacy site, so it brings
   its own old class names (.panel). Styled here rather than editing the copy. */
.legal-body{max-width:74ch}
.legal-body h2{font-size:1.3rem;margin:2rem 0 .6rem}
.legal-body h3{font-size:1.08rem;margin:1.5rem 0 .5rem}
.legal-body ul,.legal-body ol{padding-left:1.25rem;margin:0 0 1.1em}
.legal-body li{margin-bottom:.4rem}
.legal-body .panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);padding:1.25rem 1.35rem;margin:0 0 1.2rem}
.legal-body .wrap{max-width:none;padding-inline:0}

/* -------------------------------------------------------------------- form -- */
.form{display:grid;gap:1rem}
.field{display:grid;gap:.38rem}
.field label{font-weight:700;font-size:.87rem;color:var(--ink)}
.field .req{color:var(--maroon)}
.field input,.field select,.field textarea{
  font:inherit;color:var(--ink);background:var(--white);
  border:1.5px solid var(--line-strong);border-radius:var(--radius);
  padding:.78rem .9rem;min-height:48px;width:100%;
  transition:border-color .15s,box-shadow .15s;
}
.field textarea{min-height:120px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--maroon);box-shadow:0 0 0 3px rgba(123,13,13,.13)
}
.field-2{display:grid;gap:1rem}
@media (min-width:560px){.field-2{grid-template-columns:1fr 1fr}}
/* Honeypot. MUST be display:none, never merely off-screen — Chrome autofills an
   off-screen field named like a real one, which silently kills every submit. */
.hp{display:none!important}
.form-note{font-size:.82rem;color:var(--muted);margin:0}
.form-err{display:none;background:#fdeaea;border:1px solid #f0b8b8;color:#8d1515;padding:.8rem 1rem;border-radius:var(--radius);font-size:.9rem}
.form-err.show{display:block}

/* ----------------------------------------------------------------- CTA band */
.cta{background:var(--maroon);color:#fff;padding:clamp(2.6rem,5.5vw,4rem) 0}
.cta h2{color:#fff;margin-bottom:.5rem}
.cta p{color:#f0d8d8;max-width:56ch;margin-bottom:1.6rem}
.cta-in{display:grid;gap:1.6rem;align-items:center}
@media (min-width:900px){.cta-in{grid-template-columns:1.35fr auto}}
.cta .hero-actions{margin:0}

/* ------------------------------------------------------------------ footer -- */
.ftr{background:var(--maroon-ink);color:#c9b6b6;padding:clamp(2.6rem,5vw,3.6rem) 0 1.6rem;font-size:.93rem}
/* :not(.btn) matters. ".ftr a:hover" (0,2,1) outranks ".btn-on-dark:hover"
   (0,2,0), so the footer CTA took color:#fff from here while the button rule
   set background:#fff — the label vanished into a blank white box on hover.
   Footer buttons must keep their own button colors. */
.ftr a:not(.btn){color:#eddcdc;text-decoration:none}
.ftr a:not(.btn):hover{text-decoration:underline;color:#fff}
.ftr-grid{display:grid;gap:2rem;margin-bottom:2.2rem}
@media (min-width:760px){.ftr-grid{grid-template-columns:1.5fr 1fr 1fr}}
@media (min-width:1000px){.ftr-grid{grid-template-columns:1.7fr 1fr 1fr 1.1fr}}
.ftr h2{color:#fff;font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;margin-bottom:1rem}
.ftr ul{list-style:none;padding:0;margin:0;display:grid;gap:.55rem}
.ftr-logo{width:180px;margin-bottom:1rem;filter:brightness(0) invert(1);opacity:.93}
.ftr address{font-style:normal;line-height:1.75}
.ftr-phone{display:block;font-size:1.25rem;font-weight:800;color:#fff;text-decoration:none;letter-spacing:-.02em}
.ftr-bottom{border-top:1px solid rgba(255,255,255,.14);padding-top:1.35rem;display:flex;flex-wrap:wrap;gap:.6rem 1.4rem;justify-content:space-between;font-size:.82rem;color:#a89494}
.ftr-bottom a{color:#c9b6b6}
.lic{display:inline-flex;align-items:center;gap:.45rem;font-variant-numeric:tabular-nums}

/* --------------------------------------------------------- mobile CTA bar -- */
.mbar{
  position:fixed;left:0;right:0;bottom:0;z-index:90;display:grid;grid-template-columns:1fr 1fr;gap:.5rem;
  padding:.55rem .6rem calc(.55rem + env(safe-area-inset-bottom));
  background:var(--maroon-ink);border-top:1px solid rgba(255,255,255,.16);
}
.mbar .btn{min-height:46px;font-size:.92rem;padding:.6rem .8rem}
@media (min-width:1000px){.mbar{display:none}}
/* Clearance so the fixed bar never covers footer content. Sits on the footer
   itself (same background) so there is no mismatched strip above the bar. */
@media (max-width:999px){.ftr{padding-bottom:calc(5.2rem + env(safe-area-inset-bottom))}}

/* ----------------------------------------------------------------- reviews -- */
.rev-agg{
  display:flex;align-items:center;gap:.85rem;flex-wrap:wrap;
  padding:1rem 1.25rem;margin:0 0 1.6rem;
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);
}
.rev-agg p{margin:0;font-size:.95rem;color:var(--body)}
.rev-agg .btn{margin-left:auto;min-height:44px;padding:.6rem 1.1rem;font-size:.9rem}
@media (max-width:560px){.rev-agg .btn{margin-left:0;width:100%}}
/* Rule 22: SVG stars, never U+2605 — it renders as a colour emoji on iOS. */
.rev-stars{display:inline-flex;gap:.12rem;line-height:1}
.rev-stars svg{width:16px;height:16px;fill:var(--amber-deep);display:block}
/* Columns, not a grid: testimonials are wildly uneven in length and a grid row
   stretches every card to the tallest one, leaving dead space under the short
   ones. */
.rev-grid{columns:2;column-gap:1.15rem}
@media (max-width:860px){.rev-grid{columns:1}}
.rev-card{
  break-inside:avoid;margin:0 0 1.15rem;padding:1.35rem 1.45rem;
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
}
.rev-head{display:flex;align-items:center;gap:.7rem;margin-bottom:.6rem}
.rev-avatar{
  flex:0 0 auto;width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--paper-2);color:var(--maroon);
  font-weight:700;font-size:.82rem;letter-spacing:.02em;
}
.rev-who{font-weight:700;color:var(--ink);font-size:.95rem}
.rev-when{display:block;font-size:.8rem;color:var(--muted)}
.rev-body{margin:.7rem 0 0;padding:0;border:0;font-size:.94rem;color:var(--body)}
.rev-body p{margin:0 0 .8rem}
.rev-body p:last-child{margin-bottom:0}

/* ------------------------------------------------------------------ reveal -- */
/* Scoped to .js, which the inline snippet in <head> sets. Without that scope a
   JS failure leaves every .rv section stuck at opacity:0 forever — on the
   homepage that is most of the page, invisible with no way to recover. */
@media (prefers-reduced-motion:no-preference){
  .js .rv{opacity:0;transform:translateY(14px);transition:opacity .55s ease,transform .55s ease}
  .js .rv.in{opacity:1;transform:none}
}
