/* ============================================================
   SÃO PEDRO RESIDENCE — TOKENS
   Paleta, tipos e medidas. Importe este arquivo primeiro.
   ============================================================ */

:root {
  /* marca — extraída da logo e dos renders do @saopedro.residence */
  --navy-950: #05101C;
  --navy-900: #081727;
  --navy-850: #0B1E32;
  --navy-800: #102840;   /* cor exata da logo */
  --navy-700: #17364F;
  --navy-600: #22496A;
  --navy-500: #37648B;

  --gold-200: #EFE4CE;
  --gold-300: #E0CDA8;
  --gold-400: #D0B88B;
  --gold-500: #C0A878;   /* linha assinatura da marca */
  --gold-600: #A88C5C;
  --gold-700: #866F48;

  --sand-50:  #FBFAF7;
  --sand-100: #F4F1EB;
  --sand-150: #EFEAE2;
  --sand-200: #E7E1D6;
  --sand-300: #D8CFC0;
  --sand-400: #BFB3A0;

  --wood:  #A88460;
  --olive: #5C6B4E;
  --terra: #B5735E;

  --ink-900: #0D1520;
  --ink-800: #1B2634;
  --ink-700: #2E3B4B;
  --ink-500: #5B6774;
  --ink-400: #7C8794;
  --ink-300: #9BA5B0;

  --sans:  'Outfit', 'Segoe UI', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --data:  'Inter', 'Segoe UI', system-ui, sans-serif;
  --brand: 'Montserrat', var(--sans);

  --W: 1600px;
  --H: 900px;
  --pad-x: 104px;
  --pad-y: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}


/* ============================================================
   SÃO PEDRO RESIDENCE — LANDING PAGE
   Estrutura de página longa. Depende de tokens.css + fonts.css.
   NÃO importar junto com deck.css (ele trava a página em 1600x900).
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink-900);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- 1. GRADE ---------- */
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.sec { padding: 108px 0; position: relative; }
.sec.tight { padding: 76px 0; }
.sec-navy { background: var(--navy-900); color: var(--sand-50); }
.sec-sand { background: var(--sand-100); }
.sec-navy .lp-lead, .sec-navy .lp-body { color: #A3B4C4; }

/* ---------- 2. TIPOGRAFIA ---------- */
.lp-eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-700); display: inline-flex; align-items: center; gap: 14px;
}
.lp-eyebrow::before { content: ''; width: 32px; height: 1px; background: currentColor; opacity: .8; }
.sec-navy .lp-eyebrow { color: var(--gold-500); }

.lp-h1 { font-size: clamp(38px, 6vw, 74px); font-weight: 200; line-height: 1.04; letter-spacing: -.035em; }
.lp-h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 200; line-height: 1.1;  letter-spacing: -.028em; }
.lp-h3 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 350; line-height: 1.24; letter-spacing: -.012em; }
.lp-lead { font-size: clamp(17px, 2vw, 20px); font-weight: 300; line-height: 1.6; color: var(--ink-500); }
.lp-body { font-size: 16px; font-weight: 300; line-height: 1.68; color: var(--ink-500); }
.lp-micro { font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-400); }
.gold { color: var(--gold-700); }
.sec-navy .gold { color: var(--gold-400); }

/* ---------- 3. CABEÇALHO ---------- */
.lp-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8, 23, 39, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.lp-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.lp-head img { height: 34px; width: auto; }

