/* ============================================================================
   SAMANTTHA — INSTITUTO ALLURE · Design System
   Mobile first (360–430px como referência primária).
   Paleta derivada dos materiais existentes: preto quente, creme, latão e sálvia.
   Ajuste consciente: os tons de latão e sálvia dos botões foram APROFUNDADOS em
   relação ao material original para atingir contraste AA com texto branco.
   ============================================================================ */

/* ---------- Fontes (self-hosted, sem requisição externa) ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  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: "Playfair Display";
  src: url("/fonts/playfair-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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: "Inter";
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Neutros quentes */
  --ink:        #1B1A18;
  --ink-soft:   #262421;
  --ink-card:   #2E2B27;
  --text:       #24211D;
  --text-muted: #635C51;
  --text-faint: #6B6459;

  /* Superfícies claras */
  --cream:      #F7F5F0;
  --cream-warm: #FDFCFA;
  --cream-card: #F1ECE2;
  --line:       #E4DED2;
  --line-soft:  #EFEAE0;

  /* Latão — decorativo claro / ação profunda (AA com branco) */
  --brass:        #A98A4B;
  --brass-light:  #C7A868;
  --brass-deep:   #7C6026;
  --brass-hover:  #664D18;
  --brass-tint:   #F5EFE1;

  /* Sálvia — ação WhatsApp (AA com branco) */
  --sage:       #327268;
  --sage-hover: #275A52;
  --sage-light: #4F9187;

  /* Superfícies escuras */
  --on-dark:        #F6F3EE;
  --on-dark-muted:  #BDB5A8;

  /* Tipografia */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Ritmo */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gut: 20px;
  --sec-y: 56px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Elevação discreta — sem sombras pesadas */
  --shadow-sm: 0 1px 2px rgba(27, 26, 24, .05);
  --shadow-md: 0 4px 16px rgba(27, 26, 24, .07);

  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Altura da barra fixa mobile — usada para reservar espaço no body */
  --mobilebar-h: 0px;
}

@media (min-width: 768px) { :root { --gut: 32px; --sec-y: 80px; } }
@media (min-width: 1100px) { :root { --gut: 40px; --sec-y: 104px; } }

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream-warm);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Reserva o espaço da barra fixa: ela NUNCA cobre conteúdo */
  padding-bottom: var(--mobilebar-h);
}

/* --mobilebar-h só é medido pelo app.js. Sem JS o valor fica 0 e a barra fixa
   cobre o fim da página no mobile — daí o piso estático abaixo. */
@media (max-width: 999px) {
  body { padding-bottom: max(var(--mobilebar-h), 68px); }
}

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-display); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* Foco visível — requisito de acessibilidade */
:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
  border-radius: 3px;
}
:is(.on-dark, .section--dark, .hero, .cta-final) :focus-visible { outline-color: var(--brass-light); }

.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-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--on-dark);
  padding: 10px 16px; border-radius: var(--radius); font-size: .9rem;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 8px; }

