/* Cavallante Tratamentos - one-page. Tokens conforme docs/design-spec.md */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/sourcesans3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --papel: #f6f1e7;
  --papel-2: #ede5d6;
  --superficie: #fbf8f2;
  --tinta: #1f2a26;
  --tinta-2: #55605a;
  --musgo: #2f4a3f;
  --musgo-escuro: #20332b;
  --terracota: #a4472b;
  --terracota-hover: #8a3a22;
  --zap: #1b7a47;
  --ocre: #c9a15b;
  --fio: #d8cdb8;
  --foco: #1d5fd1;
  --erro: #a32020;
  --sucesso: #1f6b43;

  --f-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --t-display: clamp(2.375rem, 1.5rem + 3.9vw, 4.5rem);
  --t-h2: clamp(1.875rem, 1.35rem + 2.2vw, 3rem);
  --t-h3: clamp(1.375rem, 1.2rem + 0.75vw, 1.75rem);
  --t-lead: clamp(1.1875rem, 1.12rem + 0.3vw, 1.375rem);
  --t-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
  --t-small: 0.9375rem;
  --t-eyebrow: 0.8125rem;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 112px;
  --s-10: 160px;

  --r-1: 4px;
  --r-2: 10px;
  --r-arco: 999px 999px 0 0;

  --sh-1: 0 1px 2px rgba(31, 42, 38, 0.08);
  --sh-2: 0 8px 24px rgba(31, 42, 38, 0.14);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 200ms;

  --m: 20px; /* margem lateral */
  --gutter: 16px;
  --header-h: 60px;
  --bar-h: 64px;
  --sec-pad: clamp(72px, 3rem + 6.5vw, 144px);
}
@media (min-width: 600px) {
  :root { --m: 32px; --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --m: 48px; --gutter: 32px; --header-h: 72px; --bar-h: 0px; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  overflow-x: clip;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--f-serif); font-weight: 400; text-wrap: balance; }
h1 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: var(--t-h2); line-height: 1.12; }
h3 { font-size: var(--t-h3); line-height: 1.22; font-weight: 500; }
p { max-width: 62ch; }
.lead { font-size: var(--t-lead); line-height: 1.55; }
.small { font-size: var(--t-small); line-height: 1.5; color: var(--tinta-2); }

.eyebrow {
  font-family: var(--f-sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--musgo);
  margin-bottom: var(--s-4);
  max-width: none;
}

a { color: var(--musgo); }
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease), text-decoration-thickness var(--dur) var(--ease);
}
.link:hover { text-decoration-thickness: 2px; color: var(--terracota); }

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 2px;
}
.on-dark :focus-visible,
.cookie :focus-visible { outline-color: var(--papel); }
.on-dark .btn--primary:focus-visible { outline-color: var(--papel); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: var(--s-3); top: var(--s-3); z-index: 200;
  background: var(--musgo); color: var(--papel); padding: var(--s-3) var(--s-5);
  border-radius: var(--r-2); font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--m), 1240px); margin-inline: auto; }
.section { padding-block: var(--sec-pad); }
.on-dark { background: var(--musgo-escuro); color: var(--papel); }
.on-dark a { color: var(--papel); }
.on-dark .eyebrow { color: var(--ocre); }
.alt { background: var(--papel-2); }

/* Botoes */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 28px;
  border-radius: var(--r-2); border: 1.5px solid transparent;
  font-family: var(--f-sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(0) !important; }
