/* ==========================================================
   Felipe Artdecor — Landing page
   Preto e dourado · Mobile-first · sem frameworks

   Regras do sistema visual:
   - Dourado = ação ou estado (botão principal, link, foco, item ativo, avaliação).
     Nunca enfeite. Um botão dourado por área da página.
   - Texto em fonte do sistema; serifa só no logotipo e na frase da marca.
   - A "costura" (linha tracejada dourada) liga as etapas de um trabalho.
     Aparece em 3 lugares: fatos do topo, etapas do restauro e chamada dos serviços.
   ========================================================== */

/* Cinzel 400, hospedada no próprio site (sem Google Fonts: nenhum IP de visitante vai ao Google
   antes do aceite de cookies, e a CSP não precisa liberar servidor de fonte).
   Fonte: Google Fonts, Cinzel v26 — The Cinzel Project Authors (github.com/NDISCOVER/Cinzel),
   SIL Open Font License 1.1 (openfontlicense.org). O "latin" cobre todo o português;
   o "latin-ext" só é baixado se aparecer um caractere fora dele (unicode-range). */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cinzel-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cinzel-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;   /* padrão; o tema claro abaixo segue o aparelho */

  /* superfícies */
  --bg: #0D0D0D;
  --bg-band: #121212;
  --surface: #181818;
  --surface-2: #1E1E1E;

  /* texto (contraste sobre #0D0D0D) */
  --text: #F5F5F5;     /* 17,8:1 */
  --text-2: #B0B0B0;   /*  9,0:1 — e 7,7:1 sobre #1E1E1E */
  --text-3: #A3A3A3;   /*  7,7:1 — texto pequeno (HIG, Dark Mode: buscar 7:1 em texto pequeno) */

  /* linhas neutras */
  --hairline: rgba(255, 255, 255, .08);
  --hairline-strong: rgba(255, 255, 255, .18);

  /* dourado: ação e estado */
  --gold: #F39E41;         /* Ouro Artdecor (logo oficial). Texto #0D0D0D sobre ele: 9,1:1; como texto sobre #1E1E1E: 7,8:1 */
  --gold-hover: #F9B353;   /* Ouro Luz (logo oficial). Texto #0D0D0D sobre ele: 10,7:1 */
  --on-gold: #0D0D0D;
  --stitch: 1px dashed rgba(243, 158, 65, .5);

  /* WhatsApp oficial — só no botão flutuante */
  --wa: #25D366;           /* texto #0D0D0D sobre ele: 9,8:1 */
  --wa-hover: #1EBE5A;
  --on-wa: #0D0D0D;        /* fixo nos dois temas: branco sobre o verde mede só 2,0:1 */

  --danger: #FF7A7A;       /* 6,6:1 sobre #1E1E1E */

  /* botão principal (separado do dourado de texto: no tema claro o botão é preto) */
  --btn-bg: var(--gold);
  --btn-fg: var(--on-gold);
  --btn-bg-hover: var(--gold-hover);
  --gold-small: var(--gold);   /* link pequeno: no escuro o Ouro já passa de 7:1 */
  --stars: var(--gold);
  --field-border: rgba(255, 255, 255, .38);   /* borda de campo: 3,3:1 sobre o fundo (mín. 3:1) */
  --placeholder: #8A8A8A;
  --focus-ring: rgba(243, 158, 65, .25);
  --overlay-hover: rgba(255, 255, 255, .06);
  --header-bg: rgba(13, 13, 13, .78);
  --control-hover: #2A2A2A;
  --track: rgba(255, 255, 255, .12);
  --float-shadow: rgba(0, 0, 0, .6);
  --map-filter: brightness(.92);

  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Cinzel", Georgia, "Times New Roman", serif;  /* fonte de títulos do manual */

  --radius-sm: 12px;
  --radius: 18px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- tema claro: segue a aparência do aparelho (HIG: sem seletor próprio no site) ----------
   Fundo marfim quente, tirado do tom do logo. Dourado de texto vira Bronze (#A54F10, 5,3:1),
   porque o Ouro sobre claro mede só 2,1:1. Botão principal: preto com Ouro Luz (9,8:1). */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #FAF7F2;          /* texto #1C1712: 16,6:1 */
    --bg-band: #F3EEE6;
    --surface: #FFFFFF;
    --surface-2: #F0EAE0;
    --text: #1C1712;
    --text-2: #5A5048;      /* 6,6–7,9:1 */
    --text-3: #574D45;      /* 7,7:1 no marfim — texto pequeno: rodapé, datas */
    --hairline: rgba(28, 23, 18, .10);
    --hairline-strong: rgba(28, 23, 18, .22);
    --gold: #A54F10;        /* Bronze: links e detalhes, 4,7–5,6:1 */
    --gold-hover: #8A410C;
    --gold-small: #86400C;  /* Bronze escuro para link pequeno (15 px): 7,1–7,6:1 */
    --on-gold: #FFFFFF;
    --stitch: 1px dashed rgba(165, 79, 16, .45);
    --danger: #B3261E;      /* 5,5–6,5:1 */
    --btn-bg: #1C1712;
    --btn-fg: #F9B353;      /* 9,8:1 */
    --btn-bg-hover: #33291F;
    --stars: #C2610F;       /* gráfico: 3,5–4,2:1 (mín. 3:1) */
    --field-border: #9E9387;  /* 3,0:1 */
    --placeholder: #6E6359;
    --focus-ring: rgba(165, 79, 16, .25);
    --overlay-hover: rgba(28, 23, 18, .05);
    --header-bg: rgba(250, 247, 242, .84);
    --control-hover: #E8E1D6;
    --track: rgba(28, 23, 18, .12);
    --float-shadow: rgba(28, 23, 18, .25);
    --map-filter: none;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem;          /* 17px: tamanho padrão de leitura no celular */
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--on-gold); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
h1, h2, h3 { margin: 0 0 .5em; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; }
h2 { font-size: clamp(1.875rem, 1.3rem + 2.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.025em; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
dd { margin: 0; }
address { font-style: normal; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 12px 16px; border-radius: 8px;
  background: var(--gold); color: var(--on-gold); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
/* Biblioteca de ícones (<symbol>): fora do fluxo, sem estilo embutido (a CSP bloqueia style="") */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container-narrow { width: min(760px, 100% - 32px); }

.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { margin: 0; color: var(--text-2); }

.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--btn-bg-hover); }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 54px; padding: 0 1.6em; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: 0 1.1em; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[hidden] { display: none; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--field-border); }   /* contorno 3:1: dá para ver que é botão */
.btn-outline:hover { background: var(--overlay-hover); border-color: var(--text-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 0 .25em;
  color: var(--text); font-weight: 600; text-decoration: none;
}
.btn-link span { transition: transform .15s var(--ease); }
.btn-link:hover { color: var(--gold); }
.btn-link:hover span { transform: translateX(3px); }

.link-btn {
  min-height: 44px; margin-left: auto; padding: 0 4px;
  background: none; border: 0; cursor: pointer;
  color: var(--gold-small); font-size: .9375rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- logotipo (arquivos oficiais; só sobre fundo escuro — manual, p. 14) ---------- */
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
/* logo: uma versão para cada aparência (HIG, Dark Mode: "create separate light and dark assets").
   Tela escura: dourado mais luminoso e preto das letras em grafite, para não se fundir com o fundo.
   Tela clara: dourado mais profundo, para o "Art Decor" fino aparecer no marfim. */
picture.logo { display: contents; }
.brand-logo { width: 168px; height: auto; }   /* assinatura (escrita) */
.footer-logo { width: min(300px, 100%); height: auto; margin: 8px auto; } /* logo principal: mínimo 220 px */

/* ---------- cabeçalho (camada funcional: único lugar com transparência) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-cta { flex-shrink: 0; white-space: nowrap; }
.main-nav { display: none; }

/* ---------- topo ---------- */
.hero { padding-block: 40px 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
/* "Tapeçaria em Jandira, SP" fica dentro do H1 (serviço + cidade no título principal, bom para busca local),
   mas com o mesmo visual de rótulo de antes */
.hero-place { display: block; margin: 0 0 16px; color: var(--text-2); font-size: .9375rem; font-weight: 500; line-height: 1.55; letter-spacing: normal; }
.h1-soft { color: var(--text-2); }
.lead { max-width: 34em; margin: 20px 0 0; color: var(--text-2); font-size: 1.125rem; }
.hero-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  margin-top: 32px; padding-top: 20px; border-top: var(--stitch);
  color: var(--text-2); font-size: .9375rem;
}
.hero-media { width: 100%; max-width: 460px; margin-inline: auto; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

/* ---------- trabalhos: vídeo em destaque ---------- */
.gallery-section { background: var(--bg-band); }
.hint-pointer { display: none; }
.feature-video { display: grid; gap: 24px; align-items: center; margin-bottom: clamp(56px, 8vw, 88px); }
.video-frame { aspect-ratio: 720 / 408; overflow: hidden; border-radius: var(--radius); background: #000; }
.video-card { width: 100%; height: 100%; object-fit: cover; }
.feature-video-copy h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.feature-video-copy p { color: var(--text-2); }

/* ---------- trabalhos: carrossel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  margin-inline: -16px; padding: 4px 16px 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track li { scroll-snap-align: start; }
.slide {
  position: relative; display: block; width: 100%; padding: 0;
  border: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface); cursor: zoom-in;
}
.slide img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s var(--ease); }
.carousel-btn {
  display: none; position: absolute; top: calc(50% - 34px); z-index: 2;
  width: 48px; height: 48px; place-items: center;
  border: 1px solid var(--hairline-strong); border-radius: 50%;
  background: var(--surface-2); color: var(--text); cursor: pointer;
  transition: background-color .15s, opacity .2s;
}
.carousel-btn:hover { background: var(--control-hover); }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }
.carousel-btn.prev { left: -24px; }
.carousel-btn.prev .icon { transform: rotate(180deg); }
.carousel-btn.next { right: -24px; }
.carousel-progress { max-width: 200px; height: 2px; margin: 8px auto 0; overflow: hidden; border-radius: 2px; background: var(--track); }
.carousel-progress span { display: block; width: 20%; height: 100%; background: var(--text-2); transition: transform .15s linear; }

/* ---------- depoimentos ---------- */
.testimonials { display: grid; gap: 16px; }
.reviews-more { margin: 28px 0 0; text-align: center; }
.testimonial {
  display: flex; flex-direction: column;
  padding: 28px 24px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--hairline);
}
.stars { margin: 0 0 12px; color: var(--stars); letter-spacing: 2px; }
.testimonial blockquote { flex: 1; margin: 0 0 20px; }
.testimonial blockquote p { margin: 0; font-size: 1.125rem; line-height: 1.5; }
.testimonial footer { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.testimonial footer div { display: grid; line-height: 1.35; }
.testimonial small { color: var(--text-2); font-size: .8125rem; }

/* ---------- quem somos + assinatura do restauro ---------- */
.about-grid { display: grid; gap: 48px; align-items: center; }
.restoration { margin: 0; }
.restoration-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.restoration-steps img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.restoration-steps span {
  display: block; margin-top: 12px; padding-top: 10px; border-top: var(--stitch);
  color: var(--text-2); font-size: .8125rem; font-weight: 600;
}
.restoration figcaption {
  max-width: 24em; margin-top: 28px;
  font-family: var(--font-brand); font-weight: 400; letter-spacing: .01em;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.6rem); line-height: 1.35;
}
.about-copy h3 { margin-top: 28px; }
.about-copy p { color: var(--text-2); }
.about-copy strong { color: var(--text); font-weight: 600; }

/* ---------- orçamento ---------- */
.quote { background: var(--bg-band); border-block: 1px solid var(--hairline); }
.quote-grid { display: grid; gap: 40px; align-items: start; }
.quote-copy > p { color: var(--text-2); }
.checklist { display: grid; gap: 12px; margin-top: 24px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: var(--text-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.quote-form { padding: 24px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; }
.field label span { color: var(--text-2); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1.0625rem; /* ≥16px evita zoom automático no iPhone */
  color: var(--text); background-color: var(--bg);
  border: 1px solid var(--field-border); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field textarea { min-height: 112px; resize: vertical; }
.field select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23B0B0B0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field select option { background: var(--surface); color: var(--text); }
@media (prefers-color-scheme: light) {
  .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%235A5048' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--focus-ring);
}
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: .875rem; }
.field-error:empty { display: none; }
.form-note { margin: 14px 0 0; color: var(--text-2); font-size: .8125rem; text-align: center; }

/* ---------- serviços ---------- */
.services-grid { display: grid; gap: 16px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  padding-bottom: 24px; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline);
  transition: border-color .2s;
}
.service-card:hover { border-color: var(--hairline-strong); }
.service-media { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-band); transition: transform .4s var(--ease); }
.service-card h3 { margin: 18px 22px 8px; }
.service-card p { margin: 0 22px; color: var(--text-2); font-size: .9375rem; }
.service-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(13, 13, 13, .85); border: 1px solid rgba(255, 255, 255, .25);
  color: #F9B353; font-size: .75rem; font-weight: 600;
}
/* 8º item do grid: fecha a grade (7 serviços + chamada = 1, 2 ou 4 colunas sem card sozinho) */
.services-cta {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px;
  padding: 24px; border-radius: var(--radius); border: var(--stitch);
}
.services-cta p { margin: 0; font-size: 1.1875rem; font-weight: 600; line-height: 1.35; }

/* card de serviço inteiro clicável: leva à página do serviço */
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.service-card h3 a:focus-visible { outline: none; }
.service-card:has(h3 a:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.service-more { margin: 14px 22px 0; color: var(--gold); font-size: .9375rem; font-weight: 600; }

/* ---------- páginas de serviço ---------- */
.section-band { background: var(--bg-band); }
.breadcrumb { padding-top: 12px; font-size: .875rem; color: var(--text-2); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: var(--text-2); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text); }
.service-hero { padding-top: 8px; }
.service-hero .checklist { margin-top: 24px; }
.includes { display: grid; gap: 40px; align-items: center; }
.includes h2 { margin-bottom: .4em; }
.includes-intro { max-width: 40em; color: var(--text-2); }
.includes-figure { margin: 0; }
.includes-figure .slide img, .case-media .slide img { aspect-ratio: 4 / 3; }
.includes-figure figcaption { margin-top: 10px; color: var(--text-2); font-size: .9375rem; }
.service-note { padding: 24px; border-radius: var(--radius); border: var(--stitch); }
.service-note h3 { margin-bottom: .3em; }
.service-note p { color: var(--text-2); }
.restoration-wide { max-width: 860px; margin-inline: auto; }
.case { display: grid; gap: 32px; align-items: center; }
.case-media { margin: 0; }
/* galeria em colunas: mostra a foto inteira, sem cortar */
.work-grid { columns: 2; column-gap: 12px; }
.work-grid figure { break-inside: avoid; margin: 0 0 20px; }
.work-grid .slide img { aspect-ratio: auto; height: auto; }
.work-grid figcaption { margin-top: 8px; color: var(--text-3); font-size: .9375rem; line-height: 1.4; }
/* legendas pequenas na faixa bege: tom de texto pequeno (7:1 — HIG, Dark Mode) */
.section-band .restoration-steps span { color: var(--text-3); }
/* como funciona: a costura liga as etapas (Manual de Marca, elemento de apoio) */
.steps { display: grid; gap: 28px; counter-reset: passo; }
.steps li { counter-increment: passo; padding-top: 20px; border-top: var(--stitch); }
.steps li::before {
  content: counter(passo); display: block; margin-bottom: 8px;
  font-family: var(--font-brand); font-size: 1.75rem; line-height: 1; color: var(--gold);
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--text-2); }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }   /* minmax(0): palavra longa não alarga a coluna */
.related-card {
  display: block; height: 100%; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--hairline); color: var(--text); text-decoration: none;
  transition: border-color .2s;
}
.related-card:hover { border-color: var(--hairline-strong); }
.related-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.related-card span { display: block; padding: 12px 14px 14px; font-weight: 600; line-height: 1.3; hyphens: auto; overflow-wrap: break-word; }   /* "Impermeabilização" em 360 px */
.cta-band { background: var(--bg-band); text-align: center; border-top: 1px solid var(--hairline); }
.cta-band p { color: var(--text-2); }
.cta-actions { justify-content: center; align-items: center; }
/* rodapé: endereço e lista de serviços (links internos em todas as páginas) */
.footer-nap { color: var(--text-2); }
.footer-nap a { color: inherit; }
.footer-services p { margin: 8px 0 4px; color: var(--text); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; max-width: 640px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-underline-offset: 3px; }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--text); }
@media (min-width: 768px) {
  .work-grid { columns: 3; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
  .related { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .testimonials-2, .testimonials-4 { max-width: 860px; margin-inline: auto; }
}
@media (min-width: 900px) {
  .includes-split { grid-template-columns: 1.1fr .9fr; gap: 72px; }
  .case { grid-template-columns: .9fr 1.1fr; gap: 72px; }
}
@media (min-width: 1080px) {
  .work-grid { columns: 4; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .testimonials.testimonials-2, .testimonials.testimonials-4 { grid-template-columns: repeat(2, 1fr); }   /* vence a regra de 3 colunas da página inicial */
}

/* ---------- perguntas frequentes ---------- */
.faq { background: var(--bg-band); }
.accordion { border-top: 1px solid var(--hairline); }
.accordion details { border-bottom: 1px solid var(--hairline); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 16px 0; cursor: pointer; list-style: none;
  font-weight: 600;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex-shrink: 0; width: 20px; height: 20px;
  background: var(--text-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(180deg); }
.answer { max-width: 62ch; padding-bottom: 20px; color: var(--text-2); }
.answer p { margin: 0; }

/* ---------- como chegar ---------- */
.location-grid { display: grid; gap: 40px; }
.info-list { display: grid; gap: 18px; margin: 24px 0 28px; }
.info-list dt { color: var(--text-2); font-size: .8125rem; font-weight: 600; }
.info-list dd { margin-top: 2px; }
.info-list a { font-weight: 600; text-decoration: none; }
.info-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.facade { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 20px; border-radius: var(--radius-sm); }
.map-wrap { min-height: 340px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--hairline); background: var(--surface); }
.map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: var(--map-filter); }

/* ---------- rodapé ---------- */
.site-footer {
  padding: 56px 0 112px; border-top: 1px solid var(--hairline);
  color: var(--text-2); font-size: .9375rem; text-align: center;
}
.footer-inner { display: grid; justify-items: center; gap: 16px; }
.social { display: flex; gap: 12px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--field-border); color: var(--text);
  transition: background-color .15s, border-color .15s;
}
.social a:hover { background: var(--overlay-hover); border-color: var(--text-2); }
.copy { margin: 0; color: var(--text-3); font-size: .8125rem; }

.legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 20px; margin: 0; }
.legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-underline-offset: 3px; }
.legal a:hover { color: var(--text); }
.legal .link-btn { margin: 0; color: var(--text-2); font-weight: 400; }
.legal .link-btn:hover { color: var(--text); }

