/* Base + Reset + Tema editorial híbrido
 * Cada <section> pode ser .theme-dark, .theme-dark-2, .theme-light, .theme-white
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg-dark); }
body {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.55;
  background: var(--bg-dark);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===== Tipografia ===== */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--text);
}
h1 { font-size: var(--fs-h1); margin-bottom: var(--sp-3); }
h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--sp-3);
  font-style: italic;
  font-weight: 400;
}
h3 {
  font-family: var(--sans);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.012em;
  color: var(--text);
}

/* Eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
}

/* Lead paragraph (sub-headline longa, sempre sans pra leitura) */
.lead {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  max-width: 42em;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

.dim { color: var(--dim); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.champagne { color: var(--champagne); }
.italic { font-style: italic; }

/* ===== Container ===== */
.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}
@media (min-width: 1024px) {
  .wrap { max-width: 960px; padding: 0 var(--sp-6); }
}

/* ===== Section (tema controla fundo) ===== */
section {
  background: var(--bg);
  color: var(--text);
  padding: var(--sp-12) 0;
  position: relative;
  transition: background 0.4s var(--ease);
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 1.1rem 1.7rem;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: 0 10px 40px -12px var(--accent-glow);
  letter-spacing: -0.005em;
  border: 1px solid var(--accent);
}
.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -14px var(--accent-glow);
}
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}

/* Botão estilo Fazenda Canoa (outlined) */
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  box-shadow: none;
  padding: 0.95rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 0;
}
.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
  box-shadow: none;
  border-color: var(--text);
  transform: translateY(-1px);
}

/* ===== Cards ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--card-bg-hover);
}

/* ===== Divisor ===== */
.rule {
  border-top: 1px solid var(--border);
  margin: var(--sp-8) 0;
}

/* ===== Utils ===== */
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.center { text-align: center; }

/* ===== Scroll reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Focus state ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.18em; }
  section { padding: var(--sp-8) 0; }
  h2 { font-size: clamp(1.6rem, 7vw, 2.3rem); }
}

/* ===== Seleção ===== */
::selection {
  background: var(--accent);
  color: #FFFFFF;
}
