/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a;
  background: #fff;
}

/* ===== Header (branco) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}
.header__logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-decoration: none;
}
.header__logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.header__logo--porto { max-height: 32px; }
.header__logo--auxiliadora { max-height: 32px; }
.header__cta { white-space: nowrap; }

@media (min-width: 640px) {
  .header__inner { padding: 1rem 1.5rem; }
  .header__logo { height: 40px; }
  .header__logo--porto,
  .header__logo--auxiliadora { max-height: 40px; }
}

/* ===== Hero (background + overlay #00854a) – enquadrado com header ===== */
.hero {
  position: relative;
  min-height: 760px;
  padding: 2rem 0 3rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: blur(6px);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: #00854a;
  opacity: 0.48;
  mix-blend-mode: multiply;
}
/* Container alinhado com .header__inner (max-width 1200px, mesmo padding) */
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: left;
  font-family: "Montserrat", sans-serif;
}
.hero__headline {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.5);
  max-width: 42ch;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.hero__text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.5);
  max-width: 62ch;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.hero__cta {
  margin: 0;
  padding: 1.125rem 2.25rem;
  font-size: 1.25rem;
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(239, 122, 4, .4); }
  50% { box-shadow: 0 6px 28px rgba(239, 122, 4, .55); }
}

@media (min-width: 640px) {
  .hero { padding: 2.5rem 0 4rem; }
  .hero__content { padding: 0 1.5rem; }
  .hero__headline { font-size: 2.25rem; }
  .hero__text { font-size: 1.0625rem; }
  .hero__cta { padding: 1.25rem 2.5rem; font-size: 1.375rem; }
}
@media (min-width: 900px) {
  .hero__headline { font-size: 2.75rem; }
  .hero__text { font-size: 1.125rem; }
  .hero__cta { padding: 1.375rem 2.75rem; font-size: 1.5rem; }
}

/* ===== Botões (CTA) ===== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .1s;
}
.cta:focus-visible { outline: 2px solid #EF7A04; outline-offset: 2px; }
.cta--primary {
  background: #EF7A04;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(239, 122, 4, .4);
  animation: cta-glow 2.5s ease-in-out infinite;
}
.cta--primary:hover {
  background: #d96d03;
  transform: scale(1.03);
  box-shadow: 0 6px 28px rgba(239, 122, 4, .5);
  animation: none;
}
.cta--secondary {
  background: #1a1a1a;
  color: #fff;
}
.cta--secondary:hover { background: #333; }
.cta--outline {
  background: transparent;
  color: #00854a;
  border: 2px solid #00854a;
}
.cta--outline:hover { background: rgba(0,133,74,.08); }
.cta--large { padding: 1rem 2rem; font-size: 1rem; }
.cta--full { width: 100%; }

/* ===== Container ===== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Seções genéricas ===== */
.section {
  padding: 3rem 0;
}
.section__title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
}
.section__cta-wrap {
  margin: 2rem 0 0;
  text-align: center;
}
.section__cta-wrap--sutil { margin-top: 1.5rem; }

@media (min-width: 640px) {
  .section { padding: 4rem 0; }
  .section__title { font-size: 1.75rem; margin-bottom: 2rem; }
}

/* ===== Benefícios (cards) ===== */
.section--benefits {
  background: #f8f9fa;
  font-family: "Montserrat", sans-serif;
}
.section--benefits .section__title {
  color: #00854a;
}
.cards {
  display: grid;
  gap: 1.25rem;
}
.cards--benefits {
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.card--benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  min-height: 160px;
  border: 2px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card--benefit:hover {
  transform: translateY(-6px);
  border-color: #00854a;
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.card__icon-img {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}
.card--benefit .card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.35;
}
.card__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00854a;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
}
.card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

