/* ==========================================================================
   REGINA LAFER · DESIGN SYSTEM
   base.css — Reset moderno + base tipográfica + utilitários essenciais
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  transition: background-color var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--color-text-link); text-decoration: none; }
a:hover { color: var(--color-text-link-hover); text-decoration: underline; }
ul, ol { list-style-position: inside; }

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

::selection { background: var(--color-primary-muted); color: var(--color-text); }

/* ---- Tipografia base --------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
  letter-spacing: var(--tracking-tight);
}

.ds-display {                 /* Assinatura Great Vibes — uso decorativo */
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--color-primary);
}

h1, .h1 { font-size: var(--text-3xl); }
h2, .h2 { font-size: var(--text-2xl); }
h3, .h3 { font-size: var(--text-xl); }
h4, .h4 { font-size: var(--text-lg); font-weight: var(--weight-medium); }
h5, .h5 { font-size: var(--text-md); font-weight: var(--weight-medium); }
h6, .h6 {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
}

p { line-height: var(--leading-normal); }
.lead { font-size: var(--text-md); color: var(--color-text-muted); line-height: var(--leading-relaxed); }
small, .text-small { font-size: var(--text-sm); }
.text-muted { color: var(--color-text-muted); }
.text-subtle { color: var(--color-text-subtle); }

.eyebrow {                    /* rótulo superior em caixa-alta, estilo "TERAPEUTA" */
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-primary);
}

code, kbd, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-surface-sunken);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border);
}

blockquote {
  border-left: 3px solid var(--color-primary);
  padding: var(--space-2) var(--space-5);
  color: var(--color-text-muted);
  font-style: italic;
}

hr { border: none; border-top: 1px solid var(--color-divider); margin: var(--space-8) 0; }

/* ---- Layout utilitário ------------------------------------------------- */
.container { width: 100%; max-width: var(--container-xl); margin-inline: auto; padding-inline: var(--space-6); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }

.stack > * + * { margin-top: var(--space-4); }
.stack-sm > * + * { margin-top: var(--space-2); }
.stack-lg > * + * { margin-top: var(--space-8); }

.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.row { display: flex; gap: var(--space-4); align-items: center; }
.grid { display: grid; gap: var(--space-6); }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }

.text-center { text-align: center; }
.measure { max-width: var(--measure); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Troca de logotipo por tema --------------------------------------- */
/* Use <img class="logo on-light"> + <img class="logo on-dark"> no mesmo lugar.
   A versão correta aparece conforme o tema ativo. */
.on-dark { display: none; }
[data-theme="dark"] .on-light { display: none; }
[data-theme="dark"] .on-dark { display: inline-block; }
