/* =============================================================
   Brotas Beauty - fundamentos: reset, variaveis e tipografia.
   ============================================================= */

:root {
  /* Marca */
  --brand:         #ff7b42;
  --brand-dark:    #c95822;
  --brand-light:   #ffad7f;
  --brand-soft:    #fff2ea;

  /* Neutros */
  --ink:           #3c3430;
  --ink-soft:      #706762;
  --ink-faint:     #a69c96;
  --line:          #d8d3cf;
  --surface:       #ffffff;
  --canvas:        #f2f2ef;

  /* Estados */
  --ok:            #2e9e6b;
  --ok-bg:         #e6f6ee;
  --warn:          #c98a1b;
  --warn-bg:       #fdf3e0;
  --danger:        #cf3b52;
  --danger-bg:     #fdeaee;
  --info:          #3f7fb5;
  --info-bg:       #e8f1f9;

  /* Medidas */
  --radius:        5px;
  --radius-sm:     3px;
  --shadow:        0 1px 3px rgba(60, 52, 48, .10);
  --shadow-lg:     0 8px 22px rgba(60, 52, 48, .18);
  --sidebar-w:     45px;
  --topbar-h:      60px;

  /* Alvo minimo de toque no celular (item 35) */
  --touch:         44px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 .6em; }

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

[hidden] { display: none !important; }

.muted      { color: var(--ink-soft); font-size: .875rem; }
.text-right { text-align: right; }
.spacer     { flex: 1; }
.nowrap     { white-space: nowrap; }

/* Visivel apenas para leitores de tela */
.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;
}

/* Foco sempre visivel: acessibilidade e uso por teclado */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

::-webkit-scrollbar        { width: 10px; height: 10px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: #d8d2dd; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #c3bcc9; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