/* ---------- aviso de cookies (LGPD): não bloqueia a página; recusar é tão fácil quanto aceitar ---------- */
.consent {
  position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  padding: 18px 18px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--hairline-strong);
  box-shadow: 0 12px 32px -8px var(--float-shadow);
  color: var(--text-2); font-size: .9375rem; line-height: 1.5;
}
.consent-title { margin: 0 0 4px; color: var(--text); font-weight: 600; }
.consent-text { margin: 0 0 14px; }
.consent-text a { white-space: nowrap; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; }
/* no celular o aviso ocupa a largura toda: o botão do WhatsApp sobe enquanto ele estiver aberto */
/* Sobe com translate (e não com bottom): deslocamento visual não conta como mudança de layout
   (CLS) e desliza suave quando o aviso fecha. --consent-h vem do rastreamento.js. */
.consent-aberto .wa-float { translate: 0 calc(-1 * (var(--consent-h, 160px) + 8px)); }
@media (min-width: 720px) {
  .consent { right: auto; width: 420px; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .consent-aberto .wa-float { translate: none; }
}

/* ---------- página de política de privacidade ---------- */
.legal-page { padding: clamp(32px, 6vw, 64px) 0 clamp(48px, 8vw, 88px); }
.legal-page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.legal-page h2 { margin-top: 2em; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.legal-page .lead { color: var(--text-2); }
.legal-page ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.legal-page li { margin-bottom: .4em; }
.legal-page li::marker { color: var(--gold); }
.legal-page .updated { color: var(--text-3); font-size: .875rem; }
.tools { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .9375rem; }
.tools th, .tools td { padding: 12px 10px; border-bottom: 1px solid var(--hairline-strong); text-align: left; vertical-align: top; }
.tools th { color: var(--text-2); font-weight: 600; }
.tools td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
@media (max-width: 559px) {   /* tabela vira lista no celular */
  .tools thead { display: none; }
  .tools tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--hairline-strong); }
  .tools td { display: block; padding: 2px 0; border: 0; }
}
.tools tr[hidden] { display: none; }   /* ferramenta desligada: some da lista */

