/* =====================================================================
   BASE — estrutura comum às 3 versões. Cores, fontes e o "jeito" de cada
   versão ficam nos arquivos tema-*.css (que sobrescrevem as variáveis).
   ===================================================================== */
:root {
  --bg: #16171a;
  --bg-alt: #1e2024;
  --surface: #23262b;
  --text: #f2f3f4;
  --muted: #a9afb6;
  --line: #3a3e45;
  --accent: #2c5aa0;
  --accent-ink: #ffffff;
  --steel: #9aa1a9;
  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --radius: 0;
  --header-h: 68px;
  --hero-pos: center 30%;          /* enquadramento da foto do hero */
  --hero-img: url("../images/hero.jpg");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.05; overflow-wrap: break-word; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #6c9bff; outline-offset: 3px; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled, body.menu-open .site-header { background: var(--header-bg, rgba(22,23,26,.96)); box-shadow: 0 1px 0 var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--header-ink, #fff); min-width: 0; }
.brand__mark { width: 14px; height: 30px; flex: none; background: var(--accent); }
.brand__name { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .04em; line-height: 1.05; }
.brand__name b { display: block; font-weight: inherit; color: var(--header-sub, var(--steel)); font-size: .8em; letter-spacing: .12em; }

.nav-toggle { width: 46px; height: 46px; background: none; border: 0; display: grid; place-content: center; gap: 6px; cursor: pointer; color: var(--header-ink, #fff); }
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--header-bg, #16171a);
  display: none; flex-direction: column; padding: 1.5rem 1.25rem; gap: .25rem;
  overflow-y: auto;
}
.nav.is-open { display: flex; }
.nav a { text-decoration: none; padding: 1rem .25rem; font-size: 1.25rem; font-weight: 600; border-bottom: 1px solid var(--line); color: var(--header-ink, #fff); }
.nav a.nav__cta { margin-top: 1rem; text-align: center; background: var(--accent); color: var(--accent-ink); border: 0; padding: 1rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 54px; padding: .85rem 1.75rem;
  font-weight: 700; letter-spacing: .06em; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; border-radius: var(--radius);
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover, #3a6dbb); border-color: var(--accent-hover, #3a6dbb); }
.btn--ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: #111; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; background: #0f1012; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-color: #1b1e23;
  background-image: var(--hero-img), linear-gradient(135deg, #2a2d33 0%, #15171a 55%, #1d2a44 100%);
  background-size: cover; background-position: var(--hero-pos); background-repeat: no-repeat;
}
.hero__shade { position: absolute; inset: 0; z-index: -1; }
.hero__content { padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 9vh, 6rem); color: #fff; }
.hero__title { font-size: clamp(3rem, 15vw, 8.5rem); text-transform: uppercase; }
.hero__title { overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.hero__title span { display: block; white-space: nowrap; }
.hero__tagline { text-wrap: balance; font-size: clamp(1.25rem, 4.5vw, 1.9rem); font-weight: 600; margin: 1.5rem 0 .5rem; max-width: 28ch; }
.hero__lead { max-width: 46ch; color: rgba(255,255,255,.86); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-direction: column; gap: .85rem; max-width: 420px; }

/* Entrada do hero: o único movimento "por conta própria" da página */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__content > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero__content > :nth-child(2) { animation-delay: .12s; }
.hero__content > :nth-child(3) { animation-delay: .2s; }
.hero__content > :nth-child(4) { animation-delay: .3s; }
@keyframes zoomOut { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__bg { animation: zoomOut 2.4s ease-out both; }

/* ---------- Seções ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 2.25rem; max-width: 60ch; }
.section__head h2, .about__text h2, .quote__intro h2 { font-size: clamp(2rem, 6.5vw, 3.4rem); text-transform: var(--h2-case, uppercase); }
.section__head p { margin: .9rem 0 0; color: var(--muted); }

/* Serviços */
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 1.6rem 1.4rem 1.7rem; border-radius: var(--radius); }
.card__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.1rem; color: var(--card-icon, #fff); background: var(--card-icon-bg, var(--accent)); border-radius: var(--radius); }
.card h3 { font-size: 1.45rem; margin-bottom: .5rem; text-transform: var(--h3-case, uppercase); }
.card p { margin: 0; color: var(--muted); }

/* Galeria */
.filters { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .75rem; margin-bottom: 1.25rem; scrollbar-width: thin; }
.filters[hidden] { display: none; }
.filters button { flex: none; min-height: 44px; padding: .5rem 1.15rem; background: transparent; border: 1px solid var(--line); cursor: pointer; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; border-radius: var(--radius); }
.filters button:hover { border-color: var(--steel); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.tile { margin: 0; }
.tile[hidden] { display: none; }
.tile__btn { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.tile__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile__btn:hover img { transform: scale(1.04); }
.tile__tag { position: absolute; left: 0; bottom: 0; padding: .3rem .7rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; background: rgba(10,11,13,.82); color: #fff; }
.empty { margin: 1rem 0 0; padding: 1.75rem 1.25rem; border: 1px dashed var(--line); color: var(--muted); text-align: center; border-radius: var(--radius); }
.empty[hidden] { display: none; }

/* Vídeos */
.videos { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.video-card { margin: 0; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-card figcaption { padding: .8rem 1rem; background: var(--surface); font-weight: 600; }

/* Sobre */
.about { display: grid; gap: 2.5rem; }
.about__text h2 { margin-bottom: 1.5rem; }
.about__text p { max-width: 62ch; }
.about__area { padding: 1.75rem 1.5rem; background: var(--surface); border: 1px solid var(--line); align-self: start; border-radius: var(--radius); }
.about__area h3 { font-size: 1.5rem; margin-bottom: .75rem; text-transform: var(--h3-case, uppercase); }
.about__area li { padding: .55rem 0; border-top: 1px solid var(--line); font-weight: 600; }

/* Diferenciais */
.diffs { display: grid; gap: .75rem; grid-template-columns: 1fr; }
.diffs li { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 1.1rem; border-radius: var(--radius); }
.check { flex: none; display: grid; place-items: center; width: 30px; height: 30px; background: var(--accent); color: var(--accent-ink); font-size: .95rem; border-radius: var(--radius); }

/* Orçamento */
.section--quote { background: var(--bg-alt); }
.quote { display: grid; gap: 2rem; }
.quote__intro p { color: var(--muted); max-width: 46ch; margin-top: 1rem; }
.form { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .75rem .9rem;
  background: var(--field-bg, #15171a); border: 1px solid var(--line); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #6c9bff; outline: 2px solid #6c9bff; outline-offset: 0; }
.form .btn { width: 100%; }
.form-status { margin: .75rem 0 0; min-height: 1.5em; font-weight: 600; }
.form-status.is-ok { color: #6fd08c; }
.form-status.is-error { color: #ff8b7a; }

/* Antes e depois */
.ba-list { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.ba { margin: 0; }
.ba__frame { --pos: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border-radius: var(--radius); user-select: none; -webkit-user-select: none; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__label { position: absolute; top: .75rem; padding: .25rem .65rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(10,11,13,.8); color: #fff; pointer-events: none; }
.ba__label--before { left: .75rem; }
.ba__label--after { right: .75rem; background: var(--accent); color: var(--accent-ink); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.ba__handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #14181f; font-weight: 700; font-size: 1.05rem; letter-spacing: 2px; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.ba__frame:focus-within { outline: 3px solid #6c9bff; outline-offset: 3px; }
.ba figcaption { padding: .7rem .1rem 0; font-weight: 600; }

/* Indicação + QR code */
.btn--outline { background: transparent; color: var(--text); border-color: var(--steel); }
.btn--outline:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.share { background: var(--bg-alt); }
.share__grid { display: grid; gap: 2.5rem; }
.share__text h2 { font-size: clamp(2rem, 6.2vw, 3.2rem); text-transform: var(--h2-case, uppercase); margin-bottom: 1.25rem; }
.share__text p { max-width: 58ch; }
.share__msg-label { margin: 1.5rem 0 .5rem; font-weight: 600; color: var(--muted); }
.share__msg { margin: 0 0 1.5rem; padding: 1rem 1.15rem; max-width: 58ch; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid #25d366; font-size: .98rem; overflow-wrap: anywhere; border-radius: var(--radius); }
.share__actions { display: flex; flex-direction: column; gap: .75rem; }
.share__actions .btn[hidden] { display: none; }
.share__qr { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); text-align: center; align-self: start; border-radius: var(--radius); }
.share__qr h3 { font-size: 1.4rem; margin-bottom: 1rem; text-transform: var(--h3-case, uppercase); }
.qr-box { width: min(240px, 100%); margin: 0 auto 1rem; padding: 10px; background: #fff; border-radius: 4px; }
.qr-box canvas { width: 100%; height: auto; display: block; }
.qr-hint { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.share__qr .btn { width: 100%; }
.share__qr .btn[hidden] { display: none; }
@media (min-width: 640px) { .share__actions { flex-direction: row; flex-wrap: wrap; } }

/* Rodapé */
.site-footer { background: var(--footer-bg, #0f1012); color: var(--footer-ink, #e8eaec); padding-top: 3rem; }
.footer__grid { display: grid; gap: 1.75rem; padding-bottom: 2rem; }
.footer__brand { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; margin-bottom: .5rem; }
.footer__grid p { margin: 0 0 .25rem; color: var(--footer-muted, #a9afb6); }
.footer__grid .footer__brand { color: var(--footer-ink, #fff); }
.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer__links a { font-weight: 600; text-underline-offset: 4px; display: inline-block; padding: .4rem 0; }
.footer__links [hidden] { display: none; }
.footer__legal { padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; color: var(--footer-muted, #a9afb6); }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; z-index: 60; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.35); cursor: pointer;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(8,9,11,.95); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(8,9,11,.95); }
.lightbox figure { margin: 0; max-width: min(1100px, 100vw - 1rem); text-align: center; }
.lightbox img { max-height: 78dvh; width: auto; margin-inline: auto; object-fit: contain; }
.lightbox figcaption { padding: .9rem 1rem 0; color: #cfd3d8; font-size: .95rem; }
.lb-btn { position: absolute; z-index: 2; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: max(.75rem, env(safe-area-inset-top)); right: .75rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .diffs { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .form .btn { width: auto; min-width: 280px; }
  .hero__actions { flex-direction: row; max-width: none; }
  .videos { grid-template-columns: repeat(2, 1fr); }
  .ba-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Notebook / Desktop ---------- */
@media (min-width: 960px) {
  :root { --header-h: 80px; }
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; flex-direction: row; align-items: center; padding: 0; gap: 1.6rem; background: transparent; overflow: visible; }
  .nav a { padding: .5rem 0; font-size: .95rem; border: 0; letter-spacing: .06em; text-transform: uppercase; }
  .nav a:hover { color: var(--steel); }
  .nav a.nav__cta { margin: 0; padding: .7rem 1.4rem; }
  .nav a.nav__cta:hover { color: var(--accent-ink); background: var(--accent-hover, #3a6dbb); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: 1.6fr 1fr; gap: 4rem; }
  .diffs { grid-template-columns: repeat(3, 1fr); }
  .quote { grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
  .footer__grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .footer__links { justify-content: flex-end; }
  .share__grid { grid-template-columns: 1.5fr 1fr; gap: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
