/* Carlinhos Centro Automotivo — template v3 escuro (mobile-first)
   Fundo preto com brilhos radiais amarelos (referência: BG da ticto.com.br, na cor da marca).
   Regras do cliente: nada parecido com a JC Security; nada de cortes diagonais; cabeçalho sólido;
   no celular tudo centralizado (menos a lista de contato), ordem texto → imagem → itens → botão,
   itens um por linha com ícone à esquerda, textos sem quebrar linha em botões/cards/FAQ.
   Títulos em Saira Semi Condensed, texto em Figtree. */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --text: #f4f4f2;
  --muted: rgba(244, 244, 242, .64);
  --brand: #ffc20e;
  --brand-2: #ffd34d;
  --brand-glow: rgba(255, 194, 14, .3);
  --brand-tint: rgba(255, 194, 14, .12);
  --wa: #25d366;
  --ok: #2fbf71;
  --warn: #ff9f1a;
  --alert: #ff5a5a;

  --r: 10px;
  --r-lg: 14px;
  --gutter: 16px;
  --top-h: 72px;
  --head: "Saira Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 8px); overflow-x: clip; background: var(--bg); }
body { margin: 0; padding-top: var(--top-h); font: 400 16px/1.55 var(--body); color: var(--text); background: var(--bg); overflow-x: clip; isolation: isolate; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.08; letter-spacing: -.005em; overflow-wrap: break-word; text-wrap: balance; }
.lead, .head p { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wrap { position: relative; z-index: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--md { max-width: 820px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--brand); color: #111; border-radius: var(--r); }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: var(--r);
  font: 600 16px/1.1 var(--body); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn--lg { min-height: 54px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn--brand { background: var(--brand); color: #111; box-shadow: 0 8px 28px rgba(255, 194, 14, .28); }
.btn--brand:hover { background: var(--brand-2); box-shadow: 0 10px 34px rgba(255, 194, 14, .4); }
.btn--line { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line-2); }
.btn--line:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Topo (sempre sólido) ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.top__bar { height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top__logo img { height: 34px; width: auto; }
.top__toggle { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; color: var(--text); cursor: pointer; }
.top__toggle .icon { width: 24px; height: 24px; }
.top__toggle .icon--close, .top__toggle[aria-expanded="true"] .icon--open { display: none; }
.top__toggle[aria-expanded="true"] .icon--close { display: block; }

.menu {
  position: absolute; top: 100%; left: 0; right: 0;
  display: none; flex-direction: column; padding: 8px var(--gutter) 16px;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(0, 0, 0, .5);
}
.menu.is-open { display: flex; }
.menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: center; font-weight: 600; text-decoration: none; }
.menu a.is-active { color: var(--brand); }
.menu__cta { margin-top: 14px; }

/* ---------- Brilhos radiais (o "BG maluco") ---------- */
/* Um único fundo para a página toda: brilhos de tamanho, tom e posição variados
   (nada de padrão repetido por seção). Fica atrás de tudo (z-index -1 no contexto do body). */
main { position: relative; }
main::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse min(494px, 88vw) 416px at 88% 14.5%, rgba(255, 194, 14, 0.32), rgba(255, 194, 14, 0.112) 45%, transparent 100%),
    radial-gradient(ellipse min(312px, 56vw) 338px at 6% 22%, rgba(255, 160, 0, 0.224), rgba(255, 160, 0, 0.078) 45%, transparent 100%),
    radial-gradient(ellipse min(676px, 121vw) 390px at 50% 25.5%, rgba(255, 194, 14, 0.208), rgba(255, 194, 14, 0.073) 45%, transparent 100%),
    radial-gradient(ellipse min(286px, 51vw) 416px at 97% 33%, rgba(255, 120, 0, 0.208), rgba(255, 120, 0, 0.073) 45%, transparent 100%),
    radial-gradient(ellipse min(468px, 84vw) 546px at 2% 40%, rgba(255, 194, 14, 0.304), rgba(255, 194, 14, 0.106) 45%, transparent 100%),
    radial-gradient(ellipse min(221px, 40vw) 221px at 68% 46.5%, rgba(255, 194, 14, 0.16), rgba(255, 194, 14, 0.056) 45%, transparent 100%),
    radial-gradient(ellipse min(572px, 102vw) 520px at 100% 55%, rgba(255, 120, 0, 0.24), rgba(255, 120, 0, 0.084) 45%, transparent 100%),
    radial-gradient(ellipse min(364px, 65vw) 312px at 28% 62%, rgba(255, 194, 14, 0.16), rgba(255, 194, 14, 0.056) 45%, transparent 100%),
    radial-gradient(ellipse min(728px, 130vw) 338px at 62% 70.5%, rgba(255, 194, 14, 0.192), rgba(255, 194, 14, 0.067) 45%, transparent 100%),
    radial-gradient(ellipse min(364px, 65vw) 468px at 4% 81%, rgba(255, 160, 0, 0.256), rgba(255, 160, 0, 0.09) 45%, transparent 100%),
    radial-gradient(ellipse min(442px, 79vw) 442px at 92% 92%, rgba(255, 194, 14, 0.272), rgba(255, 194, 14, 0.095) 45%, transparent 100%);
}
.sec { position: relative; }
.facts, .foot { position: relative; overflow: hidden; isolation: isolate; }
.foot::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  filter: blur(10px); border-radius: 50%;
  top: -340px; left: 50%; transform: translateX(-50%); width: 900px; height: 520px; background: radial-gradient(closest-side, rgba(255, 194, 14, .14), transparent);
}