/* ---------- 4. HERO ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center 62%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,16,28,.96) 0%, rgba(5,16,28,.88) 34%, rgba(5,16,28,.55) 60%, rgba(5,16,28,.25) 100%),
    linear-gradient(0deg, rgba(5,16,28,.72), rgba(5,16,28,.08) 55%);
}
.hero .wrap {
  position: relative; z-index: 2; padding: 116px 0 96px;
  display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: center;
}
.hero-txt { color: var(--sand-50); }
.hero-txt .lp-lead { color: #B8C6D3; margin-top: 26px; max-width: 46ch; }

/* cartao do formulario na primeira dobra */
.form-card {
  background: rgba(8, 23, 39, .82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(192,168,120,.30);
  border-radius: 5px;
  padding: 34px 32px 30px;
  box-shadow: 0 26px 70px rgba(0,0,0,.42);
}
.form-card h3 {
  font-size: 22px; font-weight: 350; line-height: 1.24;
  letter-spacing: -.012em; color: var(--sand-50);
}
.form-card .sub { font-size: 14px; font-weight: 300; color: #A3B4C4; margin-top: 10px; line-height: 1.5; }
.form-card .form { margin-top: 24px; }

/* ---------- 5. BOTÕES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  padding: 17px 32px; border-radius: 3px; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); }
.btn-ghost { background: transparent; color: var(--sand-50); border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-400); }
.btn-sm { padding: 12px 22px; font-size: 12.5px; }

/* ---------- 6. CABEÇALHO DE SEÇÃO ---------- */
.sec-head { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: end; margin-bottom: 52px; }
.sec-head .lp-lead { max-width: 42ch; text-align: right; font-size: 17px; }

/* ---------- 7. ATRIBUTOS ---------- */
.attrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; }
.attr { padding: 34px 26px 30px 0; border-top: 1px solid rgba(16,40,64,.16); }
.attr + .attr { padding-left: 26px; border-left: 1px solid rgba(16,40,64,.16); }
.sec-navy .attr { border-color: rgba(255,255,255,.14); }
.attr .n { font-family: var(--data); font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--gold-700); }
.sec-navy .attr .n { color: var(--gold-500); }
.attr .t { font-size: 19px; font-weight: 350; margin-top: 16px; line-height: 1.24; }
.attr .d { font-size: 14px; font-weight: 300; line-height: 1.55; color: var(--ink-500); margin-top: 12px; }
.sec-navy .attr .d { color: #A3B4C4; }

/* ---------- 8. NÚMEROS ---------- */
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 34px; }
.num-item .v {
  font-size: 56px; font-weight: 200; line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.num-item .k { font-size: 13.5px; font-weight: 300; color: var(--ink-500); margin-top: 12px; line-height: 1.4; }
.sec-navy .num-item .k { color: #A3B4C4; }

/* ---------- 9. GALERIA ---------- */
.gal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gal figure {
  position: relative; overflow: hidden; border-radius: 3px;
  grid-column: span 2; aspect-ratio: 3 / 2;
}
.gal figure.wide { grid-column: span 3; aspect-ratio: 16 / 10; }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.9);
  background: linear-gradient(0deg, rgba(5,16,28,.82), transparent);
}

/* ---------- 10. LOCALIZAÇÃO ---------- */
.loc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.loc figure { border-radius: 3px; overflow: hidden; aspect-ratio: 16 / 11; }
.loc img { width: 100%; height: 100%; object-fit: cover; }
.loc-list { display: flex; flex-direction: column; }
.loc-list div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.13);
  font-size: 16px; font-weight: 300;
}
.loc-list div:last-child { border-bottom: 0; }
.loc-list span { font-family: var(--data); font-size: 13px; color: var(--gold-500); white-space: nowrap; }

