/* ==========================================================================
   Dra. Maria Letícia — Planejamento Previdenciário
   Paleta tirada das fotos: fundo creme, arco pêssego, blazer preto, terracota.
   ========================================================================== */

/* Fontes hospedadas no próprio site: nenhum dado do visitante vai para terceiros */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-opsz-normal.woff2") format("woff2");
}

:root {
  --cream: #fbf5ee;
  --sand: #f3e7d8;
  --peach: #ecc9a6;
  --terracotta: #b04e3a;
  --terracotta-dark: #933d2c;
  --gold: #b88a4c;
  --star: #d99a2b;
  --ink: #1d1613;
  --ink-soft: #2b221d;
  --text: #3d312b;
  --muted: #75655b;
  --line: #e4d5c3;
  --white: #fffdfa;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 20px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* permite animar a abertura das dúvidas até a altura automática */
  interpolate-size: allow-keywords;
}

/* transição suave entre a página inicial e a política de privacidade */
@view-transition { navigation: auto; }

*,
*::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(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* corta qualquer sobra lateral do conteúdo; "clip" não atrapalha os elementos fixos no topo */
main { overflow-x: clip; }

img, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.25; }

em { font-style: italic; color: var(--terracotta); }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}

.text-link {
  color: var(--terracotta);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--terracotta) 35%, transparent);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: currentColor; }

/* Botões ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 1rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn .icon-arrow { width: 18px; height: 18px; transition: translate 0.3s var(--ease); }
.btn:hover .icon-arrow { translate: 4px 0; }

.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  box-shadow: 0 14px 28px -14px rgb(176 78 58 / 0.7);
}
/* brilho que atravessa o botão no hover */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.24) 50%, transparent 65%);
  translate: -120% 0;
  transition: translate 0.8s var(--ease);
}
.btn-primary:hover::after { translate: 120% 0; }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { padding: 12px 20px; font-size: 0.92rem; }

/* Estrelas ---------------------------------------------------------------- */

.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 15px; height: 15px; }
.stars-lg svg { width: 22px; height: 22px; }

/* Barra de progresso da rolagem ------------------------------------------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 2px;
  background: var(--terracotta);
  transform-origin: left;
  scale: var(--p, 0) 1;
  pointer-events: none;
}

/* Cabeçalho --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height 0.35s var(--ease);
}
.site-header.is-scrolled .header-inner { height: calc(var(--header-h) - 12px); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 34px; height: 38px; color: var(--terracotta); flex: none; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font: 500 1.12rem/1.15 var(--serif); letter-spacing: -0.01em; }
.brand-text small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.site-nav a:not(.btn) {
  position: relative;
  padding-block: 6px;
  font-size: 0.94rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--terracotta);
  transform-origin: left;
  scale: 0 1;
  transition: scale 0.35s var(--ease);
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="true"] { color: var(--terracotta); }
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="true"]::after { scale: 1 1; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 7px auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* Hero -------------------------------------------------------------------- */

.hero { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 104px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

/* o h1 leva a linha pequena (palavra-chave para o Google) e a frase grande */
.hero-heading .eyebrow { display: block; font-family: var(--sans); line-height: 1.5; letter-spacing: 0.16em; }
.hero-title { display: block; }

.hero-copy .lead { margin-top: 26px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.3s var(--ease);
}
.rating-chip strong { color: var(--ink); }
.rating-chip:hover { border-color: var(--star); transform: translateY(-2px); }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 14px clamp(24px, 3.5vw, 48px);
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: grid; gap: 2px; }
.hero-facts strong { font: 500 1.02rem/1.3 var(--serif); color: var(--ink); }
.hero-facts span { font-size: 0.84rem; color: var(--muted); }

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}

