/* ==========================================================================
   Elo Construtora & Reformas
   Identidade (Manual da Marca): preto + dourados RGB 175/124/67, 210/167/105, 144/94/53.
   Fontes da marca: Ayita Pro (logo) e Gotham (licenciadas). Sem licença, cai em Manrope.
   ========================================================================== */

:root {
  --ink: #0d0c0b;
  --ink-2: #161412;
  --line: rgba(245, 241, 234, .14);
  --paper: #f1ede6;
  --bone: #f5f1ea;
  --muted: #b5ada1;
  --muted-ink: #5f5850;

  --gold-1: #af7c43;
  --gold-2: #d2a769;
  --gold-3: #905e35;
  --gold: linear-gradient(100deg, var(--gold-1) 0%, var(--gold-2) 50%, var(--gold-3) 100%);

  --f-body: 'Gotham', 'Manrope', system-ui, sans-serif;
  --f-accent: 'Instrument Serif', Georgia, serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1320px;
  --top-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink); color: var(--bone);
  font: 400 clamp(1rem, .96rem + .2vw, 1.0625rem)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; } /* <picture> só escolhe o formato (AVIF/WebP/JPG); o layout continua no <img> */
a { color: inherit; }
em { font-family: var(--f-accent); font-style: italic; font-weight: 400; color: var(--gold-2); letter-spacing: -.01em; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 4rem); line-height: 1.02; font-weight: 700; }
::selection { background: var(--gold-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 1rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-2);
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.6rem; border: 1px solid transparent; border-radius: 999px;
  font: 700 .82rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .3s var(--ease), filter .3s, background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { filter: brightness(1.08); }
.btn--line { border-color: rgba(245, 241, 234, .4); color: var(--bone); background: transparent; }
.btn--line:hover { background: var(--bone); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--bone); width: 100%; }
.btn--dark:hover { background: var(--gold-3); }
.btn--sm { padding: .8rem 1.2rem; font-size: .72rem; }
.btn--lg { padding: 1.2rem 2rem; font-size: .9rem; }

.link { display: block; margin-top: 2.5rem; color: var(--gold-2); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   TOPO
   ========================================================================== */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--top-h);
  display: flex; align-items: center; gap: 2rem;
  padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2));
  background: rgba(13, 12, 11, .97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top__logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.top__logo img { width: 92px; }
.top__tag {
  padding-left: .7rem; border-left: 1px solid var(--line);
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2);
}
.top__nav { display: flex; gap: 2.2rem; margin-left: auto; }
.top__nav a {
  position: relative; text-decoration: none; font-weight: 600; font-size: .95rem; color: #d8d1c6;
  padding: .4rem 0; transition: color .3s;
}
.top__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .4s var(--ease);
}
.top__nav a:hover, .top__nav a.is-on { color: var(--bone); }
.top__nav a:hover::after, .top__nav a.is-on::after { transform: scaleX(1); }
.top__burger { display: none; }
.top__nav .top__nav-wa { display: none; }

