/* =========================================================================
   WALACE FIALHO CONSTRUTORA — Landing de captação
   Sistema visual: "Structural Excellence System" (ver design.md na raiz)

   Todos os tokens abaixo derivam de design.md:
   - Cores: seção "Colors"  -> Dark Navy #0C1B33 + Yellow Gold #F4B223
   - Tipografia: bloco "typography" -> Hanken Grotesk (display) + Manrope (corpo)
   - Espaçamento: bloco "spacing"   -> unidade 8px, gutter 24, margens 20/80,
     section-gap 120
   - Formas: seção "Shapes"         -> raio 0 em absolutamente tudo
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* --- Cores (design.md > Colors) --- */
  --navy: #0c1b33;              /* superfície base, fundo de todas as seções */
  --navy-deep: #07101f;         /* superfície mais baixa, rodapé */
  --navy-low: #0f2140;          /* container baixo */
  --navy-mid: #14294d;          /* cards e blocos elevados */
  --navy-high: #1b3560;         /* container alto, hover de card */

  --gold: #f4b223;              /* acento: CTA, destaques estruturais */
  --gold-dim: #d1940e;          /* hover do botão primário */
  --gold-soft: rgba(244, 178, 35, 0.14);

  --white: #ffffff;             /* tipografia de alta leitura */
  --slate: #e2e8f0;             /* neutro secundário: texto de apoio e bordas */
  --slate-mute: #aebacd;        /* texto terciário / legendas */

  --outline: rgba(226, 232, 240, 0.2);   /* bordas 1px sobre fundo escuro */
  --outline-strong: rgba(226, 232, 240, 0.42);

  /* --- Tipografia (design.md > typography) --- */
  --font-display: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-display: clamp(2.5rem, 6.2vw, 4rem);      /* 40px mobile -> 64px desktop */
  --fs-headline-lg: clamp(1.5rem, 3.6vw, 2rem);  /* 24px -> 32px */
  --fs-headline-md: clamp(1.25rem, 2.4vw, 1.5rem); /* 20px -> 24px */
  --fs-body-lg: 1.125rem;                        /* 18px */
  --fs-body-md: 1rem;                            /* 16px */
  --fs-label: 0.75rem;                           /* 12px */

  --ls-display: 0.05em;
  --ls-headline: 0.02em;
  --ls-label: 0.1em;

  /* --- Espaçamento (design.md > spacing) --- */
  --u: 8px;                     /* unidade base */
  --gutter: 24px;
  --pad-inline: 20px;           /* margin-mobile */
  --section-gap: clamp(72px, 11vw, 120px);
  --maxw: 1240px;

  /* --- Elevação (design.md > Elevation & Depth) --- */
  --shadow-card: 0 24px 56px rgba(0, 0, 0, 0.2);
  --shadow-strong: 0 32px 80px rgba(0, 0, 0, 0.2);

  /* --- Estrutura --- */
  --header-h: 64px;
  --radius: 0;                  /* design.md > Shapes: sharp, 0px, sem exceção */
}

@media (min-width: 900px) {
  :root {
    --pad-inline: 80px;         /* margin-desktop */
  }
}

/* -------------------------------------------------------------------------
   2. RESET E BASE
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background-color: var(--navy);
  /* Gradiente radial sutil para evitar "dead space" (design.md > Colors) */
  background-image:
    radial-gradient(120% 70% at 50% -10%, #143059 0%, rgba(20, 48, 89, 0) 60%);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Camada de grão a 2% (design.md > Elevation & Depth > Noise Texture) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }

/* O <picture> so existe para oferecer a fonte WebP; ele nao deve gerar caixa
   propria, senao o height:100% do <img> passa a medir contra o <picture>
   (que nao tem altura) em vez do contêiner real. */
picture { display: contents; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

ul, ol { list-style: none; }

/* Foco de teclado visível em tudo que é interativo (acessibilidade) */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------
   3. UTILITÁRIOS
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--pad-inline) * 2);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--pad-inline);
  z-index: 200;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.section { padding-block: var(--section-gap); position: relative; }

