/* ==========================================================================
   REMACHADO.AI — BASE (reset, tipografia global, container, utilitários)
   Fonte normativa: architecture/POP-02_design-system.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONT-FACE DEFINITIONS (Self-hosted woff2)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/sora-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/sora-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/pjs-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/pjs-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/pjs-600.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. GLOBAL TYPOGRAPHY (Mobile-First)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.375rem; /* 38px */
  line-height: 1.21;   /* 46px */
  font-weight: 700;
}

h2 {
  font-size: 1.875rem; /* 30px */
  line-height: 1.26;   /* 38px */
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;   /* 24px */
  line-height: 1.33;   /* 32px */
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;  /* 20px */
  line-height: 1.4;    /* 28px */
  font-weight: 600;
}

p.body-large {
  font-size: 1.0625rem; /* 17px */
  line-height: 1.647;   /* 28px */
  font-weight: 400;
  color: var(--text-secondary);
}

p, body {
  font-size: 1rem;      /* 16px */
  line-height: 1.75;    /* 28px */
}

small, .text-small {
  font-size: 0.875rem;  /* 14px */
  line-height: 1.57;    /* 22px */
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;   /* 12px */
  line-height: 1.33;    /* 16px */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-01);
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem;   /* 56px */
    line-height: 1.14;   /* 64px */
  }

  h2 {
    font-size: 2.5rem;   /* 40px */
    line-height: 1.2;    /* 48px */
  }

  h3 {
    font-size: 2rem;     /* 32px */
    line-height: 1.25;   /* 40px */
  }

  h4 {
    font-size: 1.5rem;   /* 24px */
    line-height: 1.33;   /* 32px */
  }

  p.body-large {
    font-size: 1.125rem; /* 18px */
    line-height: 1.66;   /* 30px */
  }
}

/* --------------------------------------------------------------------------
   4. LAYOUT UTILITIES & ACCESSIBILITY
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Screen-reader-only utility (quiz labels, form accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus indicator for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-01);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   5. JUSTIFICAÇÃO DE TEXTOS CORRIDOS (CR-19 / POP-03 R6.7)
   -------------------------------------------------------------------------- */
.text-justify,
.hero-description,
.card-problem,
.card-solution,
.card-result,
.card-text,
.card-pratica,
.espelho-text,
.publico-desc,
.step-desc,
.aplicacao-desc,
.aplicacao-col p,
.sobre-bio p,
.faq-answer p,
.depoimento-text,
.comunidade-desc,
.privacidade-content p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

@media (max-width: 320px) {
  .text-justify,
  .hero-description,
  .card-problem,
  .card-solution,
  .card-result,
  .card-text,
  .card-pratica,
  .espelho-text,
  .publico-desc,
  .step-desc,
  .aplicacao-desc,
  .aplicacao-col p,
  .sobre-bio p,
  .faq-answer p,
  .depoimento-text,
  .comunidade-desc,
  .privacidade-content p {
    text-align: left;
    hyphens: manual;
  }
}

/* Reduced Motion Override */
@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;
    scroll-behavior: auto !important;
  }
}