/* ---------- Tipografia de escala ---------- */
h1, .h1 { font-size: clamp(2rem, 6.2vw, 3.4rem); }
h2, .h2 { font-size: clamp(1.55rem, 4.4vw, 2.4rem); }
h3, .h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }
.lead { font-size: clamp(1.02rem, 2.3vw, 1.16rem); color: var(--text-muted); line-height: 1.62; }
.eyebrow {
  font-family: var(--font-body); font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brass-deep);
  margin: 0 0 .9rem;
}
:is(.on-dark, .section--dark, .hero, .cta-final) .eyebrow { color: var(--brass-light); }
.rule { width: 64px; height: 2px; background: var(--brass); border: 0; margin: 1.4rem 0; }
.rule--center { margin-inline: auto; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--sec-y); }
.section--tight { padding-block: calc(var(--sec-y) * .66); }
.section--cream { background: var(--cream); }
.section--card { background: var(--cream-card); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark .lead, .section--dark p { color: var(--on-dark-muted); }
.section-head { max-width: 62ch; margin-bottom: 2.4rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .grid--split { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .85rem 1.5rem;
  font-family: var(--font-body); font-size: .88rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; text-align: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--wa { background: var(--sage); color: #fff; }
.btn--wa:hover { background: var(--sage-hover); }
.btn--brass { background: var(--brass-deep); color: #fff; }
.btn--brass:hover { background: var(--brass-hover); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn--outline:hover { border-color: var(--brass-deep); color: var(--brass-deep); }
/* Contextos escuros: hero, seções escuras e CTA final. Sem isto o botão de
   contorno herda a cor de texto clara e some no fundo preto. */
:is(.on-dark, .section--dark, .hero, .cta-final) .btn--outline { color: var(--on-dark); border-color: rgba(246,243,238,.38); }
:is(.on-dark, .section--dark, .hero, .cta-final) .btn--outline:hover { border-color: var(--brass-light); color: var(--brass-light); background: rgba(246,243,238,.06); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(253,252,250,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; letter-spacing: .01em; color: var(--text); }
.brand__sub { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-deep); margin-top: 3px; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  font-size: .9rem; color: var(--text-muted); text-decoration: none;
  padding: .4rem 0; border-bottom: 1px solid transparent; transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); border-bottom-color: var(--brass); }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; color: var(--text);
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: background .2s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: currentColor;
  transition: transform .22s var(--ease), top .22s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none; border-top: 1px solid var(--line-soft);
  background: var(--cream-warm); padding: 1rem var(--gut) 1.6rem;
}
.mobile-nav[data-open="true"] { display: block; }

/* Ponto de virada do cabeçalho. Declarado DEPOIS de .nav-toggle para vencer
   por ordem de origem — senão o hamburger reaparece no desktop. */
@media (min-width: 1000px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}
.mobile-nav ul { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.mobile-nav a { display: block; padding: .95rem .2rem; text-decoration: none; font-size: 1rem; color: var(--text); }
.mobile-nav a[aria-current="page"] { color: var(--brass-deep); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--on-dark); padding-block: 40px 52px; }
@media (min-width: 900px) { .hero { padding-block: 72px 84px; } }
.hero__grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 0.92fr 1.08fr; gap: 3.5rem; align-items: center; } }
/* No mobile a HEADLINE vem primeiro: a primeira dobra precisa entregar a
   mensagem e o CTA sem exigir rolagem. A foto entra logo abaixo.
   No desktop a foto volta para a coluna da esquerda. */
.hero__media { position: relative; order: 2; }
@media (min-width: 900px) { .hero__media { order: 0; } }
.hero__media img, .hero__media .ph {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); background: var(--ink-card);
}
@media (min-width: 900px) {
  .hero__media img, .hero__media .ph { aspect-ratio: 4 / 5; }
}
.hero h1 { color: var(--on-dark); font-size: clamp(2rem, 6.4vw, 3.35rem); margin-bottom: .6rem; }
.hero__lead { color: var(--on-dark-muted); font-size: clamp(1rem, 2.4vw, 1.14rem); max-width: 46ch; }
.hero__authority {
  margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid rgba(246,243,238,.15);
  font-size: .92rem; color: var(--on-dark-muted); max-width: 52ch;
}
.city-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.city-badges li { margin: 0; }
.city-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .95rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(199,168,104,.42); color: var(--brass-light);
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; text-decoration: none;
  transition: background .18s var(--ease);
}
.city-badge:hover { background: rgba(199,168,104,.12); }

/* ---------- Faixa de posicionamento ---------- */
.stripe { background: var(--brass-tint); border-block: 1px solid var(--line); padding-block: 2.2rem; }
.stripe__text { font-family: var(--font-display); font-size: clamp(1.2rem, 3.2vw, 1.6rem); color: var(--text); max-width: 34ch; margin: 0 0 1.3rem; line-height: 1.32; }
.stripe__pillars { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.stripe__pillars li { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .84rem; letter-spacing: .04em; color: var(--text-muted); text-transform: uppercase; }
.stripe__pillars li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); flex: none; }
@media (min-width: 900px) { .stripe .wrap { display: flex; align-items: center; justify-content: space-between; gap: 3rem; } .stripe__text { margin-bottom: 0; } }

/* ---------- Blocos de resposta direta (GEO / IA) ---------- */
.answer-block {
  border-left: 3px solid var(--brass);
  background: var(--brass-tint);
  padding: 1.15rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
}
.answer-block p { font-size: 1.02rem; color: var(--text); margin: 0; }
.section--dark .answer-block { background: rgba(199,168,104,.09); border-left-color: var(--brass-light); }
:is(.on-dark, .section--dark, .hero, .cta-final) .answer-block p { color: var(--on-dark); }