.btn--primary { background: var(--terracota); color: #fff; }
.btn--primary:hover { background: var(--terracota-hover); transform: translateY(-1px); color: #fff; }
.btn--ghost { border-color: var(--musgo); color: var(--musgo); background: transparent; }
.btn--ghost:hover { background: var(--musgo); color: var(--papel); transform: translateY(-1px); }
.on-dark .btn--primary, .on-dark .btn--primary:hover { color: #fff; }
.on-dark .btn--ghost { border-color: var(--papel); color: var(--papel); }
.on-dark .btn--ghost:hover { background: var(--papel); color: var(--musgo-escuro); }
.btn--zap { background: var(--zap); color: #fff; }
.btn--zap:hover { background: #166a3d; color: #fff; }
.btn--sm { min-height: 44px; padding: 0 20px; }
.btn-row { display: flex; flex-direction: column; gap: var(--s-3); }
.btn-row .btn { width: 100%; }
@media (min-width: 600px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row .btn { width: auto; }
}
.ico { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: var(--papel);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--fio); box-shadow: var(--sh-1); }
.header__in { height: 100%; display: flex; align-items: center; gap: var(--s-4); }
.brand {
  display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none;
  color: var(--musgo); margin-right: auto; padding-block: var(--s-2);
}
.brand__name { font-family: var(--f-serif); font-weight: 500; font-size: 1.625rem; letter-spacing: -0.01em; }
.brand__sub { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tinta-2); margin-top: 3px; }
.nav { display: none; }
.nav__list { display: flex; gap: var(--s-6); align-items: center; }
.nav a:not(.btn) {
  color: var(--tinta); text-decoration: none; font-weight: 600; padding: var(--s-3) 0;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1.5px no-repeat;
  transition: background-size var(--dur) var(--ease);
}
.nav a:not(.btn):hover { background-size: 100% 1.5px; }
.header__phone { display: none; font-weight: 600; color: var(--musgo); text-decoration: none; white-space: nowrap; padding: var(--s-3) 0; }
.header__cta { display: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-width: 44px; height: 44px; padding: 0 var(--s-3);
  border: 1.5px solid var(--musgo); border-radius: var(--r-2);
  background: transparent; color: var(--musgo); font-weight: 600; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--musgo); color: var(--papel); }

/* Menu mobile (so com JS; sem JS os links ficam visiveis em linha) */
.mobile-panel {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--papel); padding: var(--s-6) var(--m) var(--s-7);
  overflow-y: auto; display: flex; flex-direction: column; gap: var(--s-6);
  box-shadow: var(--sh-2);
}
.mobile-panel ul { display: flex; flex-direction: column; }
.mobile-panel li a {
  display: block; padding: var(--s-4) 0; border-bottom: 1px solid var(--fio);
  font-family: var(--f-serif); font-size: 1.75rem; line-height: 1.2; color: var(--tinta); text-decoration: none;
}
.mobile-panel .btn-row { margin-top: auto; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .icon-btn { display: none; }
  .mobile-panel { display: none !important; }
}
@media (min-width: 1200px) { .header__phone { display: inline; } }

/* Hero */
.hero { padding-top: calc(var(--header-h) + var(--s-7)); padding-bottom: var(--sec-pad); }
.hero__grid { display: grid; gap: var(--s-7); }
.hero__text > * + * { margin-top: var(--s-5); }
.hero__text .btn-row { margin-top: var(--s-6); }
.trust {
  display: flex; flex-wrap: wrap; gap: var(--s-2) 0; margin-top: var(--s-6);
  font-size: var(--t-small); font-weight: 600; color: var(--tinta-2); max-width: none;
}
.trust span { padding-inline: var(--s-4); border-left: 1px solid var(--fio); }
.trust span:first-child { padding-left: 0; border-left: 0; }
.hero__fig { max-width: 440px; }
.hero__fig .frame { border-radius: var(--r-arco); overflow: hidden; background: var(--papel-2); aspect-ratio: 3 / 4; }
.hero__fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.hero__fig figcaption { margin-top: var(--s-3); }
@media (min-width: 840px) {
  .hero__grid { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--s-6); }
  .hero__fig { max-width: none; margin-right: calc(var(--m) * -1); }
}
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + var(--s-8)); }
  .hero__grid { gap: var(--gutter); }
  .hero__fig { margin-right: calc(var(--m) * -0.75); }
}

