/* =========================================================================
   Plaza Maricá — Landing "Em breve"
   Design tokens extraídos do Figma (2728.3_LandingPage-V2)
   ========================================================================= */

:root {
  /* Cores */
  --cream:          #FCF3DF; /* Pearl Lusta — fundo principal / texto sobre escuro */
  --cream-muted:    #F5E6CA; /* Albescent White — seção "Números" */
  --spring-wood:    #FAF8F5; /* texto sobre accent */
  --ink:            #194254; /* Nile Blue — cor primária / seções escuras */
  --accent:         #C95A37; /* Mojo — laranja */
  --muted-fg:       #3E5A67; /* Fiord — texto secundário */
  --card:           #FFFFFF; /* cards */
  --input-border:   #E6DDCC; /* Pearl Bush */
  --soft-amber:     #D8CCB8; /* bordas suaves */

  --ink-70:  rgba(25, 66, 84, 0.70);
  --ink-30:  rgba(25, 66, 84, 0.30);
  --ink-20:  rgba(25, 66, 84, 0.20);
  --ink-05:  rgba(25, 66, 84, 0.05);
  --cream-80: rgba(252, 243, 223, 0.80);
  --cream-70: rgba(252, 243, 223, 0.70);
  --cream-25: rgba(252, 243, 223, 0.25);
  --amber-50: rgba(216, 204, 184, 0.50);
  --amber-60: rgba(216, 204, 184, 0.60);

  /* Tipografia */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  /* Layout */
  --container: 1152px;
  --radius-card: 20px;
  --radius-lg: 24px;
  --radius-input: 16px;
  --pill: 999px;

  /* Espaçamento de seção */
  --section-y: clamp(56px, 8vw, 96px);
  --gutter: clamp(20px, 5vw, 24px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted-fg);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, p { margin: 0; }

button { font: inherit; cursor: pointer; }

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

/* --------------------------------------------------------------- Helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border: 1px solid var(--ink-20);
  border-radius: var(--pill);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-70);
  line-height: 1.33;
}
.eyebrow--light {
  border-color: var(--cream-25);
  color: var(--cream-70);
}

.section-head { max-width: 672px; }
/* Gap padrão eyebrow → título = 20px (Figma mt-5), fonte única */
.eyebrow { margin-bottom: 20px; }

h2.section-title,
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.36px;
  color: var(--ink);
}
.section-title.section-title--light { color: var(--cream); }

.lead {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--muted-fg);
  max-width: 46ch;
}

/* Botões / pílulas ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: #123645; box-shadow: 0 8px 20px -8px rgba(25,66,84,.5); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink-30); }
.btn--outline:hover { background: var(--ink-05); }

.btn--accent { background: var(--accent); color: var(--spring-wood); }
.btn--accent:hover { background: #b64f2f; box-shadow: 0 10px 24px -8px rgba(201,90,55,.6); }

.btn--block { width: 100%; padding-block: 16px; font-family: var(--font-display); font-size: 16px; }

/* =========================================================================
   HERO / HEADER
   ========================================================================= */
.hero { position: relative; overflow: hidden; background: var(--cream); }

.hero__content {
  position: relative;
  z-index: 2;
  padding: 40px var(--gutter) 0;
}

.hero__logo { width: 240px; max-width: 62vw; height: auto; margin-bottom: 48px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 9vw, 60px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--ink);
}
.hero__title span { color: var(--accent); }

.hero__subtitle {
  margin-top: 20px;
  font-size: clamp(16px, 4vw, 18px);
  line-height: 1.5;
  color: var(--muted-fg);
  max-width: 34ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
}

.hero__wave {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 40px;
}
.hero__wave svg { display: block; width: 100%; height: 100%; }

.hero__media {
  width: 100%;
  height: clamp(280px, 60vw, 420px);
  object-fit: cover;
  background: var(--ink-05);
}

/* =========================================================================
   SEÇÃO — O PROJETO
   ========================================================================= */
.projeto { padding-block: var(--section-y); border-top: 1px solid var(--amber-50); }

.projeto__grid {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

/* As quebras vêm dos <br> no HTML — sem cap de largura para não reflowar */
.projeto .lead { max-width: none; }

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 1px 0 0 var(--soft-amber);
  display: grid;
  gap: 12px;
}
.feature-card__head { display: flex; align-items: center; gap: 12px; }
.feature-card__num {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--cream);
  font-weight: 500;
  font-size: 14px;
}
.feature-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.18px;
  color: var(--ink);
}
.feature-card__desc { font-size: 14px; line-height: 1.43; color: var(--muted-fg); }

/* =========================================================================
   SEÇÃO — LOCALIZAÇÃO (escura)
   ========================================================================= */
