/*
 * Header global do Clinovar — implementação definitiva (revisão 20/07/2026, ordem do dono).
 *
 * Estrutura: markup semântico próprio em parts/header.html (conteúdo 100% no HTML — SEO/GEO),
 * aparência aqui, comportamento em assets/js/header.js (JS puro, ES module, zero dependências).
 *
 * Comportamento visual:
 *  - Sticky (fixed + espaçador estático → zero CLS).
 *  - TRANSPARENTE no topo da página (sobre o hero); ao iniciar a rolagem: fundo branco
 *    translúcido (opacity-glass) + blur-sm + shadow-rest (sutil) + altura reduzida —
 *    transições suaves em background/altura/sombra, nada brusco.
 *  - Mega menus (Funcionalidades/Especialidades) e dropdowns com fade + slide de 8px.
 *  - Drawer mobile à direita, acordeões por seção, CTA fixo no rodapé do painel.
 *
 * Todo valor visual referencia tokens do theme.json. Media queries usam o valor
 * do token bp-lg (1024px) — CSS não aceita var() em @media.
 * Estado transparente e composição do menu: especificados pelo dono em 20/07/2026
 * (registro em docs/inconsistencias.md — LAC-012; LAC-002 parcialmente resolvida).
 */

:root {
	--clinovar-header-h: 4.5rem;          /* barra no topo (CTA md 48px + 2×space-3) */
	--clinovar-header-h-rolado: 3.75rem;  /* barra compacta ao rolar */
}

html {
	scroll-padding-top: calc(var(--clinovar-header-h) + var(--wp--preset--spacing--space-4));
}

/* ---------- Utilitários ---------- */

.clinovar-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Anel de foco único do sistema: consolidado em componentes.css (§21) */

/* ---------- Skip link ---------- */

.clinovar-skip-link {
	position: fixed;
	inset-block-start: var(--wp--preset--spacing--space-2);
	inset-inline-start: var(--wp--preset--spacing--space-2);
	z-index: var(--wp--custom--z-index--toast);
	transform: translateY(calc(-100% - var(--wp--preset--spacing--space-4)));
	padding: var(--wp--preset--spacing--space-3) var(--wp--preset--spacing--space-4);
	background: var(--wp--preset--color--surface-page);
	color: var(--wp--preset--color--text-primary);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--body);
	border-radius: var(--wp--custom--radius--sm);
	box-shadow: var(--wp--preset--shadow--shadow-float);
	text-decoration: underline;
}

.clinovar-skip-link:focus-visible {
	transform: none;
}

/* ---------- Casca fixa + espaçador (zero CLS) ---------- */

.clinovar-header {
	position: fixed;
	inset-block-start: 0;
	inset-inline: 0;
	z-index: var(--wp--custom--z-index--sticky);
	/* Vidro branco desde o topo: sobre a home o hero tem um gradiente
	   assimétrico que subia por trás de um header transparente, deixando a
	   barra "meio branca / meio verde". O vidro cobre esse fundo de forma
	   uniforme já no carregamento (mesmo acabamento do estado rolado). */
	background: color-mix(in srgb, var(--wp--preset--color--surface-page) calc(var(--wp--custom--opacity--glass) * 100%), transparent);
	-webkit-backdrop-filter: blur(var(--wp--custom--blur--sm));
	backdrop-filter: blur(var(--wp--custom--blur--sm));
	box-shadow: var(--wp--preset--shadow--shadow-rest);
	border-block-end: 1px solid color-mix(in srgb, var(--wp--preset--color--border-default) 60%, transparent);
	transition:
		box-shadow var(--wp--custom--duration--section) var(--wp--custom--easing--out-brand),
		border-color var(--wp--custom--duration--section) var(--wp--custom--easing--out-brand);
}

.clinovar-header-spacer {
	height: var(--clinovar-header-h);
}

/* Página inicial: o hero sobe para debaixo do header transparente
   (margens estáticas em CSS — zero CLS; demais páginas: topo branco contínuo). */
body.home .clinovar-header-spacer {
	height: 0;
}

body.home main > .clinovar-secao--destaque:first-child,
body.home main .wp-block-post-content > .clinovar-secao--destaque:first-child {
	padding-block-start: calc(var(--clinovar-header-h) + var(--wp--preset--spacing--space-7));
}

/* Rolou: mesmo vidro branco (já aplicado no topo) + altura reduzida e sombra
   um pouco mais presente, dando profundidade sobre o conteúdo que passa. */
.clinovar-header.is-rolado {
	box-shadow: var(--wp--preset--shadow--shadow-float);
	border-block-end-color: color-mix(in srgb, var(--wp--preset--color--border-default) 80%, transparent);
}

