/* ==========================================================
   BASE — Fontes locais, identidade e normalização
   Sem Tailwind, bibliotecas de componentes ou CSS de framework.
   A licença das fontes está em ../fonts/OFL.txt.
   ========================================================== */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-400.ttf") format("truetype");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-500.ttf") format("truetype");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-600.ttf") format("truetype");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-700.ttf") format("truetype");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-800.ttf") format("truetype");
}

:root {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #233139;
  background: #fff;
  font-synthesis: none;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* REGRA GLOBAL: Tamanho mínimo de fonte no site é 14px */
small,
sub,
sup {
  font-size: 14px;
}

/* BASE — Reset explícito, independente de bibliotecas. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
blockquote,
figure,
ul,
ol {
  margin: 0;
}

body {
  min-width: 320px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button,
input,
select,
textarea {
  margin: 0;
}

button,
summary,
select {
  cursor: pointer;
}

button {
  text-transform: none;
  transition: background 0.2s, transform 0.2s;
}

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

img,
svg {
  vertical-align: middle;
}

img {
  max-width: 100%;
}

code,
kbd,
pre {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

strong,
b {
  font-weight: 700;
}

/* TABELAS — Normalização limpa e acessível */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  font-weight: 700;
}

/* ACESSIBILIDADE — O atributo hidden prevalece sobre layouts flex/grid. */
[hidden] {
  display: none !important;
}

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

:focus-visible {
  outline: 3px solid #00cfff;
  outline-offset: 4px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
}

/* HERO / NAVEGAÇÃO — Respeita a preferência por movimento reduzido. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* PROJETOS — Modal nativo: foco, Escape e fundo inerte pelo navegador. */
.static-project-dialog {
  padding: 0;
  border: 0;
  border-radius: 9px;
  width: min(760px, calc(100vw - 36px));
  max-width: none;
  max-height: 90vh;
  background: #fff;
  color: #233640;
  overflow: auto;
  margin: auto;
  box-shadow: 0 20px 80px #061c2950;
}

.static-project-dialog::backdrop {
  background: #061c29b3;
  backdrop-filter: blur(7px);
}

.static-project-dialog .web-project-modal {
  max-height: none;
  border-radius: 0;
}

body.has-project-dialog {
  overflow: hidden;
}

/* FOOTER — Link do código-fonte estático e utilidades. */
.static-source-note {
  font-size: 14px;
  line-height: 1.8;
  color: #78909d;
}

/* IMPRESSÃO — Não imprime a janela modal ou templates de projetos. */
@media print {
  .static-project-dialog {
    display: none !important;
  }
}
