/* ============================================================
   VEREDAS — Bairro Inteligente | ITV Urbanismo
   Hotsite institucional — estilos
   Paleta extraída da logomarca oficial.
   ============================================================ */

/* ---------- Seravek (fonte oficial da marca Veredas) ---------- */

@font-face {
  font-family: 'Seravek';
  src: url('../fonts/seravek-extralight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Seravek';
  src: url('../fonts/seravek-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Seravek';
  src: url('../fonts/seravek-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca */
  --azul:        #22b0c9;
  --azul-esc:    #1a8ba0;
  --verde:       #2ba84d;
  --lima:        #c2d137;
  --cinza:       #706f6f;

  /* Neutros */
  --tinta:       #2a2a2a;
  --tinta-suave: #5c5c5c;
  --linha:       #e4e4e2;
  --papel:       #ffffff;
  --papel-alt:   #f6f6f4;
  --escuro:      #1d2321;

  /* Tipografia */
  --display: 'Seravek', 'Segoe UI', sans-serif;
  --texto:   'Open Sans', 'Segoe UI', sans-serif;

  /* Layout */
  --max:     1240px;
  --gutter:  clamp(20px, 5vw, 64px);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.7;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--tinta);
}

h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--tinta); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Utilitários ---------- */

.eyebrow {
  font-family: var(--texto);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azul);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--lima);
  flex: none;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--tinta-suave); }

.secao { padding: clamp(72px, 10vw, 130px) 0; }
.secao--alt { background: var(--papel-alt); }

.legenda {
  font-size: 0.72rem;
  color: #9a9a97;
  letter-spacing: 0.02em;
  margin-top: 10px;
  font-style: italic;
}

/* ---------- Header ---------- */

.topo {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.topo--solido {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--linha);
}

.topo .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.marca img { height: 34px; width: auto; transition: filter .3s ease; }
.topo:not(.topo--solido) .marca img { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav a {
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--tinta);
  transition: color .2s ease;
  white-space: nowrap;
}
.topo:not(.topo--solido) .nav a { color: #fff; }
.nav a:hover { color: var(--azul); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tinta);
  margin: 5px 0;
  transition: background .3s ease;
}
.topo:not(.topo--solido) .nav-toggle span { background: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  /* no desktop o conteúdo é ancorado embaixo, então a altura máxima
     é o que define o vão entre o menu e o título */
  min-height: min(100svh, 720px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /* 1) escurecimento da esquerda para a direita, atrás do texto
     2) gradiente vertical, para o topo e o rodapé do hero */
  background:
    linear-gradient(90deg,  rgba(20,28,26,.72) 0%, rgba(20,28,26,.34) 45%, rgba(20,28,26,0) 78%),
    linear-gradient(180deg, rgba(20,28,26,.5)  0%, rgba(20,28,26,.12) 30%, rgba(20,28,26,.4) 58%, rgba(20,28,26,.82) 100%);
  z-index: -1;
}
.hero .wrap { padding-bottom: clamp(56px, 9vw, 110px); padding-top: 118px; }

.hero h1 { color: #fff; max-width: 17ch; font-weight: 200; }
.hero h1 b { font-weight: 500; }
.hero__sub {
  max-width: 52ch;
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  margin-top: 22px;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(18,24,22,.38);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 26px;
}
.hero__tag i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lima); flex: none;
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 9vw, 110px);
  writing-mode: vertical-rl;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__scroll::after {
  content: '';
  width: 1px; height: 46px;
  background: linear-gradient(rgba(255,255,255,.7), transparent);
}

/* ---------- Números ---------- */

.numeros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--linha);
  border-block: 1px solid var(--linha);
}
.numero { background: var(--papel); padding: clamp(28px, 4vw, 46px) clamp(20px, 3vw, 38px); }
.numero b {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 300;
  line-height: 1;
  color: var(--azul);
  letter-spacing: -.03em;
}
.numero b em { font-style: normal; font-size: .46em; color: var(--cinza); margin-left: 4px; }
.numero span {
  display: block;
  margin-top: 12px;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--tinta-suave);
}

/* ---------- Grids genéricos ---------- */

.duas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.duas--topo { align-items: start; }

.cabeca { max-width: 46rem; margin-bottom: clamp(38px, 5vw, 62px); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.card {
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 32px);
}
.card__ico {
  width: 40px; height: 40px;
  margin-bottom: 18px;
  color: var(--azul);
}
.card__ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; }
.card h3 { font-size: 1.08rem; font-weight: 600; font-family: var(--texto); letter-spacing: 0; margin-bottom: 8px; }
.card p { font-size: .92rem; color: var(--tinta-suave); margin: 0; }

/* Acessos */
.acessos { counter-reset: a; }
.acesso {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--linha);
}
.acesso:last-child { border-bottom: 1px solid var(--linha); }
.acesso__t {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--azul);
  line-height: 1;
  flex: none;
  min-width: 92px;
  letter-spacing: -.02em;
}
.acesso__t em { font-style: normal; font-size: .5em; color: var(--cinza); }
.acesso p { margin: 0; font-size: .95rem; color: var(--tinta-suave); }

/* Lista de bairros */
.bairros {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
  font-size: .92rem;
  color: var(--tinta-suave);
}
.bairros li {
  padding: 5px 0 5px 18px;
  position: relative;
  break-inside: avoid;
}
.bairros li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lima);
}
.bairros li b { color: var(--tinta); font-weight: 600; }
.bairros li i { font-style: normal; display: block; font-size: .78rem; color: var(--azul); }

/* Programa de usos */
.usos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--linha);
  border: 1px solid var(--linha);
  margin-top: 40px;
}
.uso {
  background: var(--papel);
  padding: 30px 22px;
  text-align: center;
}
.uso svg { width: 34px; height: 34px; stroke: var(--azul); fill: none; stroke-width: 1.3; margin-bottom: 14px; }
.uso span {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tinta);
}

