/* ================================================================
   PROJETE 5D · Case Caribe / Viva Urban
   Landing page de captura de leads — CSS puro, mobile first
   ================================================================ */

/* -----------------------------------------------------------------
   1. VARIÁVEIS DE MARCA (identidade visual P5D)
   ----------------------------------------------------------------- */
:root {
  /* Fundos escuros */
  --preto-absoluto: #000000;
  --preto-1: #0c0c0c;
  --preto-2: #181818;

  /* Seções claras */
  --cinza-claro: #f3f3f3;

  /* Verdes de destaque */
  --verde: #30ba5e;
  --verde-suave: #71a67a;
  --verde-escuro: #1f7d3e;

  /* Textos */
  --branco: #ffffff;
  --texto-corpo: #595959;
  --texto-reforco: #434343;

  /* Tipografia */
  --fonte-titulo: "Sora", "Poppins", sans-serif;
  --fonte-titulo-alt: "Poppins", sans-serif;
  --fonte-corpo: "Montserrat", sans-serif;

  /* Layout */
  --raio: 22px;
  --raio-sm: 14px;
  --max-largura: 1140px;
  --sombra: 0 18px 50px rgba(0, 0, 0, 0.18);
}

/* -----------------------------------------------------------------
   2. RESET / BASE
   ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* rolagem suave entre seções */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fonte-corpo);
  font-weight: 400;
  color: var(--texto-corpo);
  background: var(--cinza-claro);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

mark.grifo {
  background: transparent;
  color: inherit;
  position: relative;
  white-space: nowrap;
  padding: 0 0.04em;
}

/* Marca-texto verde por baixo das palavras-chave */
mark.grifo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.36em;
  background: var(--verde);
  opacity: 0.85;
  z-index: -1;
  border-radius: 2px;
}

/* -----------------------------------------------------------------
   3. CONTAINER E SEÇÕES
   ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-largura);
  margin: 0 auto;
  padding: 0 22px;
}

.container--narrow {
  max-width: 780px;
}

.section {
  padding: 72px 0;
  position: relative;
}

.section--light {
  background: var(--cinza-claro);
  color: var(--texto-corpo);
}

.section--dark {
  background: var(--preto-2);
  color: var(--branco);
}

.section--black {
  background: var(--preto-absoluto);
  color: var(--branco);
}

/* Textura halftone aplicada como fundo nas seções claras */
.section--light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/textura.png") no-repeat top right;
  background-size: 55%;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.section--light .container {
  position: relative;
  z-index: 1;
}

.section__title {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  line-height: 1.15;
  color: var(--texto-reforco);
  margin-bottom: 40px;
  max-width: 22ch;
}

.section__title--light {
  color: var(--branco);
}

.section__sub {
  font-size: 1.05rem;
  margin-top: -24px;
  margin-bottom: 44px;
  max-width: 52ch;
  opacity: 0.8;
}

/* -----------------------------------------------------------------
   4. TAGS / RÓTULOS
   ----------------------------------------------------------------- */
.tag {
  display: inline-block;
  font-family: var(--fonte-corpo);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.tag--green {
  background: var(--verde);
  color: var(--branco);
}

.tag--light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--branco);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* -----------------------------------------------------------------
   5. BOTÕES
   ----------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--fonte-corpo);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  border: none;
  border-radius: 999px;
  padding: 16px 32px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn--primary {
  background: var(--verde);
  color: var(--branco);
  box-shadow: 0 10px 26px rgba(48, 186, 94, 0.4);
}

.btn--primary:hover {
  background: #2aa854;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(48, 186, 94, 0.5);
}

.btn--primary:disabled {
  background: var(--verde-suave);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.8;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.08rem;
}

.btn--block {
  display: block;
  width: 100%;
}

/* -----------------------------------------------------------------
   6. HERO
   ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--branco);
  overflow: hidden;
  padding: 32px 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero-caribe.png") center / cover no-repeat;
  z-index: 0;
}

/* Overlay escuro em gradiente para dar contraste ao texto */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(12, 12, 12, 0.82) 45%,
    rgba(12, 12, 12, 0.5) 100%
  );
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Grade do hero: empilhada no mobile, duas colunas no desktop */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.hero__form {
  width: 100%;
}

/* O CTA do hero só aparece no mobile (no desktop o form já está ao lado) */
.hero__cta {
  margin-top: 4px;
}

.hero__logos {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo--p5d {
  height: 58px;
  width: auto;
  /* O logo original é escuro; deixamos branco para o fundo escuro */
  filter: brightness(0) invert(1);
}

.logo__divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.3);
}

.logo--urban {
  display: inline-flex;
  align-items: center;
}

.hero__title {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: clamp(2.2rem, 8.5vw, 4.4rem);
  line-height: 1.05;
  margin: 18px 0 22px;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  max-width: 46ch;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.88);
}

.hero__subtitle strong {
  color: var(--branco);
}

/* -----------------------------------------------------------------
   7. CARDS (grids reutilizáveis)
   ----------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 22px;
}

.cards--2 {
  grid-template-columns: 1fr;
}

.cards--3 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--branco);
  border-radius: var(--raio);
  padding: 34px 30px;
  box-shadow: var(--sombra);
}

.card__num {
  display: block;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--verde);
  line-height: 1;
  margin-bottom: 14px;
}

.card__title {
  font-family: var(--fonte-titulo-alt);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--texto-reforco);
  margin-bottom: 14px;
  line-height: 1.25;
}

.card__text {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.card__text strong {
  color: var(--texto-reforco);
}

.card__rotulo {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--verde);
  margin-top: 16px;
  margin-bottom: 4px;
}

.card--caso .tag {
  margin-bottom: 14px;
}

/* -----------------------------------------------------------------
   8. MISSÃO (destaque na seção do problema)
   ----------------------------------------------------------------- */