/* ---------- Títulos de seção ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.head { margin: 0 auto 24px; max-width: 640px; text-align: center; }
.head h2 { font-size: clamp(28px, 7.4vw, 46px); }
.head p:not(.eyebrow) { margin-top: 10px; color: var(--muted); }

/* ---------- Hero: foto ocupando tudo ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--top-h)); display: flex; align-items: flex-end;
  padding: 48px 0 40px;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 66% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(255, 194, 14, .32), transparent 60%),
    linear-gradient(180deg, rgba(10, 10, 10, .35) 0%, rgba(10, 10, 10, .55) 40%, rgba(10, 10, 10, .92) 78%, var(--bg) 100%);
}
.hero__inner { text-align: center; }
.hero__logo { display: block; width: 180px; height: auto; margin: 0 auto 18px; filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .55)); }
.hero h1 { font-size: clamp(40px, 11vw, 76px); font-weight: 800; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.nowrap { white-space: nowrap; }
.hl { white-space: nowrap; color: var(--brand); }
.lead { margin: 14px auto 0; max-width: 34em; font-size: 17px; color: rgba(244, 244, 242, .82); }
.hero__cta { display: grid; gap: 10px; width: 100%; max-width: 440px; margin: 26px auto 0; }

/* ---------- Destaques: lista com divisórias ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.facts__list li { padding: 14px 0; text-align: center; }
.facts__list li + li { border-top: 1px solid var(--line); }
.facts__list strong { display: block; font: 700 19px/1.2 var(--head); color: var(--brand); }
.facts__list span { display: block; font-size: 14px; color: var(--muted); }

/* ---------- Seções ---------- */
.sec { padding: 52px 0; }
.photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
#alinhamento .photo img { object-position: 30% 30%; }

