/*
Theme Name: Blocksy Child — Fator Norte MT
Theme URI: https://fatornortemt.com.br/
Description: Tema filho Blocksy para o portal de noticias Fator Norte MT (banners, galeria, video, home).
Author: MRX WEB
Template: blocksy
Version: 1.0.1-fn
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: blocksy-child
*/

/* ========== Marca Fator Norte MT ========== */
:root {
	--fn-azul: #0B3D91;
	--fn-norte: #1F6FE0;
	--fn-claro: #7FB4FF;
	--fn-grafite: #0D1626;
	--fn-fundo-alt: #F4F6F9;
	--fn-borda: #E4E9F0;
	--fn-wa: #25D366;
	--theme-palette-color-1: #0B3D91;
	--theme-palette-color-2: #1F6FE0;
}

body {
	font-family: "Archivo", system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.ct-heading {
	font-family: "Archivo", system-ui, sans-serif;
	font-weight: 700;
	color: var(--fn-grafite);
}

a {
	color: var(--fn-azul);
}

a:hover {
	color: var(--fn-norte);
}

/* ========== Header / nav (aproxima prototipo v2) ========== */
/* Barra de menu sticky azul: Customizer deve colocar o menu na middle-row com fundo #0B3D91.
   CSS reforca densidade e links claros. */
#header [data-row="middle"],
#header .ct-header [data-row*="middle"],
header#header [data-id="header-row"][data-row="middle"] {
	background-color: var(--fn-azul) !important;
}

#header [data-row="middle"] .ct-menu > li > a,
#header [data-row="middle"] [data-menu] > ul > li > a,
#header [data-row="middle"] .menu > li > a {
	color: rgba(255, 255, 255, 0.92) !important;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	padding-inline: 0.7rem;
}

#header [data-row="middle"] .ct-menu > li > a:hover,
#header [data-row="middle"] .ct-menu > li.current-menu-item > a,
#header [data-row="middle"] .menu > li > a:hover {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.08);
}

#header [data-row="top"],
#header [data-row="middle"] {
	box-shadow: none;
}

#header [data-row="middle"] {
	box-shadow: 0 2px 8px rgba(13, 22, 38, 0.12);
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Busca no header: densificar */
#header [data-id="search"] input,
#header .ct-search-form input {
	font-family: "Archivo", system-ui, sans-serif;
	font-size: 0.9rem;
	border-radius: 3px;
}

#header [data-id="search"] button,
#header .ct-search-form button {
	background: var(--fn-azul);
	color: #fff;
}

/* Densidade home */
.home .entry-card,
.blog .entry-card {
	gap: 0.75rem;
}

.home .entry-card .entry-title,
.blog .entry-card .entry-title {
	font-size: clamp(1rem, 1.1vw + 0.7rem, 1.25rem);
	line-height: 1.25;
	font-weight: 700;
}

.home .ct-container,
.home .ct-container-full {
	--theme-content-spacing: 1.25rem;
}

/* Banners (herdado do stack portal MRX) */
.news-banner {
	display: block;
	line-height: 0;
	text-align: center;
	margin: 0 auto;
	box-sizing: border-box;
}

.news-banner--sized {
	position: relative;
	max-width: 100%;
	overflow: hidden;
}

.news-banner--sized .news-banner__link,
.news-banner--sized .news-banner__img {
	display: inline-block;
	max-width: 100%;
	max-height: 100%;
}

.news-banner img,
.news-banner__img {
	display: inline-block;
	width: auto;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.news-banner__placeholder.news-banner--sized {
	background: transparent;
}

/* Galerias */
.post-type-archive-galeria .ct-media-container,
.single-galeria .wp-block-gallery {
	margin-top: 1rem;
}

.single-galeria .wp-block-gallery .wp-block-image,
.single-galeria .wp-block-gallery .lightbox-trigger {
	cursor: zoom-in;
}

.mrx-video-player {
	margin: 0 0 1.5rem;
}

.mrx-video-player .wp-block-embed__wrapper {
	position: relative;
	aspect-ratio: 16 / 9;
}

.mrx-video-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* WhatsApp FAB */
.fn-wa-fab {
	position: fixed;
	right: 1.15rem;
	bottom: 1.15rem;
	z-index: 90;
	width: 3.4rem;
	height: 3.4rem;
	display: grid;
	place-items: center;
	background: var(--fn-wa);
	color: #fff !important;
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s;
}

.fn-wa-fab:hover,
.fn-wa-fab:focus-visible {
	transform: scale(1.06);
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
	color: #fff !important;
	outline: none;
}

.fn-wa-fab svg {
	width: 1.6rem;
	height: 1.6rem;
	fill: currentColor;
}

@media (max-width: 689px) {
	#header [data-row="middle"] .ct-menu > li > a,
	#header [data-row="middle"] .menu > li > a {
		font-size: 0.9rem;
		padding: 0.75rem 1rem;
	}
}