/* o mesmo arco de luz das fotos, repetido atrás da moldura */
.halo {
  position: absolute;
  inset: -7% -9% 0;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(ellipse at 50% 35%, #f6dcb9 0%, var(--peach) 45%, transparent 72%);
  opacity: 0.75;
  transform-origin: 50% 100%;
}

.arch {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--sand);
}
.arch picture { width: 100%; height: 100%; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* a foto do topo fica um pouco maior que a moldura para o efeito de profundidade ao rolar */
.hero .arch img { scale: 1.08; translate: 0 var(--py, 0px); will-change: translate; }

.name-tag {
  position: absolute;
  left: -18px;
  bottom: 36px;
  display: grid;
  gap: 2px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgb(29 22 19 / 0.35);
}
.name-tag strong { font: 500 1.05rem/1.2 var(--serif); color: var(--ink); }
.name-tag span { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); }

/* Frase ------------------------------------------------------------------- */

.statement {
  padding-block: clamp(64px, 9vw, 120px);
  border-block: 1px solid var(--line);
}
.statement p {
  max-width: 30ch;
  margin-inline: auto;
  font: 400 clamp(1.6rem, 3.4vw, 2.7rem)/1.2 var(--serif);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}

/* Seções ------------------------------------------------------------------ */

.section { padding-block: var(--section); }
.section-sand { background: var(--sand); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 + p { margin-top: 18px; color: var(--muted); }

/* Benefícios e serviços: índice em abas ---------------------------------- */

.benefits {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}

.benefits-tabs { position: relative; display: grid; align-content: start; gap: 6px; }

.benefit-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: none;
  font: 500 1rem/1.3 var(--sans);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.benefit-tab:hover { background: var(--white); border-color: var(--line); }
.benefit-tab[aria-selected="true"] { background: var(--terracotta); border-color: var(--terracotta); color: var(--white); }

.benefit-icon {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--terracotta);
  transition: color 0.25s, transform 0.4s var(--ease);
}
.benefit-tab:hover .benefit-icon { transform: scale(1.1) rotate(-4deg); }
.benefit-tab[aria-selected="true"] .benefit-icon { color: var(--peach); }

.benefit-tab-label { flex: 1; }
.benefit-tab-count {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sand);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--muted);
  transition: background-color 0.25s, color 0.25s;
}
.benefit-tab[aria-selected="true"] .benefit-tab-count { background: rgb(255 253 250 / 0.18); color: var(--white); }

.benefit-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
html:not(.js) .benefit-panel + .benefit-panel { margin-top: 20px; } /* sem JS os painéis aparecem empilhados */
.benefit-panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.benefit-intro { margin-top: 10px; max-width: 54ch; color: var(--muted); }

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 28px;
}
.benefit-list li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.benefit-list li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 6px;
  width: 6px;
  height: 11px;
  border-right: 1.6px solid var(--terracotta);
  border-bottom: 1.6px solid var(--terracotta);
  rotate: 45deg;
}

.benefit-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: auto;
  padding-top: 32px;
}

/* Exterior ---------------------------------------------------------------- */

.section-dark { background: var(--ink); color: rgb(251 245 238 / 0.72); }
.section-dark h3 { color: var(--cream); }
.section-dark .eyebrow { color: var(--peach); }
.section-dark .lead { color: rgb(251 245 238 / 0.72); }

.exterior-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}

.pull-quote {
  margin-bottom: 28px;
  font: italic 400 clamp(1.9rem, 3.6vw, 3rem)/1.15 var(--serif);
  letter-spacing: -0.02em;
  color: var(--cream);
  text-wrap: balance;
}

.countries { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.countries li {
  padding: 8px 18px;
  border: 1px solid rgb(251 245 238 / 0.22);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--cream);
}

.exterior-item { padding-block: 24px; border-top: 1px solid rgb(251 245 238 / 0.14); }
.exterior-item:first-child { padding-top: 0; border-top: 0; }
.exterior-item p { margin-top: 6px; font-size: 0.98rem; }

.fine-print {
  padding-top: 24px;
  border-top: 1px solid rgb(251 245 238 / 0.14);
  font-size: 0.86rem;
  color: rgb(251 245 238 / 0.5);
}

/* Mitos ------------------------------------------------------------------- */