.clinovar-header__container {
	max-width: var(--wp--custom--container--default);
	margin-inline: auto;
	padding-inline: var(--wp--custom--grid--page-margin-mobile);
}

.clinovar-header__row {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--space-4);
	height: var(--clinovar-header-h);
	transition: height var(--wp--custom--duration--section) var(--wp--custom--easing--out-brand);
}

.clinovar-header.is-rolado .clinovar-header__row {
	height: var(--clinovar-header-h-rolado);
}

/* ---------- Logo (wordmark tipográfica conforme brand-identity §8 até o arquivo oficial chegar) ---------- */

.clinovar-header__logo {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	border-radius: var(--wp--custom--radius--sm);
}

.clinovar-wordmark {
	font-family: var(--wp--preset--font-family--jakarta);
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	text-transform: lowercase;
}

.clinovar-wordmark__clino {
	color: var(--wp--preset--color--text-primary);
}

.clinovar-wordmark__var {
	background: var(--wp--preset--gradient--gradient-brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---------- Menu principal (desktop) ---------- */

.clinovar-nav {
	font-family: var(--wp--preset--font-family--inter);
}

.clinovar-nav__lista {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.clinovar-nav__item {
	position: relative;
}

.clinovar-nav__gatilho,
.clinovar-nav__link {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--space-1);
	padding: var(--wp--preset--spacing--space-2) var(--wp--preset--spacing--space-3);
	background: none;
	border: 0;
	border-radius: var(--wp--custom--radius--sm);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 500;
	line-height: 1.4;
	color: var(--wp--preset--color--text-primary);
	text-decoration: none;
	cursor: pointer;
	transition:
		color var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand),
		background-color var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand);
}

.clinovar-nav__gatilho:hover,
.clinovar-nav__link:hover {
	background: color-mix(in srgb, var(--wp--preset--color--text-primary) calc(var(--wp--custom--opacity--hover-tint) * 100%), transparent);
}

.clinovar-nav__seta {
	width: 1rem;
	height: 1rem;
	opacity: 0.55;
	transition: transform var(--wp--custom--duration--element) var(--wp--custom--easing--out-brand);
}

.clinovar-nav__gatilho[aria-expanded="true"] {
	background: color-mix(in srgb, var(--wp--preset--color--text-primary) calc(var(--wp--custom--opacity--hover-tint) * 100%), transparent);
}

.clinovar-nav__gatilho[aria-expanded="true"] .clinovar-nav__seta {
	transform: rotate(180deg);
}

/* ---------- Painéis (dropdowns e mega menus) — desktop ---------- */

.clinovar-painel {
	position: absolute;
	inset-block-start: calc(100% + var(--wp--preset--spacing--space-2));
	inset-inline-start: 50%;
	z-index: var(--wp--custom--z-index--dropdown);
	translate: -50% 0;
	background: var(--wp--preset--color--surface-page);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--border-default) 70%, transparent);
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--preset--shadow--shadow-float);
	/* Fechado: fade + slide 8px; visibility troca após a transição (sem flicker). */
	opacity: 0;
	visibility: hidden;
	transform: translateY(var(--wp--preset--spacing--space-2));
	transition:
		opacity var(--wp--custom--duration--element) var(--wp--custom--easing--out-brand),
		transform var(--wp--custom--duration--element) var(--wp--custom--easing--out-brand),
		visibility 0s linear var(--wp--custom--duration--element);
}

.clinovar-nav__item.is-aberto > .clinovar-painel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.clinovar-painel--mega {
	/* Alinhamento fino (clamp na viewport) aplicado pelo header.js via --painel-desloc */
	translate: calc(-50% + var(--painel-desloc, 0px)) 0;
}

.clinovar-painel__inner--simples {
	display: flex;
	flex-direction: column;
	min-width: 14rem;
	padding: var(--wp--preset--spacing--space-2);
}

.clinovar-painel__link {
	padding: var(--wp--preset--spacing--space-2) var(--wp--preset--spacing--space-3);
	border-radius: var(--wp--custom--radius--sm);
	font-size: var(--wp--preset--font-size--body-sm);
	color: var(--wp--preset--color--text-primary);
	text-decoration: none;
	white-space: nowrap;
	transition:
		color var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand),
		background-color var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand);
}

.clinovar-painel__link:hover {
	color: var(--wp--preset--color--brand-cyan-deep);
	background: color-mix(in srgb, var(--wp--preset--color--text-primary) calc(var(--wp--custom--opacity--hover-tint) * 100%), transparent);
}

