/*
  mudanca.css - Páginas locais "Mudança em {cidade}"
  Folha própria (independente de styles.css) para manter as landing pages leves.
  Paleta inspirada nas fotos da equipe: azul-marinho dos uniformes + azul do baú.
*/

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2fa;
  --text: #121a2b;
  --muted: #4d5872;
  --line: #dbe2ef;
  --navy: #14306b;
  --blue: #2457d6;
  --blue-soft: #e4ecff;
  --cta: #0f7d3c;
  --cta-hover: #0b6a33;
  --cta-text: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 48, 107, .10);
  --max: 1160px;
  --read: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1222;
    --surface: #121b30;
    --surface-2: #17223b;
    --text: #e8eefb;
    --muted: #a5b1c9;
    --line: #26324d;
    --navy: #a9c1ff;
    --blue: #7ea2ff;
    --blue-soft: #1b2a4d;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; color: var(--text); text-wrap: balance; }
h2 { font-size: clamp(1.45rem, 3.2vw, 1.9rem); margin: 0 0 .75rem; }
h3 { font-size: 1.15rem; margin: 1.25rem 0 .4rem; }
p { margin: 0 0 1rem; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.leitura { max-width: var(--read); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topo__in { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.marca img { width: 52px; height: 52px; border-radius: 50%; flex: none; margin-right: .6rem; }
.marca span { margin-left: .3em; }
.marca { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.1rem; color: var(--navy); text-decoration: none; letter-spacing: .2px; white-space: nowrap; }
.marca span { color: var(--blue); }
.topo__nav { display: flex; gap: .25rem; margin-left: auto; }
.topo__nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .4rem .6rem; border-radius: 8px; }
.topo__nav a:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 860px) { .topo__nav { display: none; } .topo .btn { margin-left: auto; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.25rem; border-radius: 12px;
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: background .2s, transform .2s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn--cta { background: var(--cta); color: var(--cta-text); }
.btn--cta:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--blue); }
.btn--sm { min-height: 40px; padding: .45rem .9rem; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.08rem; }

/* ---------- Breadcrumb ---------- */
.trilha { font-size: .9rem; color: var(--muted); padding: 1rem 0 0; }
.trilha ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.trilha li + li::before { content: "›"; margin-right: .35rem; }
.trilha a { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 1.5rem 0 3rem; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; }
.selo-guia { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: .3rem .7rem; border-radius: 999px; margin-bottom: .9rem; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.05rem); margin: 0 0 1rem; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1.25rem; }
.hero__garantias { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1.25rem; font-size: .95rem; color: var(--muted); }
.hero__garantias li { display: flex; gap: .5rem; align-items: flex-start; }
.hero__garantias li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: .2rem; border-radius: 50%; background: var(--cta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }
.hero__foto { position: relative; margin: 0; min-width: 0; }
.hero__foto img { border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero__foto figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__foto { order: -1; }
}
@media (max-width: 520px) {
  .hero__ctas .btn { width: 100%; }
  .hero__garantias { grid-template-columns: 1fr; }
}

/* ---------- Seções ---------- */
.secao { padding: 3rem 0; }
.secao--alt { background: var(--surface); border-block: 1px solid var(--line); }
.secao__intro { color: var(--muted); max-width: var(--read); }

.sumario { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.sumario h2 { font-size: 1.1rem; margin-bottom: .5rem; }
.sumario ol { margin: 0; padding-left: 1.25rem; columns: 2; column-gap: 2rem; }
.sumario li { margin: .2rem 0; break-inside: avoid; }
@media (max-width: 640px) { .sumario ol { columns: 1; } }

.grade { display: grid; gap: 1rem; }
.grade--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grade--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grade--2, .grade--3 { grid-template-columns: 1fr; } }

.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.secao--alt .cartao { background: var(--bg); }
.cartao h3 { margin-top: 0; }
.cartao p:last-child { margin-bottom: 0; }
.cartao__num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-weight: 800; margin-bottom: .6rem; }

.bairros { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .5rem 0 1.25rem; list-style: none; }
.bairros li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .93rem; }
.secao--alt .bairros li { background: var(--bg); }

/* Linha do tempo / checklist */
.linha { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.linha > li { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.35rem; }
.linha__quando { font-weight: 800; color: var(--blue); }
.linha ul { margin: 0; padding-left: 1.1rem; }
.linha li li { margin: .2rem 0; }
@media (max-width: 640px) { .linha > li { grid-template-columns: 1fr; gap: .4rem; } }

/* Tabelas */
.tabela-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 560px; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-size: .88rem; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.nota { font-size: .9rem; color: var(--muted); margin-top: .75rem; }

/* Galeria */
.galeria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.galeria figure { margin: 0; }
.galeria img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.galeria figcaption { font-size: .88rem; color: var(--muted); margin-top: .4rem; }
@media (max-width: 760px) { .galeria { grid-template-columns: 1fr; } }

/* Faixa CTA */
.faixa-cta {
  background: linear-gradient(135deg, #14306b, #2457d6);
  color: #fff; border-radius: 22px; padding: 2rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
}
.faixa-cta h2 { color: #fff; margin-bottom: .35rem; }
.faixa-cta p { color: #dbe6ff; margin: 0; }
.faixa-cta .btn--cta { background: #fff; color: #0f3b22; }
.faixa-cta .btn--cta:hover { background: #e9fff1; }
@media (max-width: 760px) { .faixa-cta { grid-template-columns: 1fr; padding: 1.5rem; } .faixa-cta .btn { width: 100%; } }

/* Compartilhar / citar */
.compartilhar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.embed { position: relative; }
.embed textarea {
  width: 100%; min-height: 120px; resize: vertical; padding: .9rem 1rem;
  font: .88rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
}
.embed__acoes { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; flex-wrap: wrap; }
.copiado { font-size: .9rem; color: var(--cta); font-weight: 700; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding: 0 1.25rem 1rem; margin: 0; color: var(--muted); }

/* Cidades vizinhas */
.cidades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.cidades a { display: block; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--text); font-weight: 700; }
.cidades a span { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }
.cidades a:hover { border-color: var(--blue); }
.cidades a[aria-current="page"] { border-color: var(--blue); background: var(--blue-soft); }
@media (max-width: 860px) { .cidades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* NAP */
.nap { font-style: normal; line-height: 1.8; }

/* Rodapé */
.rodape { background: #0d1a38; color: #c4cee4; padding: 2.5rem 0 6rem; margin-top: 3rem; font-size: .95rem; }
.rodape a { color: #fff; }
.rodape__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.rodape h2 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.rodape ul { list-style: none; padding: 0; margin: 0; }
.rodape li { margin: .25rem 0; }
@media (max-width: 760px) { .rodape__grid { grid-template-columns: 1fr; } }

/* Barra fixa mobile + WhatsApp flutuante */
.barra-cta { display: none; }
@media (max-width: 760px) {
  .barra-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  }
  .barra-cta .btn { width: 100%; }
}
.wpp-flutuante {
  position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.wpp-flutuante svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 760px) { .wpp-flutuante { display: none; } }

/* Impressão: checklist limpo para imprimir (ativo linkável) */
@media print {
  .topo, .barra-cta, .wpp-flutuante, .hero__foto, .galeria, .faixa-cta, .compartilhar, .embed, .rodape, .hero__ctas { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .secao { padding: 1rem 0; }
  .linha > li, .cartao { break-inside: avoid; border-color: #999; }
}
