/* ==========================================================
   BANNER V1.0.0
   Seções hero/banners com layouts flexíveis e responsivos
   ========================================================== */

.banner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90vh; /* ocupa quase toda a tela */
	padding: 2rem;
	box-sizing: border-box;
	background-color: #f9fafb;
	color: #111827;
}

/* ===============================
   POSICIONAMENTO ÚNICO
   =============================== */

/* Alinhado à esquerda */
.banner-left {
  justify-content: flex-start;
  text-align: left;
}

/* Centralizado */
.banner-center {
  justify-content: center;
  text-align: center;
}

/* Alinhado à direita */
.banner-right {
  justify-content: flex-end;
  text-align: right;
}

/* ===============================
   DUAS COLUNAS
   =============================== */

/* Base para 2 colunas */
.banner-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

/* ===============================
   VARIANTES RESPONSIVAS
   =============================== */

/* 1️⃣ No mobile, coluna da ESQUERDA vai para baixo */
.banner-2col-left-down {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 768px) {
  .banner-2col-left-down {
    grid-template-columns: 1fr;
  }
  .banner-2col-left-down > :first-child {
    order: 2; /* esquerda vai para baixo */
  }
  .banner-2col-left-down > :last-child {
    order: 1;
  }
}

/* 2️⃣ No mobile, coluna da DIREITA vai para baixo */
.banner-2col-right-down {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 768px) {
  .banner-2col-right-down {
    grid-template-columns: 1fr;
  }
  .banner-2col-right-down > :first-child {
    order: 1;
  }
  .banner-2col-right-down > :last-child {
    order: 2; /* direita vai para baixo */
  }
}

/* ===============================
   EXTRAS OPCIONAIS
   =============================== */

.banner img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

.banner-content {
  max-width: 600px;
}

