/*
Theme Name: COMSAF
Theme URI: https://www.comsaf.com.br
Author: COMSAF
Author URI: https://www.comsaf.com.br
Description: Tema do Consórcio Intermunicipal do Vale do Rio São Francisco (MG). Estilos principais e folhas de recursos adicionais carregados via funções do tema.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: comsaf
Tags: custom-menu, one-column, custom-logo, blog, featured-images, translation-ready
*/

/* Estilos base estão em assets/css/ e são enfileirados no functions.php */

/* Link “pular para o conteúdo” (WordPress / acessibilidade) */
.skip-link.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px) !important;
	clip-path: inset(50%) !important;
	height: 1px !important;
	width: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto !important;
	clip-path: none !important;
	height: auto !important;
	width: auto !important;
	margin: 0 !important;
	overflow: visible !important;
	padding: 0.75em 1em !important;
	position: fixed !important;
	top: 0.5em;
	left: 0.5em;
	z-index: 100000;
	background: #1a1a1a;
	color: #fff;
	text-decoration: none;
}

/* ── <main> sem folga (Gutenberg / estilos globais podem definir margin/padding no main) */
#main-content,
#main-content.site-main,
main#site-main {
	margin: 0 !important;
	padding: 0 !important;
	margin-block: 0 !important;
	margin-inline: 0 !important;
	padding-block: 0 !important;
	padding-inline: 0 !important;
}

/*
 * Página inicial: o cabeçalho fica fora do fluxo, por baixo fica o hero a começar no topo
 * (deixa de haver a soma "altura do header + início do hero" visível em faixa a mais)
 */
body.home .site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: var(--z-header);
}

/* Barra de admin: WordPress aplica margin-top no html; alinhar o header fixo */
html.admin-bar body.home .site-header {
	top: 32px;
}

/* Texto do slide a descer da overlay do header (o mesmo offset que a altura do header) */
body.home .slide-content {
	padding-top: var(--header-total-h);
}
