/* ============================================================
   Jorge Ortiz — Apartamento 2 dormitórios no Sumaré (AP0104)
   Tema clean: creme quente + dourado, Manrope, cantos suaves
   ============================================================ */

/* ------------------------------------------------------------ fonte
   Manrope variável (400–800) auto-hospedada: sem requisição a terceiros
   e sem bloqueio de render. Subsets latin + latin-ext (pt-BR). */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #faf8f5;
  --card: #ffffff;
  --ink: #16150f;
  --ink-2: #43403a;
  --muted: #6b675e;
  --line: #e9e4db;
  --line-soft: #f0ebe2;

  --gold: #dfa844;
  --gold-2: #8f661c;         /* dourado escuro — garante contraste AA em texto */
  --gold-dark: #7f5c14;
  --gold-ring: rgba(223, 168, 68, .28);

  --pill: #121110;            /* header flutuante + seções escuras */
  --dark-card: #1a1815;       /* cartão do preço */

  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(22, 21, 15, .05), 0 8px 24px rgba(22, 21, 15, .06);
  --shadow-md: 0 2px 4px rgba(22, 21, 15, .06), 0 16px 40px rgba(22, 21, 15, .10);
  --shadow-lg: 0 4px 10px rgba(22, 21, 15, .10), 0 26px 60px rgba(22, 21, 15, .16);

  --container: 1180px;
  --header-h: 76px;

  --ease-soft: cubic-bezier(.25, .8, .3, 1);
}

/* ------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body {
  font-family: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
button, input, textarea { font: inherit; }
::selection { background: var(--gold); color: #241a05; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(880px, 100% - 40px); }

/* ------------------------------------------------------------ botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft), background .25s var(--ease-soft), border-color .25s var(--ease-soft);
}
.btn svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn:focus-visible { outline: 3px solid var(--gold-ring); outline-offset: 2px; }

.btn--gold { background: var(--gold); color: #241a05; }
.btn--gold:hover { background: #e6b455; box-shadow: 0 10px 24px var(--gold-ring); }
.btn--white { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--white:hover { background: #fff; box-shadow: var(--shadow-md); }
.btn--outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--dark { background: var(--gold); color: #241a05; }
.btn--dark:hover { background: #e6b455; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.btn--darkghost { border-color: rgba(255, 255, 255, .3); color: #fff; background: transparent; }
.btn--darkghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }

.btn--sm { padding: 11px 20px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------- header */
.header {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
}
.header__inner {
  width: min(var(--container), 100% - 28px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--pill);
  border-radius: 20px;
  padding: 8px 10px 8px 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 14px 40px rgba(15, 12, 6, .18);
  transition: box-shadow .3s ease;
}
.header--solid .header__inner { box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 18px 50px rgba(15, 12, 6, .26); }

