/* ===== Reset básico ===== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  background: #dfeaf1;
}

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

/* ===== Poster (bloco principal / topo do panfleto) =====
   Toda a composição escala como uma unidade só, mantendo a
   proporção original do material, para funcionar em qualquer tela. */
.poster {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: 2000 / 1313;
  overflow: hidden;
  container-type: inline-size;
}

.poster__bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/background.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  z-index: 1;
}

.block {
  position: absolute;
  z-index: 2;
}

/* "eu conheço ele / 55200 / CLASSMANN / DEPUTADO ESTADUAL" */
.block--eu-conheco {
  top: 3.5%;
  left: 6%;
  width: 47%;
  height: auto;
}

/* "RESULTADOS QUE TRANSFORMAM A VIDA DAS PESSOAS / ESTAMOS JUNTOS E MISTURADOS!" */
.block--resultados-top {
  top: 5%;
  right: 4%;
  left: auto;
  width: 38%;
  height: auto;
  text-align: right;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

/* Foto do candidato */
.block--photo {
  right: 0;
  bottom: 0;
  top: auto;
  left: auto;
  height: 82%;
  width: auto;
  z-index: 3;
}

/* Bloco de citação, sobre a foto */
.block--quote {
  top: 70%;
  left: 52%;
  width: 44%;
  height: auto;
  z-index: 4;
}

/* Bloco "100% AGRO..." + PSD + CNPJ */
.block--agro {
  top: 80%;
  left: 6%;
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 1.5cqw;
}

.agro__title {
  width: 70%;
  height: auto;
}

.agro__party {
  display: flex;
  align-items: center;
  gap: 1cqw;
}

.agro__psd {
  width: 16%;
  height: auto;
}

.agro__cnpj {
  color: #fff;
  font-weight: 700;
  font-size: 2cqw;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ===== Rodapé ===== */
.bottom-bar {
  width: 100%;
  background-color: #114579;
}

.bottom-bar__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 24px);
  padding: clamp(14px, 2.2vw, 30px) clamp(16px, 4vw, 48px);
}

.bottom-bar__text {
  margin: 0;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(13px, 1.9vw, 24px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.bottom-bar__socials {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 32px);
  flex-wrap: wrap;
}

.bottom-bar__socials img {
  height: clamp(20px, 3.2vw, 40px);
  width: auto;
}

.bottom-bar__stripes {
  height: clamp(30px, 3vw, 30px);
  background: linear-gradient(
    to bottom,
    #007c3d 0%,
    #007c3d 33%,
    #d32325 33%,
    #d32325 66%,
    #f4bd07 66%,
    #f4bd07 100%
  );
}

/* ===== Layout empilhado para celular =====
   Em telas estreitas, a composição em "pôster" (proporção fixa)
   deixava muito espaço vazio abaixo. Aqui os blocos passam a
   empilhar verticalmente, ocupando a tela por inteiro. */
@media (max-width: 700px) {
  .poster {
    aspect-ratio: auto;
    height: auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    container-type: normal;
    padding: 6vw 0 12vw;
    gap: 5vw;
  }

  .poster__bg {
    background-image: none;
    background: linear-gradient(180deg, #cdeefd 0%, #e9f3f2 55%, #d3e6da 100%);
    background-image: url("../img/background.jpg");
    background-position: bottom;
  }

  .block {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
  }

  .block--eu-conheco,
  .block--resultados-top,
  .block--agro {
    width: 88%;
  }

  .block--resultados-top {
    text-align: center;
  }

  .block--photo {
    width: 74%;
    height: auto;
  }

  .block--quote {
    width: 80%;
    margin-top: -10%;
    z-index: 4;
    background: rgba(17, 69, 121, 0.92);
    padding: 5vw 6vw;
    border-radius: 3vw;
  }

  .block--agro {
    container-type: inline-size;
    gap: 3vw;
  }

  .agro__party {
    gap: 2vw;
  }

  .agro__cnpj {
    font-size: 4vw;
  }
}

@media (max-width: 480px) {
  .agro__cnpj {
    font-size: 4.4vw;
  }
}
