/*
 * Reset e tokens.
 *
 * O site.css deste tema foi escrito em cima do preflight do Tailwind v4. Ao sair
 * do Tailwind, este arquivo reproduz o que o preflight normalizava. Sem ele os
 * títulos voltam ao tamanho padrão do navegador, as listas ganham marcador e
 * recuo, e o espaçamento do site inteiro sai de lugar.
 *
 * A base é o preflight do Tailwind v4, transcrito em CSS puro.
 */

*,
::after,
::before,
::backdrop,
::file-selector-button {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, sans-serif;
  /* barra de rolagem não deve empurrar o layout ao trocar de página */
  scrollbar-gutter: stable;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

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

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

:-moz-focusring {
  outline: auto;
}

progress {
  vertical-align: baseline;
}

summary {
  display: list-item;
}

ol,
ul,
menu {
  list-style: none;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

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

button,
input,
select,
optgroup,
textarea,
::file-selector-button {
  font: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  letter-spacing: inherit;
  color: inherit;
  border-radius: 0;
  background-color: transparent;
  opacity: 1;
}

:where(select:is([multiple], [size])) optgroup {
  font-weight: bolder;
}

::placeholder {
  opacity: 1;
  color: rgba(148, 163, 184, 0.85);
}

textarea {
  resize: vertical;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

:is(
    button,
    input:is([type='button'], [type='reset'], [type='submit']),
    ::file-selector-button
  ) {
  -webkit-appearance: button;
  appearance: button;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
 * O preflight do Tailwind traz esta regra, e o tema depende dela: o submenu de
 * Soluções e o menu móvel ficam sempre no DOM e são alternados por hidden.
 */
[hidden]:where(:not([hidden='until-found'])) {
  display: none !important;
}

/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: dark;

  /* Tokens do prompt HAOS, adaptados pra paleta CL Tech Solutions */
  --bg-color: #020b1a;
  --primary-text-color: #b9dbff;
  --secondary-text-color: #6d8cb0;
  --glow-color-1: rgba(0, 244, 190, 0.25);
  --glow-color-2: rgba(5, 180, 242, 0.35);
  --glow-color-3: rgba(2, 124, 232, 0.2);
  --line-color: rgba(109, 140, 176, 0.3);
  --accent: #00f4be;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  /* Preto-navy derivado do #00388C da marca */
  background: var(--bg-color);
  color: #ffffff;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/*
 * Guarda contra o kit global do Elementor, que continua sendo enfileirado pelo
 * plugin mesmo com outro tema ativo e mexe em tipografia do body. A
 * especificidade de body.cl-site vence body, então funciona mesmo se a folha do
 * Elementor entrar depois desta.
 */
body.cl-site {
  background: var(--bg-color);
  color: #ffffff;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}