.brand { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; color: #fff; }
.brand__logo {
  width: 88px;
  height: 68px;
  object-fit: contain;
  padding: 5px;
  background: #000;
  border: 1px solid rgba(223, 168, 68, .5);
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease-soft);
}
.brand:hover .brand__logo { transform: scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__text small {
  color: var(--gold);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav a:not(.btn) {
  color: #cfccc4;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav a:not(.btn):hover { color: #fff; }
.nav a[aria-current="true"] { color: var(--gold); }
.nav .btn { margin-left: 6px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------------------------------------------------------- hero */
.hero { padding: 134px 0 28px; }

.hero__card {
  position: relative;
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: clamp(440px, 60vh, 590px);
  box-shadow: var(--shadow-md);
}
.hero__card > img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  animation: heroZoom 14s var(--ease-soft) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.hero__card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 6, .05) 30%, rgba(10, 9, 6, .52) 72%, rgba(10, 9, 6, .68) 100%),
    linear-gradient(105deg, rgba(10, 9, 6, .42) 0%, rgba(10, 9, 6, .08) 55%);
}
.hero__content {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: clamp(26px, 4.5vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 720px;
  width: 100%;
}

.chip-glass {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero__title {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
  max-width: 700px;
  text-wrap: balance;
}
.hero__sub { color: rgba(255, 255, 255, .88); font-size: 1.04rem; max-width: 620px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  background: #fff;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(10, 9, 6, .16);
}

.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hero__actions--center { justify-content: center; }
.hero__price {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  background: rgba(12, 11, 8, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(223, 168, 68, .45);
  padding: 8px 18px;
  border-radius: 999px;
}

/* credencial do corretor no hero */
.hero__broker {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  max-width: 420px;
}
.hero__broker img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
  flex: none;
}
.hero__broker strong {
  display: block;
  color: #fff;
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.hero__broker span {
  color: rgba(255, 255, 255, .75);
  font-size: .78rem;
  letter-spacing: .02em;
}

/* ---------------------------------------------------------- stats */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
}
.stats > div { background: #fff; padding: 20px 22px; }
.stats dt {
  color: var(--gold-2);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.stats dd { color: var(--ink); font-weight: 700; font-size: .98rem; line-height: 1.3; }
.stats > div:nth-child(5) { background: var(--dark-card); }
.stats > div:nth-child(5) dt { color: var(--gold); }
.stats > div:nth-child(5) dd { color: #fff; }
@media (max-width: 1080px) {
  .stats > div:nth-child(5) { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------- seções */
.section { padding: clamp(52px, 7vw, 84px) 0; }
.section--tint { background: linear-gradient(180deg, #f6f2ec 0%, #faf8f5 100%); padding-bottom: clamp(32px, 5vw, 60px); }
.section--dark {
  background: var(--pill);
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute;
  top: -220px; right: -180px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 168, 68, .16) 0%, rgba(223, 168, 68, 0) 68%);
  pointer-events: none;
}

.section__head { max-width: 640px; }
.section__desc { color: var(--muted); margin-top: 12px; }

.eyebrow {
  color: var(--gold-2);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow--dark { color: var(--gold); }
.h2--dark { color: #fff; }

.lead { color: var(--muted); }
.lead + .lead { margin-top: 16px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(40px, 6vw, 78px);
  align-items: center;
}

/* ---------------------------------------------------------- features */
.features { margin: 26px 0 30px; display: grid; gap: 12px; }
.features li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
  font-weight: 500;
}
.features li::before {
  content: "✦";
  position: absolute;
  left: 2px;
  top: 1px;
  color: var(--gold-2);
  font-size: .9rem;
}

/* ---------------------------------------------------------- collage */
.collage { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: stretch; }
.collage__a { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.collage__b,
.collage__a img { height: 100%; }
.collage__a img { object-fit: cover; }
.collage__b { border-radius: var(--radius); overflow: hidden; }
.collage__b img { width: 100%; height: 100%; object-fit: cover; }
.collage figure, .collage figure img { min-height: 320px; }

/* ---------------------------------------------------------- lazer */
.lazer-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
}
.lazer-copy__lead { color: #d8d2c6; margin-top: 16px; line-height: 1.7; }
.lazer-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  display: grid;
  gap: 12px;
}
.lazer-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #ede9e0;
  font-size: .98rem;
  font-weight: 600;
}
.lazer-list li span {
  flex: 0 0 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(223, 168, 68, .16);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 800;
}
.lazer-copy__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.lazer-media { display: grid; gap: 16px; }
.lazer-media figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  border: 1px solid rgba(223, 168, 68, .28);
}
.lazer-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------------------------------------------------------- galeria */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery__item a {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft), border-color .3s ease;
}
.gallery__item a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(223, 168, 68, .5); }
.gallery__item a:focus-visible { outline: 3px solid var(--gold-ring); outline-offset: 2px; }
.gallery figure { position: relative; }
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .5s var(--ease-soft);
}
.gallery__item a:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 12px 16px 14px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--wide img { aspect-ratio: 16 / 9; }

/* ---------------------------------------------------------- ficha técnica */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.ficha-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
.ficha-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ficha-card__title {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -.01em;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .84rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.tags li:hover { background: rgba(223, 168, 68, .12); border-color: rgba(223, 168, 68, .5); color: var(--ink); }

.ficha-card--dark {
  background: var(--dark-card);
  border-color: rgba(223, 168, 68, .3);
  box-shadow: var(--shadow-md);
}
.ficha-card--dark .ficha-card__title { color: #fff; border-bottom-color: rgba(255, 255, 255, .12); }
.specs { display: grid; gap: 10px; }
.specs li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(255, 255, 255, .12);
}
.specs li:last-child { border-bottom: 0; padding-bottom: 0; }
.specs span { color: rgba(255, 255, 255, .62); font-size: .86rem; font-weight: 600; }
.specs strong { color: var(--gold); font-size: .98rem; font-weight: 800; text-align: right; }

/* ---------------------------------------------------------- bloco SEO */
.seo-note {
  margin-top: 26px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.75;
  box-shadow: var(--shadow-sm);
}
.seo-note strong { color: var(--ink); }

/* ---------------------------------------------------------- localização */
.local__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); position: relative; }
.local__media img { width: 100%; }
.hero__tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  background: rgba(12, 11, 8, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------------------------------------------------------- proposta */
.cta {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 68px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(223, 168, 68, .22);
}
.cta .eyebrow { margin-bottom: 0; }
.cta__text { color: rgba(255, 255, 255, .75); max-width: 60ch; margin-top: 10px; }

/* ---------------------------------------------------------- contato */
.creci {
  display: inline-block;
  margin: -4px 0 14px;
  padding: 6px 14px;
  border: 1px solid rgba(223, 168, 68, .5);
  background: rgba(223, 168, 68, .1);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 600;
}
.creci strong { color: var(--gold-2); }

.portrait {
  width: 212px;
  border-radius: 50%;
  overflow: hidden;
  margin: 28px 0 26px;
  background: #fff;
  border: 4px solid var(--gold);
  box-shadow: 0 16px 38px rgba(22, 21, 15, .18), 0 0 0 7px rgba(223, 168, 68, .14);
}
.portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.contact-rows { display: grid; gap: 12px; }
.contact-rows li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
}
.contact-rows svg { width: 20px; height: 20px; fill: var(--gold-2); flex: none; }
.contact-rows strong { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.contact-rows span { color: var(--ink); font-weight: 700; font-size: 1.02rem; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 36px);
  box-shadow: var(--shadow-sm);
}
.form-card .field + .field { margin-top: 18px; }
.form-card label {
  display: block;
  color: var(--ink-2);
  font-size: .84rem;
  font-weight: 700;
  margin-bottom: 7px;
}
.form-card input,
.form-card textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;          /* evita zoom automático no iOS */
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-card input::placeholder,
.form-card textarea::placeholder { color: #a8a29a; }
.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-ring);
}
.form-card textarea { resize: vertical; min-height: 130px; }
.form-card .btn { margin-top: 22px; }
.form-card button[disabled] { opacity: .65; cursor: progress; transform: none; }

.form-note { color: var(--muted); font-size: .84rem; margin-top: 12px; text-align: center; }
.form-note a { color: var(--gold-2); font-weight: 700; }
.form-note a:hover { text-decoration: underline; }

.form-note.is-loading { color: var(--gold-2); font-weight: 600; }
.form-note.is-loading::before {
  content: "";
  display: inline-block;
  width: 13px; height: 13px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(223, 168, 68, .35);
  border-top-color: var(--gold-2);
  border-radius: 50%;
  animation: girar .7s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

.form-note.is-error { color: #9c3b2b; font-weight: 600; }

/* mensagem de sucesso */
.form-success {
  text-align: center;
  padding: 12px 4px 4px;
}
.form-success__icon {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(31, 122, 74, .12);
  border: 2px solid #1f7a4a;
}
.form-success__icon svg { width: 30px; height: 30px; fill: #1f7a4a; }
.form-success__title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.form-success__text { color: var(--muted); margin-bottom: 22px; }
.form-success__text strong { color: var(--gold-2); }
.form-success .btn { margin-top: 0; }

/* alternativa por WhatsApp */
.form-alt {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  text-align: center;
}
.form-alt__sep {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.form-alt .btn { margin-top: 0; }
.form-alt .btn svg { fill: currentColor; }

.form-lgpd {
  margin-top: 16px;
  color: #6f6a61;
  font-size: .78rem;
  line-height: 1.55;
  text-align: center;
}

.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------- FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.faq details[open] { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span {
  color: var(--gold-2);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  transition: transform .25s ease;
}
.faq details[open] summary span { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--gold-ring); outline-offset: -3px; border-radius: var(--radius); }
.faq__body { padding: 0 22px 20px; color: var(--muted); }

/* ---------------------------------------------------------- rodapé */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 52px 0 0;
  margin-top: clamp(32px, 5vw, 56px);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr .9fr .8fr;
  gap: 36px;
  align-items: center;
}
.footer__brand { display: flex; align-items: center; gap: 20px; }
.footer__logo {
  width: 118px;
  height: 92px;
  object-fit: contain;
  padding: 6px;
  background: #000;
  border: 1px solid rgba(223, 168, 68, .5);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(22, 21, 15, .2);
}
.footer__brand p { color: var(--muted); max-width: 24ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer__nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: 9px 0;
  transition: color .2s ease;
}
.footer__nav a:hover { color: var(--gold-2); }
.footer__cta { justify-self: end; }

.footer__legal {
  margin-top: 40px;
  border-top: 1px solid var(--line-soft);
  padding: 22px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: var(--muted);
  font-size: .86rem;
}
.footer__control {
  flex-basis: 100%;
  color: var(--ink-2);
  font-size: .82rem;
  letter-spacing: .02em;
}
.footer__control strong {
  color: var(--gold-2);
  font-weight: 800;
  letter-spacing: .08em;
}
.footer__credit { flex-basis: 100%; font-size: .82rem; }
.footer__credit a { color: var(--gold-2); font-weight: 700; text-decoration: underline; }
.footer__credit a:hover { color: var(--gold-dark); }

/* ---------------------------------------------------------- flutuante */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--pill);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  padding: 11px 20px 11px 12px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(10, 8, 4, .28);
  transition: transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(10, 8, 4, .36); }
.wa-float__icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  color: #241a05;
  padding: 7px;
  fill: currentColor;
}

/* ---------------------------------------------------------- lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: rgba(10, 9, 6, .94);
  color: #fff;
  max-width: 100vw;
  max-height: 100vh;
}
.lightbox::backdrop { background: rgba(8, 7, 5, .92); }
.lightbox__close, .lightbox__nav {
  position: fixed;
  z-index: 2;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .18); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__figure {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  margin: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 64px 72px;
}
.lightbox__figure img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox__figure figcaption { color: rgba(255, 255, 255, .8); text-align: center; font-size: .95rem; }
.lightbox__count { color: rgba(255, 255, 255, .5); text-align: center; font-size: .8rem; letter-spacing: .12em; }
body.lb-open { overflow: hidden; }

/* ---------------------------------------------------------- reveal
   Fade suave e contínuo ao rolar a página: opacidade + deslocamento
   curto, com curva ease-out lenta e escalonamento em cascata.
   Tudo — imagens e textos — entra conforme a página desce. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.05s var(--ease-soft),
    transform 1.05s var(--ease-soft);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* as imagens do bloco entram com o texto, um instante depois */
.reveal figure img,
.reveal .lazer-media img,
.reveal .collage img {
  transition: transform 1.05s var(--ease-soft);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* mantém o fade (suave), sem deslocamento — sem risco de vertigem */
  .reveal {
    opacity: 0;
    transform: none;
    transition: opacity .7s ease;
  }
  .reveal.in { opacity: 1; }
  .hero__card > img { animation: none; }
  .gallery img, .btn, .wa-float { transition: none; }
}

/* ---------------------------------------------------------- responsivo */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__brand { flex-direction: column; text-align: center; }
  .footer__cta { justify-self: center; }
  .footer__legal { justify-content: center; }
}

@media (max-width: 960px) {
  html { scroll-padding-top: 36px; }
  .hero { padding-top: 126px; }
  .hero__card { min-height: clamp(430px, 66vh, 520px); }
  .grid-2 { grid-template-columns: 1fr; }
  .lazer-split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: auto; }
  .collage figure, .collage figure img { min-height: 240px; }

  /* brand e toggle acima do overlay do nav (nav aberto = z-index 1) */
  .brand, .menu-toggle { position: relative; z-index: 5; }
  .header__inner { position: relative; z-index: 2; }
  .menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  /* com o menu aberto a barrinha some — o overlay creme é a tela toda */
  body.menu-open .header__inner { background: transparent; box-shadow: none; }
  body.menu-open .brand__text strong { color: var(--ink); }
  body.menu-open .brand__text small { color: var(--gold-2); }
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    background: #faf8f5;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .nav.open { opacity: 1; pointer-events: auto; z-index: 1; }
  .nav a:not(.btn) { color: var(--ink-2); font-size: 1.3rem; font-weight: 700; }
  .nav a:not(.btn):hover { color: var(--ink); }
  .nav a[aria-current="true"] { color: var(--gold-2); }
  .header__inner { padding-right: 10px; }
}