/* ---------- Cards ---------- */
.card {
  background: var(--cream-warm); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem;
  display: flex; flex-direction: column;
}
.section--cream .card, .section--card .card { background: #fff; }
.card__title { font-size: 1.16rem; margin-bottom: .5rem; }
.card__text { color: var(--text-muted); font-size: .95rem; margin: 0; }
.card__link { margin-top: auto; padding-top: 1.1rem; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-deep); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.card__link:hover { color: var(--brass-hover); }
.card__link::after { content: "→"; transition: transform .18s var(--ease); }
.card__link:hover::after { transform: translateX(3px); }

/* Card de procedimento */
.proc-card { overflow: hidden; padding: 0; }
.proc-card__media { aspect-ratio: 3 / 2; background: var(--cream-card); }
.proc-card__media img, .proc-card__media .ph { width: 100%; height: 100%; object-fit: cover; }
.proc-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }

/* Lista com marcador de latão */
.ticks { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .65rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brass); box-shadow: 0 0 0 3px var(--brass-tint);
}
:is(.on-dark, .section--dark, .hero, .cta-final) .ticks li::before { box-shadow: 0 0 0 3px rgba(199,168,104,.14); }

/* Passos numerados */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2.4rem; } }
.step { display: flex; gap: 1rem; margin: 0; }
.step__n {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--brass);
  line-height: 1; flex: none; width: 2.2rem; padding-top: .1rem;
}
.step__t { font-size: 1.02rem; font-family: var(--font-display); font-weight: 600; margin: 0 0 .25rem; }
.step__d { font-size: .93rem; color: var(--text-muted); margin: 0; }
:is(.on-dark, .section--dark, .hero, .cta-final) .step__d { color: var(--on-dark-muted); }

/* ---------- Avisos / disclaimers ---------- */
.note {
  border: 1px solid var(--line); border-left: 3px solid var(--brass);
  background: var(--cream); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .93rem; color: var(--text-muted); margin: 1.6rem 0;
}
.note strong { color: var(--text); }
.disclaimers { margin-top: 2rem; }
.disclaimers__title { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .8rem; }
.disclaimers ul { list-style: none; padding: 0; margin: 0; }
.disclaimers li { font-size: .88rem; color: var(--text-muted); padding-left: 1.2rem; position: relative; margin-bottom: .6rem; }
.disclaimers li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }

/* ---------- FAQ (details nativo, acessível, sem JS) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; color: var(--text);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-top: .42em;
  border-right: 1.6px solid var(--brass); border-bottom: 1.6px solid var(--brass);
  transform: rotate(45deg); transition: transform .22s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); }
.faq__a { padding: 0 0 1.3rem; color: var(--text-muted); font-size: .96rem; max-width: 72ch; }
.faq__a p { margin: 0; }
:is(.on-dark, .section--dark, .hero, .cta-final) .faq, :is(.on-dark, .section--dark, .hero, .cta-final) .faq__item { border-color: rgba(246,243,238,.14); }
:is(.on-dark, .section--dark, .hero, .cta-final) .faq__q { color: var(--on-dark); }
:is(.on-dark, .section--dark, .hero, .cta-final) .faq__a { color: var(--on-dark-muted); }

/* ---------- Seletor de cidade ---------- */
.city-picker { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .city-picker { grid-template-columns: repeat(2, 1fr); } }
.city-card {
  background: var(--cream-warm); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; display: flex; flex-direction: column;
}
.section--cream .city-card, .section--card .city-card { background: #fff; }
.city-card__city { font-size: 1.3rem; margin-bottom: .2rem; }
.city-card__model { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: .9rem; }
.city-card__addr { font-size: .93rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.city-card .btn { margin-top: auto; }
.city-card__links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .9rem; font-size: .84rem; }
.city-card__links a { color: var(--brass-deep); }

/* Dados NAP */
.nap { list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .95rem; }
.nap li { display: flex; gap: .7rem; margin-bottom: .7rem; color: var(--text-muted); }
.nap svg { width: 17px; height: 17px; flex: none; margin-top: .28em; color: var(--brass-deep); }
.nap strong { color: var(--text); font-weight: 500; }
:is(.on-dark, .section--dark, .hero, .cta-final) .nap li { color: var(--on-dark-muted); }
:is(.on-dark, .section--dark, .hero, .cta-final) .nap strong { color: var(--on-dark); }
:is(.on-dark, .section--dark, .hero, .cta-final) .nap svg { color: var(--brass-light); }

/* ---------- Mapa (fachada — só carrega o iframe ao clicar) ---------- */
.map-facade {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, var(--cream-card) 0 12px, var(--cream) 12px 24px);
  display: flex; align-items: center; justify-content: center;
}
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade__btn {
  position: relative; z-index: 1;
  background: var(--cream-warm); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .8rem 1.4rem; font-family: var(--font-body); font-size: .86rem; font-weight: 500;
  color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: .5rem;
  box-shadow: var(--shadow-sm);
}
.map-facade__btn:hover { border-color: var(--brass-deep); color: var(--brass-deep); }