/* Rótulo "olho" acima dos títulos — 12px caps, tracking largo */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: calc(var(--u) * 2);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

/* Título de seção: "placa de rua", seco, pesado, caixa alta */
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-headline-lg);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: var(--ls-headline);
  text-transform: uppercase;
  max-width: 20ch;
}

.section-head { margin-bottom: calc(var(--u) * 6); }

.section-head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-head--center .section-title { max-width: 24ch; }

.lead {
  font-size: var(--fs-body-lg);
  color: var(--slate);
  max-width: 62ch;
}

/* Dobra "quem recebe uma vez por ano" — imagem de fundo full-bleed com
   efeito parallaxe. background-attachment:fixed só entra a partir de
   700px: em telas de toque (mobile) o navegador costuma ignorar fixed
   durante o scroll, então ali a imagem fica só como fundo estático. */
.safra { overflow: hidden; isolation: isolate; }

.safra__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/img/safra-parallax-960.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.safra__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 16, 31, 0.88) 0%, rgba(7, 16, 31, 0.62) 45%, rgba(7, 16, 31, 0.92) 100%);
}

@media (min-width: 700px) {
  .safra__bg {
    background-image: url("../assets/img/safra-parallax-1920.jpg");
    background-attachment: fixed;
  }
}

/* Marcador de pendência — item que ainda depende de confirmação do cliente.
   Fica VISÍVEL de propósito: é uma página em revisão. Ver PENDENCIAS.md.
   Antes de publicar, resolver o dado e remover o <span class="marker">. */
.marker {
  display: inline;
  font-family: var(--font-body);
  font-size: 0.8125em;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px dashed var(--gold);
  padding: 1px 8px;
  margin-inline: 2px;
  line-height: 1.5;
}

/* Divisor estrutural fino */
.rule {
  height: 1px;
  background: var(--outline);
  border: 0;
}

/* -------------------------------------------------------------------------
   4. BOTÕES (design.md > Components > Buttons)
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}

.btn svg { flex: none; }

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}
.btn--primary:hover { background: var(--gold-dim); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--ghost:hover { background: var(--white); color: var(--navy); }

.btn--sm { padding: 12px 18px; font-size: 0.8125rem; }

.btn--block { width: 100%; }

@media (min-width: 560px) {
  .btn--block { width: auto; }
}

/* -------------------------------------------------------------------------
   5. HEADER FIXO
   ------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 16, 31, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--outline);
  transition: transform 0.28s ease;
}

/* Estado aplicado por js/main.js ao rolar para baixo */
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  width: 100%;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.header__cta .btn { padding: 11px 16px; font-size: 0.8125rem; }

/* No mobile o botão do header mostra ícone + rótulo curto */
.header__cta-long { display: none; }
.header__cta-short { display: inline; }

@media (min-width: 720px) {
  .header__cta-long { display: inline; }
  .header__cta-short { display: none; }
  .header__cta .btn { padding: 12px 22px; }
}

/* -------------------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--navy);
  min-height: auto;
  padding-top: var(--header-h);
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 1680;
  max-height: 60vh;
  z-index: -2;
}

/* O render da fachada e vertical (1400x1680). No mobile usamos cover para
   preencher a altura limitada, e no desktop usamos contain. */
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

/* Sobreposição escura — legibilidade do texto sobre o render */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 16, 31, 0.86) 0%, rgba(7, 16, 31, 0.42) 32%, rgba(7, 16, 31, 0.92) 82%, var(--navy) 100%);
}

.hero__inner {
  text-align: center;
  position: relative;
  padding-top: calc(var(--u) * 3);
  padding-bottom: calc(var(--u) * 8);
}

.hero__content {
  max-width: 46ch;
  margin-inline: auto;
  position: relative;
}

/* H1 único da página. O <span> visível carrega a headline criativa,
   e o texto técnico de SEO vive no .sr-only dentro do mesmo h1. */