/* Reconhecimento */
.recog__grid { display: grid; gap: var(--s-6); }
.recog h2 { font-style: italic; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.12; }
.recog__body > * + * { margin-top: var(--s-5); }
.recog h3 { font-family: var(--f-sans); font-size: 1.0625rem; font-weight: 600; margin-top: var(--s-6); }
.rule-list li { padding: var(--s-3) 0 var(--s-3) var(--s-5); border-top: 1px solid var(--fio); position: relative; }
.rule-list li:last-child { border-bottom: 1px solid var(--fio); }
.rule-list li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 10px; height: 1px; background: var(--musgo); }
@media (min-width: 1024px) {
  .recog__grid { grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
  .recog h2 { grid-column: 2 / 7; }
  .recog__body { grid-column: 7 / 13; padding-top: var(--s-3); }
}

/* O que faz */
.scope__grid { display: grid; gap: var(--s-7); }
.scope__text > * + * { margin-top: var(--s-5); }
.scope__lists { display: grid; gap: var(--s-6); }
.scope__lists h3 { font-size: 1.25rem; margin-bottom: var(--s-4); }
.scope__lists li { padding: var(--s-3) 0; border-top: 1px solid var(--fio); }
@media (min-width: 600px) {
  .scope__lists { grid-template-columns: 1fr 1fr; gap: 0; }
  .scope__lists > div { padding-inline: var(--s-5); }
  .scope__lists > div:first-child { padding-left: 0; }
  .scope__lists > div + div { border-left: 1px solid var(--fio); padding-right: 0; }
}
@media (min-width: 1024px) {
  .scope__grid { grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
  .scope__text { grid-column: 1 / 6; }
  .scope__lists { grid-column: 6 / 13; }
}

/* Unidades */
.units__head { max-width: 760px; margin-bottom: var(--s-8); }
.unit--a { padding-bottom: var(--sec-pad); }
.units__head h2 { margin-bottom: var(--s-4); }
.unit__label { font-size: var(--t-eyebrow); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--terracota); margin-bottom: var(--s-3); }
.unit__text > * + * { margin-top: var(--s-4); }
.unit__text h3 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); font-weight: 400; }
.unit__main { margin-bottom: var(--s-5); }
.unit__main .ph { aspect-ratio: 4 / 3; }

.ph { position: relative; background: var(--papel-2); overflow: hidden; display: block; width: 100%; }
.alt .ph { background: var(--fio); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.zoom::after {
  content: "Ampliar"; position: absolute; right: var(--s-3); bottom: var(--s-3);
  background: var(--papel); color: var(--tinta); font-size: 0.8125rem; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-1);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
@media (hover: none) { .zoom::after { opacity: 1; } }
figcaption { font-size: var(--t-small); line-height: 1.45; color: var(--tinta-2); font-style: italic; margin-top: var(--s-2); }
.unit__main figcaption { margin-top: var(--s-3); }

.gal-wrap { margin-top: var(--s-6); }
.gal {
  display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--s-2); scrollbar-width: thin;
}
.gal > figure { flex: 0 0 78%; scroll-snap-align: start; }
.gal .ph--34 { aspect-ratio: 3 / 4; }
.gal .ph--43 { aspect-ratio: 4 / 3; }
.gal-nav { display: none; gap: var(--s-2); margin-top: var(--s-3); }
.js .gal-nav { display: flex; }
.gal-nav button {
  width: 48px; height: 48px; border-radius: var(--r-2); border: 1.5px solid var(--musgo);
  background: transparent; color: var(--musgo); cursor: pointer; display: grid; place-items: center;
}
.gal-nav button:hover { background: var(--musgo); color: var(--papel); }
.gal-nav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.units__note { margin-top: var(--s-8); border-top: 1px solid var(--fio); padding-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.units__note p { color: var(--tinta-2); font-size: var(--t-small); }
.units__note .link { font-weight: 600; font-size: 1.0625rem; padding: var(--s-2) 0; }

@media (min-width: 600px) {
  .gal > figure { flex-basis: 46%; }
}
@media (min-width: 1024px) {
  .unit__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; }
  .unit__main { grid-column: 1 / 8; grid-row: 1; margin: 0; }
  .unit__text { grid-column: 8 / 13; grid-row: 1; margin-left: calc(var(--s-7) * -1); padding: var(--s-7) 0 var(--s-6) var(--s-7); background: var(--papel); position: relative; z-index: 1; }
  .unit--b .unit__text { background: var(--papel-2); }
  .unit--b .unit__main { grid-column: 6 / 13; }
  .unit--b .unit__text { grid-column: 1 / 6; margin-left: 0; margin-right: calc(var(--s-7) * -1); padding: var(--s-7) var(--s-7) var(--s-6) 0; text-align: left; }
  .unit--b .unit__main { order: 2; }
  .gal-wrap { grid-column: 1 / -1; margin-top: var(--s-7); }
  .gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; overflow: visible; }
  .gal > figure { flex: none; }
  .gal > figure:nth-child(1) { grid-column: 2 / 6; }
  .gal > figure:nth-child(2) { grid-column: 7 / 12; }
  .unit--b .gal > figure:nth-child(1) { grid-column: 1 / 6; }
  .unit--b .gal > figure:nth-child(2) { grid-column: 7 / 12; }
  .gal > figure:nth-child(n+3) { grid-column: span 5; }
  .js .gal-nav { display: none; }
}
#unidades { padding-bottom: 0; }

