/**
 * ==========================================================================
 * ETERNIZE — BASE & RESET STYLES (v3 — HUMAN WARMTH)
 * ==========================================================================
 */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Textura grain sutil sobre todo o site — dá tato humano e tira a cara digital */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--texture-grain);
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: var(--z-background);
  opacity: 0.5;
}

/* Bloom quente e orgânico no topo — substitui os radiais dourados tech */
body::after {
  content: '';
  position: fixed;
  top: -10%;
  left: 30%;
  width: 70vw;
  height: 60vh;
  background: radial-gradient(ellipse at center, rgba(196, 109, 59, 0.06) 0%, rgba(92, 122, 86, 0.03) 50%, transparent 80%);
  filter: blur(100px);
  pointer-events: none;
  z-index: var(--z-background);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  font-style: italic;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 600;
}

p {
  margin-bottom: 1.35rem;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

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

/* Selection Highlight — terracota suave */
::selection {
  background-color: var(--color-terra-200);
  color: var(--color-coffee-900);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow-width);
}

/* Layout Sections — espaçamento mais generoso e respirável */
.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  position: relative;
}

.section--hero {
  padding-top: calc(var(--space-2xl) + 80px);
  padding-bottom: var(--space-4xl);
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.section--tinted {
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.section--highlight {
  background: var(--color-bg-warm);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header--left {
  text-align: left;
}

.section-title {
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.section-header--left .section-subtitle {
  margin-left: 0;
}

/* Highlight & Accents — terracota em vez de dourado */
.text-highlight {
  color: var(--color-terra-500);
  font-style: italic;
  font-family: var(--font-serif);
}

.text-terra {
  color: var(--color-terra-500);
}

.text-muted {
  color: var(--color-text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}