/* ==========================================================================
   BASE & RESET - SOU LEÃO DO NORTE
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-dark);
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

p {
  margin-bottom: var(--space-md);
}

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

.text-lead {
  font-size: clamp(1.125rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  font-weight: 400;
  color: var(--color-text-muted);
}

.font-anton {
  font-family: var(--font-display);
}

.font-antonio {
  font-family: var(--font-heading);
}

.font-poppins {
  font-family: var(--font-body);
}

/* ==========================================================================
   CONTAINERS & LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

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

.section-padding {
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.section-padding-sm {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-text-light);
}

.section-dark .text-lead {
  color: var(--color-text-light-muted);
}

.section-terracota {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
}

.section-terracota h1,
.section-terracota h2,
.section-terracota h3 {
  color: var(--color-bg-light);
}

.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  background-color: rgba(224, 73, 52, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}

.section-dark .section-tag {
  color: var(--color-bg-light);
  background-color: rgba(254, 241, 225, 0.15);
}

.tag-green {
  color: var(--color-accent) !important;
  background-color: rgba(43, 119, 70, 0.12) !important;
}

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

/* Animações de Revelação no Scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
