/* =========================================================
   UBERSERRA — Base global
   ========================================================= */
html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--graphite);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p { text-wrap: pretty; }

strong { font-weight: 700; }

::selection { background: var(--brand-red); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

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

.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(40px, 4.5vw, 64px); }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--graphite); color: #e9ecef; }
.section--dark h2,
.section--dark h3 { color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand-red);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.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;
}

/* Cabeçalho de seção -------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand-red);
}

.section-head { max-width: 760px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head p { color: var(--gray-700); font-size: 1.05rem; margin-top: 16px; }
.section--dark .section-head p { color: #b8bec6; }

.lead { font-size: 1.12rem; color: var(--gray-700); }
.section--dark .lead { color: #b8bec6; }

/* Reveal discreto ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