.hero__title {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: calc(var(--u) * 3);
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__subtitle {
  margin-top: 0;
  font-size: var(--fs-body-lg);
  color: var(--slate);
}

.hero__actions { margin-top: calc(var(--u) * 4); }

.hero__proof {
  margin-top: calc(var(--u) * 2.5);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--slate-mute);
}

@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    align-items: center;
    min-height: min(100svh, 920px);
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: calc(var(--u) * 8);
  }

  /* No desktop a imagem ocupa a faixa direita e o texto alinha à esquerda,
     com o scrim cobrindo a transição. */
  .hero__media {
    position: absolute;
    inset: 0;
    left: auto;
    width: 47%;
    max-height: none;
    aspect-ratio: auto;
  }
  /* Na faixa da direita a torre aparece completa, apoiada na base. */
  .hero__media img {
    object-position: 50% 100%;
    object-fit: contain;
  }

  .hero__scrim {
    background:
      linear-gradient(90deg, var(--navy) 0%, var(--navy) 46%, rgba(12, 27, 51, 0.72) 60%, rgba(12, 27, 51, 0) 78%),
      linear-gradient(180deg, rgba(7, 16, 31, 0.5) 0%, rgba(7, 16, 31, 0) 30%);
  }

  .hero__inner {
    text-align: left;
    padding-top: 0;
    padding-bottom: 0;
  }
  /* Largura da coluna de texto: precisa caber a esquerda da faixa de imagem,
     que comeca em 53% da viewport. */
  .hero__content { margin-inline: 0; max-width: min(52%, 620px); }

  .hero__title {
    position: static;
    margin-bottom: 0;
  }
  .hero__subtitle {
    margin-top: calc(var(--u) * 3);
  }
  .hero__subtitle, .hero__proof { max-width: 46ch; }
}

/* -------------------------------------------------------------------------
   7. BARRA DE NÚMEROS
   ------------------------------------------------------------------------- */
.stats {
  border-block: 1px solid var(--outline);
  background: var(--navy-deep);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* mobile: grade 2 x 2 */
}

.stats__item {
  padding: calc(var(--u) * 4) var(--gutter);
  border-bottom: 1px solid var(--outline);
}
.stats__item:nth-child(odd) { border-right: 1px solid var(--outline); }
.stats__item:nth-last-child(-n + 2) { border-bottom: 0; }

.stats__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.stats__label {
  display: block;
  margin-top: calc(var(--u) * 1.5);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--slate);
}

@media (min-width: 860px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stats__item {
    border-bottom: 0;
    border-right: 1px solid var(--outline);
    padding-block: calc(var(--u) * 6);
  }
  .stats__item:last-child { border-right: 0; }
  .stats__item:nth-child(odd) { border-right: 1px solid var(--outline); }
}

/* -------------------------------------------------------------------------
   8. SEÇÃO DOR
   ------------------------------------------------------------------------- */
.pain__list {
  display: grid;
  gap: 1px;
  background: var(--outline);
  border-block: 1px solid var(--outline);
}

.pain__item {
  position: relative;
  padding: calc(var(--u) * 3) 0 calc(var(--u) * 3) calc(var(--u) * 4);
  background: var(--navy);
  font-size: var(--fs-body-lg);
  color: var(--slate);
}

/* Marcador quadrado na cor de acento. Posicao absoluta em vez de item de
   flex: assim qualquer <strong> ou <span> dentro do texto continua no fluxo
   normal da frase, em vez de virar uma coluna propria. */
.pain__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--u) * 3 + 0.5em);
  width: 12px;
  height: 12px;
  background: var(--gold);
}

@media (min-width: 900px) {
  .pain__item { padding: calc(var(--u) * 3.5) 0 calc(var(--u) * 3.5) calc(var(--u) * 4); }
}

.pain__layout { display: grid; gap: calc(var(--u) * 5); align-items: center; }

@media (min-width: 900px) {
  .pain__layout { grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 8); }
}

.pain__video video {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  background: var(--navy);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-card);
}