@media (max-width: 620px) {
  .container { width: min(var(--container), 100% - 32px); }
  .brand__text small { display: none; }
  .brand__text strong { font-size: .92rem; letter-spacing: .1em; }
  .brand__logo { width: 72px; height: 56px; padding: 4px; border-radius: 13px; }
  .portrait { width: 168px; margin: 24px 0 22px; }
  .chip-glass { font-size: .72rem; padding: 9px 15px; letter-spacing: .12em; }
  .hero { padding-top: 112px; }
  .hero__card { min-height: 420px; }
  /* no celular o recorte é mais fechado: joga o foco na varanda e no sofá */
  .hero__card > img { object-position: 20% center; }
  .hero__title { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
  .hero__actions .btn { width: 100%; }
  .hero__price { font-size: 1rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .faq summary { padding: 16px 18px; }
  .faq__body { padding: 0 18px 18px; }
  .lightbox__figure { padding: 64px 16px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .wa-float span { display: none; }
  .wa-float { padding: 9px; right: 14px; bottom: 14px; }
  .wa-float__icon { width: 30px; height: 30px; padding: 6px; }
  .footer { padding-top: 44px; }
  .footer__inner { gap: 30px; }
  .footer__nav { gap: 4px 26px; }
  .footer__nav a { padding: 10px 0; }
  .footer__logo { width: 96px; height: 76px; padding: 5px; border-radius: 15px; }
  .hero__card::after {
    background:
      linear-gradient(180deg, rgba(10, 9, 6, .1) 20%, rgba(10, 9, 6, .62) 68%, rgba(10, 9, 6, .78) 100%),
      linear-gradient(105deg, rgba(10, 9, 6, .5) 0%, rgba(10, 9, 6, .12) 60%);
  }
}
