/* =========================================================
   Rezende Arquitetura | Landing page
   Narrativa: promessa → problema → guia → plano → prova → dúvidas → convite
   Paleta oficial: #00477A · #E57836 · #D1C9BE · #E9E4DE
   Tipografia: Galgony (títulos) · Raleway (textos)
   ========================================================= */

@font-face { font-family: "Galgony"; src: url("../assets/fonts/Galgony.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../assets/fonts/Raleway-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../assets/fonts/Raleway-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../assets/fonts/Raleway-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../assets/fonts/Raleway-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --azul: #00477A;
  --azul-escuro: #00335A;
  --azul-noite: #0B2540;
  --laranja: #E57836;
  --laranja-escuro: #B9541A;
  --bege: #D1C9BE;
  --off: #E9E4DE;
  --papel: #F6F3EF;
  --branco: #FFFFFF;
  --tinta: #1D2A36;
  --tinta-suave: #4A5763;
  --claro: #E6EDF3;

  --f-titulo: "Galgony", "Didot", Georgia, serif;
  --f-texto: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --secao: clamp(72px, 9vw, 128px);
  --raio: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--f-texto); font-size: clamp(16px, .6vw + 13px, 18px); line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--azul); color: var(--branco); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 3px; }

.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
}
.secao { padding-block: var(--secao); position: relative; overflow: hidden; }

/* ---------- Tipografia ---------- */
.display {
  font-family: var(--f-titulo); font-size: clamp(38px, 5vw, 68px); line-height: 1.04;
  text-transform: uppercase; color: var(--azul); margin-bottom: 24px; text-wrap: balance;
}
.titulo {
  font-family: var(--f-titulo); font-size: clamp(30px, 3.6vw, 50px); line-height: 1.1;
  color: var(--azul); margin-bottom: 20px; text-wrap: balance;
}
.lead { font-size: 1.12em; line-height: 1.55; color: var(--tinta-suave); max-width: 34em; }
.rotulo {
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--laranja-escuro); margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.rotulo::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.rotulo--claro { color: var(--laranja); }
.link { color: var(--azul); font-weight: 600; text-underline-offset: 3px; }
.cab { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- Botões (texto azul-noite sobre laranja: contraste 5.5:1) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 28px; font: 600 15px/1.2 var(--f-texto); letter-spacing: .04em;
  text-decoration: none; text-align: center; border: 1.5px solid transparent; border-radius: 999px;
  cursor: pointer; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--laranja { background: var(--laranja); color: var(--azul-noite); }
.btn--laranja:hover { background: #EE8A4E; }
.btn--azul { background: var(--azul); color: var(--branco); }
.btn--azul:hover { background: var(--azul-escuro); }
.btn--linha { border-color: var(--azul); color: var(--azul); }
.btn--linha:hover { background: var(--azul); color: var(--branco); }
.btn--linha-claro { border-color: rgba(255,255,255,.7); color: var(--branco); }
.btn--linha-claro:hover { background: var(--branco); color: var(--azul); }
.btn--sm { min-height: 42px; padding: 10px 20px; font-size: 14px; }
.btn--bloco { width: 100%; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabeçalho ---------- */
.topo {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(246,243,239,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .3s, transform .35s ease;
}
.topo.oculto { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px))); }
.topo.rolou { box-shadow: 0 8px 24px -18px rgba(0,51,90,.45); }
.topo__in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.topo__logo img { width: 160px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav a:not(.btn) { font-size: 14px; font-weight: 500; text-decoration: none; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--laranja); transition: width .25s; }
.nav a:not(.btn):hover::after { width: 100%; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--azul); transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--papel); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
    box-shadow: 0 20px 30px -20px rgba(0,51,90,.4);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.aberto { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(0,71,122,.08); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; }
}