/* ==========================================================================
   INÍCIO
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: calc(var(--top-h) + 2.5rem) var(--gutter) 3rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 1.5rem + 5.2vw, 6.4rem); line-height: .95; font-weight: 800; letter-spacing: -.05em;
}
.hero__lead { margin: 1.6rem 0 2.2rem; max-width: 34ch; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: #d6cfc4; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1.4rem;
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(210, 167, 105, .45);
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2);
}
.hero__badge i { font-family: var(--f-accent); font-size: 1.25rem; font-style: italic; font-weight: 400; letter-spacing: 0; line-height: 0; }

.stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 2.6rem;
  margin: 3rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.stats dt { font-size: .74rem; color: var(--muted); }
.stats dd {
  margin: .2rem 0 0; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.1;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats dd small { display: block; font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--bone); -webkit-text-fill-color: var(--bone); }

/* slideshow */
.slides {
  position: relative; aspect-ratio: 3 / 4; max-height: calc(100svh - var(--top-h) - 5rem);
  width: 100%; justify-self: end;
  border-radius: 20px; overflow: hidden; background: var(--ink-2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.slide.is-on img { transform: scale(1); }
.slide figcaption {
  position: absolute; left: 1.2rem; bottom: 3.4rem;
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(13, 12, 11, .72); backdrop-filter: blur(6px);
  font-size: .8rem; font-weight: 600;
}
.slides__dots { position: absolute; left: 1.2rem; right: 3.9rem; bottom: calc(1.3rem - 10px); display: flex; gap: .5rem; }
/* área de toque de 24px; a barrinha visível continua com 4px (::before/::after) */
.slides__dots button {
  flex: 1; height: 24px; border: 0; padding: 0; cursor: pointer; background: none; position: relative;
}
.slides__dots button::before, .slides__dots button::after {
  content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 4px;
}
.slides__dots button::before { background: rgba(245, 241, 234, .3); }
.slides__dots button::after { background: var(--gold-2); transform: scaleX(0); transform-origin: left; }
.slides__toggle {
  position: absolute; right: 1.2rem; bottom: calc(1.3rem + 2px - 15px); width: 30px; height: 30px; padding: 0; cursor: pointer;
  border: 1px solid rgba(245, 241, 234, .35); border-radius: 50%; background: rgba(13, 12, 11, .55); color: var(--bone);
  display: grid; place-items: center;
}
.slides__toggle::before { /* pausar: duas barras */
  content: ''; width: 8px; height: 10px;
  background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px);
}
.slides.is-stopped .slides__toggle::before { /* retomar: triângulo */
  width: 0; height: 0; margin-left: 2px; background: none;
  border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor;
}
.slides__toggle:hover { background: var(--bone); color: var(--ink); }
.slides__dots button.is-on::after { animation: fill var(--dur, 5s) linear forwards; }
.slides.is-paused .slides__dots button.is-on::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* ==========================================================================
   SEÇÕES
   ========================================================================== */
.works, .cases, .services, .about, .quotes, .contact { padding: clamp(5rem, 10vw, 8rem) var(--gutter); }
.works > *, .cases > *, .services > *, .quotes > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.about, .contact { max-width: calc(var(--max) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.head { margin-bottom: 2.4rem; }
.head__hint { margin: 1rem 0 0; color: var(--muted); }

/* ---------- OBRAS ---------- */
.works { background: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--bone); border: 1px solid rgba(245, 241, 234, .25);
  font: 600 .9rem/1 var(--f-body); transition: background .3s, color .3s, border-color .3s;
}
.chip span { font-size: .75rem; opacity: .85; }
.chip:hover { border-color: var(--gold-2); }
.chip.is-on { background: var(--gold); color: var(--ink); border-color: transparent; }
.chip.is-on span { opacity: .85; }

.grid {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1.4vw, 1.2rem);
}
.grid li { animation: pop .6s var(--ease) both; }
.grid li[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.grid button {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #222;
}
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.grid button::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13, 12, 11, .78) 0%, rgba(13, 12, 11, 0) 45%);
}
.grid span {
  position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1; text-align: left;
  color: var(--bone); font: 600 .95rem/1.25 var(--f-body);
}
.grid span::after {
  content: '⤢'; float: right; color: var(--gold-2); opacity: 0; transform: scale(.6);
  transition: opacity .3s, transform .4s var(--ease);
}
.grid video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease, transform .8s var(--ease);
}
.grid video.is-on { opacity: 1; }
/* play dos vídeos no celular/toque (criado pelo script.js): pôster parado até o toque */
.grid li { position: relative; }
.grid .grid__play, .ba .ba__play {
  position: absolute; z-index: 4; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; cursor: pointer;
  border: 1px solid rgba(245, 241, 234, .45); border-radius: 50%; background: rgba(13, 12, 11, .62); color: var(--bone);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .3s;
}
.grid .grid__play { top: 50%; left: 50%; translate: -50% -50%; aspect-ratio: auto; overflow: visible; } /* .grid .x vence .grid button do card */
.grid .grid__play::after { content: none; }
.ba .ba__play { right: 1rem; bottom: 1rem; width: 48px; height: 48px; }
.grid__play::before, .ba__play::before { /* triângulo de play */
  content: ''; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent currentColor;
}
.grid__play.is-playing::before, .ba__play.is-playing::before { /* pausar: duas barras */
  margin: 0; width: 14px; height: 16px; border: 0;
  background: linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px, currentColor 9px);
}
.grid__play.is-playing, .ba__play.is-playing { opacity: .55; }
.grid__badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 1;
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 999px;
  background: var(--gold); color: var(--ink);
  font: 700 .64rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase;
}
.grid__badge::before { content: ''; width: 0; height: 0; border-style: solid; border-width: 4px 0 4px 6px; border-color: transparent transparent transparent var(--ink); }
.grid button:hover img, .grid button:hover video { transform: scale(1.06); }
.grid button:hover span::after { opacity: 1; transform: none; }