/* ---------- 11. FORMULÁRIO ---------- */
.form-box { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field label {
  display: block; font-size: 11px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-500); margin-bottom: 9px;
}
.field input {
  width: 100%; padding: 16px 18px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
  color: var(--sand-50); font-family: var(--sans); font-size: 16px; font-weight: 300;
}
.field input::placeholder { color: rgba(255,255,255,.38); }
.field input:focus { outline: 0; border-color: var(--gold-500); background: rgba(255,255,255,.09); }
.form .btn { margin-top: 8px; width: 100%; }
.form-nota { font-size: 12px; color: #8A9BAB; line-height: 1.5; margin-top: 4px; }

/* ---------- 12. WHATSAPP FLUTUANTE ---------- */
.zap {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px 15px 18px; border-radius: 100px;
  background: #25D366; color: #06301A; text-decoration: none;
  font-size: 14.5px; font-weight: 500; letter-spacing: .02em;
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
  transition: transform .2s, box-shadow .2s;
}
.zap:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.34); }
.zap svg { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* ---------- 13. RODAPÉ ---------- */
.lp-foot { background: var(--navy-950); color: #7E8F9E; padding: 54px 0 46px; }
.lp-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.lp-foot img { height: 40px; width: auto; opacity: .85; }

/* link do perfil: endereco fisico em cima, endereco digital embaixo */
.lp-foot .social {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 13px; color: var(--gold-500); text-decoration: none;
  font-size: 13px; letter-spacing: .01em;
  transition: color .25s ease, transform .25s ease;
}
.lp-foot .social svg { width: 18px; height: 18px; flex: none; }
.lp-foot .social:hover { color: var(--sand-50); }
.lp-foot .social:hover svg { transform: translateY(-1px); }

/* faixa de copyright: fecha o rodape sem competir com os dados legais */
.lp-foot .lp-foot-base {
  justify-content: center;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(251,250,247,.08);
  font-size: 12px; letter-spacing: .07em; text-transform: uppercase;
  color: #61717F; text-align: center;
}

/* ---------- 14. MARCADOR DE PENDÊNCIA ---------- */
/* usado só no esboço; sai quando os dados reais chegarem */
.todo {
  border: 1px dashed var(--gold-600); border-radius: 3px;
  background: rgba(192,168,120,.08);
  padding: 5px 11px; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-700);
  display: inline-block; font-weight: 500;
}
.sec-navy .todo { color: var(--gold-400); }

/* ---------- 15. RESPONSIVO ---------- */
/* screen: as regras mobile nao podem valer na impressao, senao o PDF sai
   com o layout de celular (o Chrome avalia media query contra a caixa da pagina) */
@media screen and (max-width: 900px) {
  .sec { padding: 72px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .sec-head .lp-lead { text-align: left; }
  .loc, .form-box { grid-template-columns: 1fr; gap: 38px; }
  .gal { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gal figure { grid-column: span 1; aspect-ratio: 4 / 3; }
  .gal figure.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
  .attr, .attr + .attr { padding-left: 0; border-left: 0; }
  .hero { min-height: 0; }
  .hero .wrap { padding: 72px 0 64px; grid-template-columns: 1fr; gap: 40px; }
  .form-card { padding: 26px 22px 24px; }
  .zap { right: 16px; bottom: 16px; padding: 13px 18px 13px 15px; font-size: 13.5px; }
}

/* ---------- 16. IMPRESSÃO ---------- */
@media print {
  .lp-head { position: static; }
  .zap { display: none !important; }
  html { scroll-behavior: auto; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* ---------- 17. RETORNO DO FORMULÁRIO ---------- */
.form-msg {
  display: none; margin-top: 14px; padding: 13px 16px; border-radius: 3px;
  font-size: 14px; line-height: 1.5;
}
.form-msg.ok  { display: block; background: rgba(120,180,140,.16); border: 1px solid rgba(120,180,140,.45); color: #BFE3CC; }
.form-msg.erro{ display: block; background: rgba(200,110,90,.14);  border: 1px solid rgba(200,110,90,.45); color: #F0C4B8; }
.form button[disabled] { opacity: .55; cursor: default; }

/* ---------- 18. PLANTAS ---------- */
.plantas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.planta { grid-column: span 2; }
.planta {
  display: flex; flex-direction: column;
  padding: 18px 18px 22px; border-radius: 3px;
  border: 1px solid rgba(16,40,64,.12); background: rgba(255,255,255,.58);
}
.planta figure {
  margin: 0; border-radius: 2px; overflow: hidden; background: #fff;
  aspect-ratio: 2 / 1; display: grid; place-items: center; padding: 6px;
}
.planta img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.planta .tag {
  margin-top: 18px; font-family: var(--data); font-size: 10.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-700);
}
.planta h3 {
  margin-top: 16px; font-size: 20px; font-weight: 300;
  letter-spacing: -.01em; color: var(--ink-900);
}
.planta .tag + h3 { margin-top: 10px; }
.par-tag {
  font-family: var(--data); font-size: 10.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-700);
  margin-bottom: 12px;
}
.planta p {
  margin-top: 8px; font-size: 14px; font-weight: 300; line-height: 1.5;
  color: rgba(13,21,32,.64);
}

/* a cobertura ocupa a linha inteira — dois pavimentos lado a lado */
.planta.duplex { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; align-items: center; }
.planta.duplex .texto { padding: 6px 4px; }
.planta.duplex .par { display: grid; grid-template-columns: 1fr; gap: 22px; align-content: start; }
.planta.duplex .par .prancha figure { aspect-ratio: 3 / 2; }
.planta.duplex .par .cap {
  display: block; margin-top: 9px;
  font-family: var(--data); font-size: 10px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(13,21,32,.55);
}

@media screen and (max-width: 900px) {
  .plantas { grid-template-columns: 1fr; gap: 16px; }
  .planta, .planta.duplex { grid-column: 1 / -1; }
  .planta.duplex { grid-template-columns: 1fr; gap: 20px; }
  .planta.duplex .par figure { aspect-ratio: 2 / 1.35; }
}

/* ---------- 19. CONCEITO ---------- */
.conceito { display: grid; grid-template-columns: 1.06fr 1fr; gap: 74px; align-items: center; }
.conceito .foto { position: relative; }
.conceito .foto figure {
  position: relative; z-index: 1; margin: 0;
  border-radius: 3px; overflow: hidden; aspect-ratio: 3 / 2;
}
.conceito .foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* filete de acabamento deslocado — o dourado como acento, nunca como área */
.conceito .foto::after {
  content: ""; position: absolute; left: -20px; bottom: -20px; width: 58%; height: 58%;
  border-left: 1px solid rgba(134,111,72,.5); border-bottom: 1px solid rgba(134,111,72,.5);
}
.conceito .frase {
  margin-top: 34px; padding-top: 28px; border-top: 1px solid rgba(16,40,64,.15);
  font-family: var(--serif); font-style: italic; font-size: 25px; line-height: 1.35;
  color: var(--gold-700);
}

@media screen and (max-width: 900px) {
  .conceito { grid-template-columns: 1fr; gap: 38px; }
  .conceito .foto::after { left: -12px; bottom: -12px; }
  .conceito .frase { font-size: 21px; margin-top: 26px; padding-top: 22px; }
}

/* ---------- 20. AMPLIAR PLANTA (lightbox) ---------- */
.zoomable { cursor: zoom-in; }
body.lb-on .zap, body.lb-on .lp-head { display: none !important; }
.lb {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column;
  background: rgba(5,16,28,.96); padding: 26px;
}
.lb[hidden] { display: none !important; }
.lb-vp {
  flex: 1; min-height: 0; overflow: auto;
  display: grid; place-items: center;
  -webkit-overflow-scrolling: touch;
}
.lb-vp img { display: block; max-width: 100%; max-height: 100%; cursor: zoom-in; }
.lb-vp.full { place-items: start; }
.lb-vp.full img { max-width: none; max-height: none; width: 2100px; cursor: zoom-out; }
.lb-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 0 4px 16px; color: var(--sand-50);
}
.lb-cap {
  font-family: var(--data); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(251,250,247,.72);
}
.lb-dica { font-size: 12px; font-weight: 300; color: rgba(251,250,247,.42); }
.lb-x {
  flex: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(251,250,247,.3); background: transparent;
  color: var(--sand-50); font-size: 21px; line-height: 1; font-family: var(--sans);
}
.lb-x:hover { border-color: var(--gold-500); color: var(--gold-500); }

@media screen and (max-width: 900px) {
  .lb { padding: 16px; }
  .lb-dica { display: none; }
  .lb-vp.full img { width: 1500px; }
}
@media print { .lb { display: none !important; } }

/* ---------- 21. IMPRESSÃO DAS PLANTAS ---------- */
/* No papel não há zoom: cada planta ocupa a largura inteira para ficar legível. */
@media print {
  .so-tela { display: none !important; }
  .plantas { grid-template-columns: 1fr; gap: 30px; }
  .planta, .planta.duplex { grid-column: 1 / -1; break-inside: avoid; }
  .planta figure { aspect-ratio: auto; padding: 0; }
  .planta img { max-height: none; width: 100%; }
  .planta.duplex { grid-template-columns: 1fr; gap: 24px; }
  .planta.duplex .par { grid-template-columns: 1fr 1fr; gap: 24px; }
  .planta.duplex .par-tag { grid-column: 1 / -1; }
  .planta.duplex .texto { padding: 0; }
}
