/* ==========================================================================
   Lameirão Advogados — LP
   Base: Figma "Site - Lameirão" (frame 1920px, container 1280px)
   ========================================================================== */

:root {
  --azul: #005197;
  --azul-esc: #004179;
  --marinho: #1e2b51;
  --laranja: #f39200;
  --claro: #f0f5fe;
  --claro-2: #e8eef9;
  --texto: #0c0c0c;
  --texto-2: #3f3f3f;
  --linha: #c8c8c8;

  --serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 24px);
  /* distância da borda da tela até o container (para imagens que "sangram") */
  --bleed: max(var(--gutter), calc((100vw - var(--container)) / 2));

  /* corpo mínimo de 17px: público idoso / baixa visão */
  --fs-corpo: clamp(1.0625rem, 0.9rem + 0.3vw, 1.25rem);
  --fs-pequeno: 1rem;
  --fs-h2: clamp(2rem, 2.87vw, 3.4375rem);
  --fs-h3: clamp(1.25rem, 1.67vw, 2rem);
  --sec-y: clamp(64px, 6vw, 112px);

  --sombra-btn: 0 4px 4px rgba(0, 0, 0, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-corpo);
  line-height: 1.6;
  color: var(--texto-2);
  background: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
/* anel de foco visível em fundo claro e escuro (branco + marinho) */
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 7px var(--marinho); border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.secao { padding-block: var(--sec-y); }
.secao--clara { background: var(--claro); }
.secao--azul { background: var(--azul); color: #fff; }

.pular { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--azul); padding: 10px 16px; }
.pular:focus { left: 8px; }

/* Tipografia */
.titulo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--texto);
  text-wrap: balance;
}
.titulo--centro { text-align: center; }
.secao--azul .titulo, .hero .titulo { color: #fff; }
.lead { font-weight: 700; }

/* Botão */
/* Mesmo formato do botão do hero: pílula com seta circular */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 10px 0 26px; border-radius: 999px;
  background: #fff; color: var(--azul);
  font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 26px -12px rgba(0, 30, 70, .45);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='18' fill='%23000' fill-opacity='.14'/%3E%3Cpath d='M13 23 23 13M14 13h9v9' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='18' fill='%23000' fill-opacity='.14'/%3E%3Cpath d='M13 23 23 13M14 13h9v9' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--ease);
}
.btn:hover { background: var(--laranja); color: var(--marinho); transform: translateY(-2px); }
.btn:hover::after { transform: rotate(45deg); }
.btn--azul { background: var(--azul); color: #fff; }

/* ==========================================================================
   Topo
   ========================================================================== */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.topo__inner { display: flex; align-items: center; gap: 40px; padding-block: 22px; transition: padding .3s var(--ease); }
.topo__logo img { width: clamp(96px, 7vw, 128px); transition: width .3s var(--ease); }
.topo__nav { display: flex; gap: clamp(20px, 2.6vw, 52px); margin-left: clamp(24px, 9vw, 180px); }
.topo__nav a {
  color: #fff; text-decoration: none;
  font-weight: 700; font-size: 16px; letter-spacing: 0.03em; text-transform: uppercase;
  position: relative; padding-block: 12px;
}
.topo__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--laranja); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.topo__nav a:hover::after, .topo__nav a:focus-visible::after { transform: scaleX(1); }
.topo.rolado { background: var(--azul-esc); box-shadow: 0 6px 24px rgba(0, 20, 50, .25); }
.topo.rolado .topo__inner { padding-block: 10px; }
.topo.rolado .topo__logo img { width: 92px; }
.topo__menu-btn { display: none; }

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(120px, 9vw, 150px) 0 clamp(56px, 5vw, 88px);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(0, 81, 151, .95) 0%, transparent 55%),
    linear-gradient(180deg, #14213f 0%, var(--marinho) 45%, var(--azul-esc) 100%);
  color: #c9d6e8;
}
/* grade sutil ao fundo */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 72% 30%, #000 10%, transparent 72%);
          mask-image: radial-gradient(ellipse 70% 70% at 72% 30%, #000 10%, transparent 72%);
}
.hero__glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero__glow--azul { width: 520px; height: 520px; right: -120px; top: -80px; background: #1f6fbf; opacity: .5; }
.hero__glow--laranja { width: 380px; height: 380px; left: 36%; bottom: -200px; background: var(--laranja); opacity: .18; }

.hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero__texto { container-type: inline-size; }

.selo {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px; border-radius: 999px;
  font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #ffad33; background: rgba(243, 146, 0, .08); border: 1px solid rgba(243, 146, 0, .28);
}
.selo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(243, 146, 0, .2); }