/* ---------- Blog ---------- */
.post-card { overflow: hidden; padding: 0; }
.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .76rem; color: var(--text-faint); margin-bottom: .7rem; letter-spacing: .04em; }
.post-cat {
  display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass-deep); background: var(--brass-tint); border-radius: var(--radius-pill);
  padding: .28rem .8rem; text-decoration: none;
}
.post-cat:hover { background: #EDE3CD; }
.post-card__title { font-size: 1.14rem; margin-bottom: .5rem; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { color: var(--brass-deep); }

.cat-filter { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.4rem; padding: 0; list-style: none; }
.cat-filter li { margin: 0; }
.cat-filter a {
  display: inline-block; padding: .45rem 1rem; border: 1px solid var(--line);
  border-radius: var(--radius-pill); font-size: .84rem; text-decoration: none; color: var(--text-muted);
}
.cat-filter a:hover, .cat-filter a[aria-current="page"] { border-color: var(--brass-deep); color: var(--brass-deep); background: var(--brass-tint); }

/* Artigo */
.article-body { max-width: 72ch; }
.article-body h2 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); margin-top: 2.4rem; }
.article-body h3 { font-size: clamp(1.08rem, 2.4vw, 1.22rem); margin-top: 1.8rem; color: var(--text); }
.article-body > *:first-child { margin-top: 0; }
.article-body ul, .article-body ol { color: var(--text); }
.article-body li { margin-bottom: .6rem; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center;
  font-size: .84rem; color: var(--text-muted);
  padding: 1.1rem 0; border-block: 1px solid var(--line); margin-bottom: 2rem;
}
.article-author { display: flex; align-items: center; gap: .55rem; }
.article-author strong { color: var(--text); font-weight: 500; }

.breadcrumbs { font-size: .8rem; color: var(--text-faint); margin-bottom: 1.4rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: .4rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brass-deep); }
:is(.on-dark, .section--dark, .hero, .cta-final) .breadcrumbs { color: var(--on-dark-muted); }
:is(.on-dark, .section--dark, .hero, .cta-final) .breadcrumbs a { color: var(--on-dark-muted); }
:is(.on-dark, .section--dark, .hero, .cta-final) .breadcrumbs li + li::before { color: rgba(246,243,238,.3); }

/* ---------- Tabela comparativa ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5rem; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .94rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-body); font-weight: 500; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
td a { color: var(--brass-deep); }

/* ---------- Empty state ---------- */
.empty {
  border: 1px dashed var(--line); border-radius: var(--radius-lg);
  padding: 2.5rem 1.6rem; text-align: center; background: var(--cream);
}
.empty h3 { margin-bottom: .5rem; }
.empty p { color: var(--text-muted); max-width: 52ch; margin-inline: auto; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--ink); color: var(--on-dark); text-align: center; }
.cta-final h2 { color: var(--on-dark); max-width: 22ch; margin-inline: auto; }
.cta-final p { color: var(--on-dark-muted); max-width: 54ch; margin-inline: auto 1.8rem; margin-bottom: 1.8rem; }
.cta-final .btn-row { justify-content: center; }

/* ---------- Ações rápidas (landmark dos CTAs fixos) ---------- */
.quick-actions { display: contents; }

/* ---------- Botão flutuante ---------- */
.wa-float {
  position: fixed; right: 16px; z-index: 80;
  bottom: calc(16px + var(--mobilebar-h));
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--sage); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 14px rgba(27,26,24,.22);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.wa-float:hover { background: var(--sage-hover); transform: translateY(-2px); }
.wa-float svg { width: 27px; height: 27px; }
@media (prefers-reduced-motion: reduce) { .wa-float:hover { transform: none; } }

