/* ==========================================================
   Ponto de Equilíbrio — Ana Paula Adler
   ========================================================== */

:root {
  --cream: #FBF7F2;
  --sand: #F3EAE0;
  --sand-2: #E8DBCC;
  --line: #E2D4C5;
  --ink: #3B2B25;
  --muted: #6B574D;
  --terra: #A4563E;      /* tom do logotipo (texto) */
  --terra-d: #8C452F;
  --red: #E5401F;        /* vermelho da marca — apenas detalhes */
  --red-d: #C43A1E;

  --f-title: "Gilda Display", Georgia, "Times New Roman", serif;
  --f-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 112px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

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

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--f-title); font-weight: 400; line-height: 1.15; letter-spacing: 0; color: var(--ink); }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.1rem); }
h1 em, h2 em { font-style: normal; font-weight: 400; color: var(--terra); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.15; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 20px; line-height: 1.5;
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; background: var(--red); flex: none;
  border-radius: 9px 9px 9px 0;            /* gota do logotipo */
}
.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--muted); max-width: 60ch; font-weight: 300; }
.lead, .card p, .step p, .why p { text-wrap: pretty; }

/* ---------- Botões / links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 14px 30px;
  background: var(--red-d); color: #fff;
  font-weight: 500; font-size: .98rem; letter-spacing: .02em;
  border: 1px solid var(--red-d); border-radius: 999px 999px 999px 6px;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--terra-d); border-color: var(--terra-d); transform: translateY(-2px); }
.btn--sm { min-height: 46px; padding: 10px 22px; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--terra-d); border-color: var(--terra); }
.btn--ghost:hover { background: var(--terra); color: #fff; border-color: var(--terra); }
.ico { width: 20px; height: 20px; flex: none; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: .95rem; color: var(--terra-d);
  padding: 6px 0; min-height: 44px;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size .35s var(--ease), color .3s;
}
.link:hover { color: var(--red-d); background-size: calc(100% - 30px) 1px; }
.link .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link:hover .ico { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
/* O desfoque fica numa camada própria (não no .header em si) para que ele não
   vire o "containing block" do menu mobile (que é position:fixed) — se ficasse
   no .header, o backdrop-filter faria o menu se posicionar relativo à barra do
   cabeçalho em vez da tela inteira, causando a sobreposição. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 247, 242, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(59, 43, 37, .25); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; transition: height .3s var(--ease); }
.header.is-scrolled .header__in { height: 92px; }

.brand { display: block; width: 240px; flex: none; }
.brand img { display: block; width: 100%; height: auto; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav ul { display: flex; gap: 32px; }
.nav ul a {
  position: relative; display: block; padding: 8px 0;
  font-size: 1.06rem; letter-spacing: .01em; color: var(--ink);
}
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav ul a:hover::after, .nav ul a.is-active::after { transform: scaleX(1); }

.burger { display: none; }

/* ---------- Seções ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--sand { background: var(--sand); border-radius: clamp(32px, 5vw, 88px); margin-inline: clamp(8px, 1.6vw, 24px); }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 720px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .lead { margin-inline: auto; }
.section__head--center .link { margin-top: 22px; }
.section__head h2 { margin-bottom: 22px; }

/* Imagens: placeholders + formato "gota" */
.ph {
  position: relative; overflow: hidden; margin: 0;
  background:
    radial-gradient(120% 80% at 20% 10%, #F6EBDD 0%, transparent 60%),
    linear-gradient(160deg, #EBDCCB, #DCC5AF);
}
.ph::after {
  content: attr(data-ph); position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 24px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(140, 69, 47, .55);
}
.ph.has-img::after { display: none; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph picture { display: contents; }
.ph.is-empty img { visibility: hidden; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(20px, 4vw, 48px) clamp(56px, 8vw, 110px); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.02fr .98fr; grid-template-areas: "text stage" "cta stage";
  column-gap: clamp(32px, 6vw, 96px); row-gap: 8px; align-items: center;
}
.hero__text { grid-area: text; position: relative; z-index: 2; align-self: end; }
.hero__stage { grid-area: stage; }
.hero__cta { grid-area: cta; align-self: start; }
.hero__media {
  aspect-ratio: 4 / 5; max-height: min(78vh, 760px); width: 100%;
  border-radius: 260px 260px 260px 0;
}
/* Hero: título um pouco menor (Gilda Display é larga) */
.hero__media img { object-position: 50% 14%; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 28px; }
.hero h1 em { font-style: normal; font-weight: 400; }
.hero .lead { margin-bottom: 40px; }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.micro { font-size: .88rem; color: var(--muted); }

/* ---------- Especialidades ---------- */
#especialidades { position: relative; overflow: hidden; }
#especialidades > .wrap { position: relative; z-index: 1; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; column-gap: clamp(48px, 8vw, 120px); row-gap: clamp(40px, 5vw, 64px); align-items: start; }
.card { position: relative; display: grid; grid-template-columns: 1fr; gap: 22px; align-content: start; }
.card:nth-child(2) { margin-top: clamp(48px, 6vw, 88px); }
.card:nth-child(4) { margin-top: clamp(48px, 6vw, 88px); }
.card__img { aspect-ratio: 4 / 5; border-radius: 130px 130px 130px 0; transition: border-radius .7s var(--ease); }
.card:hover .card__img { border-radius: 70px 70px 70px 0; }

/* Mobile: os 4 cards em uma única coluna vertical, todos visíveis,
   com a rolagem normal da página (sem carrossel/scroll lateral).
   Regra reforçada (com #especialidades) e colocada logo no início do
   arquivo de propósito, para funcionar mesmo que o CSS seja cortado
   mais adiante ao ser publicado. */
@media (max-width: 640px) {
  #especialidades .cards {
    display: grid; grid-template-columns: 1fr; column-gap: 0; row-gap: 40px;
    overflow: visible; margin-inline: 0; padding: 0;
  }
  #especialidades .card { grid-column: auto; margin-top: 0; gap: 20px; }
  #especialidades .card__img { aspect-ratio: 4 / 5; border-radius: 34vw 34vw 34vw 0; }
}
.card h3 { margin-bottom: 14px; }
.card p { color: var(--muted); margin-bottom: 22px; }
.card__cta { align-self: start; }

/* ---------- Online ---------- */
.online { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.online__media { aspect-ratio: 4 / 5; border-radius: 300px 300px 300px 0; width: 100%; }
.online h2 { margin-bottom: 22px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; margin-top: 44px; border-top: 1px solid var(--line); }
.benefits li { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.benefits li:nth-child(even) { padding-right: 0; }
.benefits h3 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin-bottom: 6px; }
.benefits h3::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--red); border-radius: 7px 7px 7px 0; }
.benefits p { color: var(--muted); font-size: .96rem; line-height: 1.6; padding-left: 19px; }
.benefits li:last-child { grid-column: 1 / -1; }
.note { margin-top: 40px; padding: 28px 30px; background: var(--cream); border-radius: 28px 28px 28px 4px; }
.note p { color: var(--ink); margin-bottom: 6px; }

/* ---------- Passos ---------- */
.steps { --p: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.steps::after { top: -.5px; height: 2px; background: var(--red); transform-origin: left; transform: scaleX(var(--p)); }
.step { position: relative; padding-top: 36px; }
.step::after { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; background: var(--sand-2); border-radius: 9px 9px 9px 0; transition: background .6s var(--ease), transform .6s var(--ease); z-index: 1; }
.step.on::after { background: var(--red); transform: scale(1.3); }
.step__n { display: block; font-family: var(--f-title); font-size: clamp(3.2rem, 5vw, 4.6rem); line-height: 1; color: var(--sand-2); font-weight: 400; margin-bottom: 14px; transition: color .8s var(--ease), transform .8s var(--ease); }
.step.on .step__n { color: var(--terra); transform: translateX(4px); }
.step h3 { margin-bottom: 12px; font-size: 1.5rem; }
.step p { color: var(--muted); font-size: 1rem; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.about__media { aspect-ratio: 4 / 5; width: 100%; border-radius: 300px 300px 300px 0; }
.about__media img { object-position: 50% 12%; }
.about h2 { margin-bottom: 24px; }
.about__stat { display: flex; align-items: center; gap: 22px; margin-block: 36px; padding-block: 26px; border-block: 1px solid var(--line); }
.about__num { font-family: var(--f-title); font-size: clamp(4rem, 7vw, 5.6rem); line-height: .9; color: var(--terra); font-weight: 400; }
.about__num-l { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.facts { margin-bottom: 28px; }
.facts div { display: grid; grid-template-columns: 160px 1fr; gap: 8px 28px; padding-block: 20px; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--terra); font-weight: 500; line-height: 1.6; padding-top: 4px; }
.facts dd { color: var(--muted); line-height: 1.6; }
.facts dd strong { color: var(--ink); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.tags li { padding: 8px 18px; border-radius: 999px 999px 999px 4px; font-size: .88rem; color: var(--terra-d); font-weight: 500; }
.why__cta { color: var(--muted); margin-bottom: 20px; max-width: 34ch; }

/* ---------- Diferenciais ---------- */
.section--fixedbg {
  position: relative; background-color: var(--ink); background-size: cover; background-position: center; background-attachment: fixed;
  isolation: isolate; /* garante que o véu fique confinado a esta seção */
}
.section--fixedbg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(38, 27, 22, .78), rgba(38, 27, 22, .66));
}
.section--fixedbg .eyebrow, .section--fixedbg h2, .section--fixedbg .why__cta,
.section--fixedbg .why h3, .section--fixedbg .why p, .section--fixedbg .btn--ghost {
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.section--fixedbg .eyebrow { color: #E8B7A6; }
.section--fixedbg .eyebrow::before { background: var(--red); }
.section--fixedbg h2 { color: #fff; }
.section--fixedbg h2 em { color: #E8B7A6; }
.section--fixedbg .why__cta { color: rgba(255, 255, 255, .82); }
.section--fixedbg .btn--ghost { background: #fff; border-color: #fff; color: var(--ink); text-shadow: none; }
.section--fixedbg .btn--ghost:hover { background: var(--terra); color: #fff; border-color: var(--terra); }
.section--fixedbg .why__list li { border-top-color: rgba(255, 255, 255, .22); }
.section--fixedbg .why__list li:last-child { border-bottom-color: rgba(255, 255, 255, .22); }
.section--fixedbg .why h3 { color: #fff; }
.section--fixedbg .why p { color: rgba(255, 255, 255, .8); }
.section--fixedbg .why__list li.is-current h3 { color: #E8B7A6; }

.why { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 7vw, 110px); align-items: start; }
.why__head { position: sticky; top: calc(var(--header-h) + 32px); }
.why__head h2 { margin-bottom: 36px; }
.why__list li { padding-block: 32px; border-top: 1px solid var(--line); }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 10px; }
.why p { color: var(--muted); }

/* ---------- Depoimentos ---------- */
#depoimentos .section__head { margin-bottom: clamp(24px, 3vw, 36px); }
.reviews-widget { position: relative; min-height: 280px; }
/* encobre o selo "Free Google Reviews Widget" do plano gratuito do Elfsight */
.reviews-widget::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background: var(--sand); pointer-events: none; z-index: 2;
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 7vw, 110px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 26px 56px 26px 0; min-height: 64px;
  font-family: var(--f-title); font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 400; line-height: 1.25;
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--terra); }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: var(--terra);
  transition: transform .35s var(--ease), background .3s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details[open] summary::before { background: var(--red); }
.faq details[open] summary::after { background: var(--red); }
.faq__a { padding: 0 56px 28px 0; color: var(--muted); animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: stretch; }
.contact h2 { margin-bottom: 22px; }
.contact .lead { margin-bottom: 34px; }
.info { display: grid; gap: 22px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.info__l { display: block; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terra); font-weight: 500; margin-bottom: 4px; }
.info a { font-family: var(--f-title); font-size: 1.6rem; font-weight: 400; transition: color .3s; }
.info a:hover { color: var(--red-d); }
.info span:not(.info__l) { color: var(--muted); }
.contact__map { min-height: 420px; border-radius: 0 28px 220px 0; overflow: hidden; background: var(--sand-2); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(.75) sepia(.12); }

/* ---------- Footer ---------- */
.footer { background: var(--sand-2); padding-top: clamp(56px, 7vw, 96px); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.footer__grid > * { min-width: 0; width: 100%; box-sizing: border-box; }

.footer__title {
  font-family: var(--f-body); font-size: .86rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 22px;
}

.footer__logo { display: block; width: 172px; height: auto; margin-bottom: 22px; }
.footer__desc { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 32ch; }

.footer__list { width: 100%; }
.footer__list li { width: 100%; }
.footer__list a {
  display: block; width: 100%; min-height: 40px; padding-block: 9px;
  font-size: 1.05rem; color: var(--ink); line-height: 1.45; transition: color .3s;
  overflow-wrap: break-word; word-break: break-word; box-sizing: border-box;
}
.footer__list a:hover { color: var(--red-d); }
.footer__list a.has-ico { display: flex; align-items: center; gap: 10px; }
.footer__list a .ico { width: 20px; height: 20px; flex: none; }
.footer__contact a { padding-block: 10px; min-height: auto; }

.footer__social { display: flex; gap: 12px; margin-top: 24px; }
.footer__social a {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--red-d); border: 1px solid var(--red-d); border-radius: 50%; color: #fff; transition: background .3s, transform .3s;
}
.footer__social a:hover { background: var(--terra-d); border-color: var(--terra-d); transform: translateY(-2px); }
.footer__social .ico { width: 21px; height: 21px; }

.footer__base { margin-top: 48px; padding-block: 24px; border-top: 1px solid rgba(59, 43, 37, .14); font-size: 1.02rem; color: var(--muted); text-align: center; }
.footer__base p { margin-bottom: 6px; }
.footer__base p:last-child { margin-bottom: 0; }
.footer__credit a { color: var(--red-d); font-weight: 500; transition: color .3s; }
.footer__credit a:hover { color: var(--terra-d); }

/* ---------- Botão flutuante do WhatsApp ---------- */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, .35);
  transform: translateY(90px) scale(.9); opacity: 0; transition: transform .4s var(--ease), opacity .4s, background .3s;
}
.fab:hover { background: #1EBE5A; }
.fab.is-on { transform: none; opacity: 1; }
.fab .ico { width: 30px; height: 30px; position: relative; z-index: 1; }
.fab__ring {
  position: absolute; inset: -8px; border-radius: 50%; background: #25D366;
  opacity: .55; animation: fab-pulse 2.2s ease-out infinite;
}
@keyframes fab-pulse {
  0% { transform: scale(.85); opacity: .55; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (max-width: 640px) {
  .fab { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .fab .ico { width: 27px; height: 27px; }
}

/* ---------- Pendências de copy ---------- */
.pending { color: #8F7C71; font-style: italic; border-left: 2px dashed var(--sand-2); padding-left: 14px; }

/* ---------- Revelar ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* diferenciais: entrada devagar, da direita para a esquerda */
.js .reveal--right { transform: translateX(72px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal--right.in { opacity: 1; transform: none; }

/* ==========================================================
   TABLET
   ========================================================== */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .nav ul { gap: 18px; }
  .nav ul a { font-size: .98rem; }
  .brand { width: 200px; }
  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .footer__col--brand, .footer__col--contact { grid-column: 1 / -1; }
  .footer__col--brand { padding-bottom: 8px; border-bottom: 1px solid rgba(59, 43, 37, .12); }
  .footer__desc { max-width: 46ch; }
}

@media (max-width: 960px) {
  :root { --header-h: 92px; }
  .header.is-scrolled .header__in { height: 80px; }

  /* menu hambúrguer */
  .burger {
    display: grid; place-content: center; gap: 7px; width: 48px; height: 48px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; position: relative; z-index: 120;
  }
  .burger span { display: block; width: 26px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; z-index: 110; background: var(--cream);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 36px;
    padding: 32px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .nav ul a { font-family: var(--f-title); font-size: 2.1rem; padding: 8px 0; letter-spacing: -.01em; }
  .nav ul a::after { display: none; }
  .nav__cta { width: 100%; min-height: 56px; font-size: 1rem; }
  .brand { position: relative; z-index: 120; }

  /* Hero: texto → imagem → CTA */
  .hero { padding-top: 0; }
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "text" "stage" "cta"; gap: 32px; }
  .hero__stage { margin-top: 8px; }
  .hero__media { max-height: none; aspect-ratio: 4 / 4.2; border-radius: 40vw 40vw 40vw 0; }
  .hero__cta { margin-top: 4px; }

  .cards { grid-template-columns: 1fr 1fr; gap: 56px 28px; }
  .card:nth-child(n) { grid-column: auto; margin-top: 0; }
  .card:nth-child(even) { margin-top: 48px; }
  .card__img, .card:nth-child(2) .card__img, .card:nth-child(3) .card__img { aspect-ratio: 4 / 5; border-radius: 120px 120px 120px 0; }

  .steps { grid-template-columns: 1fr; row-gap: 0; padding-left: 32px; max-width: 560px; margin-inline: auto; }
  .steps::before, .steps::after { left: 4px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .steps::after { left: 3.5px; width: 2px; transform-origin: top; transform: scaleY(var(--p)); }
  .step { padding: 0 0 44px; }
  .step:last-child { padding-bottom: 0; }
  .step::after { top: 8px; left: -32px; }

  .online, .about, .why, .faq, .contact { grid-template-columns: 1fr; }
  .online__media, .about__media { max-width: 520px; aspect-ratio: 4 / 4.4; border-radius: 220px 220px 220px 0; }
  .why__head, .faq__head { position: static; }
  .contact__map { border-radius: 0 20px 150px 0; min-height: 380px; }
}

/* ==========================================================
   MOBILE
   ========================================================== */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand { width: 180px; }
  .section { padding-block: 64px; }
  .section__head { margin-bottom: 36px; }
  .section--fixedbg { background-position: 75% center; }

  .hero__media { aspect-ratio: 1 / 1.08; border-radius: 46vw 46vw 46vw 0; }
  .hero h1 { font-size: 2rem; margin-bottom: 20px; }
  .hero .lead { margin-bottom: 28px; font-size: 1.02rem; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero__cta .btn { width: 100%; min-height: 56px; }
  .micro { text-align: center; }

  /* especialidades: ver regra reforçada #especialidades .cards no topo do arquivo */

  .benefits { grid-template-columns: 1fr; }
  .benefits li:last-child { grid-column: auto; }
  .benefits li { padding-right: 0; }
  .note { padding: 24px; }

  /* timeline vertical */
  .step__n { font-size: 2.6rem; margin-bottom: 4px; }

  .about__stat { gap: 16px; margin-block: 28px; }
  .facts div { grid-template-columns: 1fr; }
  .about .btn, .why .btn, .contact .btn { width: 100%; min-height: 56px; }

  .why__list li { padding-block: 26px; }

  .faq summary { padding: 22px 44px 22px 0; }
  .faq__a { padding-right: 0; }

  .contact__map { min-height: 320px; border-radius: 0 8vw 40vw 0; }
  .contact__map iframe { min-height: 320px; }
  .info a { font-size: 1.5rem; }

  .footer__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .footer__col--brand, .footer__col--contact { grid-column: auto; }
  .footer__col--brand { padding-bottom: 0; border-bottom: 0; }
  .footer__col:not(.footer__col--brand) { padding-top: 32px; border-top: 1px solid rgba(59, 43, 37, .12); }
  .footer__desc { max-width: none; }
  .footer__base { margin-top: 32px; padding-bottom: 96px; }
}

/* ==========================================================
   CAMADAS · PROFUNDIDADE · MOVIMENTO
   (o JS só ativa o que for seguro; tudo degrada para estático)
   ========================================================== */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 150; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--sp, 0)); }

/* palcos: imagem + placas + peças flutuantes */
.hero__stage, .online__stage, .about__stage, .contact__stage { position: relative; }
.hero__stage { --pr: 260px 260px 260px 0; }
.online__stage, .about__stage { --pr: 300px 300px 300px 0; }
.contact__stage { --pr: 0 28px 220px 0; }
.plate { position: absolute; pointer-events: none; border-radius: var(--pr); }
.plate--fill { inset: 7% -7% -7% 7%; background: var(--sand-2); }
.plate--line { inset: -5% 8% 5% -6%; border: 1px solid rgba(164, 86, 62, .45); }
.online__stage .plate--fill, .about__stage .plate--fill { background: #E3D3C1; }

/* Hero: camadas com profundidade (estáticas, sem 3D — texto em 3D contínuo treme na tela) */
.hero__tilt { position: relative; }

/* gota em volume — assinatura do logotipo, usada como marcador de profundidade */
.fx { position: absolute; z-index: 3; pointer-events: none; }
.orb {
  display: block; width: 100%; aspect-ratio: 1; border-radius: 50% 50% 50% 8%;
  background: radial-gradient(circle at 32% 26%, var(--o1), var(--o2) 55%, var(--o3) 100%);
  box-shadow: inset -8px -12px 24px rgba(0, 0, 0, .16), inset 6px 8px 16px rgba(255, 255, 255, .32), 0 28px 44px -20px var(--os);
  animation: float 9s ease-in-out infinite;
}
.orb--red { --o1: #FF8A68; --o2: #E5401F; --o3: #B92E12; --os: rgba(229, 64, 31, .55); }
.orb--terra { --o1: #D9967B; --o2: #A4563E; --o3: #7A3A27; --os: rgba(164, 86, 62, .5); }
.orb--sand { --o1: #FFF8EE; --o2: #EBDCCB; --o3: #CDB196; --os: rgba(120, 85, 55, .35); }
.fx--b .orb { animation-duration: 11s; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(5deg); } }

.fx--a { width: clamp(56px, 7vw, 96px); top: 1%; right: -3%; }
.fx--b { width: clamp(28px, 3.4vw, 44px); top: 17%; left: -5%; }
.fx--online { width: clamp(50px, 6vw, 80px); top: 5%; right: -4%; }
.fx--about { width: clamp(44px, 5vw, 68px); bottom: 9%; left: -4%; }
.fx--contact { width: clamp(46px, 5vw, 70px); bottom: 8%; right: -3%; }

/* vidro fosco: informação que já existe na copy, em primeiro plano */
.chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 14px; padding: 14px 24px 14px 20px;
  background: rgba(251, 247, 242, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .75); border-radius: 999px 999px 999px 8px;
  box-shadow: 0 24px 40px -24px rgba(59, 43, 37, .5); line-height: 1.25;
}
.chip strong { font-family: var(--f-title); font-weight: 400; font-size: 2.3rem; line-height: 1; color: var(--terra); }
.chip span { font-size: .82rem; letter-spacing: .04em; color: var(--ink); max-width: 15ch; }
.chip--plain::before { content: ""; width: 9px; height: 9px; flex: none; background: var(--red); border-radius: 9px 9px 9px 0; }
.chip--plain span { max-width: none; }
.chip--hero { left: -9%; bottom: 9%; }
.chip--online { left: -6%; bottom: 10%; }
.chip--map { left: -6%; bottom: 12%; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.chip--map:hover, a.chip--map:focus-visible { transform: translateY(-2px); box-shadow: 0 28px 44px -22px rgba(59, 43, 37, .6); }
a.chip--map span { color: var(--terra-d); font-weight: 500; }

/* selo giratório ligado à rolagem */
.badge {
  position: absolute; z-index: 4; top: 6%; right: -5%; width: clamp(96px, 11vw, 136px); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%; background: var(--cream);
  box-shadow: 0 22px 40px -22px rgba(59, 43, 37, .5);
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge text { font-family: var(--f-body); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; fill: var(--terra-d); }
.badge__drop { width: 22%; aspect-ratio: 1; background: var(--red); border-radius: 50% 50% 50% 8%; }

/* palavra-marca gigante em contorno, atrás do título */
.ghost {
  position: absolute; z-index: 0; left: 2vw; top: .4rem; font-family: var(--f-title); font-size: clamp(6rem, 21vw, 19rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line); white-space: nowrap; pointer-events: none; user-select: none;
}

/* diferenciais: item em foco */
.why__list h3 { transition: color .5s var(--ease); }
.why__list li.is-current h3 { color: var(--terra); }

/* títulos revelados palavra a palavra */
h2 { text-wrap: balance; }
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.js .split .w > span { display: inline-block; transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.js .split.in .w > span { transform: none; }

/* imagens: abrem com máscara, sem sumir com o texto */
.js .ph.reveal { opacity: 1; transform: none; clip-path: inset(9% 7% 9% 7%); transition: clip-path 1.4s var(--ease); }
.js .ph.reveal.in { clip-path: inset(0); }

/* entrada do Hero (a foto aparece de imediato, para não atrasar o carregamento) */
.js .hero__text .eyebrow, .js .hero__text .lead, .js .hero__cta { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .hero__text .lead { transition-delay: .35s; }
.js .hero__cta { transition-delay: .5s; }
.js .hero .chip, .js .hero .fx, .js .hero .plate { opacity: 0; transition: opacity 1.2s var(--ease) .6s; }
.is-ready .hero__text .eyebrow, .is-ready .hero__text .lead, .is-ready .hero__cta { opacity: 1; transform: none; }
.is-ready .hero .chip, .is-ready .hero .fx, .is-ready .hero .plate { opacity: 1; }

@media (max-width: 960px) {
  .chip { left: 12px; bottom: 12px; padding: 10px 18px 10px 14px; }
  .chip strong { font-size: 1.8rem; }
  .plate--fill { inset: 5% -3% -4% 5%; }
  .plate--line { inset: -3% 5% 3% -3%; }
  .hero__stage { --pr: 40vw 40vw 40vw 0; }
  .online__stage, .about__stage { --pr: 220px 220px 220px 0; max-width: 520px; }
  .contact__stage { --pr: 0 20px 150px 0; }
  .fx--a { right: -1%; }
  .fx--online, .fx--contact { right: 2%; left: auto; }
  .fx--about { left: 2%; }
  .badge { right: -2%; }
}
@media (max-width: 640px) {
  .hero__stage { --pr: 46vw 46vw 46vw 0; }
  .contact__stage { --pr: 0 8vw 40vw 0; }
  .ghost { font-size: 26vw; }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .js .split .w > span { transform: none; }
  .js .ph.reveal { clip-path: none; }
  .js .hero__text .eyebrow, .js .hero__text .lead, .js .hero__cta, .js .hero .chip, .js .hero .fx, .js .hero .plate { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.contact__stage { min-height: 420px; }
.contact__stage .contact__map { height: 100%; }
@media (max-width: 640px) { .contact__stage { min-height: 320px; } }
