/* ===========================================================
   AX Planejados — estilos
   Tokens da marca na :root. Nenhum hex solto nos componentes.
   =========================================================== */

:root {
  /* paleta oficial (brand sheet) */
  --ink: #111111;
  --off: #F7F7F7;
  --gold: #D9C6A3;
  --teal: #0D3B46;

  /* canais para transparencia */
  --ink-rgb: 17 17 17;
  --off-rgb: 247 247 247;
  --gold-rgb: 217 198 163;

  /* cor funcional de terceiro (afordancia do WhatsApp) */
  --whats: #25D366;

  --branco: #FFFFFF;
  --texto: #2B2B2B;
  --texto-suave: #5C5C5C;
  --linha: rgb(var(--ink-rgb) / 0.12);

  --radius: 4px;
  --radius-card: 8px;
  --sombra: 0 1px 2px rgb(var(--ink-rgb) / 0.06), 0 8px 24px rgb(var(--ink-rgb) / 0.08);
  --sombra-alta: 0 18px 44px rgb(var(--ink-rgb) / 0.18);

  --wrap: 1180px;
  --header-h: 68px;
  --secao-y: clamp(56px, 9vw, 104px);

  --fonte: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (min-width: 900px) { :root { --header-h: 84px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--fonte);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texto);
  background: var(--branco);
  overflow-x: hidden;
}

img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 900px) { .wrap { padding-inline: 32px; } }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink);
  padding: 12px 20px; font-weight: 500;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: .8125rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--texto-suave); margin-bottom: .75em;
}