.localizacao { background: var(--ink); padding-block: var(--section-y); }
.localizacao__grid {
  display: grid;
  gap: clamp(40px, 5vw, 48px);
  align-items: center;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tag {
  display: inline-flex;
  padding: 8px 20px;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--spring-wood);
  font-weight: 500;
  font-size: 14px;
}
.localizacao .lead { color: var(--cream-70); margin-top: 16px; }

.loc-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}
.loc-gallery img {
  width: 100%;
  aspect-ratio: 256 / 320;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.loc-gallery img:first-child { margin-top: 24px; }

/* =========================================================================
   SEÇÃO — MAPA DA REGIÃO
   ========================================================================= */
.mapa { padding-block: var(--section-y); }
.mapa__title { margin-top: 0; }
.mapa__img {
  margin-top: 48px;
  width: 100%;
  border-radius: var(--radius-lg);
}

/* =========================================================================
   SEÇÃO — NÚMEROS
   ========================================================================= */
.numeros { background: var(--cream-muted); padding-block: var(--section-y); overflow: hidden; }
.numeros__grid {
  margin-top: clamp(40px, 6vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 32px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.stat-card--wide { grid-column: span 2; }
.stat-card__label {
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.33;
}
.stat-card__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1;
  color: var(--ink);
}
.stat-card__note { font-size: 14px; line-height: 1.43; color: var(--muted-fg); }

/* =========================================================================
   SEÇÃO — ESPAÇOS
   ========================================================================= */
.espacos { padding-block: var(--section-y); }
.espacos__gallery {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}
/* Cada foto é um botão: abre a versão _large na lightbox */
.espacos__item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius-card);
  overflow: hidden; /* recorta o zoom da imagem */
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.espacos__item:nth-child(even) { margin-top: 32px; }

.espacos__gallery img {
  width: 100%;
  aspect-ratio: 264 / 330;
  object-fit: cover;
  border-radius: var(--radius-card);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.espacos__item:hover img,
.espacos__item:focus-visible img { transform: scale(1.08); }

/* Véu escuro + ícone de lupa no hover */
.espacos__zoom {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  background: var(--ink-30);
  opacity: 0;
  transition: opacity 300ms ease;
}
.espacos__zoom::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: var(--pill);
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23194254' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
}
.espacos__item:hover .espacos__zoom,
.espacos__item:focus-visible .espacos__zoom { opacity: 1; }

/* =========================================================================
   LIGHTBOX (versões _large, carregadas só sob demanda)
   ========================================================================= */
.lightbox {
  width: min(96vw, 1600px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(25, 66, 84, 0.88); }

.lightbox__figure { margin: 0; position: relative; }

.lightbox__img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: var(--ink-70);
  opacity: 0;
  transition: opacity 300ms ease;
}
.lightbox__img.is-loaded { opacity: 1; }

/* Placeholder enquanto a imagem grande baixa */
.lightbox__status {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--cream-80);
  font-size: 14px;
  letter-spacing: 0.5px;
}
.lightbox__status[hidden] { display: none; }

/* Fica DENTRO dos limites do dialog. Pendurado para fora (top/right
   negativos) ele estourava a viewport no mobile, onde a margem lateral do
   dialog é menor que o deslocamento — e o anel de foco soma mais 5px. */
.lightbox__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 1;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--pill);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.lightbox__close:hover { background: var(--accent); color: var(--spring-wood); }

/* Trava o scroll do fundo enquanto a lightbox está aberta */
body.has-lightbox { overflow: hidden; }

@media (max-width: 767px) {
  .lightbox { width: 94vw; }
  .lightbox__close { top: 8px; right: 8px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .espacos__gallery img,
  .espacos__zoom,
  .lightbox__img { transition: none; }
  .espacos__item:hover img,
  .espacos__item:focus-visible img { transform: none; }
}

/* =========================================================================
   SEÇÃO — CONTATO / FAÇA PARTE (escura)
   ========================================================================= */
.contato { position: relative; background: var(--ink); }
.contato__wave {
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: clamp(40px, 5vw, 92px);
  line-height: 0;
}
.contato__wave svg { display: block; width: 100%; height: 100%; }

.contato__grid {
  position: relative;
  display: grid;
  gap: clamp(40px, 5vw, 56px);
  padding-block: clamp(96px, 12vw, 112px);
  align-items: start;
}

.contato__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.48px;
  color: var(--cream);
  margin-top: 0;
}
/* Sem max-width: as quebras são definidas pelos <br> no HTML */
.contato__desc { margin-top: 20px; color: var(--cream-80); line-height: 1.5; }

.stand { margin-top: 36px; display: grid; gap: 12px; }
.stand__label { font-family: var(--font-display); font-size: 21px; color: var(--cream); }
.stand__addr { font-size: 14px; line-height: 1.43; color: var(--cream-80); }
.stand__phone { font-family: var(--font-body); font-weight: 700; font-size: 21px; color: var(--cream); }