/* Mega — Funcionalidades: 3 grupos com itens ícone + título + descrição */

.clinovar-painel__inner--funcionalidades {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--space-5);
	width: min(58rem, calc(100vw - 2 * var(--wp--preset--spacing--space-4)));
	padding: var(--wp--preset--spacing--space-5) var(--wp--preset--spacing--space-5) var(--wp--preset--spacing--space-4);
}

.clinovar-painel__grupo {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--space-1);
}

.clinovar-painel__rotulo {
	margin: 0 0 var(--wp--preset--spacing--space-2);
	padding-inline: var(--wp--preset--spacing--space-2);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-secondary);
}

.clinovar-func {
	display: flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--space-3);
	padding: var(--wp--preset--spacing--space-2);
	border-radius: var(--wp--custom--radius--sm);
	text-decoration: none;
	transition: background-color var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand);
}

.clinovar-func:hover {
	background: var(--wp--preset--color--surface-brand-cyan);
}

.clinovar-func__icone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--surface-brand-cyan);
	color: var(--wp--preset--color--brand-cyan-deep);
	transition: background-color var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand);
}

.clinovar-func__icone svg {
	width: 1.25rem;
	height: 1.25rem;
	transition: transform var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand);
}

.clinovar-func:hover .clinovar-func__icone {
	background: var(--wp--preset--color--surface-page);
}

.clinovar-func:hover .clinovar-func__icone svg {
	transform: translateY(-1px) scale(1.06);
}

.clinovar-func__texto {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.clinovar-func__texto strong {
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 600;
	color: var(--wp--preset--color--text-primary);
	line-height: 1.35;
}

.clinovar-func__texto small {
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--text-secondary);
	line-height: 1.45;
}

/* Mega — Especialidades: grade de cartões */

.clinovar-painel__inner--especialidades {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--space-2);
	width: min(44rem, calc(100vw - 2 * var(--wp--preset--spacing--space-4)));
	padding: var(--wp--preset--spacing--space-5) var(--wp--preset--spacing--space-5) var(--wp--preset--spacing--space-4);
}

.clinovar-card-esp {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	padding: var(--wp--preset--spacing--space-2) var(--wp--preset--spacing--space-3);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--border-default) 70%, transparent);
	border-radius: var(--wp--custom--radius--sm);
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 500;
	color: var(--wp--preset--color--text-primary);
	text-decoration: none;
	transition:
		border-color var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand),
		background-color var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand),
		color var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand);
}

.clinovar-card-esp:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--brand-cyan-deep) 45%, transparent);
	background: var(--wp--preset--color--surface-brand-cyan);
	color: var(--wp--preset--color--brand-cyan-deep);
}

/* Rodapé dos megas — "ver todas" */

.clinovar-painel__rodape {
	padding: var(--wp--preset--spacing--space-3) var(--wp--preset--spacing--space-5);
	border-block-start: 1px solid color-mix(in srgb, var(--wp--preset--color--border-default) 70%, transparent);
	background: var(--wp--preset--color--surface-alt);
	border-end-start-radius: var(--wp--custom--radius--md);
	border-end-end-radius: var(--wp--custom--radius--md);
}

.clinovar-painel__ver-todas {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--space-2);
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 600;
	color: var(--wp--preset--color--brand-cyan-deep);
	text-decoration: none;
}

.clinovar-painel__ver-todas svg {
	width: 1rem;
	height: 1rem;
	transition: transform var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand);
}

.clinovar-painel__ver-todas:hover svg {
	transform: translateX(3px);
}

/* ---------- Ações (Entrar + CTA) ---------- */

.clinovar-header__actions {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--space-3);
	margin-inline-start: auto;
}

/* Botão secundário (design-system §5) */
.clinovar-btn-entrar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 2.5rem;
	padding-inline: var(--wp--preset--spacing--space-4);
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--sm);
	background: transparent;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--custom--typography--button--size-sm);
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--text-primary);
	text-decoration: none;
	white-space: nowrap;
	transition:
		border-color var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand),
		color var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand),
		background-color var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand);
}

.clinovar-btn-entrar:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--brand-cyan-deep) 55%, transparent);
	color: var(--wp--preset--color--brand-cyan-deep);
	background: color-mix(in srgb, var(--wp--preset--color--brand-cyan) calc(var(--wp--custom--opacity--hover-tint) * 100%), transparent);
}