/* -------------------------------------------------------------------------
   9. SEÇÃO OFERTA — cards com "gold strip"
   ------------------------------------------------------------------------- */
.offer__grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .offer__grid { grid-template-columns: repeat(2, 1fr); }
}

.offer__card {
  position: relative;
  background: var(--navy-mid);
  border-top: 4px solid var(--gold);   /* "Gold Strip" = conteúdo Tier 1 */
  box-shadow: var(--shadow-card);
  padding: calc(var(--u) * 4) calc(var(--u) * 4) calc(var(--u) * 5);
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 2);
}

/* Indicador numérico grande a 10% de opacidade atrás do texto
   (design.md > Components > Lists & Steps) */
.offer__num {
  position: absolute;
  top: calc(var(--u) * 1);
  right: calc(var(--u) * 2);
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: var(--white);
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}

.offer__text {
  position: relative;
  font-size: var(--fs-body-lg);
  color: var(--slate);
}

/* -------------------------------------------------------------------------
   10. DISPONIBILIDADE — elevação de 12 andares (elemento de assinatura)
   ------------------------------------------------------------------------- */
.avail__layout {
  display: grid;
  gap: calc(var(--u) * 6);
  align-items: start;
}

@media (min-width: 960px) {
  .avail__layout { grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 10); }
  .avail__aside { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* --- O desenho --- */
.elevation {
  position: relative;
  width: 100%;
  padding: calc(var(--u) * 3) calc(var(--u) * 3) 0;
  background: var(--navy-deep);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-strong);
}

/* Cobertura do prédio: laje fina acima do 12º */
.elevation__cap {
  height: 10px;
  background: var(--outline-strong);
  margin-inline: calc(var(--u) * 1.5);
}

.elevation__stack {
  display: flex;
  flex-direction: column-reverse;   /* 1º andar no fim do DOM fica embaixo */
  gap: 3px;
  padding-top: 3px;
}

.floor {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--u);
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--outline-strong);
  background: transparent;               /* disponível = contorno */
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--slate);
}

/* Ticks de janela, para o desenho ler como elevação e não como gráfico */
.floor::before {
  content: "";
  position: absolute;
  inset: 8px 78px 8px 46px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--outline) 0 5px,
    transparent 5px 26px
  );
  pointer-events: none;
}

.floor--sold {
  background: var(--gold);               /* vendido = preenchido no acento */
  border-color: var(--gold);
  color: var(--navy);
}
.floor--sold::before {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(12, 27, 51, 0.22) 0 5px,
    transparent 5px 26px
  );
}

.floor__n { position: relative; flex: none; }

.floor__tag {
  position: relative;
  flex: none;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
}

.floor--sold .floor__tag { color: var(--navy); }
.floor:not(.floor--sold) .floor__tag { color: var(--slate-mute); }

/* Base / térreo destinado a comércio */
.elevation__base {
  margin-top: 3px;
  margin-inline: calc(var(--u) * -3);
  padding: 12px calc(var(--u) * 3);
  border-top: 1px solid var(--outline-strong);
  background: var(--navy-low);
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-mute);
  text-align: center;
}

/* Linha "obra hoje" atravessando a elevação na altura do 3º pavimento */
.elevation__now {
  /* Entra no fluxo do .elevation__stack, entre o 3o e o 4o andar. Como o
     stack e column-reverse, ela desenha logo acima do 3o pavimento. As
     margens negativas fazem a linha sangrar ate a borda da elevacao. */
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline: calc(var(--u) * -3);
  margin-block: 5px;
  pointer-events: none;
}
.elevation__now::before,
.elevation__now::after {
  content: "";
  height: 2px;
  background: var(--white);
  flex: 1;
}
.elevation__now span {
  flex: none;
  padding: 4px 8px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.elevation__legend {
  margin-top: calc(var(--u) * 3);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--slate-mute);
}

.avail__actions { margin-top: calc(var(--u) * 4); }

@media (min-width: 560px) {
  .floor { min-height: 42px; font-size: 0.75rem; }
  .floor::before { inset: 10px 86px 10px 52px; }
}