/* Formulário */
.form-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.form-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.33;
  letter-spacing: -0.24px;
  color: var(--ink);
  margin-bottom: 20px;
}
.form-field { display: grid; gap: 8px; margin-bottom: 20px; }
.form-field label {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-70);
}
.form-field input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  background: var(--card);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input::placeholder { color: rgba(62, 90, 103, 0.5); }
.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 90, 55, 0.15);
}

/* Toggle Sim / Não */
.toggle-group { display: flex; gap: 12px; position: relative; }
.toggle-group input {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.toggle-group label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 17px;
  border: 1px solid var(--input-border);
  border-radius: var(--pill);
  background: var(--card);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.toggle-group input:checked + label {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.toggle-group input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

.form-card .btn--block { margin-top: 8px; }
.form-status {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: var(--ink);
}
.form-status--error { color: var(--accent); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--amber-60);
  padding-block: 56px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.footer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.footer-logos__main { width: 190px; height: auto; }
.footer-logos__group { display: grid; gap: 6px; }
.footer-logos__caption { font-size: 10px; color: var(--muted-fg); }
.footer-logos__row { display: flex; align-items: center; gap: 16px; }
.footer-logos__row img { height: 30px; width: auto; }
.footer-logos__row img.is-tall { height: 44px; }
.site-footer__copy { font-size: 12px; color: var(--muted-fg); }

/* =========================================================================
   BREAKPOINTS
   ========================================================================= */

/* Tablet ≥ 768px ------------------------------------------------------- */
@media (min-width: 768px) {
  .feature-list { grid-template-columns: 1fr 1fr; min-width: 0; }
  .feature-card { min-width: 0; min-height: 136px; }
  .stat-card { min-height: 168px; }

}

/* Desktop ≥ 1024px ----------------------------------------------------- */
@media (min-width: 1024px) {
  /* Coluna de texto mais larga que a dos cards: a linha mais longa do título
     ("de compras, cinema, gastronomia") precisa de ~532px para não reflowar
     além das quebras definidas pelos <br>. */
  .projeto__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  /* Entre 1024px e ~1150px a coluna ainda fica abaixo de 532px:
     o título acompanha a largura disponível até chegar aos 36px do Figma. */
  .projeto .section-title { font-size: clamp(28px, 3.2vw, 36px); }
  .contato__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }

  /* Duas colunas só a partir daqui: entre 768px e 1023px a coluna de texto
     ficaria com ~340px e o título de 3 linhas (precisa de ~445px) reflowaria. */
  .localizacao__grid { grid-template-columns: 1fr 1fr; }
}

/* Herói em duas colunas só ≥ 1280px (evita sobreposição texto/imagem
   em telas como iPad Pro retrato 1024px, que usa o herói empilhado) */
@media (min-width: 1280px) {
  .hero__content {
    position: relative;
    width: 50%;
    min-width: 460px;
    max-width: 760px;
    min-height: 722px;
    padding: 140px 0 120px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  /* Logo fixo no topo (como no Figma); só o bloco de texto é centralizado */
  .hero__logo { position: absolute; top: 48px; left: 64px; margin-bottom: 0; }
  .hero__actions { margin-top: 64px; }
  .hero__media {
    position: absolute;
    top: 0; right: 0;
    width: 58.4%;
    height: 100%;
    background: var(--ink-05);
    z-index: 2; /* imagem sempre acima da onda decorativa */
  }
  .hero__wave {
    position: absolute;
    bottom: -1px; left: 0;
    width: 44%;
    height: 120px;
    margin-top: 0;
    z-index: 1; /* onda fica por baixo da imagem */
  }
}

/* Quebras de linha manuais (.lb) — abaixo de 480px não há largura para elas:
   o texto voltaria a reflowar e sairia desalinhado, então o fluxo é natural.
   IMPORTANTE: no HTML cada <br class="lb"> é seguido de um espaço. Sem ele,
   ao esconder o <br> as palavras vizinhas grudam ("maismovimentadas").
   Com o <br> visível o espaço cai no início da linha e o browser o descarta. */
@media (max-width: 479px) {
  .lb { display: none; }
}

/* Ajustes mobile finos ------------------------------------------------- */
@media (max-width: 767px) {
  /* Herói centralizado no mobile (conforme Figma) */
  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero__subtitle { margin-inline: auto; }
  .hero__actions { justify-content: center; }

  .numeros__grid { grid-template-columns: 1fr; }
  .stat-card--wide { grid-column: auto; }
  .espacos__gallery { grid-template-columns: 1fr; }
  .espacos__gallery img { aspect-ratio: 16 / 11; }
  .espacos__item:nth-child(even) { margin-top: 0; }
  .site-footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-logos { flex-direction: column; align-items: center; gap: 28px; }
  .footer-logos__group { justify-items: center; }
  .footer-logos__caption { text-align: center; }
  .footer-logos__row { justify-content: center; }
}