/* ---------- Barra fixa mobile ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  display: flex; gap: .6rem; padding: .6rem var(--gut) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(253,252,250,.97); border-top: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
}
.mobile-bar .btn { flex: 1; min-height: 46px; padding-inline: .8rem; font-size: .8rem; }
@media (min-width: 1000px) { .mobile-bar { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: 3rem 2rem; font-size: .92rem; }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.6rem; } }
.footer-brand__name { font-family: var(--font-display); font-size: 1.4rem; color: var(--on-dark); margin-bottom: .1rem; }
.footer-brand__sub { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 1rem; }
.footer-brand p { max-width: 38ch; font-size: .9rem; }
.footer-col h3 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); font-family: var(--font-body); font-weight: 500; margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.footer-col ul:last-child { margin-bottom: 0; }
.footer-fam { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); opacity: .55; margin: 0 0 .45rem; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--on-dark-muted); text-decoration: none; }
.footer-col a:hover { color: var(--brass-light); }
.footer-unit { margin-bottom: 1.2rem; }
.footer-unit strong { display: block; color: var(--on-dark); font-weight: 500; margin-bottom: .25rem; }
.footer-unit span { display: block; font-size: .86rem; line-height: 1.5; }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(246,243,238,.12);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .82rem;
}
.footer-bottom a { color: var(--on-dark-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- Placeholder de imagem (asset real pendente) ---------- */
.ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--cream-card), var(--brass-tint));
  color: var(--brass-deep); position: relative;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-display); font-size: .82rem; letter-spacing: .08em;
  text-align: center; padding: 0 1.5rem; opacity: .55;
}
.hero__media .ph { background: linear-gradient(160deg, #2E2B27, #201E1B); color: var(--brass-light); }

/* ---------- Aviso de consentimento ---------- */
/* Modal central: bloqueia a interação até haver uma escolha, para o consentimento
   ser de fato decidido e não ignorado. Aceitar e Recusar têm o mesmo peso. */
.consent {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: rgba(27, 26, 24, .55);
  backdrop-filter: blur(7px) saturate(.9);
  -webkit-backdrop-filter: blur(7px) saturate(.9);
}
.consent[data-visible="true"] { display: flex; }

.consent__box {
  width: 100%; max-width: 460px;
  background: var(--cream-warm); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(27, 26, 24, .28);
  padding: 1.6rem 1.5rem 1.5rem; text-align: center;
  max-height: calc(100dvh - 2.5rem); overflow-y: auto;
}
@media (min-width: 700px) { .consent__box { padding: 2rem 2rem 1.8rem; } }

.consent__title {
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--text); margin: 0 0 .6rem;
}
.consent p { color: var(--text-muted); font-size: .88rem; line-height: 1.6; margin: 0 0 1.3rem; }
.consent__actions { display: flex; flex-direction: column; gap: .55rem; }
@media (min-width: 460px) { .consent__actions { flex-direction: row; } }
.consent__actions .btn { min-height: 46px; flex: 1; font-size: .8rem; }

/* Trava a rolagem do fundo enquanto o modal está aberto. */
html.consent-open, html.consent-open body { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .consent[data-visible="true"] .consent__box { animation: consent-in .32s var(--ease) both; }
  @keyframes consent-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
}

/* ---------- Animação discreta de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* .js só existe se o app.js rodou. Sem ele, nada fica invisível esperando
     um IntersectionObserver que nunca vai disparar. */
  html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
  html.js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Impressão ---------- */
@media print {
  .site-header, .mobile-bar, .wa-float, .consent, .map-facade { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
}

/* ---------- Galeria de resultados ---------- */
/* Os arquivos já saem normalizados em 1080x1080 sobre o fundo do card,
   então `cover` aqui não corta nada — só garante a grade uniforme. */
.grid--results .proc-card__media { aspect-ratio: 1 / 1; background: var(--cream-card); }
.grid--results .proc-card__media img { object-fit: cover; }
/* Legenda com altura previsível: o meta em cima, o texto ancorado embaixo. */
.grid--results .proc-card__body { padding: 1.1rem 1.25rem 1.3rem; gap: .35rem; }
.grid--results .proc-card__body .post-meta { margin: 0; }
.grid--results .proc-card__body .card__text { margin: 0; font-size: .92rem; }

/* .card define display:flex, que vence o display:none padrão de [hidden].
   Sem esta regra o filtro roda e nada some da tela. */
[hidden] { display: none !important; }

/* ---------- Filtro da galeria: chips clicáveis ---------- */
.cat-filter button {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; border: 1px solid var(--line);
  border-radius: var(--radius-pill); font: inherit; font-size: .84rem;
  color: var(--text-muted); background: transparent; cursor: pointer;
}
.cat-filter button:hover { border-color: var(--brass-deep); color: var(--brass-deep); }
.cat-filter button[aria-pressed="true"] {
  border-color: var(--brass-deep); color: var(--brass-deep); background: var(--brass-tint);
}
.cat-filter__n { font-size: .74rem; opacity: .6; font-variant-numeric: tabular-nums; }

/* ---------- Crédito da agência no rodapé ---------- */
.footer-credit { font-size: .8rem; color: var(--on-dark-muted); margin: 0; }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--brass-light); }
