/* ============================================================
   FonoKompass · Base
   Reset, fontes Museo, tipografia base, utilitários genéricos.
   ============================================================ */

/* === FONTES MUSEO (oficial da marca) === */
@font-face {
  font-family: 'Museo';
  src: url('../fonts/Museo-300.woff') format('woff'),
       url('../fonts/Museo300-Regular.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Museo';
  src: url('../fonts/Museo-300Italic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Museo';
  src: url('../fonts/Museo-500.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Museo';
  src: url('../fonts/Museo-500Italic.woff') format('woff');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Museo';
  src: url('../fonts/Museo-700.woff') format('woff'),
       url('../fonts/Museo700-Regular.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Museo';
  src: url('../fonts/Museo-700Italic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Museo';
  src: url('../fonts/Museo-900.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Só temos um arquivo Museo Sans 500 (regular e italic). Declarando
   font-weight como range "400 700" o browser interpretava como variable
   font cobrindo toda a faixa e usava o arquivo 500 também pra peso 700,
   bloqueando o <strong>. Voltando pra peso exato 500 + font-synthesis
   no body, browsers sintetizam o bold. */
@font-face {
  font-family: 'Museo Sans';
  src: url('../fonts/MuseoSans_500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Museo Sans';
  src: url('../fonts/MuseoSans_500_Italic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  background: var(--color-cream);
  color: var(--text-on-cream-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Force browser synthesis quando o arquivo da fonte não cobre o peso
     pedido — necessário pra <strong> em Museo Sans (que só tem 500). */
  font-synthesis: weight style;
  overflow-x: hidden;
}

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

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

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

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

ul, ol {
  list-style: none;
}

::selection {
  background: var(--color-gold);
  color: var(--color-navy);
}

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

/* === TIPOGRAFIA BASE === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: inherit;
}

p {
  line-height: 1.6;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

/* === UTILITÁRIOS === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  z-index: 200;
  transition: top var(--duration-fast) var(--ease-out-expo);
}
.skip-link:focus {
  top: var(--space-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.on-cream .eyebrow,
.eyebrow--on-cream { color: var(--color-gold-darker); }

.on-navy .eyebrow,
.eyebrow--on-navy  { color: var(--color-gold); }

/* Body lock para modal e menu mobile */
body.is-locked {
  overflow: hidden;
}

/* Acessibilidade: respeito a prefers-reduced-motion */
@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;
  }
}