.myths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
}
.myth { padding-block: 32px; border-top: 1px solid var(--line); }
.myth-quote {
  font: italic 400 clamp(1.3rem, 2vw, 1.6rem)/1.25 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.myth-answer { margin-top: 14px; color: var(--muted); }
.myth-answer::before {
  content: "Na prática";
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* Como funciona ----------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.step { position: relative; padding-top: 24px; }
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
}
.step-num {
  display: block;
  margin-bottom: 28px;
  font: 400 0.95rem/1 var(--serif);
  font-variant-numeric: tabular-nums;
  color: var(--terracotta);
}
.step p { margin-top: 10px; font-size: 0.98rem; color: var(--muted); }

/* Quem atende ------------------------------------------------------------- */

.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
}
.person {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: end;
}
.arch-sm { border-radius: 999px 999px 16px 16px; }
.arch-sm img { transition: scale 0.8s var(--ease); }
.person:hover .arch-sm img { scale: 1.06; }
.person-role {
  margin: 6px 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.person-body h3 { font-size: 1.6rem; }
.person-body p:not(.person-role) { color: var(--muted); font-size: 0.98rem; }
.person-body .text-link { display: inline-block; margin-top: 14px; font-size: 0.95rem; }

/* Nota do Google ---------------------------------------------------------- */

.rating {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 88px);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + 32px);
}
.rating-score { display: grid; justify-items: center; gap: 10px; }
.rating-num {
  font: 400 clamp(3.4rem, 6vw, 4.6rem)/0.9 var(--serif);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.rating-text h3 { font-size: 1.5rem; }
.rating-text p { margin-top: 8px; color: var(--muted); max-width: 46ch; }
.rating-text strong { color: var(--ink); font-weight: 600; }
.rating-text small { display: block; margin-top: 10px; font-size: 0.8rem; color: var(--muted); opacity: 0.8; }

/* Dúvidas ----------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }

.faq details { border-top: 1px solid rgb(29 22 19 / 0.16); }
.faq details:last-child { border-bottom: 1px solid rgb(29 22 19 / 0.16); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font: 400 1.22rem/1.3 var(--serif);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq summary:hover { color: var(--terracotta); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--terracotta);
  border-bottom: 1.5px solid var(--terracotta);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq details p { padding: 0 36px 26px 0; color: var(--muted); }

/* abre e fecha com altura animada (navegadores sem suporte abrem direto) */
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size 0.45s var(--ease), opacity 0.45s, content-visibility 0.45s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; opacity: 1; }

/* Contato ----------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: stretch;
}
.contact-grid .lead { margin: 20px 0 32px; }

.privacy-note { margin-top: 16px; max-width: 46ch; font-size: 0.84rem; color: var(--muted); }

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.contact-list > div:nth-child(-n + 2) { grid-column: 1 / -1; }
.contact-list dt {
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list dd { color: var(--ink); }

.map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  /* ruas estilizadas enquanto o mapa de verdade não é carregado */
  background:
    repeating-linear-gradient(28deg, transparent 0 58px, rgb(255 253 250 / 0.75) 58px 64px),
    repeating-linear-gradient(118deg, transparent 0 84px, rgb(255 253 250 / 0.75) 84px 90px),
    var(--sand);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: sepia(0.18) saturate(0.85);
  animation: fade 0.6s both;
}
.map-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  min-height: inherit;
  height: 100%;
  padding: 32px;
  text-align: center;
}
.map-pin { width: 40px; height: 40px; color: var(--terracotta); animation: pin 2.6s var(--ease) infinite; }
.map-address { font: 400 1.35rem/1.25 var(--serif); color: var(--ink); }
.map-address span { font: 400 0.92rem/1.4 var(--sans); color: var(--muted); }
.map-placeholder small { max-width: 30ch; font-size: 0.78rem; color: var(--muted); }

/* Rodapé ------------------------------------------------------------------ */

