/* ============================================================
   global.css — Base global, tipografia, botões e utilitários
   ============================================================ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: 0.002em;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}

p {
  max-width: 68ch;
}

::selection {
  background: var(--accent);
  color: var(--primary-dark);
}

/* ---- Foco visível para navegação por teclado (WCAG AA) ---- */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :focus-visible,
.section-dark :focus-visible {
  outline-color: var(--on-dark-accent);
}

/* ---- Link de pulo (skip link) ---- */
.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-2);
  z-index: 200;
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: var(--space-2);
}

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

.section {
  padding-block: var(--space-7);
}

.section-alt {
  background: var(--bg-2);
}

/* ---- Cabeçalho de seção ---- */
.section-head {
  max-width: 720px;
  margin-bottom: var(--space-6);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center p {
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}

.section-head.center .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}

.section-head .lead {
  margin-top: var(--space-2);
  font-size: 1.075rem;
  color: var(--text);
}

/* ---- Botões ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--heading);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-light {
  background: var(--surface);
  color: var(--primary-dark);
}

.btn-light:hover {
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 12px 20px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* ---- Ícones ---- */
.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

/* ---- Rótulos/chips informativos ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--heading);
}

.chip svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

/* ---- Nota discreta (ex.: imagens ilustrativas) ---- */
.note-small {
  font-size: 0.82rem;
  color: var(--muted);
}
