/* ==========================================================================
   MS FLASH · BASE (reset, layout, tipografia, utilitários)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.015em; }

::selection { background: var(--brand-soft); color: var(--brand-ink); }

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

/* Scrollbar minimalista */
html { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 9px;
  border: 2px solid var(--bg-soft);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: var(--section-y) 0;
  overflow-x: clip;
}

.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--bg) 0%, var(--brand-tint) 100%); }
.section--tint-down { background: linear-gradient(180deg, var(--brand-tint) 0%, var(--bg) 100%); }

.section--dark {
  background: var(--bg-dark);
  color: var(--on-dark);
}
.section--dark h2, .section--dark h3 { color: #FFFFFF; }

.section-head {
  max-width: 760px;
  margin: 0 0 clamp(48px, 6vw, 80px);
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 20px; color: var(--ink-2); font-size: var(--fs-lead); }
.section--dark .section-head p { color: var(--on-dark-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.section--dark .eyebrow { color: var(--wa); }

.lead { font-size: var(--fs-lead); color: var(--ink-2); }
.hl { color: var(--brand); }
.section--dark .hl { color: var(--wa); }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-premium),
              background-color var(--t-fast) ease,
              box-shadow var(--t-med) var(--ease-premium),
              border-color var(--t-fast) ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }

.btn--wa { --btn-bg: var(--wa); --btn-fg: #06261F; }
.btn--wa:hover { background: var(--wa-hover); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: none; }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.92rem; }
.btn--lg { min-height: 64px; padding: 0 36px; font-size: 1.06rem; }
.btn--block { width: 100%; }

.micro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 18px;
  font-size: var(--fs-small);
  color: var(--ink-3);
}
.micro span { display: inline-flex; align-items: center; gap: 6px; }
.micro svg { width: 16px; height: 16px; color: var(--brand); }
.section--dark .micro { color: var(--on-dark-2); }
.section--dark .micro svg { color: var(--wa); }

/* Ícones do sprite */
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Reveal bidirecional (2.5s, curva premium)
   -------------------------------------------------------------------------- */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity var(--reveal-duration) var(--ease-premium),
              transform var(--reveal-duration) var(--ease-premium);
  will-change: opacity, transform;
}
.reveal { transform: translateY(28px); }
.reveal-left { transform: translate(-60px, 15px); }
.reveal-right { transform: translate(60px, 15px); }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

.d-1 { transition-delay: 0.08s; }
.d-2 { transition-delay: 0.16s; }
.d-3 { transition-delay: 0.24s; }
.d-4 { transition-delay: 0.32s; }
.d-5 { transition-delay: 0.40s; }

.no-js .reveal, .no-js .reveal-left, .no-js .reveal-right { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

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