@media (min-width: 480px) {
  .cards--benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .cards--benefits { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}
@media (min-width: 900px) {
  .cards--benefits { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .card--benefit { min-height: 180px; padding: 1.75rem 1rem; }
}

/* ===== O que é Consórcio ===== */
.section--what {
  background: #fff;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}
.section--what .section__title {
  text-align: center;
  color: #00854a;
}
.section--what .prose {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section--what .prose p {
  margin: 0;
  color: #000;
  font-size: 1rem;
  text-align: center;
}

.prose {
  max-width: 60ch;
  margin: 0 auto;
}
.prose p {
  margin: 0;
  color: #444;
  font-size: 1rem;
}

/* ===== Como Funciona (passos) ===== */
/* ===== Como Funciona (seção 4): background, parallax, timeline ===== */
.section--how {
  position: relative;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
}
.section--how__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("/static/Auxiliadora_predial_Foto-Agencia-Petropolis.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(2px);
}
.section--how__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #00854a;
  opacity: 0.5;
  mix-blend-mode: multiply;
}
.section--how__content {
  position: relative;
  z-index: 2;
}
.section--how .section__title {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.section--how__intro {
  max-width: 56ch;
  margin: 0 auto 2rem;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  line-height: 1.55;
}
.section--how__intro p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.section--how__intro p:last-child {
  margin-bottom: 0;
}
.section--how__intro strong {
  font-weight: 700;
}
.section--how .section__cta-wrap {
  color: inherit;
}

.section--how__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.section--how__box {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  font-family: "Montserrat", sans-serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section--how__box-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: block;
  flex-shrink: 0;
}
.section--how__box-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.section--how__box p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.45;
}
@media (max-width: 639px) {
  .section--how__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ===== Credibilidade e Confiança ===== */
.section--trust {
  background: #f8f9fa;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}
.section--trust .section__title {
  color: #00854a;
}
.trust-destaque {
  display: inline-flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 2rem;
  padding: 1.5rem 1.25rem;
  background: #EF7A04;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(239, 122, 4, .35);
  animation: trust-destaque-pulse 1.4s ease-in-out infinite;
}
@keyframes trust-destaque-pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(239, 122, 4, .4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 32px rgba(239, 122, 4, .6);
    transform: scale(1.04);
  }
}
.trust-destaque__label {
  font-size: 1rem;
  font-weight: 400;
  opacity: .95;
  flex-shrink: 0;
}
.trust-destaque__valor {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.trust-list {
  list-style: none;
  margin: 0 auto 2rem;
  padding: 0;
  max-width: 720px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  text-align: left;
}
.trust-list__item {
  position: relative;
  flex: 1 1 200px;
  min-width: 200px;
  padding: 4rem 1.25rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  border-left: 3px solid #00854a;
}
.trust-list__item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.75rem;
  transform: translateX(-50%);
  width: 2.25rem;
  height: 2.25rem;
  background-image: url("/static/check.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 640px) {
  .trust-destaque__valor { font-size: 3rem; }
  .trust-destaque { padding: 1.5rem 2rem; gap: 1.5rem; }
}

/* ===== Rodapé ===== */
.footer {
  background: #00854a;
  color: #fff;
  padding: 2.5rem 0;
  font-size: 0.875rem;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}
.footer__logo {
  display: block;
  margin: 0 auto 2.5rem;
  max-width: 380px;
  width: 90%;
  height: auto;
  object-fit: contain;
}
.footer__legal {
  margin: 0 auto 2rem;
  max-width: 42ch;
  line-height: 1.5;
  color: #fff;
  font-weight: 500;
}
.footer__dev {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer__dev-label {
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
}
.footer__dev-logo {
  display: block;
  max-width: 100px;
  height: auto;
  object-fit: contain;
}

/* ===== Popup formulário ===== */
.popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.popup.is-open {
  opacity: 1;
  visibility: visible;
}
.popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  cursor: pointer;
}
.popup__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.popup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  border-radius: 8px;
}
.popup__close:hover { background: #f0f0f0; color: #1a1a1a; }
.popup__title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Formulário dentro do popup */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form__label { display: block; }
.form__label-text {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
}
.form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.form__input:focus {
  outline: none;
  border-color: #00854a;
  box-shadow: 0 0 0 3px rgba(0,133,74,.15);
}

/* Acessibilidade: esconder popup quando fechado */
.popup[aria-hidden="true"] { pointer-events: none; }
.popup[aria-hidden="false"] { pointer-events: auto; }
