/**
 * PMO-004.4 header navigation presentation.
 *
 * This stylesheet preserves GeneratePress ownership of header markup and menu
 * records. It only presents the existing vsc-header-action menu item as the
 * approved Book Consultation action.
 */

.site-header .main-navigation .main-nav > ul > li.vsc-header-action > a {
	align-items: center;
	background: var(--vsc-action-primary-background, #5f3b8c);
	border-radius: var(--vsc-radius-pill, 999px);
	color: var(--vsc-action-primary-text, #fdfdfd);
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	min-height: var(--vsc-action-target-min, 2.75rem);
	padding: 0 var(--vsc-action-compact-padding-inline, 1rem);
	text-decoration: none;
	white-space: nowrap;
}

.site-header .main-navigation .main-nav > ul > li.vsc-header-action > a:hover,
.site-header .main-navigation .main-nav > ul > li.vsc-header-action > a:focus {
	background: var(--vsc-color-purple-500, #9e85be);
	color: var(--vsc-action-primary-text, #fdfdfd);
}

.site-header .main-navigation .main-nav > ul > li.vsc-header-action > a:focus-visible {
	outline: 0.1875rem solid var(--vsc-color-gold-500, #fdb923);
	outline-offset: 0.1875rem;
}

/*
 * Keep the existing governed header available after the first viewport.
 * JavaScript changes state on the original header; it never clones navigation.
 */
.site-header.vscds-header-is-sticky {
	position: fixed;
	z-index: 999;
	top: 0;
	right: 0;
	left: 0;
	width: 100%;
	background: #fff;
	box-shadow: 0 0.5rem 1.5rem rgb(17 28 70 / 14%);
	animation: vscds-header-enter 180ms ease-out both;
}

.site-header.vscds-header-is-sticky .inside-header {
	padding-top: 0.55rem;
	padding-bottom: 0.55rem;
}

.site-header.vscds-header-is-sticky .site-logo .header-image {
	max-height: 3.75rem;
	width: auto;
}

body.admin-bar .site-header.vscds-header-is-sticky {
	top: 2rem;
}

@keyframes vscds-header-enter {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.site-header.vscds-header-is-sticky {
		animation: none;
	}
}

@media (min-width: 64rem) {
	.site-header .inside-header {
		max-width: 80rem;
		padding-left: 2rem;
		padding-right: 2rem;
	}

	.site-header .main-navigation .main-nav > ul {
		align-items: center;
		flex-wrap: nowrap;
	}

	.site-header .main-navigation .main-nav > ul > li > a {
		font-size: 0.9375rem;
		padding-left: 0.75rem;
		padding-right: 0.75rem;
		white-space: nowrap;
	}
}

/*
 * Mobile footer navigation.
 *
 * GeneratePress owns the footer menus. These presentation rules give every
 * existing footer link a clear, touch-friendly target without changing menu
 * content, destinations, or footer widget assignments.
 */
@media (max-width: 48rem) {
	.site-header .inside-header {
		align-items: center;
		column-gap: 1rem;
	}

	.site-header .site-logo {
		flex: 1 1 auto;
		max-width: calc(100% - 4.5rem);
		width: auto;
	}

	.site-header .site-logo .header-image {
		display: block;
		height: auto;
		max-width: 16rem;
		width: 100%;
	}

	.site-header .mobile-menu-control-wrapper {
		align-self: center;
		flex: 0 0 auto;
		margin-left: auto;
	}

	body.admin-bar .site-header.vscds-header-is-sticky {
		top: 2.875rem;
	}

	.site-header.vscds-header-is-sticky .inside-header {
		padding: 0.5rem 1rem;
	}

	.site-header.vscds-header-is-sticky .site-logo .header-image {
		max-height: 3rem;
		max-width: 13rem;
	}

	.footer-widgets .widget_nav_menu .menu {
		margin: 0;
	}

	.footer-widgets .widget_nav_menu .menu > li {
		margin: 0;
	}

	.footer-widgets .widget_nav_menu .menu > li > a {
		align-items: center;
		display: flex;
		font-size: 1rem;
		line-height: 1.35;
		min-height: 2.75rem;
		padding-block: 0.625rem;
		padding-inline: 0.25rem;
	}

	.footer-widgets .widget_nav_menu .menu > li > a:focus-visible {
		outline: 0.1875rem solid var(--vsc-color-gold-500, #fdb923);
		outline-offset: 0.1875rem;
	}
}
