/*
Theme Name: Crematório Guarulhos
Theme URI: https://crematorioguarulhos.com.br
Author: Crematório Guarulhos
Author URI: https://crematorioguarulhos.com.br
Description: Tema institucional e comercial para crematorioguarulhos.com.br. Desenvolvido do zero em PHP, HTML, CSS e JavaScript puros, sem page builders ou frameworks pesados. Transmite acolhimento, serenidade e profissionalismo.
Version: 1.8.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crematorio-guarulhos
Tags: custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, accessibility-ready
*/

/* ==========================================================================
   0. RESET LEVE
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
	margin: 0;
}

ul[class], ol[class] {
	list-style: none;
	margin: 0;
	padding: 0;
}

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

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

button {
	font: inherit;
	cursor: pointer;
}

input, textarea, select, button {
	font-family: inherit;
}

/* ==========================================================================
   1. TOKENS DE DESIGN — PALETA, TIPOGRAFIA, ESPAÇAMENTO
   ========================================================================== */
:root {
	/* Paleta institucional */
	--cor-petroleo: #536D72;
	--cor-petroleo-escuro: #3F595E;
	--cor-azul-acinzentado: #AAB9BA;
	--cor-areia: #D8C9B6;
	--cor-areia-clara: #E9E0D4;
	--cor-creme: #F5F1E9;
	--cor-off-white: #FCFBF8;
	--cor-cinza-quente: #77736D;
	--cor-cinza-escuro: #44423F;
	--cor-branco: #FFFFFF;

	/* Papéis semânticos */
	--cor-fundo: var(--cor-off-white);
	--cor-fundo-alt: var(--cor-creme);
	--cor-texto: var(--cor-cinza-escuro);
	--cor-texto-suave: var(--cor-cinza-quente);
	--cor-titulo: var(--cor-petroleo-escuro);
	--cor-destaque: var(--cor-petroleo);
	--cor-borda: var(--cor-areia-clara);

	/* Tipografia */
	--fonte-titulo: 'Fraunces', Georgia, 'Times New Roman', serif;
	--fonte-corpo: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

	/* Escala tipográfica */
	--tamanho-h1: clamp(2.4rem, 4.4vw + 1rem, 4.2rem);
	--tamanho-h2: clamp(1.9rem, 2.4vw + 1rem, 2.75rem);
	--tamanho-h3: clamp(1.35rem, 1vw + 1rem, 1.75rem);
	--tamanho-lead: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
	--tamanho-texto: 1.0625rem;

	/* Espaçamento */
	--espaco-secao: clamp(3.5rem, 6vw, 7rem);
	--espaco-container: 1.5rem;
	--largura-conteudo: 1180px;
	--largura-leitura: 62ch;

	/* Superfícies */
	--raio: 6px;
	--raio-grande: 10px;
	--sombra-suave: 0 12px 32px -20px rgba(63, 89, 94, 0.35);
	--transicao: 220ms ease;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
body {
	font-family: var(--fonte-corpo);
	font-size: var(--tamanho-texto);
	line-height: 1.7;
	color: var(--cor-texto);
	background-color: var(--cor-fundo);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--fonte-titulo);
	color: var(--cor-titulo);
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -0.01em;
}

h1 { font-size: var(--tamanho-h1); font-weight: 500; }
h2 { font-size: var(--tamanho-h2); }
h3 { font-size: var(--tamanho-h3); }

p {
	max-width: var(--largura-leitura);
}

a {
	transition: color var(--transicao);
}

::selection {
	background: var(--cor-petroleo);
	color: var(--cor-off-white);
}

:focus-visible {
	outline: 3px solid var(--cor-petroleo);
	outline-offset: 3px;
}

/* Em seções com fundo escuro, o contorno de foco precisa de mais contraste. */
.hero :focus-visible,
.banner-emergencia :focus-visible,
.bloco-cremacao :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--cor-off-white);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999999;
	background: var(--cor-petroleo-escuro);
	color: var(--cor-off-white);
	padding: 0.9rem 1.4rem;
	border-radius: 0 0 var(--raio) 0;
}

.skip-link:focus {
	left: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
