/* =============================================
   UTILITIES.CSS — Container, Spacing, Helpers
   Alana Amorim | Nutricionista
   ============================================= */

/* =============================================
   CONTAINER
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* =============================================
   SECTION SPACING
   ============================================= */
.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-inline: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  background-color: rgba(169, 72, 139, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(169, 72, 139, 0.2);
}

.section-title {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-inline: auto;
}

/* =============================================
   BACKGROUNDS
   ============================================= */
.bg-surface  { background-color: var(--color-surface); }
.bg-accent   { background-color: var(--color-accent); }
.bg-primary  { background-color: var(--color-primary); }

/* =============================================
   TEXT HELPERS
   ============================================= */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-muted   { color: var(--color-muted); }
.text-primary { color: var(--color-primary); }
.text-white   { color: #fff; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }

/* =============================================
   SPACING
   ============================================= */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

/* =============================================
   DISPLAY
   ============================================= */
.d-none  { display: none !important; }
.d-block { display: block !important; }
.d-flex  { display: flex !important; }

.flex-wrap     { flex-wrap: wrap; }
.align-center  { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* =============================================
   VISUALLY HIDDEN (Acessibilidade)
   ============================================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* =============================================
   SEPARADOR DECORATIVO
   ============================================= */
.divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  margin: 1rem auto 2rem;
}