.missao {
  margin-top: 40px;
  background: linear-gradient(120deg, var(--verde-escuro), var(--verde));
  color: var(--branco);
  border-radius: var(--raio);
  padding: 38px 34px;
  box-shadow: var(--sombra);
}

.missao .tag--green {
  background: rgba(255, 255, 255, 0.18);
}

.missao__text {
  font-family: var(--fonte-titulo-alt);
  font-weight: 700;
  font-size: clamp(1.15rem, 3.5vw, 1.6rem);
  line-height: 1.35;
}

.missao__text strong {
  /* Reforço já é peso 700; manter cor branca */
  color: var(--branco);
}

/* -----------------------------------------------------------------
   9. NÚMEROS (case + P5D)
   ----------------------------------------------------------------- */
.numeros {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.numeros--4 {
  grid-template-columns: 1fr;
}

.numero {
  border-left: 4px solid var(--verde);
  padding-left: 20px;
}

.numero__valor {
  display: block;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: clamp(2.8rem, 11vw, 4.2rem);
  line-height: 1;
  color: var(--verde);
  letter-spacing: -0.02em;
}

.numero__un {
  font-size: 0.4em;
  margin-left: 0.18em;
  color: var(--verde-suave);
  vertical-align: baseline;
}

.numero__label {
  display: block;
  margin-top: 12px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 26ch;
}

/* -----------------------------------------------------------------
   10. DEPOIMENTO
   ----------------------------------------------------------------- */
.depoimento {
  text-align: center;
}

.aspas {
  font-family: var(--fonte-titulo);
  font-size: 6rem;
  line-height: 0.5;
  color: var(--verde);
  display: block;
  height: 44px;
}

.depoimento__texto {
  font-family: var(--fonte-titulo-alt);
  font-weight: 700;
  font-size: clamp(1.3rem, 4.2vw, 2rem);
  line-height: 1.4;
  color: var(--texto-reforco);
  margin: 10px auto 30px;
}

.depoimento__autor strong {
  display: block;
  font-size: 1.1rem;
  color: var(--texto-reforco);
}

.depoimento__autor span {
  font-size: 0.95rem;
  color: var(--verde-suave);
  font-weight: 700;
}

/* -----------------------------------------------------------------
   11. FORMULÁRIO
   ----------------------------------------------------------------- */
.form-card {
  background: var(--preto-1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--raio);
  padding: 44px 34px;
  box-shadow: var(--sombra);
}

.form-card__title {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.15;
  color: var(--branco);
  margin-bottom: 12px;
}

.form-card__sub {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 30px;
  font-size: 1rem;
}

.form__group {
  margin-bottom: 18px;
}

.form__group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--branco);
  margin-bottom: 7px;
}

.form__group input {
  width: 100%;
  font-family: var(--fonte-corpo);
  font-size: 1rem;
  color: var(--branco);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--raio-sm);
  padding: 14px 16px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.form__group input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.form__group input:focus {
  outline: none;
  border-color: var(--verde);
  background: rgba(48, 186, 94, 0.07);
}

/* Estado de erro nos campos */
.form__group.tem-erro input {
  border-color: #ff5a5a;
  background: rgba(255, 90, 90, 0.06);
}

.form__erro {
  display: block;
  min-height: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ff7a7a;
  margin-top: 6px;
}

.form button {
  margin-top: 10px;
}

.form__sucesso {
  margin-top: 22px;
  padding: 18px 20px;
  background: rgba(48, 186, 94, 0.14);
  border: 1px solid var(--verde);
  border-radius: var(--raio-sm);
  color: var(--branco);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.5;
}

.form__sucesso a {
  color: var(--verde);
  text-decoration: underline;
}

/* -----------------------------------------------------------------
   12. RODAPÉ
   ----------------------------------------------------------------- */
.rodape {
  background: var(--preto-absoluto);
  color: var(--branco);
  padding: 64px 0 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.rodape__logo {
  height: 64px;
  width: auto;
  margin: 0 auto 28px;
  filter: brightness(0) invert(1);
}

.rodape__frase {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: clamp(1.3rem, 4.5vw, 2rem);
  line-height: 1.3;
  color: var(--branco);
  max-width: 18ch;
  margin: 0 auto 40px;
}

.rodape__contato strong {
  display: block;
  font-size: 1.15rem;
}

.rodape__contato > span {
  display: block;
  color: var(--verde-suave);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.rodape__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.rodape__links a {
  font-weight: 700;
  color: var(--verde);
  transition: color 0.18s ease;
}

.rodape__links a:hover {
  color: var(--verde-suave);
}

.rodape__copy {
  margin-top: 40px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

/* -----------------------------------------------------------------
   13. RESPONSIVO (breakpoints maiores — mobile first)
   ----------------------------------------------------------------- */
@media (min-width: 720px) {
  .section {
    padding: 96px 0;
  }

  .cards--2 {
    grid-template-columns: 1fr 1fr;
  }

  .numeros {
    grid-template-columns: repeat(3, 1fr);
  }

  .numeros--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .rodape__links {
    flex-direction: row;
    gap: 28px;
  }
}

@media (min-width: 980px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .numeros--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__inner {
    gap: 48px;
  }

  /* Texto à esquerda, formulário à direita */
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
  }

  /* No desktop o formulário já está visível ao lado: dispensa o botão */
  .hero__cta {
    display: none;
  }

  /* Form um pouco mais compacto dentro do hero */
  .hero__form .form-card {
    padding: 34px 30px;
  }
}

/* Respeita usuários que preferem menos animação */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