.more { display: flex; margin: 2rem auto 0; }
.more[hidden] { display: none; }

/* ---------- ANTES E DEPOIS ---------- */
.cases__list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem);
}
.case h3 { font-size: 1.35rem; line-height: 1.15; margin: .35rem 0 .5rem; }
.case > p:last-child { margin: 0; color: var(--muted); font-size: .95rem; max-width: 40ch; }
.case__cat { margin: 1.2rem 0 0; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }

.ba {
  position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--ink-2);
  user-select: none; -webkit-user-select: none;
}
.ba img, .ba video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag {
  position: absolute; top: 1rem; z-index: 2; padding: .4rem .8rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(13, 12, 11, .72); backdrop-filter: blur(6px); pointer-events: none;
}
.ba__tag--before { left: 1rem; }
.ba__tag--after { right: 1rem; background: var(--gold); color: var(--ink); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; translate: -1px 0;
  background: var(--bone); pointer-events: none;
}
.ba__handle::after {
  content: '‹ ›'; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bone); color: var(--ink); font: 700 1rem/1 var(--f-body); letter-spacing: .1em;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .7); transition: transform .3s var(--ease);
}
.ba:hover .ba__handle::after { transform: scale(1.08); }
.ba__range {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.ba:has(.ba__range:focus-visible) { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* ---------- SERVIÇOS ---------- */
.services { background: var(--paper); color: var(--ink); }
.services em { color: var(--gold-1); }
.services .eyebrow { color: var(--gold-3); }
.svc {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem;
}
.svc a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none;
  border-radius: 16px; background: #fff; border: 1px solid rgba(13, 12, 11, .08);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.svc a:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(13, 12, 11, .45); }
.svc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.svc a:hover img { transform: scale(1.04); }
.svc a > div { flex: 1; display: flex; flex-direction: column; padding: 1.5rem 1.5rem 1.6rem; }
.svc b { display: block; font-size: .8rem; color: var(--gold-3); /* 5,5:1 sobre branco (gold-1 dava 3,6:1) */ margin-bottom: .8rem; }
.svc h3 { font-size: 1.35rem; line-height: 1.15; margin-bottom: .6rem; }
.svc p { margin: 0 0 1.2rem; color: var(--muted-ink); font-size: .95rem; }
.svc span { margin-top: auto; font-size: .85rem; font-weight: 700; color: var(--gold-3); }

/* ---------- SOBRE ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.about__text > p:last-child { margin: 1.6rem 0 0; max-width: 46ch; color: #d6cfc4; font-size: 1.1rem; }
.about__text strong { color: var(--gold-2); }
.cities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.cities li {
  padding: .55rem .95rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500;
}
.cities i { font-style: normal; font-size: .72rem; color: var(--gold-2); margin-left: .25rem; }

/* ---------- DEPOIMENTOS ---------- */
.quotes { background: var(--ink-2); }
.quotes__list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
.quotes__list li {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 2rem 1.8rem; border-radius: 16px; border: 1px solid var(--line);
}
.quotes blockquote {
  margin: 0; font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.3 var(--f-accent); color: var(--bone);
}
.quotes__who { margin: 0; display: grid; gap: .15rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.quotes__who b { font-size: .95rem; }
.quotes__who span { font-size: .85rem; color: var(--muted); }

/* ---------- CONTATO ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax);
}
.contact .eyebrow { color: var(--gold-3); }
.contact em { color: var(--gold-1); }
.contact__info > p:not(.eyebrow) { margin: 1.2rem 0 2rem; color: var(--muted-ink); font-size: 1.1rem; }
.info { margin: 2.6rem 0 0; }
.info div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid rgba(13, 12, 11, .12); }
.info dt { color: var(--muted-ink); font-size: .9rem; white-space: nowrap; }
.info dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.info a { text-decoration: none; }
.info a:hover { color: var(--gold-3); }

.quick { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }
.quick__btn {
  padding: .75rem 1.1rem; border-radius: 999px; border: 1px solid rgba(13, 12, 11, .22);
  font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.quick__btn::after { content: ' →'; color: var(--gold-1); }
.quick__btn:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.contact__photo { margin: 0; border-radius: 20px; overflow: hidden; align-self: stretch; max-height: 640px; }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- RODAPÉ ---------- */
.footer {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) max(var(--gutter), calc((100% - var(--max)) / 2)) 0;
  background: var(--ink); color: var(--muted); font-size: .92rem;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: max(var(--gutter), calc((100% - var(--max)) / 2)); right: max(var(--gutter), calc((100% - var(--max)) / 2));
  height: 1px; background: var(--gold); opacity: .7;
}
.footer p { margin: 0; }
.footer__top {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer__logo { display: inline-block; }
.footer__brand .btn { white-space: nowrap; }
.footer__logo img { width: 112px; }
.footer__sign {
  margin: 1.4rem 0 1.8rem !important; max-width: 16ch;
  font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; color: var(--bone);
}
.footer__label {
  margin: 0 0 1.2rem !important; padding-bottom: .9rem; border-bottom: 1px solid var(--line);
  font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-2);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.footer__col a {
  color: #d8d1c6; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--gold-2), var(--gold-2)) 0 100% / 0 1px no-repeat;
  transition: color .3s, background-size .45s var(--ease);
}
.footer__col a:hover { color: var(--bone); background-size: 100% 1px; }
.footer__col li span {
  display: block; margin-bottom: .1rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.footer__states { color: var(--bone); font-weight: 700; letter-spacing: .14em; }
.footer__cities { margin-top: .7rem !important; line-height: 1.7; }

.nowrap { white-space: nowrap; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem); padding: 1.6rem 0 2rem; border-top: 1px solid var(--line); font-size: .82rem;
}
.footer__totop {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2);
}
.footer__totop span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(210, 167, 105, .45); letter-spacing: 0; transition: background .3s, color .3s, transform .4s var(--ease);
}
.footer__totop:hover span { background: var(--gold-2); color: var(--ink); transform: translateY(-3px); }
@media (min-width: 861px) { .footer__bottom { padding-right: 80px; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7);
  transform: scale(0); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s;
}
/* .is-off: Contato ou rodapé na tela (lá já há WhatsApp) */
.wa-float.is-on:not(.is-off) { transform: scale(1); visibility: visible; transition: transform .5s var(--ease); }
.wa-float.is-on:not(.is-off):hover { transform: scale(1.08); }
/* desktop: faixa livre à direita para o botão não cobrir a última coluna (case 04, fotos, cards) */
@media (min-width: 861px) {
  .works, .cases, .services { padding-left: max(var(--gutter), 92px); padding-right: max(var(--gutter), 92px); }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 7, 6, .96); color: var(--bone);
}
.lightbox[open] { display: grid; place-items: center; animation: fadeIn .3s ease; }
.lightbox::backdrop { background: transparent; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox__img {
  max-width: min(92vw, 900px); max-height: calc(100dvh - 9rem);
  border-radius: 12px; object-fit: contain; touch-action: pan-y;
  transition: opacity .25s, transform .35s var(--ease);
}
.lightbox__img.is-swapping { opacity: 0; transform: scale(.97); }
.lightbox__video {
  max-width: min(92vw, 900px); max-height: calc(100dvh - 9rem); aspect-ratio: 480 / 848;
  border-radius: 12px; background: #000; object-fit: contain;
}
.lightbox__img[hidden], .lightbox__video[hidden] { display: none; }
.lightbox__cap {
  position: fixed; left: 50%; bottom: 1.6rem; translate: -50% 0; margin: 0;
  display: flex; gap: 1rem; align-items: center; white-space: nowrap;
  font-weight: 600;
}
.lightbox__count { color: var(--gold-2); font-size: .85rem; }
.lightbox__btn, .lightbox__close {
  position: fixed; display: grid; place-items: center; cursor: pointer;
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(245, 241, 234, .25);
  background: rgba(13, 12, 11, .6); color: var(--bone); font: 400 2rem/1 var(--f-body);
  transition: background .25s, color .25s;
}
.lightbox__btn:hover, .lightbox__close:hover { background: var(--gold-2); color: var(--ink); }
.lightbox__prev { left: 1.5rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1.5rem; top: 50%; translate: 0 -50%; }
.lightbox__close { right: 1.5rem; top: 1.5rem; font-size: 1.1rem; }

/* ---------- revisão de placeholders (?revisao) ---------- */
.revisao [data-placeholder] { outline: 2px dashed var(--gold-2) !important; outline-offset: 3px; }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__area { grid-column: span 3; }
  .quotes__list { grid-template-columns: 1fr; max-width: 720px; margin-left: 0; }
  .cases__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --top-h: 64px; }
  .top { gap: 1rem; }
  .top__logo img { width: 78px; }
  .top__cta { display: none; }
  .top__burger {
    display: grid; gap: 6px; margin-left: auto; padding: 12px; background: none; border: 0; cursor: pointer;
  }
  .top__burger span { display: block; width: 24px; height: 2px; background: var(--bone); transition: transform .35s var(--ease); }
  .top__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .top__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .top__nav {
    position: fixed; inset: var(--top-h) 0 auto 0; margin: 0;
    flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.5rem;
    background: var(--ink); border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease), visibility 0s .45s;
    visibility: hidden; /* fechado: fora da ordem de foco e do leitor de tela */
  }
  .top__nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease); }
  .top__nav .top__nav-wa {
    display: flex; margin-top: 1.2rem; padding: 1rem 1.4rem; border: 0; border-radius: 999px; justify-content: center;
    background: var(--gold); color: var(--ink); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  }
  .top__nav a { font-size: 1.5rem; font-weight: 700; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .top__nav a::after { display: none; }

  .top__tag { font-size: .62rem; letter-spacing: .14em; padding-left: .55rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: calc(var(--top-h) + 1.6rem); gap: 2rem; }
  .hero__badge { margin-bottom: 1rem; font-size: .72rem; }
  .hero__lead { margin: 1rem 0 1.4rem; font-size: 1rem; }
  .slides { aspect-ratio: auto; height: 56svh; max-height: none; border-radius: 16px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; margin-top: 2rem; }
  .svc { grid-template-columns: 1fr; max-width: 520px; margin-left: 0; }
  .contact__photo { display: none; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid span { font-size: .85rem; left: .75rem; bottom: .7rem; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) .3rem; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .about, .contact { grid-template-columns: 1fr; }
  .cases__list { grid-template-columns: 1fr; max-width: 520px; margin-left: 0; }
  .ba { aspect-ratio: 4 / 5; }

  .lightbox__btn { top: auto; bottom: 1.2rem; translate: none; width: 48px; height: 48px; }
  .lightbox__prev { left: 1rem; }
  .lightbox__next { right: 1rem; }
  .lightbox__cap { bottom: 2.1rem; flex-direction: column; gap: .2rem; font-size: .9rem; }
  .lightbox__img, .lightbox__video { max-width: 100vw; max-height: calc(100dvh - 10rem); border-radius: 0; }

  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 1.5rem; }
  .footer__area { grid-column: 1 / -1; }
  /* folga para o botão flutuante do WhatsApp não cobrir a última linha */
  .wa-float { width: 48px; height: 48px; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); }
  .wa-float svg { width: 22px; height: 22px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand .btn { width: 100%; }
}

@media (max-width: 520px) {
  .hero__cta .btn { flex: 1 1 auto; }
  .stats dd { font-size: 1.25rem; }
  .stats dd small { font-size: .72rem; }
  .stats dt { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
