/* ==========================================================================
   Numax — Base styles
   Reset + tipografia base + helpers de seção
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-feature-settings: "ss01", "cv11";
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  line-height: 1.6;
  font-weight: 400;
  color: var(--fg-default);
  background: var(--bg-default);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.15;
}

p { margin: 0; }

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

/* ========== Focus visible — anel azul ========== */
*:focus { outline: none; }
*:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* ========== Tipografia — escalas ========== */
.text-display-xl {
  font-size: var(--text-display-xl-size);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.text-display {
  font-size: var(--text-display-size);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.text-h1 {
  font-size: var(--text-h1-size);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.text-h2 {
  font-size: var(--text-h2-size);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.text-h3 {
  font-size: var(--text-h3-size);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-h4 {
  font-size: var(--text-h4-size);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.text-lead {
  font-size: var(--text-lead-size);
  line-height: 1.5;
  font-weight: 400;
}

.text-body {
  font-size: var(--text-body-size);
  line-height: 1.6;
  font-weight: 400;
}

.text-body-md {
  font-size: var(--text-body-size);
  line-height: 1.6;
  font-weight: 500;
}

.text-body-bold {
  font-size: var(--text-body-size);
  line-height: 1.6;
  font-weight: 600;
}

.text-small {
  font-size: var(--text-small-size);
  line-height: 1.5;
}

.text-caption {
  font-size: var(--text-caption-size);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.text-eyebrow {
  font-size: var(--text-caption-size);
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-accent);
}

.text-price {
  font-size: var(--text-price-size);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-feature-settings: "tnum";
}

/* ========== Cores de texto helpers ========== */
.text-default { color: var(--fg-default); }
.text-muted { color: var(--fg-muted); }
.text-inverted { color: var(--fg-inverted); }
.text-accent { color: var(--fg-accent); }

/* ========== Container ========== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-x-mobile);
  padding-right: var(--container-x-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--container-x-desktop);
    padding-right: var(--container-x-desktop);
  }
}

/* ========== Section ========== */
.section {
  padding-top: var(--section-y-mobile);
  padding-bottom: var(--section-y-mobile);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--section-y-desktop);
    padding-bottom: var(--section-y-desktop);
  }
}

.section--subtle { background: var(--bg-subtle); }
.section--inverted { background: var(--bg-inverted); color: var(--fg-inverted); }
.section--deep { background: var(--bg-deep); color: var(--fg-inverted); }
.section--gradient { background: var(--bg-gradient); color: var(--fg-inverted); }

/* Section header (eyebrow + h2 + lead) */
.section-header {
  max-width: 720px;
  margin-bottom: var(--space-10);
}

.section-header--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
}

.section-header__title {
  margin-bottom: var(--space-4);
}

.section-header__intro {
  color: var(--fg-muted);
  max-width: 640px;
}

.section--inverted .section-header__intro,
.section--deep .section-header__intro,
.section--gradient .section-header__intro {
  color: rgba(255, 255, 255, 0.8);
}

/* ========== Botão — pílula completa ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-button-size);
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  min-height: 48px;
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--action-primary);
  color: var(--action-primary-text);
}
.btn--primary:hover { background: var(--action-primary-hover); }

.btn--secondary {
  background: var(--action-secondary);
  color: var(--color-white);
}
.btn--secondary:hover { background: var(--action-secondary-hover); }

.btn--inverted {
  background: var(--color-white);
  color: var(--color-blue);
}
.btn--inverted:hover { background: var(--color-blue-50); }

.btn--outline {
  background: transparent;
  color: var(--color-blue);
  box-shadow: inset 0 0 0 2px var(--color-blue);
}
.btn--outline:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--fg-default);
}
.btn--ghost:hover {
  background: var(--color-gray-100);
}

/* Setinha do CTA (regra do design system) */
.btn__arrow {
  display: inline-block;
  transition: transform var(--duration-base) var(--ease-out);
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ========== Card ========== */
.card {
  background: var(--bg-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--duration-base) var(--ease-out);
}

.card:hover { box-shadow: var(--shadow-lg); }

.card--subtle {
  background: var(--bg-subtle);
  box-shadow: none;
}

/* ========== Helpers ========== */
.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;
}

.text-center { text-align: center; }

/* Header =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}
.site-header__logo img { height: 32px; }

/* Menu central (links de navegação) */
.site-header__menu {
  display: none;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}
.site-header__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.5rem 0;
}
.site-header__link:hover {
  color: var(--color-primary);
}
.site-header__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.2s ease;
  transform: translateX(-50%);
}
.site-header__link:hover::after {
  width: 100%;
}

/* Página atual — mesmo underline do hover, mas permanente */
.site-header__link.is-current {
  color: var(--color-primary);
  font-weight: 600;
}
.site-header__link.is-current::after {
  width: 100%;
}

/* Bloco de ações à direita (Login + CTA) */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-header__login {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
}
.site-header__login:hover { color: var(--color-primary); }

/* Botão hamburger (só mobile) */
.site-header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.site-header__toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Desktop: mostra menu, esconde hamburger */
@media (min-width: 1024px) {
  .site-header__menu { display: flex; }
  .site-header__toggle { display: none; }
}

/* Mobile: esconde menu central e Login (deixa só logo + CTA + hamburger) */
@media (max-width: 1023px) {
  .site-header__login { display: none; }
}

/* Estado aberto do menu mobile */
.site-header__menu.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: white;
  padding: 1.5rem;
  gap: 1.25rem;
  border-bottom: 1px solid #e7e7e7;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.site-__login:hover { color: var(--color-primary); }

/* === Unified site-header (matches Manual de Suplementação) === */
.site-header__inner{min-height:60px;padding:10px 14px 10px 22px;gap:18px;background:rgba(255,255,255,.95);border:1px solid #E5E8EE;box-shadow:0 14px 36px rgba(17,30,54,.08)}
.site-header__logo{width:118px}
.site-header__menu{font-size:13px;gap:18px;color:rgba(17,30,54,.72)}
.site-header__link{white-space:nowrap;text-decoration:none;color:rgba(17,30,54,.78);font-weight:400;padding:0;background:none;text-transform:none;letter-spacing:0}
.site-header__link:hover{color:#0055ad}
.site-header__link.is-current{color:#0055ad;font-weight:600}
.site-header__link.is-current::after{display:none}
.site-header__actions{gap:14px;font-size:13px}
.site-header__actions .btn,.site-header__actions .btn--primary{width:auto;font-size:12px;padding:10px 18px;border-radius:999px;letter-spacing:.06em;text-transform:uppercase;min-width:0;min-height:0;background:#0055ad;color:#fff;font-weight:700}
@media(max-width:1100px){.site-header__menu{display:none}.site-header__toggle{display:inline-flex}}
@media(max-width:820px){.site-header__actions{display:none}}