/* ---------- botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: inherit; font-size: 1rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: rgb(var(--gold-rgb) / .82); }

.btn--ghost { background: transparent; color: var(--off); border-color: rgb(var(--off-rgb) / .55); }
.btn--ghost:hover { background: rgb(var(--off-rgb) / .14); border-color: var(--off); }

.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--linha); }
.btn--ghost-dark:hover { background: rgb(var(--ink-rgb) / .06); }

.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
.btn--lg { min-height: 54px; padding: 15px 28px; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgb(var(--ink-rgb) / .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(var(--off-rgb) / .1);
  transition: background-color .25s ease;
}
.header.is-scrolled { background: var(--ink); box-shadow: 0 6px 22px rgb(var(--ink-rgb) / .35); }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  color: var(--off); font-weight: 600; font-size: 1rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.brand__tag { color: rgb(var(--off-rgb) / .62); font-size: .6875rem; letter-spacing: .04em; }

@media (min-width: 900px) { .brand__mark { width: 52px; height: 52px; } .brand__name { font-size: 1.0625rem; } }
@media (max-width: 380px) { .brand__text { display: none; } }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 0 12px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--off); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute; inset: 100% 0 auto 0;
  background: var(--ink);
  border-bottom: 1px solid rgb(var(--off-rgb) / .1);
  max-height: 0; overflow: hidden; visibility: hidden;
  transition: max-height .28s ease, visibility .28s;
}
.nav.is-open { max-height: 420px; visibility: visible; }
.nav__list { display: flex; flex-direction: column; padding: 8px 20px 20px; }
.nav__list a:not(.btn) {
  display: block; padding: 14px 0; color: var(--off); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgb(var(--off-rgb) / .08);
}
.nav__list a:not(.btn):hover { color: var(--gold); }
.nav__list .btn { margin-top: 16px; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { position: static; max-height: none; visibility: visible; overflow: visible; background: none; border: 0; }
  .nav__list { flex-direction: row; align-items: center; gap: 30px; padding: 0; }
  .nav__list a:not(.btn) { padding: 6px 0; border: 0; font-size: .9375rem; position: relative; }
  .nav__list a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
    background: var(--gold); transition: right .22s ease;
  }
  .nav__list a:not(.btn):hover::after { right: 0; }
  .nav__list .btn { margin-top: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: 640px; min-height: 92svh;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(48px, 9vw, 92px);
  background: var(--ink);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(var(--ink-rgb) / .62) 0%, rgb(var(--ink-rgb) / .20) 42%, rgb(var(--ink-rgb) / .82) 100%),
    linear-gradient(90deg, rgb(var(--ink-rgb) / .74) 0%, rgb(var(--ink-rgb) / .04) 58%);
}
.hero__inner { max-width: 760px; }
.hero__eyebrow {
  color: var(--gold); font-size: .8125rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1em;
}
.hero__title {
  color: var(--off); font-size: clamp(2rem, 6.4vw, 3.6rem); line-height: 1.08;
  letter-spacing: -0.025em; margin-bottom: .45em; text-wrap: pretty;
}
.hero__lead {
  color: rgb(var(--off-rgb) / .86); font-size: clamp(1rem, 2.4vw, 1.1875rem);
  max-width: 58ch; margin-bottom: 2em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .hero__actions .btn { flex: 0 0 auto; } }

/* ---------- selos ---------- */
.selos { background: var(--ink); color: rgb(var(--off-rgb) / .8); padding: clamp(32px, 5vw, 48px) 0; }
.selos__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
@media (min-width: 900px) { .selos__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.selo svg { width: 30px; height: 30px; fill: var(--gold); margin-bottom: 12px; }
.selo h3 { color: var(--off); font-size: 1rem; margin-bottom: .25em; }
.selo p { font-size: .875rem; line-height: 1.55; margin: 0; }

/* ---------- secoes ---------- */
.section { padding-block: var(--secao-y); scroll-margin-top: var(--header-h); }
.hero, .footer { scroll-margin-top: var(--header-h); }
.section--teal { background: var(--teal); color: rgb(var(--off-rgb) / .82); }
.section--dark { background: var(--ink); color: rgb(var(--off-rgb) / .82); }
.section--teal .section__title, .section--dark .section__title { color: var(--off); }
.section--teal .eyebrow, .section--dark .eyebrow { color: var(--gold); }
.section--teal .section__lead, .section--dark .section__lead { color: rgb(var(--off-rgb) / .8); }

.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section__title { font-size: clamp(1.75rem, 4.4vw, 2.6rem); text-wrap: balance; }
.section__lead { font-size: 1.0625rem; color: var(--texto-suave); margin: 0; }

/* ---------- ambientes ---------- */
.ambientes { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .ambientes { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 980px) { .ambientes { grid-template-columns: repeat(3, 1fr); } }

.ambiente {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  gap: 4px 16px; align-items: start; width: 100%; height: 100%;
  padding: 22px; text-align: left; cursor: pointer;
  font-family: inherit; color: var(--texto);
  background: var(--branco); border: 1px solid var(--linha); border-radius: var(--radius-card);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ambiente:hover { border-color: var(--gold); box-shadow: var(--sombra); transform: translateY(-3px); }
.ambiente svg {
  grid-row: 1 / 3; width: 44px; height: 44px; padding: 9px;
  fill: var(--ink); background: rgb(var(--gold-rgb) / .3); border-radius: var(--radius);
}
.ambiente__nome { font-weight: 600; font-size: 1.125rem; color: var(--ink); align-self: center; }
.ambiente__desc { font-size: .9375rem; line-height: 1.55; color: var(--texto-suave); }

/* ---------- etapas ---------- */
.etapas { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .etapas { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1040px) { .etapas { grid-template-columns: repeat(4, 1fr); } }

.etapa {
  padding: 26px 22px;
  background: rgb(var(--off-rgb) / .06);
  border: 1px solid rgb(var(--off-rgb) / .12);
  border-radius: var(--radius-card);
}
.etapa__num {
  display: block; font-size: 2.25rem; font-weight: 600; line-height: 1;
  color: var(--gold); margin-bottom: 14px;
}
.etapa h3 { color: var(--off); font-size: 1.0625rem; margin-bottom: .4em; }
.etapa p { font-size: .9375rem; line-height: 1.6; margin: 0; }
.etapas__cta { margin: clamp(28px, 4vw, 40px) 0 0; }

/* ---------- filtros ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filtro {
  min-height: 44px; padding: 9px 20px;
  font-family: inherit; font-size: .9375rem; font-weight: 500; color: var(--texto);
  background: var(--branco); border: 1px solid var(--linha); border-radius: 999px; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.filtro:hover { border-color: var(--ink); }
.filtro.is-active { background: var(--ink); border-color: var(--ink); color: var(--off); }

/* ---------- galeria ---------- */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.foto {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius-card); background: var(--ink); cursor: zoom-in;
}
.foto[hidden] { display: none; }
.foto img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .45s ease, opacity .3s ease; }
.foto:hover img { transform: scale(1.05); opacity: .92; }
.foto figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 16px 14px;
  font-size: .9375rem; font-weight: 500; color: var(--off);
  background: linear-gradient(180deg, rgb(var(--ink-rgb) / 0) 0%, rgb(var(--ink-rgb) / .85) 100%);
}

/* ---------- orcamento ---------- */
.orcamento { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
@media (min-width: 980px) { .orcamento { grid-template-columns: 1fr 1.1fr; } }

.orcamento__pontos { margin: 0 0 1.5em; display: grid; gap: 10px; }
.orcamento__pontos li { position: relative; padding-left: 30px; font-size: .9375rem; }
.orcamento__pontos li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 16px; height: 9px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.orcamento__ou { font-size: .9375rem; margin: 0; }
.orcamento__ou a { color: var(--gold); font-weight: 500; }

.form[hidden] { display: none; }
.form {
  display: grid; gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--off); color: var(--texto);
  border-radius: var(--radius-card); box-shadow: var(--sombra-alta);
}
.campo-linha { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 520px) { .campo-linha { grid-template-columns: 1fr 1fr; } }

.campo { display: grid; gap: 6px; }
.campo label { font-size: .875rem; font-weight: 500; color: var(--ink); }
.campo label span[aria-hidden] { color: var(--texto-suave); }
.campo__opt { font-weight: 400; color: var(--texto-suave); }
.campo__ajuda { font-size: .8125rem; line-height: 1.5; color: var(--texto-suave); margin: 2px 0 0; }

.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font-family: inherit; font-size: 1rem; color: var(--texto);
  background: var(--branco); border: 1px solid rgb(var(--ink-rgb) / .2); border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.campo textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.campo input[type="file"] { padding: 10px 12px; font-size: .9375rem; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(var(--gold-rgb) / .55);
}
.campo input[aria-invalid="true"], .campo select[aria-invalid="true"] { border-color: #B3261E; }
.campo--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__erro {
  margin: 0; padding: 12px 14px; font-size: .9375rem; font-weight: 500;
  color: #7A1C16; background: #FCE8E6; border-left: 3px solid #B3261E; border-radius: 0 var(--radius) var(--radius) 0;
}
.form__nota { font-size: .8125rem; line-height: 1.5; color: var(--texto-suave); margin: -4px 0 0; text-align: center; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.sucesso {
  padding: clamp(26px, 4vw, 40px); text-align: center;
  background: var(--off); color: var(--texto);
  border-radius: var(--radius-card); box-shadow: var(--sombra-alta);
}
.sucesso[hidden] { display: none; }
.sucesso svg { width: 54px; height: 54px; fill: var(--teal); margin: 0 auto 14px; }
.sucesso h3 { font-size: 1.5rem; }
.sucesso p { font-size: .9375rem; max-width: 46ch; margin-inline: auto; }
.sucesso__acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 0; }

/* ---------- rodape ---------- */
.footer { background: var(--ink); color: rgb(var(--off-rgb) / .72); padding-top: clamp(48px, 7vw, 80px); }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 34px; }
@media (min-width: 640px) { .footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }

.footer__brand img { width: 88px; height: 88px; margin-bottom: 14px; }
.footer__slogan { color: rgb(var(--off-rgb) / .8); font-size: .9375rem; max-width: 30ch; margin: 0; }
.footer__col h2 { color: var(--off); font-size: .8125rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1em; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { font-size: .9375rem; text-decoration: none; transition: color .18s ease; }
.footer__links a:hover { color: var(--gold); }

.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px;
  margin-top: clamp(36px, 5vw, 56px); padding-block: 22px 84px;
  border-top: 1px solid rgb(var(--off-rgb) / .12);
  font-size: .8125rem; color: rgb(var(--off-rgb) / .55);
}
.footer__base p { margin: 0; }
@media (min-width: 640px) { .footer__base { padding-bottom: 26px; } }

/* ---------- botao flutuante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whats); color: var(--branco);
  box-shadow: 0 8px 20px rgb(var(--ink-rgb) / .35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
@media (min-width: 900px) { .wa-float { right: 24px; bottom: 24px; width: 60px; height: 60px; } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; background: rgb(var(--ink-rgb) / .95);
}
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; max-width: min(1100px, 92vw); }
.lightbox__fig img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--radius); }
.lightbox__fig figcaption { margin-top: 12px; text-align: center; color: rgb(var(--off-rgb) / .85); font-size: .9375rem; }
.lightbox__nav, .lightbox__fechar {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none;
  font-family: inherit; font-size: 2rem; line-height: 1; color: var(--off);
  background: rgb(var(--off-rgb) / .1); border: 0; border-radius: 50%; cursor: pointer;
  transition: background-color .18s ease;
}
.lightbox__nav:hover, .lightbox__fechar:hover { background: rgb(var(--off-rgb) / .24); }
.lightbox__fechar { position: absolute; top: 14px; right: 14px; font-size: 1.75rem; }
@media (max-width: 620px) {
  .lightbox { flex-wrap: wrap; align-content: center; }
  .lightbox__fig { order: -1; flex: 1 0 100%; }
}