/* CTA-P — o elemento mais importante do header (gradiente exclusivo da marca) */
.clinovar-btn-cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--space-2);
	height: 2.5rem;
	padding-inline: var(--wp--preset--spacing--space-4);
	background: var(--wp--preset--gradient--gradient-brand);
	color: var(--wp--preset--color--text-inverse);
	border-radius: var(--wp--custom--radius--sm);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--custom--typography--button--size-sm);
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	box-shadow: var(--wp--preset--shadow--shadow-rest);
	transition:
		box-shadow var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand),
		filter var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand),
		transform var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand);
}

/* Área de toque estendida a ≥44px */
.clinovar-btn-cta::after {
	content: "";
	position: absolute;
	inset: calc((2.75rem - 100%) / -2) 0;
}

.clinovar-btn-cta:hover {
	box-shadow: var(--wp--preset--shadow--shadow-float);
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.clinovar-btn-cta:active {
	transform: translateY(0);
	filter: brightness(0.98);
}

/* Selo "sem cartão" junto ao CTA (vision.md §19) — discreto, dentro do próprio botão */
.clinovar-btn-cta__micro {
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 500;
	color: color-mix(in srgb, var(--wp--preset--color--text-inverse) 82%, transparent);
	border-inline-start: 1px solid color-mix(in srgb, var(--wp--preset--color--text-inverse) 30%, transparent);
	padding-inline-start: var(--wp--preset--spacing--space-2);
	display: none;
}

.clinovar-cta-micro {
	margin: var(--wp--preset--spacing--space-2) 0 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--text-secondary);
	text-align: center;
}

/* ---------- Hambúrguer e drawer (mobile/tablet < bp-lg) ---------- */

.clinovar-header__hamburguer {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-inline-start: auto;
	border: 0;
	border-radius: var(--wp--custom--radius--sm);
	background: none;
	color: var(--wp--preset--color--text-primary);
	cursor: pointer;
	transition: background-color var(--wp--custom--duration--micro) var(--wp--custom--easing--out-brand);
}

.clinovar-header__hamburguer:hover {
	background: color-mix(in srgb, var(--wp--preset--color--text-primary) calc(var(--wp--custom--opacity--hover-tint) * 100%), transparent);
}

.clinovar-header__hamburguer svg {
	width: 1.375rem;
	height: 1.375rem;
}

.clinovar-header__backdrop {
	position: fixed;
	inset: 0;
	z-index: var(--wp--custom--z-index--overlay);
	background: color-mix(in srgb, var(--wp--preset--color--text-primary) calc(var(--wp--custom--opacity--overlay) * 100%), transparent);
	opacity: 0;
	transition: opacity var(--wp--custom--duration--section) var(--wp--custom--easing--out-brand);
}

.clinovar-header__backdrop.is-visivel {
	opacity: 1;
}

.clinovar-nav__drawer-topo,
.clinovar-nav__drawer-rodape {
	display: none;
}

