/* ============================================
   Base — Reset + Tipografia + Links
   Mobile-first. Sem classes utilitárias aqui.
   ============================================ */

/* --- Reset mínimo --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--dark-gray);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Tipografia --- */

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--dark-gray);
}

h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
  color: var(--dark-gray);
}

h1 {
  font-weight: 700;
  font-size: var(--text-3xl);
}

h2 {
  font-weight: 600;
  font-size: var(--text-xl);
}

h3 {
  font-weight: 600;
  font-size: var(--text-xl);
}

@media (min-width: 1024px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-2xl); }
}

p {
  max-width: var(--measure);
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-weight: 300;
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--mid-gray);
}

.label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mid-gray);
}

small, .meta {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--mid-gray);
}

/* --- Links --- */

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--navy);
}

/* --- Focus global --- */

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* --- Botões base --- */

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-base);
  line-height: var(--leading-tight);
  padding: 1rem 2.25rem;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  position: relative;
}

.btn-primary {
  background-color: var(--gold);
  color: #1A1613;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.25);
}

.btn-primary:hover {
  background-color: var(--hover-gold);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* Botão em fundo claro */
.btn-outline {
  background-color: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background-color: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

/* --- Listas --- */

ul, ol {
  padding-left: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
}

/* --- Acessibilidade: respeitar preferência de motion reduzido --- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
