/* ═══════════════════════════════════════════════════
   layout.css — Grid, seções, estrutura de página
   Instituto Mariana Menegardo
   ═══════════════════════════════════════════════════ */

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
  width: 100%;
}

/* ─── Seções ─── */
.section {
  padding: var(--space-11) 0;
}

.section--alt {
  background: var(--color-surface-alt);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-9);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section__subtitle {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Grid utilitários ─── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

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

/* ─── Flexbox utilitários ─── */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-gap-sm {
  gap: var(--space-3);
}

.flex-gap-md {
  gap: var(--space-5);
}

/* ─── Tela de bloqueio ─── */
#site-locked {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  text-align: center;
  padding: var(--space-5);
}

.locked-content {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.locked-logo-img {
  width: min(340px, 80vw);
  height: auto;
}

.locked-message {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: var(--space-6);
}

.locked-bylara {
  margin-top: var(--space-8);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease-brand);
}

.locked-bylara:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════
   Breakpoints
   ═══════════════════════════════════════════════════ */

/* ─── ≤ 1024px — Tablet landscape ─── */
@media (max-width: 1024px) {
  .section {
    padding: var(--space-10) 0;
  }

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

/* ─── ≤ 768px — Tablet portrait ─── */
@media (max-width: 768px) {
  .section {
    padding: var(--space-9) 0;
  }

  .section__header {
    margin-bottom: var(--space-7);
  }
}

/* ─── ≤ 540px — Colapso grids ─── */
@media (max-width: 540px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--space-8) 0;
  }
}

/* ─── ≤ 480px — Ajustes finais ─── */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }
}