.hero h1 {
  margin: 26px 0 24px; color: #fff;
  font-family: var(--serif); font-weight: 700;
  font-size: min(4.25rem, 9.4cqi); line-height: 1; letter-spacing: -0.02em;
}
.hero h1 > span { display: block; width: fit-content; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--laranja); }
.hero__lead { max-width: 560px; color: #c3d0e2; font-size: clamp(1.0625rem, .95rem + .25vw, 1.1875rem); line-height: 1.6; }

.hero__acoes { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 30px; margin-top: 38px; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 10px 0 26px;
  border-radius: 999px; background: var(--laranja); color: var(--marinho); text-decoration: none;
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  box-shadow: 0 0 0 6px rgba(243, 146, 0, .14), 0 14px 34px -10px rgba(243, 146, 0, .55);
  transition: transform .25s var(--ease), background-color .25s;
}
.btn-pill:hover { background: #ffa41f; transform: translateY(-2px); }
.btn-pill__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(30, 43, 81, .14); transition: transform .35s var(--ease); }
.btn-pill:hover .btn-pill__ico { transform: rotate(45deg); }
.btn-pill__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.link-u {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 1.0625rem; padding-block: 12px;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: color .2s, gap .25s var(--ease);
}
.link-u:hover { color: var(--laranja); gap: 12px; }

.hero__prova { display: flex; align-items: center; gap: 16px; margin-top: 52px; }
.avatares { display: flex; flex: none; }
.avatares img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 2px solid var(--marinho); margin-left: -12px; }
.avatares img:first-child { margin-left: 0; }
.hero__prova strong { display: block; color: #fff; font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }
.hero__prova small { color: #b4c3d8; font-size: 1rem; }

/* Cards flutuantes */
.hero__visual { position: relative; height: 540px; }
.fcard {
  position: absolute; display: block; text-decoration: none; color: #d6e0ee;
  border-radius: 24px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  transition: border-color .3s;
}
a.fcard:hover { border-color: rgba(243, 146, 0, .5); }
.fcard--main { top: 40px; right: 0; width: min(400px, 100%); padding: 30px 30px 28px; animation: flutuaA 7s ease-in-out infinite; }
.fcard__tag { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffb04a; }
.fcard__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--laranja); animation: pulsar 2s infinite; }
.fcard__titulo { color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.75rem; line-height: 1.1; margin: 14px 0 12px; }
.fcard--main p:not(.fcard__titulo) { font-size: 1rem; line-height: 1.55; color: #c3d0e2; }
.fcard__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.fcard__meta small { display: block; font-size: .875rem; color: #b4c3d8; text-transform: uppercase; letter-spacing: .1em; }
.fcard__meta strong { color: #fff; font-size: 1.0625rem; }
.fcard--stat { left: 0; bottom: 118px; width: 250px; padding: 22px 24px; animation: flutuaB 8s ease-in-out infinite; }
.fcard__num { font-family: var(--serif); font-weight: 700; font-size: 3.6rem; line-height: 1; color: #fff; letter-spacing: -.03em; }
.fcard__num em { font-style: normal; color: var(--laranja); }
.fcard--stat p { font-size: 1rem; margin-top: 6px; color: #c3d0e2; }
.fcard--badge {
  right: 24px; bottom: 0; display: flex; align-items: center; gap: 12px; max-width: 320px;
  padding: 14px 20px 14px 16px; border-radius: 18px; border: 0;
  background: var(--laranja); color: var(--marinho);
  animation: flutuaA 9s ease-in-out infinite reverse;
}
.fcard--badge svg { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fcard--badge strong { display: block; font-size: 1.0625rem; line-height: 1.25; }
.fcard--badge small { font-size: 1rem; line-height: 1.35; display: block; margin-top: 2px; }
.orbita {
  position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; margin: -230px 0 0 -230px;
  border-radius: 50%; border: 1px dashed rgba(243, 146, 0, .2); animation: girar 60s linear infinite; pointer-events: none;
}
.orbita::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--laranja); box-shadow: 0 0 18px var(--laranja); }
.orbita--2 { width: 640px; height: 640px; margin: -320px 0 0 -320px; border-color: rgba(255, 255, 255, .06); animation-duration: 90s; animation-direction: reverse; }
.orbita--2::after { background: #5aa2e6; box-shadow: 0 0 18px #5aa2e6; }

/* entrada do hero */
.hero__texto > * { opacity: 0; transform: translateY(22px); animation: heroEntra .9s var(--ease) forwards; }
.hero__texto > :nth-child(2) { animation-delay: .1s; }
.hero__texto > :nth-child(3) { animation-delay: .2s; }
.hero__texto > :nth-child(4) { animation-delay: .3s; }
.hero__texto > :nth-child(5) { animation-delay: .4s; }
.hero__visual { opacity: 0; animation: heroEntra 1.1s .35s var(--ease) forwards; }

@keyframes heroEntra { to { opacity: 1; transform: none; } }
@keyframes flutuaA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes flutuaB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes pulsar { 0% { box-shadow: 0 0 0 0 rgba(243,146,0,.6); } 70% { box-shadow: 0 0 0 10px rgba(243,146,0,0); } 100% { box-shadow: 0 0 0 0 rgba(243,146,0,0); } }

/* ==========================================================================
   2. Relação
   ========================================================================== */
.relacao .titulo { margin-bottom: clamp(32px, 3vw, 48px); }
.relacao__grid {
  display: grid; grid-template-columns: minmax(0, 396fr) minmax(0, 717fr);
  gap: clamp(20px, 2.3vw, 44px); max-width: 1160px; margin-inline: auto; align-items: stretch;
}
.relacao__foto img { width: 100%; height: 100%; object-fit: cover; }
.relacao__lado { display: flex; flex-direction: column; gap: 32px; }
.destaques li { padding-block: 6px 16px; }
.destaques li + li { padding-top: 18px; position: relative; }
.destaques li + li::before { content: ""; position: absolute; top: 0; left: 0; width: min(320px, 60%); height: 1px; background: var(--linha); }
.destaques strong {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.25rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--texto);
}
.destaques li > span { display: block; font-size: clamp(1.0625rem, 0.95rem + 0.2vw, 1.1875rem); }
.relacao__predio { margin-top: auto; }
.relacao__predio img { width: 100%; aspect-ratio: 717 / 370; object-fit: cover; }

/* ==========================================================================
   3. História
   ========================================================================== */
.historia__grid {
  display: grid; grid-template-columns: minmax(0, 760fr) minmax(0, 520fr);
  gap: clamp(24px, 3vw, 56px); align-items: center;
}
.historia__texto .titulo { margin-bottom: 28px; }
.historia__texto p { max-width: 68ch; }
.historia__texto p + p { margin-top: 1.05em; }
.historia__fotos { position: relative; margin-right: calc(-1 * var(--bleed)); min-height: 100%; }
.historia__f1 { width: 72%; margin-left: auto; aspect-ratio: 609 / 699; object-fit: cover; }
.historia__f2 {
  position: absolute; left: 0; top: 16%; width: 52%;
  aspect-ratio: 436 / 479; object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 30, 70, .28);
}

/* ==========================================================================
   4. Direitos
   ========================================================================== */
.direitos__grid { display: grid; grid-template-columns: minmax(0, 587fr) minmax(0, 640fr); gap: clamp(28px, 4vw, 80px); align-items: center; }
.direitos__foto img { width: 100%; aspect-ratio: 587 / 667; object-fit: cover; }
.direitos__texto .titulo { margin-bottom: 26px; }
.direitos__texto p { color: rgba(255, 255, 255, .86); }
.direitos__texto p + p { margin-top: 1.05em; }
.direitos__texto .lead, .direitos__texto strong { color: #fff; }

/* ==========================================================================
   5. Áreas
   ========================================================================== */
.areas__titulo { padding-block: var(--sec-y) clamp(28px, 2.5vw, 40px); max-width: 900px; margin-inline: auto; }
.area { padding-block: 10px; }
.area:nth-child(odd) { background: var(--claro-2); }
.area__grid { display: grid; grid-template-columns: minmax(0, 575fr) minmax(0, 575fr); gap: clamp(28px, 6.8vw, 130px); align-items: center; }
.area img { width: 100%; aspect-ratio: 575 / 365; object-fit: cover; }
.area--inv img { order: 2; }
.area h3 { font-weight: 700; font-size: var(--fs-h3); line-height: 1.15; color: var(--texto); margin-bottom: 18px; letter-spacing: -0.01em; }
.area p { max-width: 60ch; }
.areas__cta { display: flex; justify-content: center; padding-block: clamp(32px, 2.5vw, 40px) var(--sec-y); }

/* ==========================================================================
   6. Fases (banner + carrossel)
   ========================================================================== */
.fases__banner { position: relative; overflow: hidden; }
.fases__banner img { width: 100%; height: clamp(320px, 27vw, 390px); object-fit: cover; }
.fases__banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0) 35%, rgba(12,14,18,.82) 60%, rgba(12,14,18,.9) 100%);
}
.fases__banner-texto {
  position: absolute; z-index: 1; top: 50%; right: clamp(20px, 2.5vw, 40px); transform: translateY(-56%);
  width: min(370px, 42%); color: #fff;
}
.fases__banner-texto .titulo { color: #fff; margin-bottom: 18px; }
.fases__banner-texto p { font-size: clamp(1.0625rem, 0.95rem + 0.2vw, 1.1875rem); line-height: 1.45; }

.carrossel { position: relative; margin-top: -48px; padding-inline: clamp(0px, 1.4vw, 22px); z-index: 2; }
.carrossel__trilho {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 12px;
}
.carrossel__trilho::-webkit-scrollbar { display: none; }
.carrossel__trilho { transition: opacity .23s var(--ease), translate .23s var(--ease); }
.carrossel__trilho.trocando { opacity: 0; translate: 0 8px; }
.cartao {
  scroll-snap-align: start;
  background: var(--azul); color: #fff;
  padding: 22px 18px 26px; min-height: 250px;
  box-shadow: 0 8px 18px rgba(0, 40, 90, .18);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.cartao:hover { background: var(--laranja); color: var(--marinho); transform: translateY(-4px); }
.cartao:hover p { color: var(--marinho); }
.cartao__icone { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.cartao h3 { font-weight: 600; font-size: clamp(1.125rem, 1rem + 0.3vw, 1.3125rem); line-height: 1.2; margin-bottom: 10px; }
.cartao p { font-size: 1rem; line-height: 1.45; color: rgba(255, 255, 255, .92); }
.carrossel__seta {
  position: absolute; top: calc(100% - 44px); z-index: 3;
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--azul); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(0, 40, 90, .25);
  transition: background-color .25s, opacity .25s;
}
.carrossel__seta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.carrossel__seta--ant { left: -30px; }
.carrossel__seta--ant svg { transform: rotate(180deg); }
.carrossel__seta--prox { right: -30px; }
.carrossel__seta:hover { background: var(--laranja); }
.carrossel__seta:disabled { opacity: .4; cursor: default; background: var(--azul); }
.fases__nota { text-align: center; margin-top: 18px; color: var(--texto-2); }
.fases__nota strong { color: var(--texto); }

/* ==========================================================================
   7. Por que
   ========================================================================== */
.porque { padding-block: clamp(56px, 4.3vw, 82px); overflow: hidden; }
.porque__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(589px, 34vw)); align-items: stretch; }
.porque__painel {
  background: var(--azul-esc);
  margin-left: calc(var(--bleed) - 26px);
  clip-path: polygon(0 36px, calc(100% - 46px) 36px, 100% 0, 100% 100%, calc(100% - 46px) calc(100% - 22px), 0 calc(100% - 22px));
  padding: calc(36px + clamp(24px, 2vw, 40px)) clamp(32px, 5vw, 96px) calc(22px + clamp(32px, 2.4vw, 46px)) 26px;
}
.porque__conteudo { max-width: 930px; }
.porque .titulo { margin-bottom: 26px; }
.motivos { margin-bottom: 30px; }
.motivos li {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: center;
  padding-block: 16px; position: relative;
}
.motivos li + li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 70%; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,0));
}
.motivos__icone {
  width: 56px; height: 56px; border-radius: 6px; background: var(--marinho);
  display: grid; place-items: center; box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
  transition: background-color .3s var(--ease);
}
.motivos li:hover .motivos__icone { background: var(--laranja); }
.motivos__icone svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.motivos h3 { font-weight: 700; font-size: clamp(1.125rem, 0.95rem + 0.3vw, 1.3125rem); color: #fff; line-height: 1.25; }
.motivos p { color: rgba(255, 255, 255, .86); font-size: var(--fs-corpo); line-height: 1.55; }
.porque__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }

/* ==========================================================================
   8. Etapas (acordeão)
   ========================================================================== */
.etapas__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; max-width: 1180px; }
.etapas__intro .titulo { margin-bottom: 26px; }
.acordeao__item { position: relative; padding-left: 76px; min-height: 68px; }
.acordeao__item + .acordeao__item { border-top: 1px solid #e6eaf0; }
.acordeao__num {
  position: absolute; left: 0; top: 8px;
  font-weight: 900; font-size: clamp(2.75rem, 2.2rem + 1.2vw, 3.5rem); line-height: 1;
  color: #e3e9f3; transition: color .3s var(--ease); pointer-events: none; user-select: none;
}
.acordeao__item.aberto .acordeao__num { color: var(--azul); opacity: .22; }
.acordeao h3 button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  text-align: left; padding-block: 20px; min-height: 68px; font-weight: 700; color: var(--texto);
  font-size: clamp(1.125rem, 0.95rem + 0.3vw, 1.3125rem); line-height: 1.25;
}
.acordeao__sinal { position: relative; flex: none; width: 12px; height: 12px; }
.acordeao__sinal::before, .acordeao__sinal::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform .3s var(--ease); }
.acordeao__sinal::after { transform: rotate(90deg); }
.aberto .acordeao__sinal::after { transform: rotate(0deg); }
.acordeao__corpo { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acordeao__corpo > p { overflow: hidden; visibility: hidden; transition: visibility 0s .35s; font-size: clamp(1.0625rem, 0.95rem + 0.2vw, 1.1875rem); color: var(--texto-2); padding-right: 28px; }
.aberto .acordeao__corpo { grid-template-rows: 1fr; }
.aberto .acordeao__corpo > p { padding-bottom: 20px; visibility: visible; transition-delay: 0s; }

/* ==========================================================================
   9. Comunidade
   ========================================================================== */
.comunidade__intro { text-align: center; max-width: 1150px; margin: 20px auto clamp(32px, 2.6vw, 44px); }
.comunidade__intro strong { color: var(--texto); }
.publicos { display: flex; gap: 19px; height: clamp(440px, 33vw, 580px); }
.publicos li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; transition: flex-grow .5s var(--ease); cursor: default; }
.publicos li.ativo { flex-grow: 1.42; }
/* ancorado no rosto de cada pessoa (--foco): ao expandir, o zoom acontece em volta do rosto, sem "descer" */
.publicos img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: var(--foco, 50% 30%); }
.publicos span {
  display: block; text-align: center; padding: 14px 8px 0; min-height: 3.6em;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.125rem, 1rem + 0.25vw, 1.3125rem); line-height: 1.15; color: var(--texto);
}
.comunidade { padding-bottom: calc(var(--sec-y) - 20px); }