@media (max-width: 1023.98px) {
	.clinovar-header__actions {
		display: none;
	}

	/* Drawer: painel lateral direito, desliza suave, sem flicker (transform+visibility) */
	.clinovar-nav {
		position: fixed;
		inset-block: 0;
		inset-inline-end: 0;
		z-index: var(--wp--custom--z-index--modal);
		display: flex;
		flex-direction: column;
		width: min(100%, 22.5rem);
		height: 100dvh;
		background: var(--wp--preset--color--surface-page);
		box-shadow: var(--wp--preset--shadow--shadow-focus);
		transform: translateX(100%);
		visibility: hidden;
		transition:
			transform var(--wp--custom--duration--section) var(--wp--custom--easing--out-brand),
			visibility 0s linear var(--wp--custom--duration--section);
	}

	.clinovar-nav.is-aberto {
		transform: none;
		visibility: visible;
		transition-delay: 0s;
	}

	.clinovar-nav__drawer-topo {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-shrink: 0;
		padding: var(--wp--preset--spacing--space-3) var(--wp--preset--spacing--space-4);
		border-block-end: 1px solid var(--wp--preset--color--border-default);
	}

	.clinovar-nav__fechar {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 2.75rem;
		height: 2.75rem;
		border: 0;
		border-radius: var(--wp--custom--radius--sm);
		background: none;
		color: var(--wp--preset--color--text-primary);
		cursor: pointer;
	}

	.clinovar-nav__fechar svg {
		width: 1.25rem;
		height: 1.25rem;
	}

	.clinovar-nav__lista {
		flex: 1;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		overflow-y: auto;
		padding: var(--wp--preset--spacing--space-3) var(--wp--preset--spacing--space-4);
	}

	.clinovar-nav__gatilho,
	.clinovar-nav__link {
		width: 100%;
		justify-content: space-between;
		min-height: 2.75rem;
		font-size: var(--wp--preset--font-size--body);
	}

	/* Acordeão por seção: o mesmo gatilho/painel do desktop, reapresentado */
	.clinovar-painel {
		position: static;
		translate: none;
		transform: none;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
		overflow: hidden;
		display: grid;
		grid-template-rows: 0fr;
		opacity: 0;
		visibility: hidden;
		transition:
			grid-template-rows var(--wp--custom--duration--element) var(--wp--custom--easing--in-out-brand),
			opacity var(--wp--custom--duration--element) var(--wp--custom--easing--out-brand),
			visibility 0s linear var(--wp--custom--duration--element);
	}

	.clinovar-painel > * {
		min-height: 0;
	}

	.clinovar-nav__item.is-aberto > .clinovar-painel {
		grid-template-rows: 1fr;
		opacity: 1;
		visibility: visible;
		transition-delay: 0s;
	}

	.clinovar-painel__inner--funcionalidades {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--space-4);
		width: auto;
		padding: var(--wp--preset--spacing--space-2) var(--wp--preset--spacing--space-2) var(--wp--preset--spacing--space-3);
	}

	.clinovar-painel__inner--especialidades {
		grid-template-columns: 1fr 1fr;
		width: auto;
		padding: var(--wp--preset--spacing--space-2) var(--wp--preset--spacing--space-2) var(--wp--preset--spacing--space-3);
	}

	.clinovar-painel__inner--simples {
		min-width: 0;
		padding: 0 var(--wp--preset--spacing--space-2) var(--wp--preset--spacing--space-3);
	}

	.clinovar-painel__link {
		min-height: 2.75rem;
		display: flex;
		align-items: center;
		white-space: normal;
	}

	.clinovar-painel__rodape {
		background: none;
		border: 0;
		padding: 0 var(--wp--preset--spacing--space-2) var(--wp--preset--spacing--space-3);
	}

	/* CTA fixo no rodapé do drawer */
	.clinovar-nav__drawer-rodape {
		display: block;
		flex-shrink: 0;
		padding: var(--wp--preset--spacing--space-4);
		border-block-start: 1px solid var(--wp--preset--color--border-default);
		background: var(--wp--preset--color--surface-page);
	}

	.clinovar-nav__drawer-rodape .clinovar-btn-entrar,
	.clinovar-nav__drawer-rodape .clinovar-btn-cta {
		width: 100%;
		height: 3rem;
		font-size: var(--wp--preset--font-size--button);
	}

	.clinovar-nav__drawer-rodape .clinovar-btn-entrar {
		margin-block-end: var(--wp--preset--spacing--space-3);
	}

	/* Rolagem do body travada com o drawer aberto */
	html.clinovar-scroll-travado,
	html.clinovar-scroll-travado body {
		overflow: hidden;
	}
}

/* ---------- Desktop ≥ bp-lg (1024px) ---------- */

@media (min-width: 1024px) {
	.clinovar-header__container {
		padding-inline: var(--wp--custom--grid--page-margin-desktop);
	}

	.clinovar-header__hamburguer,
	.clinovar-header__backdrop,
	.clinovar-nav__drawer-topo,
	.clinovar-nav__drawer-rodape {
		display: none !important;
	}

	.clinovar-nav {
		flex: 1;
		display: flex;
		justify-content: center;
	}

	/* CTA md no desktop; volta a sm com o header rolado (redução elegante) */
	.clinovar-header__actions .clinovar-btn-cta {
		height: 3rem;
		padding-inline: var(--wp--preset--spacing--space-5);
		font-size: var(--wp--preset--font-size--button);
	}

	.clinovar-header.is-rolado .clinovar-header__actions .clinovar-btn-cta {
		height: 2.5rem;
		padding-inline: var(--wp--preset--spacing--space-4);
		font-size: var(--wp--custom--typography--button--size-sm);
	}
}

/* ---------- Desktop largo ≥ bp-xl (1280px): selo dentro do CTA ---------- */

@media (min-width: 1280px) {
	.clinovar-header__actions .clinovar-btn-cta .clinovar-btn-cta__micro {
		display: inline;
	}

	.clinovar-header.is-rolado .clinovar-header__actions .clinovar-btn-cta .clinovar-btn-cta__micro {
		display: none;
	}
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
	.clinovar-header,
	.clinovar-header__row,
	.clinovar-header__backdrop,
	.clinovar-nav,
	.clinovar-painel,
	.clinovar-nav__seta,
	.clinovar-func__icone svg,
	.clinovar-painel__ver-todas svg,
	.clinovar-btn-cta,
	.clinovar-btn-entrar {
		transition: none !important;
		animation: none !important;
	}
}