/* ---------- 1. Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--off); padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.hero__graf { position: absolute; right: -6%; bottom: -18%; width: min(520px, 55vw); opacity: .5; pointer-events: none; }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero__txt { min-width: 0; }
.selo { font-family: var(--f-titulo); font-size: 20px; color: var(--laranja-escuro); margin-bottom: 20px; }
.hero .acoes { margin-top: 32px; }
.local { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; font-size: 14px; font-weight: 500; color: var(--tinta-suave); }
.local svg { width: 18px; height: 18px; fill: none; stroke: var(--laranja); stroke-width: 1.8; }
.local .sep { color: var(--bege); }
.hero__foto { position: relative; aspect-ratio: 4 / 5; max-width: 440px; width: 100%; justify-self: end; }
.hero__foto picture, .hero__foto img {
  position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 18%;
  border-radius: 999px 999px var(--raio) var(--raio);
}
.arco { position: absolute; z-index: 1; }
.arco--laranja { width: 62%; height: 70%; left: -16%; bottom: -6%; background: var(--laranja); border-radius: 0 999px 999px 0; }
.arco--azul { width: 44%; aspect-ratio: 1; right: -10%; top: -6%; background: var(--azul); border-radius: 0 0 0 999px; }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__foto { order: -1; justify-self: center; max-width: 300px; }
  .arco--laranja { left: -10%; }
  .arco--azul { right: -6%; }
}

/* ---------- 2. Problema ---------- */
.problema { background: var(--azul); color: var(--claro); }
.problema .titulo { color: var(--branco); }
.problema .rotulo { color: var(--laranja); }
.problema__graf { position: absolute; left: -60px; bottom: -40px; width: 240px; opacity: .12; pointer-events: none; }
.problema__txt { font-size: 1.08em; max-width: 30em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.grid-2 > * { min-width: 0; }
.cenarios { list-style: none; }
.cenarios li {
  position: relative; padding: 18px 0 18px 40px; border-bottom: 1px solid rgba(255,255,255,.16);
  font-family: var(--f-titulo); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3; color: var(--branco);
}
.cenarios li:first-child { border-top: 1px solid rgba(255,255,255,.16); }
.cenarios li::before { content: ""; position: absolute; left: 0; top: 24px; width: 18px; height: 18px; background: var(--laranja); border-radius: 0 999px 0 0; }
.problema__fecho {
  margin: clamp(48px, 6vw, 80px) 0 0; font-family: var(--f-titulo);
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; color: var(--branco); max-width: 820px;
}
.problema__fecho strong { font-weight: 400; color: var(--laranja); }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- 3. Guia ---------- */
.sobre { background: var(--papel); }
.sobre__in { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.sobre__in > * { min-width: 0; }
.sobre__foto { margin: 0; position: relative; max-width: 400px; }
.sobre__foto img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; width: 100%; border-radius: 999px 999px var(--raio) var(--raio); }
.credenciais { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0; }
.credenciais li { border-top: 2px solid var(--laranja); padding-top: 12px; font-size: 14px; line-height: 1.35; color: var(--tinta-suave); }
.credenciais strong { display: block; font-family: var(--f-titulo); font-weight: 400; font-size: 24px; color: var(--azul); margin-bottom: 2px; }
.frase { margin: 0; font-family: var(--f-titulo); font-size: clamp(20px, 1.9vw, 25px); line-height: 1.35; color: var(--azul); padding-left: 20px; border-left: 2px solid var(--bege); }
@media (max-width: 860px) {
  .sobre__in { grid-template-columns: 1fr; }
  .sobre__foto { max-width: 300px; margin-inline: auto; }
  .credenciais { grid-template-columns: 1fr 1fr; }
}

/* ---------- 4. Plano ---------- */
.metodo { background: var(--off); }
.metodo .titulo { font-size: clamp(36px, 4.6vw, 64px); text-transform: uppercase; }
/* Etapas: cada uma com uma forma diferente do apoio gráfico da marca
   01 quarto de círculo · 02 semicírculo (cuia) · 03 folha (cantos opostos) */
.etapas { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); align-items: start; }
.etapa {
  position: relative; min-width: 0; aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 36px);
}
.etapa__n { font-weight: 600; font-size: 13px; letter-spacing: .2em; }
.etapa h3 { font-family: var(--f-titulo); font-size: clamp(26px, 2.6vw, 38px); text-transform: uppercase; margin: 4px 0 8px; line-height: 1.05; }
.etapa p { margin: 0; max-width: 15em; line-height: 1.45; font-size: .95em; }

