/* ==========================================================================
   Formação Tributária — Reset, tipografia e componentes base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-primary);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

/* Container ------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--section-pad-x));
  margin: 0 auto;
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

/* Tipografia ------------------------------------------------------------- */

/* Títulos no Figma misturam peso: base 500 (ou 400) + trecho final em 700 */
.heading {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 500;
  line-height: 64px;
  color: var(--fg-heading);
}

.heading--w400 {
  font-weight: 400;
}

.heading strong {
  font-weight: 700;
}

.heading--inverse {
  color: var(--fg-inverse);
}

@media (max-width: 1024px) {
  .heading {
    font-size: 32px;
    line-height: 40px;
  }
}

/* Eyebrow (label com borda esquerda) -------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-left: 2px solid var(--primary-400);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.35px;
  color: #182330;
}

.eyebrow--inverse {
  border-left-color: var(--primary-200);
  color: #fff;
}

/* Botões ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.88;
}

.btn--brand {
  background: var(--brand);
  color: var(--fg-inverse);
}

.btn--white {
  background: var(--fg-inverse);
  color: var(--brand);
}

.btn--outline-light {
  border: 1px solid var(--primary-50);
  color: var(--fg-inverse);
}

.btn--outline-dark {
  border: 1px solid var(--brand);
  color: var(--brand);
}

.btn .chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Setas de carrossel ------------------------------------------------------ */

.carousel-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--fg-inverse);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}

.carousel-arrow:not(:disabled):hover {
  transform: scale(1.06);
}

.carousel-arrow:not(:disabled):active {
  transform: scale(0.96);
}

.carousel-arrow:disabled {
  background: var(--bg-tertiary);
  color: var(--fg-primary);
  cursor: default;
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
}

/* Trilhos de carrossel: arrastáveis com o mouse (JS) */
.carousel-track {
  cursor: grab;
}

.carousel-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.carousel-track.is-dragging * {
  pointer-events: none;
}

/* Cabeçalho de seção centrado --------------------------------------------- */

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