/* --- Reveal andar por andar ---
   Por padrao o desenho ja nasce visivel: sem JavaScript, com movimento
   reduzido ou sem IntersectionObserver, a elevacao aparece inteira.
   O JS so adiciona .is-animatable quando de fato vai animar, e depois .is-in
   quando a elevacao entra na viewport. */
.elevation.is-animatable .floor {
  opacity: 0;
  transform: translateY(14px);
}
.elevation.is-animatable.is-in .floor {
  opacity: 1;
  transform: none;
  transition: opacity 0.42s ease, transform 0.42s ease;
  transition-delay: var(--d, 0ms);
}

/* -------------------------------------------------------------------------
   11. OBJEÇÕES
   ------------------------------------------------------------------------- */
.objections__list {
  display: grid;
  gap: calc(var(--u) * 5);
}

.objection {
  display: grid;
  gap: calc(var(--u) * 2);
  padding-top: calc(var(--u) * 4);
  border-top: 1px solid var(--outline);
}

.objection__q {
  font-family: var(--font-display);
  font-size: var(--fs-headline-md);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: var(--ls-headline);
  text-transform: uppercase;
  color: var(--gold);
}

.objection__a {
  font-size: var(--fs-body-lg);
  color: var(--slate);
  max-width: 68ch;
}

@media (min-width: 960px) {
  .objection { grid-template-columns: 1fr 1.9fr; gap: calc(var(--u) * 6); }
  .objection__q { max-width: 14ch; }
}

/* -------------------------------------------------------------------------
   12. PLANTAS, FICHA TÉCNICA E GALERIA
   ------------------------------------------------------------------------- */
.plans__layout {
  display: grid;
  gap: calc(var(--u) * 6);
}

/* Ficha técnica em texto corrido, acima da galeria. */
.plans__spec { max-width: 68ch; }
.plans__spec .lead { margin-bottom: calc(var(--u) * 3); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  /* Cada item tem a altura da propria imagem, sem esticar para acompanhar
     o vizinho mais alto da linha. */
  align-items: start;
}

@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* A galeria da dobra de plantas ocupa a largura toda da section, então
   ganha uma coluna extra em telas largas para um efeito bento grid. */
@media (min-width: 900px) { .gallery--bento { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* Sem aspect-ratio fixo: os renders tem proporcoes diferentes entre si
   (quase quadrados, paisagem, retrato) e um 4/3 imposto cortava movel,
   forro e cabeceira. Cada card assume a proporcao da imagem que carrega. */
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--navy-mid);
  border: 1px solid var(--outline);
  transition: border-color 0.18s ease;
}
.gallery__item:hover { border-color: var(--gold); }

.gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
.gallery__item:hover img { transform: scale(1.04); }

/* Rótulo em dog-ear de 45° (design.md > Shapes > Angle Accents) */
.gallery__item--wide { grid-column: span 2; }

/* Planta baixa nunca entra em object-fit: cover. Cortar planta esconde comodo.
   O fundo claro casa com o fundo da propria prancha. */
.gallery__item--plan { background: #e9e7e3; border-color: rgba(226, 232, 240, 0.32); }
.gallery__item--plan img { padding: 6px; box-sizing: border-box; }

.gallery__zoom {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 6px 10px 6px 16px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
}

/* --- Carrossel (prova social: quem já comprou) ---
   Scroll-snap nativo: funciona por arraste/toque mesmo sem JavaScript.
   As setas só aparecem como reforço quando o JS está disponível. */
.carousel { position: relative; }

.carousel__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-track { background: transparent; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--gold); }

.carousel__item {
  flex: 0 0 78%;
  scroll-snap-align: start;
}

@media (min-width: 640px) { .carousel__item { flex-basis: 46%; } }
@media (min-width: 960px) { .carousel__item { flex-basis: 31%; } }

.carousel__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: calc(var(--u) * 3);
}

.carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(226, 232, 240, 0.1);
  border: 1px solid var(--outline-strong);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.carousel__btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* -------------------------------------------------------------------------
   13. LIGHTBOX (feito à mão, sem biblioteca)
   ------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 9, 18, 0.94);
}
.lightbox.is-open { display: flex; }
.lightbox[hidden] { display: none; }

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
  border: 1px solid var(--outline);
  background: var(--navy-mid);
}

.lightbox__caption {
  font-size: 0.875rem;
  color: var(--slate);
  text-align: center;
}

.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(226, 232, 240, 0.1);
  border: 1px solid var(--outline-strong);
  color: var(--white);
  transition: background-color 0.16s ease, color 0.16s ease;
}
.lightbox__btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (min-width: 900px) {
  .lightbox__prev { left: 28px; }
  .lightbox__next { right: 28px; }
  .lightbox__close { top: 24px; right: 28px; }
}

/* -------------------------------------------------------------------------
   14. LOCALIZAÇÃO
   ------------------------------------------------------------------------- */
.place__layout { display: grid; gap: calc(var(--u) * 6); }

@media (min-width: 960px) {
  .place__layout { grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 8); align-items: start; }
}

.place__map {
  position: relative;
  border: 1px solid var(--outline);
  background: var(--navy-mid);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.place__map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.05); }

/* Captura o primeiro clique só para registrar o evento click_mapa;
   depois de disparar, o JS remove a camada e o mapa fica interativo. */
.place__map-catch { position: absolute; inset: 0; z-index: 2; cursor: pointer; background: transparent; }

.place__points {
  margin-top: calc(var(--u) * 4);
  display: grid;
  gap: 1px;
  background: var(--outline);
  border-block: 1px solid var(--outline);
}

.place__point {
  position: relative;
  padding: calc(var(--u) * 2) 0 calc(var(--u) * 2) calc(var(--u) * 3.5);
  background: var(--navy);
  color: var(--slate);
}
.place__point::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--u) * 2 + 0.55em);
  width: 10px; height: 10px;
  border: 2px solid var(--gold);
}

.place__actions { margin-top: calc(var(--u) * 4); }

/* -------------------------------------------------------------------------
   15. QUEM CONSTRÓI
   ------------------------------------------------------------------------- */
.builder__layout { display: grid; gap: calc(var(--u) * 5); align-items: center; }

@media (min-width: 900px) {
  .builder__layout { grid-template-columns: 0.85fr 1.15fr; gap: calc(var(--u) * 8); }
}

.builder__media {
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--navy-mid);
}
.builder__media img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder para imagem que ainda não existe na pasta assets */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--gutter);
  background: #2b3444;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  text-align: center;
}

.builder__actions { margin-top: calc(var(--u) * 4); }

/* -------------------------------------------------------------------------
   16. FAQ — <details>/<summary> nativos, funciona sem JavaScript
   ------------------------------------------------------------------------- */
.faq__list {
  border-top: 1px solid var(--outline);
  max-width: 90ch;
}

.faq__item { border-bottom: 1px solid var(--outline); }

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gutter);
  padding-block: calc(var(--u) * 3);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
  transition: color 0.16s ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--gold); }
/* O <h3> existe para a hierarquia de cabecalhos; visualmente ele e o summary. */
.faq__q h3 { font: inherit; color: inherit; margin: 0; }

/* Sinal de + / − desenhado em CSS, sem ícone de biblioteca */
.faq__sign {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.28em;
}
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq__sign::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq__sign::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq__item[open] .faq__sign::after { transform: scaleY(0); opacity: 0; }

.faq__a {
  padding-bottom: calc(var(--u) * 3);
  font-size: var(--fs-body-md);
  color: var(--slate);
  max-width: 72ch;
}

/* -------------------------------------------------------------------------
   17. CTA FINAL — bloco alto, centralizado
   ------------------------------------------------------------------------- */
.final {
  background: var(--navy-deep);
  border-block: 1px solid var(--outline);
  text-align: center;
}

.final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 3);
  padding-block: calc(var(--u) * 4);
}