/* ---------- WhatsApp flutuante (verde oficial) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 56px; height: 56px; padding: 0 16px;
  border-radius: 999px; background: var(--wa); color: var(--on-wa);
  font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 24px -6px var(--float-shadow);
  transition: background-color .15s, transform .15s var(--ease), translate .25s var(--ease);
}
/* pulso chama atenção só ao abrir a página (3 vezes) e para */
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--wa); animation: pulse 2.4s ease-out 1s 3;
  opacity: 0;
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:hover { background: var(--wa-hover); }
.wa-float:active { transform: scale(.97); }
.wa-float-label { display: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(5, 5, 5, .96); color: var(--text);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { width: auto; max-width: calc(100vw - 32px); max-height: calc(100dvh - 128px); border-radius: var(--radius-sm); }
.lightbox-close, .lightbox-nav {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--hairline-strong); border-radius: 50%;
  background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 1.75rem; line-height: 1;
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav { bottom: 24px; }
.lightbox-nav.prev { left: calc(50% - 60px); }
.lightbox-nav.prev .icon { transform: rotate(180deg); }
.lightbox-nav.next { right: calc(50% - 60px); }
.lightbox-nav[hidden] { display: none; }

/* ==========================================================
   Larguras (mobile-first)
   ========================================================== */
@media (max-width: 359px) {
  .brand-logo { width: 128px; }   /* telas muito estreitas: cabe ao lado do botão */
}

@media (max-width: 380px) {
  .header-cta { padding-inline: .9em; }
  /* "grátis" não cabe em 1 linha aqui; aparece logo abaixo, no botão do topo */
  .cta-extra { display: none; }
}

@media (min-width: 560px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
  .carousel-track { grid-auto-columns: 46%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-form { padding: 32px; }
  .restoration-steps { gap: 12px; }
  .wa-float-label { display: inline; }
  .wa-float { padding: 0 20px 0 16px; }
}

@media (min-width: 768px) {
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
  .map-wrap iframe { min-height: 100%; }
}

@media (min-width: 900px) {
  :root { --header-h: 88px; }
  .brand-logo { width: 200px; }
  .main-nav { display: block; }
  .main-nav ul { display: flex; gap: 4px; }
  .main-nav a {
    display: flex; align-items: center; min-height: 44px; padding: 0 12px;
    color: var(--text-2); font-size: .9375rem; font-weight: 500; text-decoration: none;
    transition: color .15s, box-shadow .15s;
  }
  .main-nav a:hover { color: var(--text); }
  .main-nav a.is-active { color: var(--text); box-shadow: inset 0 -2px 0 var(--gold); }
  .hero { padding-block: 88px 120px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; }
  .feature-video { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .carousel-track { grid-auto-columns: calc((100% - 36px) / 4); margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .carousel-btn { display: grid; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .quote-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
  .site-footer { padding-bottom: 56px; }
}

@media (min-width: 1080px) {
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* Instrução certa para cada tipo de aparelho: toque × mouse */
@media (hover: hover) and (pointer: fine) {
  .hint-touch { display: none; }
  .hint-pointer { display: inline; }
  .slide:hover img, .service-card:hover .service-media { transform: scale(1.03); }
}

/* ==========================================================
   Preferências de acessibilidade do sistema
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root {
    --text-2: #D6D6D6;
    --text-3: #C2C2C2;
    --hairline: rgba(255, 255, 255, .24);
    --hairline-strong: rgba(255, 255, 255, .45);
    --stitch: 1px dashed rgba(249, 179, 83, .9);
    --field-border: rgba(255, 255, 255, .6);
  }
}
@media (prefers-contrast: more) and (prefers-color-scheme: light) {
  :root {
    --text-2: #3E362F;
    --text-3: #4A4139;
    --hairline: rgba(28, 23, 18, .28);
    --hairline-strong: rgba(28, 23, 18, .5);
    --stitch: 1px dashed rgba(138, 65, 12, .9);
    --field-border: #5A5048;
  }
}
