/*
	style.css
	Estilos globais: reset, CSS variables, tipografia base, body,
	elementos globais (links, imagens, títulos) e container.
	Componentes reutilizáveis ficam em components.css.
	Breakpoints ficam em responsive.css.
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
	/* Cores — identidade real da Soluciona Veículos (dourado/antracite, extraída da logo) */
	--primary: #8A6D1F;
	--primary-text: var(--primary);
	--secondary: #1C1917;
	--accent: #22C55E;
	--danger: #DC2626;
	--white: #FFFFFF;
	--background: #FAFAF8;
	--background-top: #FFFFFF;
	--background-warm: #F4F1EA;
	--surface: #F5F1E8;
	--text: #1C1917;
	--text-light: #57534E;

	/* Tipografia — Google Fonts (Inter) deve ser importado via <link> no <head> */
	--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* Espaçamento */
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;

	/* Layout */
	--container-max-width: 1200px;

	/* Efeitos */
	--radius: 12px;
	--shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	--shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.12);
	--transition: 300ms ease;
}

/* Tema escuro — ativado via [data-theme="dark"] no <html> (ver js/theme.js).
   --secondary e --primary permanecem fixos: sustentam elementos de fundo
   escuro sólido (footer, diferenciais, badge da logo) que já são escuros
   em ambos os temas. Apenas os tokens de superfície/texto/leitura mudam. */
:root[data-theme="dark"] {
	--primary-text: #D9A84A;
	--danger: #F87171;
	--background: #201D1A;
	--background-top: #1C1917;
	--background-warm: #26211D;
	--surface: #2A2622;
	--text: #EDE9E3;
	--text-light: #B8B2A8;
	--shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	--shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.45);
}

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

html {
	scroll-behavior: smooth;
}

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

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

ul,
ol {
	list-style: none;
}

/* ==========================================================================
   Body
   ========================================================================== */
body {
	font-family: var(--font-primary);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--text);
	background-color: var(--background);
	background-image: linear-gradient(180deg, var(--background-top) 0%, var(--background) 35%, var(--background-warm) 100%);
	background-repeat: no-repeat;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color var(--transition), color var(--transition);
}

/* ==========================================================================
   Títulos
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-primary);
	color: var(--text);
	line-height: 1.25;
	font-weight: 600;
}

h1 {
	font-size: 2.25rem;
}

h2 {
	font-size: 1.75rem;
}

h3 {
	font-size: 1.375rem;
}

/* ==========================================================================
   Links
   ========================================================================== */
a {
	color: var(--primary-text);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--text);
}

/* ==========================================================================
   Container global
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--container-max-width);
	margin-inline: auto;
	padding-inline: var(--space-sm);
}