.site-footer {
  padding-block: 48px 110px;
  background: var(--ink);
  color: rgb(251 245 238 / 0.6);
  font-size: 0.88rem;
}
.footer-inner { display: grid; gap: 22px; }
.footer-brand { font: 400 1.3rem/1.2 var(--serif); color: var(--cream); margin-bottom: 4px; }
.footer-brand span { color: rgb(251 245 238 / 0.5); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; }
.footer-contact a {
  color: rgb(251 245 238 / 0.85);
  text-decoration: underline;
  text-decoration-color: rgb(251 245 238 / 0.25);
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.footer-contact a:hover { color: var(--cream); text-decoration-color: currentColor; }
.footer-contact span { color: rgb(251 245 238 / 0.35); }
.footer-note { max-width: 72ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 22px;
  border-top: 1px solid rgb(251 245 238 / 0.14);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a,
.footer-links button {
  padding: 0;
  border: 0;
  background: none;
  color: rgb(251 245 238 / 0.8);
  text-decoration: underline;
  text-decoration-color: rgb(251 245 238 / 0.3);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--cream); text-decoration-color: currentColor; }

/* WhatsApp flutuante ------------------------------------------------------ */

.fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1faa59;
  color: #fff;
  box-shadow: 0 14px 30px -10px rgb(29 22 19 / 0.5);
  transition: transform 0.3s var(--ease);
}
.fab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: inherit;
  animation: fab-pulse 2.8s ease-out 2.4s infinite;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; }

/* Páginas de texto (política de privacidade, 404) ------------------------- */

