/* V2 (Nina, 23/11/2026): before and after, gallery and lightbox. Same tokens as style.css. */
.ba{background:#fff}
.ba__pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ba__ph{position:relative;margin:0;border-radius:var(--r-photo);overflow:hidden;aspect-ratio:3/4;background:#e9eaf2;box-shadow:var(--sh-2)}
.ba__ph img,.ba__steps img,.gal__a img{display:block;width:100%;height:100%;object-fit:cover}
.ba__lb{position:absolute;left:10px;top:10px;padding:6px 12px;border-radius:999px;font:600 13px/1 var(--font);letter-spacing:.04em;text-transform:uppercase}
.ba__lb--b{background:rgba(5,10,48,.78);color:#fff}
.ba__lb--a{background:var(--yellow);color:var(--navy)}
.ba__steps{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ba__steps figure{margin:0;border-radius:var(--r-photo);overflow:hidden;aspect-ratio:4/3;position:relative;background:#e9eaf2}
.ba__steps figcaption{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:8px;padding:22px 10px 9px;background:linear-gradient(transparent,rgba(5,10,48,.82));color:#fff;font:600 13.5px/1.2 var(--font)}
.ba__steps figcaption b{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--yellow);color:var(--navy);font-size:13px;flex:none}
.ba__note{margin:16px auto 0;max-width:36ch;text-align:center;font-size:15.5px;line-height:1.45;color:var(--ink-2,#3a3f66);text-wrap:balance}
.gal{background:#F4F5FA}
.gal__h{margin:26px 0 12px;font-size:19px;line-height:1.2;color:var(--navy);text-align:left}
.gal__h:first-of-type{margin-top:0}
.gal__grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.gal__a{position:relative;display:block;aspect-ratio:4/5;border-radius:var(--r-photo);overflow:hidden;background:#e9eaf2;box-shadow:var(--sh-2);-webkit-tap-highlight-color:transparent}
.gal__a img{transition:transform 400ms var(--ease)}
.gal__tag{position:absolute;left:8px;bottom:8px;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.92);color:var(--navy);font:600 13px/1 var(--font)}
@media (hover:hover) and (pointer:fine){.gal__a:hover img{transform:scale(1.05)}}
.gal .sec__more{margin-top:26px;text-align:center}
.lb{width:min(96vw,1100px);max-height:92vh;padding:0;border:0;border-radius:18px;background:#0b0f2a;overflow:hidden}
.lb::backdrop{background:rgba(5,10,48,.86)}
.lb__img{position:relative;z-index:1;cursor:zoom-out;display:block;max-width:100%;max-height:88vh;margin:auto;object-fit:contain}
.lb__x{position:absolute;z-index:2;right:8px;top:8px;box-shadow:0 2px 10px rgba(0,0,0,.35);width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:var(--navy);font:600 28px/1 var(--font);cursor:pointer}
#h-model{white-space:nowrap;font-size:clamp(20px,6.4vw,40px)}
@media (min-width:900px){
  .ba__pair{gap:18px;max-width:1080px;margin:0 auto}
  .ba__ph{aspect-ratio:4/5}
  .ba__steps{grid-template-columns:1fr 1fr;gap:18px;max-width:1080px;margin:18px auto 0}
  .gal__grid{grid-template-columns:repeat(4,1fr);gap:16px}
  .gal__h{font-size:22px;margin-top:34px}
}
/* v2: no single word alone on the last line of running text (all pages) */
p,li,dd,dt,summary,figcaption,label,blockquote{text-wrap:pretty}
/* v2 preview form notice */
.pv-note{margin:12px 0 0;padding:10px 14px;border-radius:14px;background:#FFF6BF;color:#050A30;font:600 14.5px/1.4 var(--font);text-align:center}
.pv-note--on{animation:pvIn 260ms ease-out}
@keyframes pvIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
/* v2: short captions and card titles break in balanced lines (no single word alone) */
figcaption,figcaption *,h2,h3{text-wrap:balance}
.pg-gal__cap,.gal__tag{text-wrap:balance}
/* v2.1 (Clara, 23/11): no computador, antes e depois em UMA linha de 4 fotos (antes, etapa 1, etapa 2, depois), ~260 px cada, sem esticar */
@media (min-width:900px){
  .ba__all{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;max-width:1080px;margin:0 auto}
  .ba__pair,.ba__steps{display:contents}
  .ba__pair>.ba__ph:first-child{order:1}.ba__steps>li:nth-child(1){order:2}.ba__steps>li:nth-child(2){order:3}.ba__pair>.ba__ph:last-child{order:4}
  .ba__ph,.ba__steps figure{aspect-ratio:3/4;margin:0}
  .ba__steps li{list-style:none}
  .ba__note{margin-top:20px}
}

/* v3 (23/11): bigger carousels and review cards with stars, date and customer photo */
.ui-quote__stars{margin:0;color:#F5B400;font-size:17px;letter-spacing:2px;line-height:1}
.ui-quote__ph{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px;margin-top:4px}
.ui-quote--g{padding-top:30px}
@media (min-width:900px){
  .proj{gap:20px}
  .proj li{flex:0 0 calc((100% - 60px) / 4)}
  #rev-list.ui-carousel{justify-content:flex-start;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:26px}
  #rev-list.ui-carousel>li{flex:0 0 calc((100% - 48px) / 3);scroll-snap-align:start}
  #rev-list.ui-carousel+.ui-dots{display:flex}
}

/* v3 (Matheus 16:49): before and after = 2 real pairs (kitchen during/after, shower before/after), same room and angle in each pair */

/* v3 (Matheus 16:49): one real before/after (same shower), as a drag-to-compare photo */
.cmp{position:relative;max-width:420px;margin:0 auto;aspect-ratio:3/4;border-radius:var(--r-photo);overflow:hidden;background:#e9eaf2;box-shadow:var(--sh-2);touch-action:pan-y}
.cmp img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 55%}
.cmp__b{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--p)) 0 0)}
.cmp .ba__lb{z-index:2}
.cmp__ra{left:auto!important;right:10px}
.cmp__h{position:absolute;z-index:2;top:0;bottom:0;left:var(--p);width:3px;margin-left:-1.5px;background:#fff;box-shadow:0 0 8px rgba(5,10,48,.45);pointer-events:none}
.cmp__h::after{content:"";position:absolute;top:50%;left:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6' fill='none' stroke='%23050A30' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat;box-shadow:0 2px 10px rgba(5,10,48,.35)}
.cmp__r{position:absolute;z-index:3;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;-webkit-appearance:none;appearance:none}
@media (min-width:900px){.cmp{max-width:390px}}
/* v3.1 (Clara): pointer drag anywhere on the photo; the range input only serves the keyboard */
.cmp--ptr .cmp__r{pointer-events:none}
.cmp__r:focus-visible+.cmp__h,.cmp:focus-within .cmp__h{box-shadow:0 0 0 3px var(--yellow),0 0 8px rgba(5,10,48,.45)}
/* v3.1 (Clara, optional): soft shade at the top of the hero photos on desktop, behind the menu */
@media (min-width:900px){.hero__slides::after{content:"";position:absolute;z-index:1;inset:0 0 auto 0;height:150px;background:linear-gradient(rgba(5,10,48,.42),rgba(5,10,48,0));pointer-events:none}}

/* v3.1: Google rating line and review cards (left-aligned text, link to the full review) */
.rev-score{margin-top:10px!important}
.rev-score a{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 16px;border-radius:999px;background:#fff;box-shadow:var(--sh-2);color:var(--navy);font:600 15px/1 var(--font);text-decoration:none}
.rev-score b{font-weight:700}.rev-score span{color:#F5B400}
.ui-quote--g{text-align:left;padding:22px 20px 18px;align-content:start}
.ui-quote--g .ui-quote__mark{display:none}
.ui-quote--g blockquote{font-size:15.5px;line-height:1.55}
.ui-quote--g blockquote p{text-wrap:pretty}
.ui-quote--g figcaption{justify-content:flex-start}
.ui-quote__more{margin-top:4px;color:var(--navy);font-size:13.5px;font-weight:600;text-decoration:underline;text-underline-offset:3px;min-height:32px;display:inline-flex;align-items:center}
.ui-quote__ph{margin:0 0 4px}
.ui-quote__phs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 4px}.ui-quote__phs img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:14px;background:#e9eaf2}.ui-quote__phs img:only-child{grid-column:1/-1;aspect-ratio:4/3}