/* ---------- Faixa escura (parque) ---------- */

.escura { background: var(--escuro); color: rgba(255,255,255,.82); }
.escura h2, .escura h3 { color: #fff; }
.escura .eyebrow { color: var(--lima); }
.escura .eyebrow::before { background: var(--azul); }
.escura .lead { color: rgba(255,255,255,.75); }
/* strong tem cor fixa escura; no fundo escuro ele precisa clarear */
.escura strong, .rodape strong { color: #fff; }
.escura .legenda { color: rgba(255,255,255,.4); }
.escura .numeros { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.14); }
.escura .numero { background: var(--escuro); }
.escura .numero b { color: var(--lima); }
.escura .numero b em { color: rgba(255,255,255,.5); }
.escura .numero span { color: rgba(255,255,255,.6); }

.atrativos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px;
}
.atrativos li {
  padding: 14px 16px;
  background: rgba(255,255,255,.05);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 11px;
}
.atrativos li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lima);
  flex: none;
}

/* ---------- Figuras ---------- */

.figura { margin: 0; }
.figura img { width: 100%; border-radius: 4px; }
.figura--larga { margin-top: clamp(40px, 5vw, 64px); }

.plantas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: clamp(40px, 5vw, 64px);
}
.plantas .figura img {
  background: #fff;
  border: 1px solid var(--linha);
}

/* Antes/depois */
.antes-depois { display: grid; gap: clamp(18px, 2.4vw, 26px); margin-top: 44px; }
.antes-depois .figura img { border: 1px solid var(--linha); }
.antes-depois figcaption {
  font-size: .85rem;
  color: var(--tinta-suave);
  margin-top: 10px;
}
.antes-depois figcaption b { color: var(--tinta); }

/* ---------- Citação ---------- */

.citacao {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--papel-alt);
  text-align: center;
}
.citacao blockquote {
  margin: 0 auto;
  max-width: 24ch;
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  line-height: 1.24;
  letter-spacing: -.02em;
  color: var(--tinta);
  max-width: 20ch;
}
.citacao blockquote { max-width: 22ch; }
.citacao cite {
  display: block;
  margin-top: 28px;
  font-family: var(--texto);
  font-style: normal;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--azul);
}

/* ---------- Galeria ---------- */

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.galeria button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 3;
  display: block;
}
.galeria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.galeria button:hover img { transform: scale(1.05); }
.galeria button::after {
  content: attr(data-rot);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  font-size: .76rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  opacity: 0;
  transition: opacity .3s ease;
}
.galeria button:hover::after { opacity: 1; }
.galeria button.g-alta { grid-row: span 2; aspect-ratio: auto; }

/* Lightbox */
.lbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15,18,17,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
}
.lbox[open], .lbox.aberto { display: flex; }
.lbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 3px;
}
.lbox__cap {
  position: absolute;
  left: 0; right: 0; bottom: clamp(14px, 3vw, 28px);
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: .84rem;
  padding-inline: 60px;
}
.lbox__cap i { display: block; font-size: .7rem; color: rgba(255,255,255,.45); margin-top: 4px; }
.lbox button {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 0;
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.lbox button:hover { background: rgba(255,255,255,.22); }
.lbox__x    { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); }
.lbox__prev { left: clamp(10px, 2vw, 26px);  top: 50%; transform: translateY(-50%); }
.lbox__next { right: clamp(10px, 2vw, 26px); top: 50%; transform: translateY(-50%); }

/* ---------- ITV ---------- */

.historia {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--linha);
  border: 1px solid var(--linha);
  margin-top: 44px;
}
.marco { background: var(--papel); padding: 28px 22px; }
.marco b {
  display: block;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 300;
  color: var(--azul);
  line-height: 1;
  letter-spacing: -.02em;
}
.marco span { display: block; margin-top: 8px; font-size: .86rem; color: var(--tinta-suave); }

/* ---------- Rodapé ---------- */

.rodape {
  background: var(--escuro);
  color: rgba(255,255,255,.62);
  padding: clamp(56px, 7vw, 86px) 0 34px;
  font-size: .9rem;
}
.rodape__topo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.rodape img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.rodape h4 {
  color: #fff;
  font-family: var(--texto);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.rodape a { text-decoration: none; transition: color .2s ease; }
.rodape a:hover { color: var(--lima); }
.rodape ul { list-style: none; margin: 0; padding: 0; }
.rodape ul li { margin-bottom: 8px; }
.rodape__base {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

/* ---------- Animação de entrada ---------- */

.rev { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.rev.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rev { opacity: 1; transform: none; transition: none; }
  .galeria img { transition: none; }
}

/* ---------- Responsivo ---------- */

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--linha);
    padding: 8px 0 16px;
    box-shadow: 0 18px 30px rgba(0,0,0,.08);
    display: none;
  }
  .nav.aberto { display: flex; }
  .topo:not(.topo--solido) .nav a { color: var(--tinta); }
  .nav a { padding: 13px var(--gutter); border-top: 1px solid var(--linha); }
  .nav a:first-child { border-top: 0; }
  .hero__scroll { display: none; }
  /* mesma lógica do desktop: a altura máxima é o que define o vão
     entre o menu e o título, já que o texto é ancorado embaixo */
  .hero { min-height: min(100svh, 600px); }
  .hero .wrap { padding-top: 104px; }
  .bairros { columns: 1; }
  .galeria { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .galeria button.g-alta { grid-row: span 1; aspect-ratio: 4 / 3; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .acesso { flex-direction: column; gap: 6px; }
  .acesso__t { min-width: 0; }
}