.legal { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.legal-inner { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.legal-meta { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.legal h2 { margin: 52px 0 14px; font-size: 1.55rem; }
.legal h3 { margin: 28px 0 8px; font-size: 1.15rem; }
.legal p + p { margin-top: 14px; }
.legal ul { display: grid; gap: 8px; margin: 14px 0; padding-left: 22px; list-style: disc; }
.legal li::marker { color: var(--terracotta); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .table-wrap { margin: 18px 0; overflow-x: auto; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.93rem; }
.legal th,
.legal td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal .btn { margin-top: 18px; }

.not-found { min-height: 62vh; display: grid; align-content: center; justify-items: start; gap: 20px; }

/* Cookies: aviso e preferências ------------------------------------------- */

/* barra na base da tela: não cobre os botões de contato do topo */
.cc-banner {
  position: fixed;
  inset: auto 12px clamp(12px, 2vw, 20px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px 32px;
  max-width: 1040px;
  margin-inline: auto;
  padding: 18px 20px 18px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 60px -24px rgb(29 22 19 / 0.45);
  animation: cc-in 0.7s var(--ease) 0.6s both;
}
.cc-banner.is-leaving { animation: cc-out 0.35s ease both; }
.cc-text { flex: 1 1 0; min-width: 0; }
.cc-banner h2 { font-size: 1.1rem; letter-spacing: -0.01em; }
.cc-banner p { margin-top: 4px; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.cc-actions { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 10px; }
.cc-actions .btn { padding: 13px 20px; font-size: 0.9rem; }
.cc-link {
  margin-right: 8px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.cc-link:hover { color: var(--ink); }

.cc-dialog {
  width: min(580px, calc(100vw - 24px));
  max-height: min(88vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgb(29 22 19 / 0.6);
}
.cc-dialog[open] { animation: cc-in 0.45s var(--ease) both; }
.cc-dialog::backdrop { background: rgb(29 22 19 / 0.55); backdrop-filter: blur(3px); }
.cc-body { padding: clamp(22px, 4vw, 32px); }
.cc-body > h2 { font-size: 1.6rem; }
.cc-body > p { margin: 10px 0 20px; font-size: 0.92rem; color: var(--muted); }
.cc-cat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 20px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.cc-cat h3 { font: 600 1rem/1.3 var(--sans); letter-spacing: 0; }
.cc-cat p { grid-column: 1; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.cc-switch { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; gap: 4px; font-size: 0.72rem; color: var(--muted); }
.cc-switch input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 46px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: #cfc1b0;
  cursor: pointer;
  transition: background-color 0.25s;
}
.cc-switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: translate 0.25s var(--ease);
}
.cc-switch input:checked { background: var(--terracotta); }
.cc-switch input:checked::after { translate: 20px 0; }
.cc-switch input:disabled { opacity: 0.55; cursor: not-allowed; }
.cc-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.cc-footer .btn { flex: 1 1 auto; padding: 13px 18px; font-size: 0.9rem; }

/* ==========================================================================
   Animações
   ========================================================================== */

@keyframes fade { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; translate: 0 24px; } }
@keyframes arch-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes img-in { from { scale: 1.3; } to { scale: 1.08; } }
@keyframes halo-in { from { opacity: 0; scale: 0.8; } }
@keyframes halo-breathe { to { scale: 1.05; } }
@keyframes tag-in { from { opacity: 0; translate: 0 18px; scale: 0.92; } }
@keyframes tag-float { to { translate: 0 -7px; } }
@keyframes fab-in { from { opacity: 0; scale: 0.4; } }
@keyframes fab-pulse { 0% { scale: 1; opacity: 0.55; } 70%, 100% { scale: 1.75; opacity: 0; } }
@keyframes pin { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes cc-in { from { opacity: 0; translate: 0 24px; } }
@keyframes cc-out { to { opacity: 0; translate: 0 16px; } }
@keyframes show { to { visibility: visible; } }

/* Entrada do topo, em sequência */
.js .hero-in { animation: fade-up 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 150ms); }
.js .hero .arch { animation: arch-in 1.3s var(--ease) both; }
.js .hero .arch img { animation: img-in 2s var(--ease) both; }
.js .halo { animation: halo-in 1.6s var(--ease) 0.2s both, halo-breathe 7s ease-in-out 1.8s infinite alternate; }
.js .name-tag { animation: tag-in 0.8s var(--ease) 0.9s both, tag-float 5s ease-in-out 1.7s infinite alternate; }
.js .fab { animation: fab-in 0.6s var(--ease) 1.4s both; }

/* Títulos que sobem palavra por palavra (o JS divide o texto em .word) */
.word {
  display: inline-block;
  overflow: hidden;
  overflow: clip;
  vertical-align: top;
  /* folga para não cortar cedilhas, descendentes e o itálico */
  padding: 0.14em 0.05em;
  margin: -0.14em -0.05em;
}
.word-inner { display: inline-block; }
.js [data-split] .word-inner { translate: 0 118%; }
.js [data-split].is-in .word-inner {
  translate: 0 0;
  transition: translate 1s var(--ease);
  transition-delay: calc(var(--w, 0) * 60ms + 120ms);
}
/* evita o título piscar antes de o JS dividir o texto; aparece sozinho se o JS falhar */
.js [data-split]:not(.is-split) { visibility: hidden; animation: show 0s 1.5s forwards; }

/* Frase que "acende" conforme a rolagem */
/* antes de acender, um tom mais claro mas ainda legível (contraste ≥ 3:1 para texto grande) */
.js [data-scrub] .sw { color: #958478; transition: color 0.4s ease; }
.js [data-scrub] em .sw { color: #b97767; }
.js [data-scrub] .sw.on { color: inherit; }

/* Entrada ao rolar — só esconde quando o JS está ativo */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  --rd: calc(var(--i, 0) * 90ms);
  transition:
    opacity 0.9s var(--ease) var(--rd),
    translate 0.9s var(--ease) var(--rd),
    scale 0.9s var(--ease) var(--rd),
    transform 0.35s var(--ease),
    border-color 0.3s,
    box-shadow 0.35s;
}
.js .reveal[data-reveal="right"] { translate: 44px 0; }
.js .reveal[data-reveal="left"] { translate: -44px 0; }
.js .reveal[data-reveal="zoom"] { translate: 0 0; scale: 0.8; }
.js .reveal.is-visible { opacity: 1; translate: 0 0; scale: 1; }

/* Ícones das abas se desenham quando o bloco aparece */
.js .benefit-icon path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1.01;
  transition: stroke-dashoffset 1.4s var(--ease) calc(var(--t, 0) * 80ms + 300ms);
}
.js .benefits.is-visible .benefit-icon path { stroke-dashoffset: 0; }

/* Painel novo entra ao trocar de aba */
.js .benefit-panel.is-entering { animation: fade-up 0.5s var(--ease) both; }

/* Linha de cada passo cresce da esquerda */
.js .step::before { scale: 0 1; transition: scale 1.1s var(--ease) calc(var(--i, 0) * 150ms + 150ms); }
.js .step.is-visible::before { scale: 1 1; }

/* Estrelas da nota aparecem uma a uma */
.js .rating .stars svg {
  opacity: 0.2;
  scale: 0.5;
  transition: opacity 0.4s, scale 0.6s cubic-bezier(0.3, 1.7, 0.5, 1);
  transition-delay: calc(var(--s, 0) * 120ms + 350ms);
}
.rating .stars svg:nth-child(2) { --s: 1; }
.rating .stars svg:nth-child(3) { --s: 2; }
.rating .stars svg:nth-child(4) { --s: 3; }
.rating .stars svg:nth-child(5) { --s: 4; }
.js .rating.is-visible .stars svg { opacity: 1; scale: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal,
  .js [data-split] .word-inner { opacity: 1; translate: 0 0; scale: 1; }
  .js [data-scrub] .sw { color: inherit; }
  .js .benefit-icon path { stroke-dashoffset: 0; }
  .js .step::before { scale: 1 1; }
  .js .rating .stars svg { opacity: 1; scale: 1; }
  .hero .arch img { translate: 0 0; }
  .btn:hover, .fab:hover, .rating-chip:hover { transform: none; }
  .benefit-tab:hover .benefit-icon { transform: none; }
}

/* Responsivo -------------------------------------------------------------- */

@media (max-width: 1020px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgb(29 22 19 / 0.3);
    visibility: hidden;
    opacity: 0;
    translate: 0 -10px;
    transition: opacity 0.3s, translate 0.35s var(--ease), visibility 0s 0.35s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; translate: 0 0; transition-delay: 0s; }
  .site-nav a:not(.btn) { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 20px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .team { grid-template-columns: 1fr; }
  .rating { grid-template-columns: auto minmax(0, 1fr); }
  .rating .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 860px) {
  .hero-grid,
  .exterior-grid,
  .faq-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-visual { width: min(100%, 380px); order: -1; }
  .name-tag { left: 0; bottom: 24px; }
  .hero-facts { grid-template-columns: 1fr; }

  .faq-grid .section-head { position: static; }
  .myths { grid-template-columns: 1fr; }

  /* celular/tablet: todas as categorias à vista, em grade — nada escondido para o lado */
  .benefits { grid-template-columns: 1fr; gap: 16px; }
  .benefits-tabs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .benefit-tab {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 88px;
    padding: 14px;
    border-color: var(--line);
    background: var(--white);
    font-size: 0.92rem;
    line-height: 1.25;
  }
  .benefit-tab-label { flex: none; }
  .benefit-icon { width: 22px; height: 22px; }
  .benefit-tab-count { display: none; }

  /* nenhum elemento animado pode alargar a página (no iPhone isso encolhe o site inteiro) */
  .js .reveal[data-reveal="right"],
  .js .reveal[data-reveal="left"] { translate: 0 28px; }
  .map { min-height: 340px; }
}

@media (max-width: 600px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }

  .brand-text small { display: none; }
  .hero-visual { width: min(74%, 290px); }
  .name-tag { left: -14px; bottom: 18px; padding: 10px 16px; }
  .hero-actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .benefits-tabs { grid-template-columns: 1fr 1fr; }
  /* a 7ª categoria ocupa a linha inteira, sem buraco na grade */
  .benefit-tab:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; }
  .benefit-list { grid-template-columns: 1fr; }
  .benefit-cta .btn { width: 100%; }
  .team { gap: 48px; }
  .person { grid-template-columns: 1fr; }
  .person .arch { width: 170px; }
  .rating { grid-template-columns: 1fr; justify-items: start; }
  .rating-score { justify-items: start; }
  .contact-list { grid-template-columns: 1fr; }
  .faq summary { font-size: 1.1rem; }
  .faq details p { padding-right: 0; }

  .cc-actions .btn { flex: 1 1 auto; }
  .cc-link { order: 3; flex-basis: 100%; margin: 4px 0 0; text-align: center; }
}

/* em telas onde a barra encosta no botão do WhatsApp, ele volta quando o aviso some */
@media (max-width: 1240px) {
  body.has-cc-banner .fab { opacity: 0; pointer-events: none; }
}
@media (max-width: 820px) {
  .cc-banner { flex-direction: column; align-items: stretch; padding: 20px; }
}