/* ---------- Serviços: cards (um por linha no celular, ícone à esquerda) ---------- */
.cards { display: grid; gap: 10px; max-width: 520px; margin: 0 auto; }
.card {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); text-decoration: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .15s ease, background-color .15s ease;
}
.card:hover { border-color: rgba(255, 194, 14, .55); background: var(--surface-2); }
.card__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--r); background: var(--brand-tint); color: var(--brand); }
.card__icon .icon { width: 24px; height: 24px; }
.card__txt { min-width: 0; }
.card__txt strong { display: block; font: 700 18px/1.2 var(--head); }
.card__txt small { display: block; font-size: 14.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Diagnóstico ---------- */
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chips label { position: relative; cursor: pointer; min-width: 0; -webkit-tap-highlight-color: transparent; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  height: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface);
  font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chips span .icon { color: var(--brand); width: 22px; height: 22px; }
.chips label:hover span { border-color: rgba(255, 194, 14, .5); }
.chips input:checked + span { background: var(--brand); border-color: var(--brand); color: #111; font-weight: 600; box-shadow: 0 6px 22px rgba(255, 194, 14, .3); }
.chips input:checked + span .icon { color: #111; }
.chips input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }

.result { margin-top: 16px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.result__empty { color: var(--muted); }
.result__label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.result__list { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.result__list li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; background: var(--brand); color: #111; font-weight: 600; }
.result__alert { margin-top: 12px; display: flex; justify-content: center; align-items: flex-start; gap: 8px; color: #ff9a9a; font-weight: 500; font-size: 15px; }
.result__alert .icon { margin-top: 2px; }
.btn--center { display: flex; width: 100%; max-width: 440px; margin: 16px auto 0; }
.note { margin-top: 12px; text-align: center; font-size: 13px; color: rgba(244, 244, 242, .45); }

/* ---------- Split: texto → imagem → itens/botão ---------- */
.split { display: grid; gap: 22px; }
.split .head { margin-bottom: 0; }
.split__body { display: grid; gap: 18px; justify-items: center; }
.split__body > .btn { width: 100%; max-width: 440px; }

.items { display: grid; gap: 10px; width: 100%; max-width: 520px; }
.items li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: left; }
.items__icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #111; }
.items__icon .icon { width: 18px; height: 18px; stroke-width: 3; }
.items strong { display: block; font: 700 17px/1.2 var(--head); }
.items small { display: block; font-size: 14.5px; color: var(--muted); white-space: nowrap; }

.pacto { width: 100%; max-width: 520px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.pacto li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; text-align: left; }
.pacto li + li { border-top: 1px solid var(--line); }
.pacto .icon { width: 24px; height: 24px; color: var(--brand); }
.pacto strong { display: block; font: 700 17px/1.2 var(--head); white-space: nowrap; }
.pacto span { display: block; font-size: 14.5px; color: var(--muted); white-space: nowrap; }

/* ---------- Revisão: perguntas com opções claras ---------- */
.rev { width: 100%; max-width: 520px; display: grid; gap: 20px; padding: 20px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rev__hint { text-align: left; font-size: 15px; color: var(--muted); }
.quiz legend { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; margin-bottom: 10px; font: 700 19px/1.2 var(--head); }
.quiz__n { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #111; font-size: 16px; }
.quiz__opts { display: grid; gap: 8px; }
.quiz label { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.quiz input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.quiz__opts span {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid var(--line-2); border-radius: var(--r); background: rgba(255, 255, 255, .03);
  font-size: 16px; font-weight: 500; text-align: left; white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease;
}
/* bolinha de seleção: deixa claro que é para marcar */
.quiz__opts span::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line-2); background: transparent;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.quiz__opts label:hover span { border-color: rgba(255, 194, 14, .5); }
.quiz input:checked + span { border-color: var(--brand); background: var(--brand-tint); }
.quiz input:checked + span::before { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px #1a1a1a; }
.quiz input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

.rev__status { padding: 14px 16px; border-radius: var(--r); background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-left: 3px solid rgba(255, 255, 255, .2); text-align: left; transition: border-color .2s ease; }
.rev__head { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.rev__status strong { font: 700 18px/1.2 var(--head); }
.rev__text { display: block; font-size: 14.5px; color: var(--muted); }
.rev__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background-color .2s ease, box-shadow .2s ease; }
.rev__status[data-state="ok"] { border-left-color: var(--ok); }
.rev__status[data-state="due"] { border-left-color: var(--alert); }
.rev__status[data-state="check"] { border-left-color: var(--warn); }
.rev__status[data-state="ok"] .rev__dot { background: var(--ok); box-shadow: 0 0 0 5px rgba(47, 191, 113, .2), 0 0 16px var(--ok); }
.rev__status[data-state="due"] .rev__dot { background: var(--alert); box-shadow: 0 0 0 5px rgba(255, 90, 90, .2), 0 0 16px var(--alert); }
.rev__status[data-state="check"] .rev__dot { background: var(--warn); box-shadow: 0 0 0 5px rgba(255, 159, 26, .2), 0 0 16px var(--warn); }

/* ---------- Cidades e termos: tags uniformes ---------- */
.tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tags a {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  font-weight: 600; font-size: 15px; text-align: center; text-decoration: none; white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.tags a:hover { border-color: var(--brand); color: var(--brand); }

/* termos buscados: estilo "pesquisas relacionadas" */
.rel { max-width: 880px; margin: 40px auto 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.rel__head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 600 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rel__head .icon { width: 18px; height: 18px; color: var(--brand); }
.rel ul { display: grid; }
.rel li + li { border-top: 1px solid var(--line); }
.rel a { display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 15px; color: var(--text); text-decoration: none; white-space: nowrap; transition: background-color .15s ease; }
.rel a .icon { width: 16px; height: 16px; color: var(--muted); }
.rel a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rel a b { font-weight: 700; }
.rel a:hover { background: var(--surface-2); }
.rel a:hover .rel__go { color: var(--brand); }

/* ---------- FAQ ---------- */
.qa { display: grid; gap: 8px; }
.qa details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.qa details[open] { border-color: rgba(255, 194, 14, .4); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 16px; cursor: pointer; list-style: none; font: 700 17px/1.2 var(--head); white-space: nowrap; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon { padding: 4px; width: 28px; height: 28px; border-radius: 6px; background: var(--surface-2); transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.qa details[open] summary .icon { transform: rotate(45deg); background: var(--brand); color: #111; }
.qa details p { padding: 0 16px 16px; color: var(--muted); }

/* ---------- Contato + mapa ---------- */
.visit { display: grid; gap: 16px; }
.visit__side { display: grid; gap: 12px; align-content: start; }
.visit__info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.visit__box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.visit__box--wide { grid-column: 1 / -1; }
.visit__ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 4px; border-radius: var(--r); background: var(--brand-tint); color: var(--brand); }
.visit__box strong { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.visit__val { font-weight: 600; text-decoration: none; white-space: nowrap; }
a.visit__val:hover { color: var(--brand); }
.visit__addr { font-size: clamp(14px, 3.9vw, 16px); }
.visit__cta { display: grid; gap: 10px; }
.pin svg { display: block; width: 34px; height: 46px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)) drop-shadow(0 0 14px rgba(255, 194, 14, .45)); }
.pin__label { position: absolute; left: 38px; top: 5px; padding: 4px 10px; border-radius: 6px; background: var(--brand); color: #111; font: 600 13px/1.3 var(--body); white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.visit__map { min-height: 300px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #1a1a1a; z-index: 0; }


/* ---------- Rodapé (coluna única centralizada no celular) ---------- */
.foot { background: #060606; color: var(--muted); padding: 44px 0 24px; text-align: center; border-top: 1px solid var(--line); }
.foot__grid { display: grid; gap: 28px; }
.foot__brand img { width: 160px; margin: 0 auto 12px; }
.foot__social { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.foot__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); background: var(--surface-2); color: var(--text); transition: background-color .15s ease, color .15s ease; }
.foot__social a:hover { background: var(--brand); color: #111; }
.foot h4 { margin-bottom: 18px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.foot ul { display: grid; gap: 8px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { color: var(--text); text-decoration: underline; }
.foot__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: rgba(244, 244, 242, .4); }
.foot__copy a { color: rgba(244, 244, 242, .7); text-decoration: none; }
.foot__copy a:hover { color: var(--brand); }
.foot__sep { display: none; }

/* ---------- WhatsApp flutuante ---------- */
.wa {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  transition: transform .15s ease;
}
.wa:hover { transform: scale(1.06); }
.wa .icon { width: 30px; height: 30px; }

/* Leaflet no escuro */
.leaflet-container { background: #1a1a1a; font-family: var(--body); }
.leaflet-control-attribution { background: rgba(10, 10, 10, .7) !important; color: rgba(255, 255, 255, .55) !important; }
.leaflet-control-attribution a { color: rgba(255, 255, 255, .75) !important; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .rel ul { grid-template-columns: 1fr 1fr; }
  .rel li + li { border-top: 0; }
  .rel li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rel li:nth-child(odd) { border-right: 1px solid var(--line); }
  :root { --gutter: 24px; }
  .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tags { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__cta { grid-template-columns: 1fr 1fr; max-width: 560px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --top-h: 88px; --gutter: 32px; }
  .top__logo img { height: 42px; }
  .top__toggle { display: none; }
  .menu { position: static; display: flex; flex-direction: row; align-items: center; gap: 4px; padding: 0; border: 0; box-shadow: none; background: none; }
  .menu a:not(.btn) { padding: 8px 12px; border: 0; font-size: 15px; font-weight: 500; color: var(--muted); }
  .menu a:not(.btn):hover, .menu a.is-active { color: var(--text); }
  .menu a.is-active { box-shadow: inset 0 -2px 0 var(--brand); }
  .menu__cta { margin: 0 0 0 12px; min-height: 44px; }

  .hero { min-height: min(820px, calc(100vh - var(--top-h))); align-items: center; padding: 80px 0; }
  .hero__bg { object-position: 70% 45%; }
  .hero::before {
    background:
      radial-gradient(60% 80% at 0% 100%, rgba(255, 194, 14, .3), transparent 60%),
      linear-gradient(90deg, rgba(10, 10, 10, .95) 0%, rgba(10, 10, 10, .8) 38%, rgba(10, 10, 10, .2) 70%, rgba(10, 10, 10, .1) 100%),
      linear-gradient(180deg, transparent 70%, var(--bg) 100%);
  }
  .hero__inner { text-align: left; }
  .hero__logo { width: 200px; margin: 0 0 22px; }
  .hero h1 { max-width: 10em; }
  .lead { margin-left: 0; max-width: 30em; }
  .hero__cta { margin-left: 0; grid-template-columns: auto auto; justify-content: start; max-width: none; }

  .facts__list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .facts__list li { padding: 22px 16px; }
  .facts__list li + li { border-top: 0; border-left: 1px solid var(--line); }

  .sec { padding: 92px 0; }
  .head { margin-bottom: 40px; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; gap: 16px; }
  .card { flex-direction: column; align-items: flex-start; padding: 20px; }

  .result { padding: 20px; }

  .split { grid-template-columns: 1fr 1fr; grid-template-areas: "photo head" "photo body"; column-gap: 64px; row-gap: 28px; align-items: start; }
  .split--flip { grid-template-areas: "head photo" "body photo"; }
  .split__head { grid-area: head; align-self: end; text-align: left; margin: 0; }
  .split__photo { grid-area: photo; align-self: center; }
  .split__body { grid-area: body; justify-items: start; }
  .split__body > .btn { width: auto; }
  .items { grid-template-columns: 1fr 1fr; max-width: none; }
  .pacto { max-width: none; }
  .rev { max-width: none; }
  .rev { padding: 24px; }
  .rev__hint, .quiz legend { text-align: left; justify-content: flex-start; }
  /* split--fill: a foto acompanha a altura do texto ao lado (lados equilibrados) */
  .split--fill { grid-template-rows: auto 1fr; }
  .split--fill .split__photo { align-self: stretch; aspect-ratio: auto; min-height: 320px; }
  .split--fill .split__photo img { position: absolute; inset: 0; }
  #revisao .split__photo img { object-position: 68% 50%; }
  #alinhamento .split__photo img { object-position: 30% 30%; }
  .rev { gap: 16px; }
  .quiz legend { margin-bottom: 8px; }
  .quiz__opts { gap: 6px; }
  .quiz__opts span { min-height: 46px; padding: 10px 14px; }

  .tags { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .visit { grid-template-columns: 460px 1fr; gap: 24px; }
  .visit__map { min-height: 100%; }

  .foot { text-align: left; }
  .foot__grid { grid-template-columns: 1fr auto auto; column-gap: 64px; }
  .foot__grid li { white-space: nowrap; }
  .foot__brand img { width: 150px; margin: 0 0 12px; }
  .foot__social { justify-content: flex-start; }
  .foot__copy { flex-direction: row; justify-content: center; gap: 0; }
  .foot__sep { display: inline; margin: 0 10px; }
}

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