.final__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  max-width: 22ch;
  text-wrap: balance;
}

.final__text { font-size: var(--fs-body-lg); color: var(--slate); max-width: 56ch; }

.final__actions { margin-top: var(--u); }

/* -------------------------------------------------------------------------
   18. RODAPÉ
   ------------------------------------------------------------------------- */
.footer {
  background: var(--navy-deep);
  padding-block: calc(var(--u) * 8) calc(var(--u) * 6);
  font-size: 0.875rem;
  color: var(--slate-mute);
}

.footer__grid { display: grid; gap: calc(var(--u) * 5); }

@media (min-width: 860px) {
  .footer__grid { grid-template-columns: auto 1fr auto; align-items: start; gap: calc(var(--u) * 8); }
}

.footer__logo img { height: 52px; width: auto; }

.footer__lines { display: grid; gap: 4px; }

.footer__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.footer__links { display: flex; flex-wrap: wrap; gap: calc(var(--u) * 2); }
.footer a { color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: var(--gold); }

.footer__legal {
  margin-top: calc(var(--u) * 6);
  padding-top: calc(var(--u) * 3);
  border-top: 1px solid var(--outline);
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 92ch;
}

/* -------------------------------------------------------------------------
   19. BOTÃO FLUTUANTE DE WHATSAPP
   ------------------------------------------------------------------------- */
.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: var(--shadow-strong);
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: background-color 0.18s ease, bottom 0.25s ease;
}
.fab:hover { background: #1EBE5D; }

/* Sobe o botão enquanto o banner de cookies estiver na tela */
.fab.is-raised { bottom: 148px; }

@media (min-width: 560px) {
  .fab { right: 24px; bottom: 24px; }
  .fab.is-raised { bottom: 132px; }
}

/* -------------------------------------------------------------------------
   20. BANNER DE COOKIES (LGPD)
   ------------------------------------------------------------------------- */
.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100;
  display: none;
  background: var(--navy-deep);
  border-top: 4px solid var(--gold);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.4);
}
.consent.is-open { display: block; }

.consent__inner {
  display: grid;
  gap: calc(var(--u) * 2);
  padding-block: calc(var(--u) * 2.5);
}

.consent__text { font-size: 0.875rem; color: var(--slate); max-width: 70ch; }
.consent__text a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.consent__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 900px) {
  .consent__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: calc(var(--u) * 4);
    padding-block: calc(var(--u) * 3);
  }
  .consent__actions { flex-wrap: nowrap; }
}

/* -------------------------------------------------------------------------
   21. PÁGINA DE CONTEÚDO (política de privacidade)
   ------------------------------------------------------------------------- */
.doc { padding-top: calc(var(--header-h) + var(--section-gap)); padding-bottom: var(--section-gap); }

.doc__inner { max-width: 76ch; }

.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  margin-bottom: calc(var(--u) * 2);
}

.doc h2 {
  font-family: var(--font-display);
  font-size: var(--fs-headline-md);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: var(--ls-headline);
  text-transform: uppercase;
  color: var(--gold);
  margin-top: calc(var(--u) * 6);
  margin-bottom: calc(var(--u) * 2);
}

.doc p, .doc li { color: var(--slate); font-size: var(--fs-body-md); }
.doc p + p { margin-top: calc(var(--u) * 2); }

.doc ul { display: grid; gap: calc(var(--u) * 1.5); margin-top: calc(var(--u) * 2); }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px; height: 8px;
  background: var(--gold);
}
/* Paragrafo logo depois de uma lista precisa de respiro proprio */
.doc ul + p { margin-top: calc(var(--u) * 3); }

.doc a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.doc__meta { color: var(--slate-mute); font-size: 0.875rem; }

/* -------------------------------------------------------------------------
   22. MOVIMENTO REDUZIDO
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* O reveal da elevação simplesmente não acontece */
  .elevation .floor { opacity: 1 !important; transform: none !important; }
  .gallery__item:hover img { transform: none; }
}
