/* ============================================================
   CARTEIRA 360° — BASE
   Reset moderno + tipografia + utilitários globais.
   ============================================================ */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* compensa header fixo em âncoras */
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

/* Acessibilidade — foco visível em quem navega por teclado */
:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Respeita preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- TIPOGRAFIA BASE ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

p { line-height: var(--lh-relaxed); }

strong, b { font-weight: var(--fw-bold); }

/* ---------- LAYOUT — CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

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

/* ---------- SEÇÕES ---------- */
.section {
  padding-block: var(--section-py);
  position: relative;
}

.section--tight {
  padding-block: var(--section-py-tight);
}

.section--dark {
  background-color: var(--color-navy-deep);
  color: var(--color-text-on-dark);
}

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

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

/* ---------- HEADER DE SEÇÃO (eyebrow + headline + sub) ---------- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-blue);
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-blue-tint-soft);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.section--dark .section-eyebrow {
  background-color: rgba(0, 113, 188, 0.18);
  color: #4DA8E8;
}

.section-title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-5);
}

.section-title .accent {
  color: var(--color-blue);
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-secondary);
  max-width: 620px;
  margin-inline: auto;
  line-height: var(--lh-relaxed);
}

.section--dark .section-subtitle {
  color: var(--color-text-on-dark-muted);
}

/* Linha decorativa abaixo do título (como na FSS) */
.section-title-divider {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--color-blue);
  border-radius: var(--radius-full);
  margin: var(--space-5) auto var(--space-6);
}

/* ---------- BOTÕES / CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  letter-spacing: -0.005em;
  border-radius: var(--radius-full);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background-color: var(--color-blue);
  color: var(--color-white);
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
  background-color: var(--color-blue-hover);
  box-shadow: var(--shadow-cta-hover);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-cta);
}

.btn--large {
  padding: var(--space-5) var(--space-8);
  font-size: var(--fs-lg);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border-strong);
}

.btn--ghost:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

/* Animação sutil de pulse no CTA principal */
.btn--pulse {
  position: relative;
}

.btn--pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 var(--color-blue-glow);
  animation: cta-pulse 2.4s var(--ease-out) infinite;
  pointer-events: none;
}

@keyframes cta-pulse {
  0% { box-shadow: 0 0 0 0 var(--color-blue-glow); }
  70% { box-shadow: 0 0 0 18px rgba(0, 113, 188, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 113, 188, 0); }
}

/* ---------- BADGE / PILL ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.badge--blue {
  background-color: var(--color-blue-tint);
  color: var(--color-blue);
}

.badge--blue-dark {
  background-color: rgba(0, 113, 188, 0.18);
  color: #4DA8E8;
  border: 1px solid rgba(0, 113, 188, 0.4);
}

.badge--dot::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: var(--radius-full);
}

/* ---------- UTILS ---------- */
.text-center { text-align: center; }
.text-blue { color: var(--color-blue); }
.text-navy { color: var(--color-navy); }
.text-muted { color: var(--color-text-secondary); }

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

/* Highlight de palavra-âncora — usado em headlines */
.highlight {
  color: var(--color-blue);
  position: relative;
  white-space: nowrap;
}

/* Animação de entrada (será disparada por JS via IntersectionObserver).
   IMPORTANTE: o elemento NASCE VISÍVEL. Se JS não rodar ou o observer
   falhar, o conteúdo continua acessível. A animação é só um "plus". */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Quando JS estiver disponível e a página suportar, ativa o fade-up */
.js-reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: opacity, transform;
}

.js-reveal-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }
.reveal-delay-6 { transition-delay: 480ms; }