/* Como funciona */
.steps__grid { display: grid; gap: var(--s-7); }
.steps ol { counter-reset: s; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-4); padding: var(--s-6) 0; border-top: 1px solid var(--fio); }
.step:last-child { border-bottom: 1px solid var(--fio); }
.step__n { font-family: var(--f-serif); font-variant-numeric: lining-nums; font-size: 3.25rem; line-height: 1; color: var(--ocre); }
.step h3 { margin-bottom: var(--s-2); }
@media (min-width: 1024px) {
  .steps__grid { grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
  .steps h2 { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + var(--s-6)); }
  .steps ol { grid-column: 6 / 13; }
  .step { grid-template-columns: 96px 1fr; padding: var(--s-7) 0; }
  .step__n { font-size: 4.5rem; }
}

/* Estrutura */
.estrutura__pano { margin-bottom: var(--s-7); }
.estrutura__pano .ph { aspect-ratio: 4 / 3; }
.estrutura__pano figcaption { color: #cfd6cf; }
.estrutura h2 { margin-bottom: var(--s-6); }
.defs { display: grid; gap: 0; }
.defs div { padding: var(--s-4) 0; border-top: 1px solid rgba(246, 241, 231, 0.25); }
.defs dt { font-family: var(--f-serif); font-weight: 500; font-size: var(--t-h3); line-height: 1.2; }
.defs dd { margin-top: var(--s-1); color: #dfe3dc; }
@media (min-width: 840px) {
  .estrutura__pano .ph { aspect-ratio: auto; height: 420px; }
  .defs { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
}

/* FAQ */
.faq__grid { display: grid; gap: var(--s-6); }
.faq__item { border-top: 1px solid var(--fio); }
.faq__item:last-child { border-bottom: 1px solid var(--fio); }
.faq__item h3 { font-size: inherit; font-weight: inherit; }
.faq__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: var(--s-5) var(--s-2) var(--s-5) 0; min-height: 56px;
  font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.375rem); line-height: 1.25;
  transition: background-color var(--dur) var(--ease);
}
.faq__btn:hover { background: var(--papel-2); }
.faq__sign { position: relative; width: 20px; height: 20px; flex: none; }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px;
  background: var(--terracota); transition: transform var(--dur) var(--ease);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__sign::after { transform: rotate(0deg); }
.faq__panel > div { overflow: hidden; }
.faq__panel p { padding: 0 var(--s-2) var(--s-5) 0; }
.js .faq__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--dur) var(--ease), visibility var(--dur); }
.js .faq__panel.is-open { grid-template-rows: 1fr; visibility: visible; }
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
  .faq h2 { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + var(--s-6)); }
  .faq__list { grid-column: 5 / 13; }
}

