/* ============================================================
   UPay — base: reset, tipografia global, layout primitives
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--fs-body-lg);
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

ul[class], ol[class] { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-bright); }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* ---------- seções ---------- */
.section { padding-block: var(--space-section); }

.section--dark {
  background: var(--bg-dark);
  background-image: var(--grad-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--dark > .container { position: relative; z-index: 1; }

/* onda decorativa posicionada atrás do conteúdo */
.wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.wave--left { object-position: left center; }
.wave--right { object-position: right center; }

/* ---------- padrão eyebrow → título → texto ---------- */
.eyebrow {
  display: block;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.1em;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: .01em;
}

.section-text {
  font-size: var(--fs-body-lg);
  font-weight: 300;
  line-height: 1.5;
  margin-top: 1.2em;
}

.section--dark .section-title { color: #fff; }

/* título central de bloco (ex: "Canais de Atendimento") */
.block-title {
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.25;
}

/* utilitários mínimos */
.center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* animação de entrada sutil (ativada via JS, respeita reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    translate: 0 14px;
    transition: opacity .6s ease, translate .6s ease;
  }
  .reveal.is-visible { opacity: 1; translate: 0 0; }
}
