/* ============================================================
   Base — Global resets, body, typography, links,
   Bootstrap semantic overrides, layout primitives.
   ============================================================ */

/* Map Bootstrap 'success' semantic to brand primary (non-intrusive overrides) */
.text-success {
  color: var(--gf-color-primary) !important;
}
.link-success {
  color: var(--gf-color-primary) !important;
}
.link-success:hover,
.link-success:focus {
  color: var(--gf-color-primary-hover) !important;
}
.bg-success {
  background-color: var(--gf-color-primary) !important;
}
.bg-success-subtle {
  background-color: var(--gf-color-primary-soft) !important;
}
.border-success {
  border-color: var(--gf-color-primary) !important;
}
.btn-success {
  background-color: var(--gf-color-primary);
  border-color: var(--gf-color-primary);
  color: var(--gf-color-primary-contrast);
}
.btn-success:hover,
.btn-success:focus {
  background-color: var(--gf-color-primary-hover);
  border-color: var(--gf-color-primary-hover);
  color: var(--gf-color-primary-contrast);
}
.badge.bg-success-subtle {
  color: var(--gf-color-primary);
}

/* Remove barra lateral de todos os alertas do Bootstrap */
.alert,
.alert-danger,
.alert-success,
.alert-warning,
.alert-info {
  border-left: none !important;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial,
    sans-serif;
  background-color: #f8fafc;
  color: #1f2933;
}

/* Global button typography baseline */
.btn {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial,
    sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 28.5px; /* 190% */
  text-align: center;
}

/* Ensure default text color white when not already styled */
.btn:not(.btn-link) {
  color: #ffffff;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

main {
  background-color: transparent;
}

@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1520px;
  }
}

.section-anchor {
  scroll-margin-top: var(--header-height, 88px);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.section-header p {
  margin-bottom: 0;
  color: #64748b;
}

.section-header .section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--gf-color-primary);
}

.section-header .section-link:hover {
  color: var(--gf-color-primary-hover);
  text-decoration: underline;
}
