/* ================================================
   BASE — TIPOGRAFIA E UTILIDADES GLOBAIS
   ================================================ */

/* CONTAINER */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--sm {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* SEÇÕES */
.section {
  padding-top: var(--esp-2xl);
  padding-bottom: var(--esp-2xl);
}

.section--lg {
  padding-top: var(--esp-3xl);
  padding-bottom: var(--esp-3xl);
}

.section--sm {
  padding-top: var(--esp-lg);
  padding-bottom: var(--esp-lg);
}

/* HEADERS DE SEÇÃO */
.section-label {
  font-family: var(--fonte-corpo);
  font-size: var(--texto-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: var(--esp-sm);
  display: block;
}

.section-title {
  font-family: var(--fonte-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--preto);
  line-height: 1.1;
}

.section-title em {
  font-style: italic;
  color: var(--dourado);
}

.section-subtitle {
  font-size: var(--texto-md);
  color: var(--cinza-med);
  margin-top: var(--esp-sm);
  max-width: 540px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: var(--esp-lg);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* LINHAS DECORATIVAS */
.linha-dourada {
  width: 48px;
  height: 1px;
  background: var(--dourado);
  margin-bottom: var(--esp-md);
}

.linha-dourada--center {
  margin-left: auto;
  margin-right: auto;
}

/* DIVISOR */
.divisor {
  border: none;
  border-top: 1px solid var(--bege-med);
  margin: var(--esp-lg) 0;
}

/* FUNDO ESCURO */
.bg-escuro {
  background-color: var(--cinza-esc);
  color: var(--branco);
}

.bg-escuro .section-title {
  color: var(--branco);
}

.bg-escuro .section-subtitle {
  color: var(--cinza-cla);
}

.bg-bege {
  background-color: var(--bege);
}

/* TEXTO UTILITÁRIOS */
.texto-center { text-align: center; }
.texto-preto  { color: var(--preto); }
.texto-dourado { color: var(--dourado); }
.texto-cinza  { color: var(--cinza-med); }
.texto-branco { color: var(--branco); }

/* IMAGEM COVER */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ASPECT RATIOS */
.ratio-16-9  { aspect-ratio: 16 / 9; }
.ratio-4-3   { aspect-ratio: 4 / 3; }
.ratio-3-4   { aspect-ratio: 3 / 4; }
.ratio-1-1   { aspect-ratio: 1 / 1; }

/* GRID UTILITÁRIOS */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--esp-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--esp-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--esp-md);
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* FLEX UTILITÁRIOS */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { gap: var(--esp-md); }

/* RESPONSIVE HELPERS */
.hide-mobile { display: block; }
@media (max-width: 768px) {
  .hide-mobile { display: none; }
}
