/* ═══════════════════════════════════════════════════════════════
   MATAVELLI GRANITOS — Base Styles
   Reset + Fundação visual
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Outfit:wght@200;300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ─── RESET ─── */

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

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

body {
  font-family: var(--fonte-sans);
  font-size: var(--texto-base);
  font-weight: var(--peso-normal);
  line-height: var(--lh-texto);
  color: var(--cor-texto-primario);
  background-color: var(--cor-superficie-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ─── TIPOGRAFIA BASE ─── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fonte-serif);
  font-weight: var(--peso-leve);
  line-height: var(--lh-titulo);
  letter-spacing: var(--ls-titulo);
  color: var(--cor-texto-primario);
}

h1 {
  font-size: var(--texto-hero);
  letter-spacing: var(--ls-apertado);
}

h2 {
  font-size: var(--texto-4xl);
}

h3 {
  font-size: var(--texto-3xl);
}

h4 {
  font-size: var(--texto-2xl);
}

h5 {
  font-size: var(--texto-xl);
}

h6 {
  font-size: var(--texto-lg);
}

p {
  font-size: var(--texto-base);
  line-height: var(--lh-texto);
  color: var(--cor-texto-secundario);
  max-width: var(--max-w-texto);
}

/* Itálicos dentro de headings — estilo editorial */
h1 em, h2 em, h3 em, h4 em {
  font-style: italic;
  font-weight: var(--peso-leve);
}

/* Toques de cor nos itálicos */
h1 em { color: var(--cor-cinza-claro); }
h2 em { color: var(--cor-primaria); }
h3 em { color: var(--cor-secundaria); }

/* ─── LINKS ─── */

a {
  color: var(--cor-primaria);
  text-decoration: none;
  transition: color var(--trans-normal);
}

a:hover {
  color: var(--cor-primaria-clara);
}

/* ─── SELEÇÃO DE TEXTO ─── */

::selection {
  background-color: var(--cor-primaria);
  color: var(--cor-branco);
}

::-moz-selection {
  background-color: var(--cor-primaria);
  color: var(--cor-branco);
}

/* ─── IMAGENS ─── */

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

/* ─── LISTAS ─── */

ul, ol {
  list-style: none;
}

/* ─── FORMULÁRIOS BASE ─── */

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── SCROLLBAR CUSTOMIZADA ─── */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cor-marmore);
}

::-webkit-scrollbar-thumb {
  background: var(--cor-cinza);
  border-radius: var(--raio-total);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cor-primaria);
}

/* ─── FOCO ACESSÍVEL ─── */

:focus-visible {
  outline: 2px solid var(--cor-primaria);
  outline-offset: 3px;
  border-radius: var(--raio-sm);
}