/* ==========================================================================
   10. Final
   ========================================================================== */
.final__grid {
  display: grid; grid-template-columns: minmax(0, 735fr) minmax(0, 835fr);
  gap: clamp(28px, 2.6vw, 50px); align-items: center; padding-right: var(--bleed);
}
.final__fotos { position: relative; padding-bottom: 12%; }
.final__f1 { width: 88%; aspect-ratio: 651 / 501; object-fit: cover; }
.final__f2 { position: absolute; left: 50%; top: 15%; width: 47.6%; aspect-ratio: 350 / 343; object-fit: cover; box-shadow: 0 16px 34px rgba(0, 0, 0, .3); }
.final__texto .titulo { margin-bottom: 24px; }
.final__texto p { max-width: 64ch; }
.final__texto p + p { margin-top: 1.05em; }
.final__chamada { font-weight: 700; }
.final__texto .btn { margin-top: 28px; }

/* ==========================================================================
   11. Rodapé
   ========================================================================== */
.rodape { background: var(--azul-esc); color: #fff; padding-top: clamp(56px, 5vw, 88px); }
.rodape__grid {
  display: grid; grid-template-columns: 1.25fr 1.1fr 1fr .8fr; gap: clamp(32px, 4vw, 64px);
  align-items: start; padding-bottom: clamp(40px, 4vw, 64px);
}
.rodape__marca img { width: 140px; margin-bottom: 22px; }
.rodape__marca p { max-width: 34ch; font-size: 1.0625rem; line-height: 1.55; color: #dbe5f2; }
.rodape__sociais { display: flex; gap: 10px; margin-top: 22px; }
.rodape__sociais a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28); transition: color .25s, background-color .25s, border-color .25s;
}
.rodape__sociais a:hover { color: var(--marinho); background: var(--laranja); border-color: var(--laranja); }
.rodape__sociais svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.rodape__col h2 {
  font-family: var(--sans); font-weight: 700; font-size: .875rem; letter-spacing: .1em; text-transform: uppercase;
  color: #ffb04a; margin: 6px 0 18px;
}
.rodape__col a { color: #fff; text-decoration: none; }
.rodape__col a:hover, .rodape__col a:focus-visible { color: #ffc266; }

.rodape__contatos li + li { margin-top: 6px; }
.rodape__contatos a { display: flex; align-items: center; gap: 14px; min-height: 52px; }
.rodape__contatos svg, .rodape__endereco svg {
  flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, .1);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: background-color .25s, color .25s;
}
.rodape__contatos a:hover svg { background: var(--laranja); color: var(--marinho); }
.rodape__contatos span:not(.sr) { font-size: 1.0625rem; line-height: 1.3; overflow-wrap: anywhere; }
.rodape__contatos small { display: block; font-size: .875rem; color: #b9c8dc; }

.rodape__endereco { display: flex; align-items: flex-start; gap: 14px; font-style: normal; font-size: 1.0625rem; line-height: 1.55; color: #dbe5f2; }
.rodape__mapa {
  display: inline-flex; align-items: center; min-height: 44px; margin: 8px 0 0 54px;
  font-weight: 600; text-decoration: underline !important; text-underline-offset: 4px;
}

.rodape__links li a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.0625rem; }
.rodape__links li a:hover { text-decoration: underline; text-underline-offset: 4px; }

.rodape__base {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 1rem; color: #cfdbea;
}
.rodape__topo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; font-weight: 600; text-decoration: none; }
.rodape__topo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.rodape__topo:hover { color: #ffc266; }
.rodape__topo:hover svg { transform: translateY(-3px); }

/* texto só para leitor de tela */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Voltar ao topo (flutuante, acima do WhatsApp) */
.subir {
  position: fixed; right: calc(clamp(16px, 2vw, 32px) + 6px); bottom: calc(clamp(16px, 2vw, 32px) + 72px); z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--marinho); color: #fff; border: 2px solid #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
  opacity: 0; visibility: hidden; translate: 0 12px;
  transition: opacity .3s var(--ease), translate .3s var(--ease), visibility 0s .3s, background-color .25s;
}
.subir.visivel { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .3s var(--ease), translate .3s var(--ease), visibility 0s, background-color .25s; }
.subir:hover { background: var(--laranja); color: var(--marinho); }
.subir svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* WhatsApp flutuante */
.whats {
  position: fixed; right: clamp(16px, 2vw, 32px); bottom: clamp(16px, 2vw, 32px); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #128c4a; color: #fff; border: 2px solid #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
  transition: transform .25s var(--ease);
}
.whats:hover { transform: scale(1.08); }
.whats svg { width: 32px; height: 32px; fill: currentColor; }

/* ==========================================================================
   Interação no primeiro scroll
   --p: progresso de saída do hero (0 → 1) | --r: entrada da seção "Relação" (0 → 1)
   Os valores padrão mostram o estado final (sem JS ou com movimento reduzido).
   ========================================================================== */
.progresso { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; pointer-events: none; }
.progresso span { display: block; height: 100%; background: var(--laranja); transform-origin: left; transform: scaleX(0); }

.hero { --p: 0; --k: 1; padding-bottom: clamp(104px, 8vw, 132px); }
.hero::before { translate: 0 calc(var(--p) * 90px); }
.hero__texto { translate: 0 calc(var(--p) * var(--k) * -80px); opacity: calc(1.4 - var(--p) * 1.7); } /* só começa a esmaecer após ~25% do scroll */
.hero__glow--azul { translate: calc(var(--p) * -90px) calc(var(--p) * 140px); }
.hero__glow--laranja { translate: 0 calc(var(--p) * -180px); scale: calc(1 + var(--p) * .4); }
.fcard--main { translate: 0 calc(var(--p) * var(--k) * -150px); }
.fcard--stat { translate: 0 calc(var(--p) * var(--k) * -50px); }
.fcard--badge { translate: 0 calc(var(--p) * var(--k) * -230px); }
.orbita { rotate: calc(var(--p) * 150deg); scale: calc(1 + var(--p) * .12); }
.orbita--2 { rotate: calc(var(--p) * -100deg); }

.hero__rolar {
  position: absolute; left: 50%; bottom: clamp(20px, 2.4vw, 34px); translate: -50% calc(var(--p) * 40px);
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 12px;
  color: #d3deec; font-size: .9375rem; font-weight: 600; letter-spacing: .02em; text-decoration: none;
  opacity: calc(1 - var(--p) * 5);
  transition: color .25s;
}
.hero__rolar:hover { color: #fff; }
.hero__mouse { position: relative; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; }
.hero__mouse::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--laranja); animation: rolarPonto 1.8s var(--ease) infinite;
}
@keyframes rolarPonto { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

.relacao { --r: 1; }
.relacao__foto { overflow: hidden; clip-path: inset(calc((1 - var(--r)) * 35%) 0 0 0); }
.relacao__foto img { scale: calc(1.16 - var(--r) * .16); transform-origin: center bottom; }
.relacao__predio { overflow: hidden; }
.relacao__predio img { translate: 0 calc((1 - var(--r)) * 60px); scale: calc(1.08 - var(--r) * .08); }
.destaques li + li::before { transform-origin: left; scale: var(--r) 1; }

/* Animação de entrada (só com JS ativo) */
.js .revelar { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .revelar.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .revelar { transform: none; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .carrossel__trilho { grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; }
  .carrossel__seta--ant { left: -12px; }
  .carrossel__seta--prox { right: -12px; }
  .porque__wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 30vw); }
  .rodape__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Menu mobile */
  .topo__inner { justify-content: space-between; }
  .topo__menu-btn { display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; position: relative; z-index: 2; }
  .topo__menu-btn span { width: 24px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s; }
  .topo__menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topo__menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .topo__menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topo__nav {
    position: fixed; inset: 0; margin: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    background: var(--azul-esc);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .topo__nav a { font-size: 18px; }
  .topo__nav.aberto { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s; }

  .historia__texto p, .direitos__texto p, .area p, .fases__banner-texto p, .motivos p, .final__texto p { text-align: left; }
  .hero { min-height: 0; padding-top: 112px; padding-bottom: 56px; --k: .35; }
  .hero__rolar { display: none; }
  /* no celular os cards do hero repetiam os destaques da seção seguinte: ficam ocultos */
  .hero__visual { display: none; }
  /* botões centralizados no celular */
  .btn { display: flex; width: fit-content; margin-inline: auto; }
  .hero__acoes { flex-direction: column; align-items: center; gap: 10px; }
  /* revelação por recorte deixava vão em branco no celular: só o fade de entrada */
  .relacao__foto { clip-path: none; }
  .relacao__foto img, .relacao__predio img { scale: none; translate: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: min(3.25rem, 10.6cqi); }
  .hero__prova { margin-top: 40px; }

  .relacao__grid, .historia__grid, .direitos__grid, .area__grid, .etapas__grid, .final__grid { grid-template-columns: 1fr; }
  .relacao__foto img { aspect-ratio: 4 / 5; height: auto; max-height: 560px; }
  .historia__fotos { margin-right: 0; margin-top: 8px; }
  .area { padding-block: 0 28px; }
  .area__grid { padding-inline: 0; gap: 20px; }
  .area img, .area--inv img { order: 0; }
  .area__texto { padding-inline: var(--gutter); }
  .area__grid > img { width: 100%; aspect-ratio: 16 / 8; }
  .area h3 { margin-bottom: 10px; }

  .fases__banner img { height: 420px; }
  .fases__banner::after { background: linear-gradient(180deg, rgba(12,14,18,.15) 0%, rgba(12,14,18,.85) 55%); }
  .fases__banner-texto { top: auto; bottom: 64px; transform: none; left: 20px; right: 20px; width: auto; }
  .carrossel { margin-top: -36px; padding-inline: 0; }
  .carrossel__trilho { grid-auto-columns: 72%; gap: 14px; padding-inline: 4px; }
  .carrossel { padding-bottom: 60px; }
  .carrossel__seta { top: auto; bottom: 0; width: 48px; height: 48px; }
  .carrossel__seta--ant { left: calc(50% - 56px); }
  .carrossel__seta--prox { right: calc(50% - 56px); }

  .porque__wrap { grid-template-columns: 1fr; }
  .porque__painel { margin-left: 0; clip-path: none; padding: 40px var(--gutter); }
  .porque__foto { order: -1; }
  .porque__foto img { aspect-ratio: 16 / 11; height: auto; object-position: center 22%; }
  .porque { padding-block: 0; }
  .motivos li { grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
  .motivos__icone { width: 48px; height: 48px; }

  .publicos { display: grid; grid-template-columns: 1fr 1fr; height: auto; gap: 14px; }
  .publicos img { aspect-ratio: 3 / 4; flex: none; }
  .publicos li.ativo { flex-grow: 1; }

  .final__grid { padding-right: 0; }
  .final__fotos { margin-right: var(--gutter); }
  .final__texto { padding-inline: var(--gutter); }

  .rodape__grid { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .rodape__marca { grid-column: 1 / -1; }
  .rodape__base { flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 104px; } /* espaço para o botão flutuante do WhatsApp */
}

@media (max-width: 520px) {
  .acordeao__item { padding-left: 52px; }
  .hero__prova { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rodape__grid { grid-template-columns: 1fr; gap: 36px; }
  .carrossel__trilho { grid-auto-columns: 84%; }
}