/* 01 Estratégia: quarto de círculo, texto apoiado no canto reto */
.etapa--azul { background: var(--azul); color: var(--claro); border-radius: 0 100% 0 0; justify-content: center; }
.etapa--azul h3 { color: var(--branco); }
.etapa--azul .etapa__n { color: var(--laranja); }
.etapa--azul p { max-width: 12em; }
/* 02 Espaço: semicírculo virado para baixo, texto no topo */
.etapa--laranja { background: var(--laranja); color: var(--azul-noite); border-radius: 0 0 50% 50% / 0 0 50% 50%; justify-content: center; align-items: center; text-align: center; }
.etapa--laranja p { max-width: 13em; }
/* 03 Valor: folha, cantos opostos arredondados */
.etapa--bege { background: var(--bege); color: var(--tinta); border-radius: 50% 0 50% 0; justify-content: center; align-items: center; text-align: center; }
.etapa--bege h3 { color: var(--azul); }
.etapa--bege .etapa__n { color: var(--laranja-escuro); }

.espacos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.espacos p { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--tinta-suave); }
.espacos ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.espacos li { font-size: 14px; font-weight: 500; color: var(--azul); background: var(--papel); padding: 6px 14px; border-radius: 999px; }
@media (max-width: 860px) { .etapas { grid-template-columns: 1fr; justify-items: center; } .etapa { width: 100%; max-width: 330px; } }

/* ---------- 5. Prova + localização ---------- */
.avaliacoes { background: var(--papel); }
.prova { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.prova > * { min-width: 0; }
.gbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; text-decoration: none;
  padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--bege);
}
.g-logo { width: 28px; height: 28px; flex: none; }
.gbar__nota { display: inline-flex; align-items: baseline; gap: 8px; }
.gbar__nota > span:first-child { font-family: var(--f-titulo); font-size: 34px; line-height: 1; color: var(--azul); }
.estrelas { color: #F4B400; font-size: 18px; letter-spacing: 2px; }
.gbar__total { font-weight: 600; color: var(--tinta-suave); }
.gbar__cta { margin-left: auto; font-weight: 600; color: var(--laranja-escuro); }
.gbar:hover .gbar__cta { text-decoration: underline; }
.aval__lista { display: grid; gap: 16px; }
.dep { margin: 0; background: var(--branco); padding: 22px 24px; border-radius: 0 40px 0 0; display: grid; gap: 10px; }
.dep .estrelas { font-size: 14px; }
.dep blockquote { margin: 0; }
.dep figcaption { font-weight: 600; color: var(--azul); font-size: 15px; }
.dep figcaption span { font-weight: 400; font-size: 13px; color: var(--tinta-suave); margin-left: 6px; }
.mapa { position: relative; aspect-ratio: 1 / 1.05; width: 100%; border-radius: 999px 999px var(--raio) var(--raio); overflow: hidden; background: var(--off); }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa__fallback { position: absolute; inset: 0; display: grid; place-items: end center; padding: 28px; }
.mapa__fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mapa__pin {
  position: absolute; left: 50%; top: 42%; width: 56px; height: 56px; transform: translate(-50%, -50%) rotate(-45deg);
  background: var(--laranja); border-radius: 50% 50% 50% 0; box-shadow: 0 14px 28px -10px rgba(0,51,90,.6);
}
.mapa__pin::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--azul); }
.mapa__fallback .btn { position: relative; }
.endereco { display: grid; gap: 10px; margin-top: 20px; }
.endereco div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.endereco dt { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--laranja-escuro); padding-top: 4px; }
.endereco dd { color: var(--tinta); }
@media (max-width: 860px) {
  .prova { grid-template-columns: 1fr; }
  .prova__local { max-width: 420px; }
}

