/* =====================================================
   Harbor 360° — AVIV Construtora e Incorporadora
   Paleta extraída do layout XD:
   --navy:        #000F22  (fundo principal / Retângulo 10)
   --indigo:      #1D2A53  (botão Enviar)
   --steel:       #38678B  (dot ativo do carrossel)
   --field:       #E0E0E0  (campos do formulário)
   ===================================================== */

:root {
  --navy: #000F22;
  --navy-soft: #06182f;
  --indigo: #1D2A53;
  --indigo-hover: #29396e;
  --steel: #38678B;
  --field: #E6E6E6;
  --label: #8a8f98;
  --white: #ffffff;
  --max-w: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  background: var(--navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========= HEADER ========= */
.site-header {
  background: var(--navy);
  padding: 28px 0;
}

.header-inner {
  display: flex;
  justify-content: center;
}

.logo-harbor { width: 300px; height: auto; }

/* ========= HERO / CARROSSEL ========= */
.hero { position: relative; }

.carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1920 / 558;
  max-height: 640px;
  width: 100%;
}

.carousel-track { height: 100%; }

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
}

.carousel-slide.is-active { opacity: 1; z-index: 1; }

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 2;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  transition: background .3s ease, transform .3s ease;
}

.dot.is-active { background: var(--steel); transform: scale(1.15); }

/* ========= HEADLINE ========= */
.headline {
  text-align: center;
  padding: 72px 0 56px;
}

.headline h1 {
  font-size: clamp(1rem, 2.55vw, 1.85rem);
  font-weight: 300;
  letter-spacing: .55em;
  margin-right: -.55em; /* compensa o tracking no centro */
  text-transform: uppercase;
  white-space: nowrap;
}

.headline-sub {
  max-width: 640px;
  margin: 26px auto 0;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #c7cdd6;
}

/* ========= FORMULÁRIO DE LEADS ========= */
.lead-section {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.lead-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.lead-copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 16px;
}

.lead-copy p {
  color: #c7cdd6;
  line-height: 1.7;
  font-size: 1.02rem;
  max-width: 420px;
}

.lead-form .field { margin-bottom: 18px; }

.lead-form label {
  display: block;
  font-size: .92rem;
  color: #aeb5bf;
  margin-bottom: 6px;
}

.lead-form input {
  width: 100%;
  height: 46px;
  border: none;
  background: var(--field);
  padding: 0 14px;
  font-size: 1rem;
  color: var(--navy);
  outline: none;
  transition: box-shadow .2s ease;
}

.lead-form input:focus { box-shadow: 0 0 0 2px var(--steel); }

.btn-enviar {
  display: inline-block;
  min-width: 128px;
  height: 44px;
  border: none;
  background: var(--indigo);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background .25s ease;
}

.btn-enviar:hover { background: var(--indigo-hover); }

.lgpd-note {
  margin-top: 14px;
  font-size: .74rem;
  color: #7d8794;
  line-height: 1.5;
}

.form-feedback {
  font-size: .9rem;
  min-height: 1.2em;
  margin-bottom: 8px;
}

.form-feedback.ok { color: #6fd0a0; }
.form-feedback.err { color: #ff8a80; }

/* ========= NEWSLETTER ========= */
.newsletter {
  background: var(--navy);
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.newsletter-inner {
  max-width: 720px;
  text-align: center;
}

.newsletter-title {
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: .08em;
  margin-bottom: 22px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  height: 46px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--white);
  color: var(--white);
  font-size: 1rem;
  padding: 0 4px;
  outline: none;
}

.newsletter-form input::placeholder { color: #7d8794; }

.btn-news {
  height: 46px;
  padding: 0 26px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: .95rem;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.btn-news:hover { background: var(--white); color: var(--navy); }

.newsletter .form-feedback { margin-top: 12px; }

/* ========= FOOTER ========= */
.site-footer {
  background: var(--navy);
  padding: 48px 0 40px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.logo-aviv { width: 140px; height: auto; }

.footer-note {
  text-align: center;
  font-size: .78rem;
  color: #7d8794;
  line-height: 1.7;
}

/* ========= RESPONSIVO ========= */
@media (max-width: 860px) {
  .lead-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .headline { padding: 52px 0 40px; }

  .headline h1 { letter-spacing: .3em; margin-right: -.3em; white-space: normal; }

  .logo-harbor { width: 230px; }

  .carousel {
    aspect-ratio: auto;
    height: 320px;
  }
}

@media (max-width: 520px) {
  .headline h1 {
    font-size: 1.05rem;
    letter-spacing: .22em;
    margin-right: -.22em;
  }
  .newsletter-form { flex-direction: column; gap: 18px; }
  .btn-news { width: 100%; }
  .carousel { height: 260px; }
  .logo-harbor { width: 190px; }
}


/* ---------- Honeypot anti-bot (invisível para humanos) ---------- */
.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