/* Contato */
.contato__grid { display: grid; gap: var(--s-7); }
.contato h2 { margin-bottom: var(--s-5); }
.contato .lead { color: #e6e9e2; }
.contato__side > * + * { margin-top: var(--s-5); }
.contato__side .btn-row .btn { width: 100%; }
.contato__side p { color: #e6e9e2; }
.mail-note { font-size: var(--t-small); }
@media (min-width: 1024px) {
  .contato__grid { grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }
  .contato__text { grid-column: 1 / 7; }
  .contato__side { grid-column: 8 / 13; }
}
.contato__side .btn-row { flex-direction: column; }

/* Rodape */
.footer { background: var(--musgo-escuro); color: var(--papel); padding-block: var(--s-8) var(--s-7); border-top: 1px solid rgba(246, 241, 231, 0.15); }
.footer a { color: var(--papel); }
.footer__grid { display: grid; gap: var(--s-7); }
.footer .brand { color: var(--papel); margin: 0 0 var(--s-4); }
.footer .brand__sub { color: #cfd6cf; }
.footer p { color: #dfe3dc; font-size: var(--t-small); line-height: 1.6; }
.footer h2 { font-family: var(--f-sans); font-size: var(--t-eyebrow); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ocre); margin-bottom: var(--s-3); }
.footer li a, .footer .linklike { display: inline-block; padding: var(--s-2) 0; }
.linklike { background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: var(--papel); padding: 0; font-size: 1rem; }
.footer__legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(246, 241, 231, 0.2); }
@media (min-width: 840px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: var(--s-7); }
}

/* Barra / botao WhatsApp */
.fab { display: none; }
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom, 0px));
  background: var(--papel); border-top: 1px solid var(--fio);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
  transition: transform var(--dur) var(--ease);
}
.bar .btn { min-height: 48px; padding: 0 12px; }
.bar.is-off { transform: translateY(110%); }
@media (min-width: 1024px) {
  .bar { display: none; }
  .fab {
    position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: var(--s-2);
    height: 56px; padding: 0 24px; border-radius: 999px; background: var(--zap); color: #fff;
    font-weight: 600; text-decoration: none; box-shadow: var(--sh-2);
    transition: background-color var(--dur) var(--ease), opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .fab:hover { background: #166a3d; color: #fff; }
  .fab.is-off { opacity: 0; pointer-events: none; transform: translateY(8px); }
}

/* Cookies */
.cookie {
  position: fixed; z-index: 95; left: var(--s-3); right: var(--s-3);
  bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + var(--s-3));
  background: var(--superficie); border: 1px solid var(--fio); border-radius: var(--r-2); box-shadow: var(--sh-2);
  padding: var(--s-5); color: var(--tinta);
}
.cookie p { font-size: var(--t-small); line-height: 1.55; margin-bottom: var(--s-4); max-width: none; }
.cookie__btns { display: grid; gap: var(--s-2); }
.cookie .btn { min-height: 48px; padding: 0 16px; background: transparent; border-color: var(--musgo); color: var(--musgo); }
.cookie .btn:hover { background: var(--musgo); color: var(--papel); transform: none; }
.cookie :focus-visible { outline-color: var(--foco); }
@media (min-width: 600px) { .cookie__btns { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .cookie { left: var(--s-5); right: auto; bottom: var(--s-5); width: 400px; }
}

/* Lightbox */
.lb { border: 0; padding: 0; background: var(--musgo-escuro); color: var(--papel); width: min(96vw, 1100px); max-height: 94vh; border-radius: var(--r-2); overflow: hidden; }
.lb::backdrop { background: rgba(20, 30, 26, 0.82); }
.lb__in { display: grid; grid-template-rows: 1fr auto; max-height: 94vh; }
.lb__img { display: grid; place-items: center; padding: var(--s-4); min-height: 0; }
.lb__img img { max-height: calc(94vh - 150px); width: auto; max-width: 100%; object-fit: contain; }
.lb__bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4) var(--s-4); border-top: 1px solid rgba(246, 241, 231, 0.2); }
.lb__cap { margin-right: auto; font-size: var(--t-small); color: #dfe3dc; font-style: italic; margin-top: 0; }
.lb button { min-width: 48px; height: 48px; padding: 0 var(--s-4); border-radius: var(--r-2); border: 1.5px solid var(--papel); background: transparent; color: var(--papel); font-weight: 600; cursor: pointer; }
.lb button:hover { background: var(--papel); color: var(--musgo-escuro); }
.lb :focus-visible { outline-color: var(--papel); }

/* Politica de privacidade */
.doc { padding-top: calc(var(--header-h) + var(--s-8)); padding-bottom: var(--sec-pad); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); margin-bottom: var(--s-5); }
.doc h2 { font-size: var(--t-h3); font-weight: 500; margin: var(--s-7) 0 var(--s-3); }
.doc p + p, .doc ul { margin-top: var(--s-3); }
.doc ul { list-style: disc; padding-left: var(--s-5); }
.draft { border: 1.5px solid var(--terracota); border-radius: var(--r-2); padding: var(--s-4) var(--s-5); background: var(--superficie); margin-bottom: var(--s-6); max-width: none; }

/* Movimento */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    transition-property: color, background-color, border-color, outline-color !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none !important; }
  .js .faq__panel { transition: none !important; }
}