/* ---------- 6. Dúvidas ---------- */
.faq { background: var(--off); }
.faq__in { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__in > * { min-width: 0; }
.acordeao details { border-bottom: 1px solid var(--bege); }
.acordeao details:first-child { border-top: 1px solid var(--bege); }
.acordeao summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--f-titulo); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3; color: var(--azul);
}
.acordeao summary::-webkit-details-marker { display: none; }
.acordeao summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: linear-gradient(var(--laranja), var(--laranja)) center / 16px 2px no-repeat,
              linear-gradient(var(--laranja), var(--laranja)) center / 2px 16px no-repeat;
  transition: transform .3s;
}
.acordeao details[open] summary::after { transform: rotate(45deg); }
.acordeao details p { color: var(--tinta-suave); padding-right: 40px; margin: -6px 0 22px; }
@media (max-width: 860px) { .faq__in { grid-template-columns: 1fr; } }

/* ---------- 7. Convite ---------- */
.cta { background: var(--azul); color: var(--claro); text-align: center; }
.cta .titulo { color: var(--branco); font-size: clamp(34px, 4.2vw, 58px); }
.cta__graf { position: absolute; left: -40px; bottom: -60px; width: 300px; opacity: .14; pointer-events: none; }
.cta__in { position: relative; display: grid; justify-items: center; }
.cta__in > p { font-size: 1.1em; margin-bottom: 28px; }
.cta .acoes { justify-content: center; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--azul-noite); color: #B8C6D3; padding-block: 56px 28px; font-size: 15px; }
.rodape__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.rodape__marca img { width: 190px; margin-bottom: 12px; }
.rodape__marca p { margin: 0; font-size: 14px; letter-spacing: .04em; }
.rodape__links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.rodape__links li:empty { display: none; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: var(--branco); text-decoration: underline; }
.rodape__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; font-size: 13px; }
.rodape__base p { margin: 0; }
.rodape__vers { font-style: italic; opacity: .7; }

/* ---------- WhatsApp flutuante ---------- */
.whats-flut {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); transition: transform .2s;
}
.whats-flut:hover { transform: scale(1.06); }
.whats-flut svg { width: 30px; height: 30px; fill: var(--branco); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav, .insta { transition: none; }
}

/* ---------- Ajustes finos de responsividade ---------- */
@media (max-width: 480px) {
  .hero__foto { max-width: 230px; }
  .display { font-size: clamp(32px, 9vw, 40px); }
}
@media (min-width: 861px) and (max-width: 1120px) {
  .etapa { padding: 20px; }
  .etapa h3 { font-size: 26px; }
  .etapa p { font-size: .85em; }
}
@media (max-width: 600px) {
  .topo__in { height: 60px; }
  .topo__logo img { width: 128px; }
  .nav { top: 60px; }
}
@media (prefers-reduced-motion: reduce) { .topo { transition: box-shadow .3s; } }

/* ---------- Celular: só o essencial ---------- */
@media (max-width: 600px) {
  .esconder-mobile { display: none !important; }
  .secao { padding-block: 56px; }
  .lead { font-size: 1em; }
  .cab { margin-bottom: 28px; }
  .problema__fecho { margin-top: 36px; font-size: 22px; }
  .credenciais { margin-bottom: 0; }
  .cta .acoes { margin-top: 8px; }
}
.btn__ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }

/* ---------- Localização ---------- */
#localizacao iframe { display: block; margin-block: 8px 20px; background: var(--off); border-radius: var(--raio); }
#localizacao a { color: var(--azul); font-weight: 600; text-underline-offset: 3px; }
