﻿/**
 * Header, mega menu, footer â€” Bootstrap + Gotham Book + 6-color system.
 * Colors come from :root CSS vars set by Customizer (wp_head).
 */

@font-face {
	font-family: "Gotham Book";
	src:
		url("../fonts/GothamBook.woff2") format("woff2"),
		url("../fonts/GothamBook.woff") format("woff"),
		url("../fonts/GothamBook.ttf") format("truetype"),
		url("../fonts/Gotham-Book.woff2") format("woff2"),
		url("../fonts/Gotham-Book.woff") format("woff"),
		url("../fonts/Gotham-Book.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--myh-primary: #0096e1;
	--myh-accent: #f05a28;
	--myh-text: #1a1a1a;
	--myh-muted: #666666;
	--myh-border: #e5e5e5;
	--myh-surface: #ffffff;
	--myh-font: "Gotham Book", sans-serif;
}

body.myh-has-custom-header-footer {
	font-family: var(--myh-font);
	color: var(--myh-text);
	background: var(--myh-surface);
}

body.myh-has-custom-header-footer .wp-site-blocks > header:not(#myh-site-header),
body.myh-has-custom-header-footer .wp-site-blocks > footer:not(#myh-site-footer) {
	display: none !important;
}

body.myh-has-custom-header-footer main.wp-block-group {
	margin-top: 0 !important;
}

body.myh-page-has-layout main.wp-block-group,
body.myh-page-has-layout .wp-site-blocks > main,
body.page main.wp-block-group {
	max-width: none !important;
}

.custom-logo-link img {
	max-height: 48px;
	width: auto;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.myh-header-hero {
	position: relative;
	min-height: var(--myh-header-video-height, 75vh);
	overflow: visible;
	display: flex;
	flex-direction: column;
}

.myh-header-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	pointer-events: none;
}

.myh-header-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(0, 20, 40, 0.55) 0%,
		rgba(0, 20, 40, 0.25) 45%,
		rgba(0, 20, 40, 0.5) 100%
	);
}

.myh-header-hero .myh-header {
	z-index: 2;
	flex: 0 0 auto;
}

.myh-header,
.myh-header.sticky-top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	background: var(--myh-surface);
	font-family: var(--myh-font);
	border-bottom: 1px solid var(--myh-border);
	z-index: 1030;
}

/* Pages without hero/video â€” offset content below fixed header */
body.myh-has-custom-header-footer:not(.myh-has-header-video):not(.myh-has-inner-hero) {
	padding-top: var(--myh-header-height, 110px);
}

.myh-header--overlay,
.myh-header--video {
	background: rgba(10, 37, 64, 0.28) !important;
	border-bottom-color: rgba(255, 255, 255, 0.22) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.myh-header--overlay.is-scrolled,
.myh-header--video.is-scrolled {
	background: var(--myh-surface) !important;
	border-bottom-color: var(--myh-border) !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.myh-header.sticky-top.is-scrolled:not(.myh-header--overlay) {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.myh-header--overlay:not(.is-scrolled) .myh-header__top,
.myh-header--video:not(.is-scrolled) .myh-header__top {
	border-color: rgba(255, 255, 255, 0.2) !important;
}

.myh-header--overlay:not(.is-scrolled) .myh-logo,
.myh-header--overlay:not(.is-scrolled) .myh-nav-link,
.myh-header--overlay:not(.is-scrolled) .myh-iq-link,
.myh-header--overlay:not(.is-scrolled) .myh-search-toggle,
.myh-header--video:not(.is-scrolled) .myh-logo,
.myh-header--video:not(.is-scrolled) .myh-nav-link,
.myh-header--video:not(.is-scrolled) .myh-iq-link,
.myh-header--video:not(.is-scrolled) .myh-search-toggle {
	color: #fff !important;
}

.myh-header--overlay:not(.is-scrolled) .myh-nav-item.is-active > .myh-nav-link,
.myh-header--overlay:not(.is-scrolled) .myh-nav-item.is-current > .myh-nav-link,
.myh-header--overlay:not(.is-scrolled) .myh-nav-item:hover > .myh-nav-link,
.myh-header--video:not(.is-scrolled) .myh-nav-item.is-active > .myh-nav-link,
.myh-header--video:not(.is-scrolled) .myh-nav-item.is-current > .myh-nav-link,
.myh-header--video:not(.is-scrolled) .myh-nav-item:hover > .myh-nav-link {
	color: #fff !important;
	border-bottom-color: #fff;
}

.myh-header--overlay:not(.is-scrolled) .myh-nav-chevron,
.myh-header--video:not(.is-scrolled) .myh-nav-chevron {
	border-top-color: rgba(255, 255, 255, 0.85);
}

.myh-header--overlay:not(.is-scrolled) .myh-header__divider,
.myh-header--video:not(.is-scrolled) .myh-header__divider {
	background: rgba(255, 255, 255, 0.35);
}

.myh-header--overlay:not(.is-scrolled) .myh-btn-login,
.myh-header--video:not(.is-scrolled) .myh-btn-login {
	color: #fff !important;
	background: transparent !important;
	border-color: rgba(255, 255, 255, 0.75) !important;
}

.myh-header--overlay:not(.is-scrolled) .myh-btn-login:hover,
.myh-header--video:not(.is-scrolled) .myh-btn-login:hover {
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
}

.myh-header--overlay:not(.is-scrolled) .myh-toggler,
.myh-header--video:not(.is-scrolled) .myh-toggler {
	border-color: rgba(255, 255, 255, 0.5);
}

.myh-header--overlay:not(.is-scrolled) .myh-toggler .navbar-toggler-icon,
.myh-header--video:not(.is-scrolled) .myh-toggler .navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.myh-header--overlay:not(.is-scrolled) .custom-logo-link img,
.myh-header--video:not(.is-scrolled) .custom-logo-link img {
	filter: brightness(0) invert(1);
}

.myh-header--overlay:not(.is-scrolled) #myhHeaderSearch,
.myh-header--video:not(.is-scrolled) #myhHeaderSearch {
	background: rgba(10, 37, 64, 0.92);
	border-color: rgba(255, 255, 255, 0.15) !important;
}

.myh-header--overlay:not(.is-scrolled) #myhHeaderSearch .form-control,
.myh-header--video:not(.is-scrolled) #myhHeaderSearch .form-control {
	background: rgba(255, 255, 255, 0.95);
}

/* Inner page hero shell (header overlays image like homepage video) */
.myh-inner-hero {
	position: relative;
	min-height: 340px;
	background-color: #0a2540;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	overflow: visible;
}

.myh-inner-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(
		to bottom,
		rgba(8, 35, 68, 0.72) 0%,
		rgba(8, 35, 68, 0.82) 100%
	);
	pointer-events: none;
}

.myh-inner-hero .myh-header {
	z-index: 2;
}

.myh-inner-hero .myh-page-hero__content {
	position: relative;
	z-index: 1;
}

.myh-inner-hero .myh-page-hero__inner {
	padding-top: calc(var(--myh-header-height, 110px) + 1.5rem);
}

@media (max-width: 991.98px) {
	.myh-header-hero {
		min-height: max(55vh, 420px);
	}
}

.myh-header__top {
	border-color: var(--myh-border) !important;
}

.myh-logo {
	color: var(--myh-primary) !important;
	font-size: 1.65rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
}

.myh-btn-login {
	color: var(--myh-text) !important;
	background: var(--myh-surface) !important;
	border: 1px solid var(--myh-border) !important;
	border-radius: 4px;
	padding: 0.4rem 1rem;
	font-family: var(--myh-font);
	min-width: 88px;
}

.myh-btn-login:hover,
.myh-btn-login:focus {
	border-color: var(--myh-muted) !important;
	color: var(--myh-text) !important;
}

.myh-btn-subscribe {
	color: var(--myh-surface) !important;
	background: var(--myh-primary) !important;
	border: 1px solid var(--myh-primary) !important;
	border-radius: 4px;
	padding: 0.4rem 1rem;
	font-family: var(--myh-font);
	min-width: 100px;
}

.myh-btn-subscribe:hover,
.myh-btn-subscribe:focus {
	filter: brightness(1.05);
	color: var(--myh-surface) !important;
}

.myh-toggler {
	border: 1px solid var(--myh-border);
	padding: 0.35rem 0.5rem;
}

.myh-toggler .navbar-toggler-icon {
	width: 1.2rem;
	height: 1.2rem;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231A1A1A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.myh-header__nav {
	border-top: 1px solid transparent;
}

.myh-primary-nav {
	gap: 0.15rem 0.35rem;
	padding: 0;
}

.myh-nav-link {
	color: var(--myh-text) !important;
	font-size: 0.95rem;
	padding: 0.95rem 0.65rem !important;
	border-bottom: 3px solid transparent;
	border-radius: 0 !important;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.myh-nav-item.is-active > .myh-nav-link,
.myh-nav-item.is-current > .myh-nav-link,
.myh-nav-item:hover > .myh-nav-link {
	color: var(--myh-text) !important;
	border-bottom-color: var(--myh-primary);
}

.myh-nav-chevron {
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 0.15rem;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid var(--myh-muted);
}

.myh-header__utils {
	gap: 0.75rem;
	padding-left: 0.75rem;
}

.myh-iq-link {
	color: var(--myh-text) !important;
	font-size: 0.95rem;
	white-space: nowrap;
	padding: 0.95rem 0;
}

.myh-iq-link:hover {
	color: var(--myh-primary) !important;
}

.myh-header__divider {
	display: inline-block;
	width: 1px;
	height: 1.25rem;
	background: var(--myh-border);
}

.myh-search-toggle {
	color: var(--myh-text) !important;
	line-height: 1;
	text-decoration: none !important;
}

.myh-search-toggle:hover,
.myh-search-toggle:focus {
	color: var(--myh-primary) !important;
}

#myhHeaderSearch {
	background: var(--myh-surface);
	border-color: var(--myh-border) !important;
}

.myh-search-form .form-control {
	border: 1px solid var(--myh-border) !important;
	font-family: var(--myh-font);
	color: var(--myh-text);
}

.myh-search-form .form-control:focus {
	border-color: var(--myh-primary) !important;
	box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--myh-primary) 25%, transparent);
}

/* -------------------------------------------------------------------------
   Mega menu â€” same pattern for every parent item
   ------------------------------------------------------------------------- */

.myh-mega-panels {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 1040;
	padding-top: 0.35rem;
}

.myh-mega-panel[hidden] {
	display: none !important;
}

.myh-mega-panel.is-open {
	display: block !important;
}

.myh-mega-panel__inner {
	background: var(--myh-surface) !important;
	border-color: var(--myh-border) !important;
	overflow: hidden;
}

.myh-mega-links {
	border-right: 1px solid var(--myh-border);
}

.myh-mega-link {
	color: var(--myh-text) !important;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.myh-mega-link:hover,
.myh-mega-link:focus {
	color: var(--myh-primary) !important;
}

.myh-mega-card {
	color: inherit;
}

.myh-mega-thumb-wrap {
	width: 120px;
	height: 80px;
	overflow: hidden;
	background: var(--myh-border);
}

.myh-mega-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.myh-mega-thumb-placeholder {
	background: var(--myh-border);
}

.myh-mega-cat {
	color: var(--myh-primary);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	font-weight: 700;
}

.myh-mega-title {
	color: var(--myh-text);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.myh-mega-card:hover .myh-mega-title {
	color: var(--myh-primary);
}

/* Mobile nav */
.myh-mobile-nav {
	background: var(--myh-surface);
	border-color: var(--myh-border) !important;
}

.myh-mobile-link,
.myh-mobile-acc-btn,
.myh-mobile-sublink {
	color: var(--myh-text) !important;
	font-family: var(--myh-font);
	background: var(--myh-surface) !important;
	border-color: var(--myh-border) !important;
}

.myh-mobile-acc-btn:not(.collapsed) {
	color: var(--myh-primary) !important;
	box-shadow: none !important;
}

.myh-mobile-acc-btn::after {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666666'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.myh-mobile-sublink {
	color: var(--myh-muted) !important;
}


/* -------------------------------------------------------------------------
   Footer — light editorial style (white / black / primary accent)
   ------------------------------------------------------------------------- */

.myh-footer {
	position: relative;
	background:
		linear-gradient(180deg, #f7f9fb 0%, var(--myh-surface) 42%, var(--myh-surface) 100%);
	color: var(--myh-text);
	font-family: var(--myh-font);
	border-top: 0;
	overflow: hidden;
}

.myh-footer,
.myh-footer * {
	font-family: var(--myh-font) !important;
}

.myh-footer-accent {
	height: 3px;
	background: linear-gradient(90deg, var(--myh-primary) 0%, var(--myh-accent) 55%, var(--myh-primary) 100%);
}

.myh-footer-inner {
	padding-top: 3.25rem;
	padding-bottom: 2.75rem;
}

.myh-footer-links-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem 1.75rem;
	align-items: start;
}

.myh-footer-col {
	min-width: 0;
}

.myh-footer-heading,
.myh-footer h2.h6,
.myh-footer .h6 {
	position: relative;
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.35;
	margin: 0 0 1.1rem;
	padding-bottom: 0.55rem;
	color: var(--myh-text) !important;
}

.myh-footer-heading::after,
.myh-footer .myh-footer-col > .h6::after,
.myh-footer .d-flex > .h6::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 28px;
	height: 2px;
	background: var(--myh-primary);
	border-radius: 2px;
	transition: width 0.25s ease;
}

.myh-footer-col:hover .myh-footer-heading::after,
.myh-footer-col:hover > .h6::after,
.myh-footer-col:hover .d-flex > .h6::after {
	width: 44px;
}

.myh-footer-link,
.myh-footer .myh-footer-links .nav-link {
	display: inline-block;
	font-size: 0.9rem;
	line-height: 1.5;
	text-decoration: none !important;
	color: var(--myh-muted) !important;
	padding: 0 !important;
	transition: color 0.2s ease, transform 0.2s ease;
}

.myh-footer .myh-footer-links > .nav-item + .nav-item,
.myh-footer-newsletter-options > li + li {
	margin-top: 0.4rem;
}

.myh-footer-link:hover,
.myh-footer-link:focus,
.myh-footer .myh-footer-links .nav-link:hover,
.myh-footer .myh-footer-links .nav-link:focus {
	color: var(--myh-primary) !important;
	transform: translateX(3px);
}

.myh-footer-cta {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
	gap: 1.75rem;
	margin-top: 2.75rem;
	padding-top: 2.25rem;
	border-top: 1px solid var(--myh-border);
}

.myh-footer-cta-copy {
	margin: -0.35rem 0 1.1rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--myh-muted);
	max-width: 34ch;
}

.myh-footer-newsletter-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 1.25rem 1.5rem;
	align-items: start;
	padding: 1.35rem 1.4rem;
	background: color-mix(in srgb, var(--myh-primary) 5%, var(--myh-surface));
	border: 1px solid color-mix(in srgb, var(--myh-primary) 16%, var(--myh-border));
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(26, 26, 26, 0.04);
}

.myh-footer-newsletter-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.myh-footer #myh-footer-email {
	flex: 1 1 180px;
	min-height: 44px;
	font-size: 0.92rem;
	background: var(--myh-surface);
	border: 1px solid var(--myh-border) !important;
	border-radius: 6px;
	color: var(--myh-text);
	padding: 0.55rem 0.85rem;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.myh-footer #myh-footer-email:focus {
	border-color: var(--myh-primary) !important;
	box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--myh-primary) 18%, transparent);
}

.myh-footer-btn {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0.55rem 1.25rem;
	background-color: var(--myh-primary) !important;
	border-color: var(--myh-primary) !important;
	color: #fff !important;
	border-radius: 6px;
	letter-spacing: 0.02em;
	transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.myh-footer-btn:hover,
.myh-footer-btn:focus {
	filter: brightness(1.06);
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px color-mix(in srgb, var(--myh-primary) 28%, transparent);
}

.myh-footer-switch .form-check-input {
	width: 2.25rem;
	height: 1.2rem;
	margin-top: 0.15rem;
	background-color: #d9dee3;
	border-color: #c5ccd3;
	cursor: pointer;
}

.myh-footer-switch .form-check-input:checked {
	background-color: var(--myh-primary);
	border-color: var(--myh-primary);
}

.myh-footer-social {
	width: 40px;
	height: 40px;
	border: 1px solid var(--myh-border);
	border-radius: 50%;
	text-decoration: none !important;
	color: var(--myh-text) !important;
	background: var(--myh-surface);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.myh-footer-social:hover,
.myh-footer-social:focus {
	background: var(--myh-primary);
	border-color: var(--myh-primary);
	color: #fff !important;
	transform: translateY(-2px);
}

.myh-footer-social svg {
	width: 16px;
	height: 16px;
}

.myh-footer-links-row .myh-footer-legal-cookie-link {
	border: 0 !important;
	padding: 0.25rem 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
}

.myh-footer-bar {
	background: #eceff2;
	border-top: 1px solid var(--myh-border);
	padding: 1.05rem 0;
	text-align: center;
}

.myh-footer-bar-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}

.myh-footer-privacy {
	font-size: 0.88rem;
	color: var(--myh-text) !important;
	justify-content: center;
	transition: color 0.2s ease;
}

.myh-footer-privacy:hover,
.myh-footer-privacy:focus {
	color: var(--myh-primary) !important;
}

.myh-footer-privacy-icon {
	display: inline-flex;
	line-height: 0;
}

.myh-footer-copy {
	color: var(--myh-muted);
	text-align: center;
}

@media (max-width: 991.98px) {
	.myh-mega-links {
		border-right: 0;
		border-bottom: 1px solid var(--myh-border);
	}

	.myh-footer-links-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.myh-footer-cta,
	.myh-footer-newsletter-panel {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 575.98px) {
	.myh-footer-inner {
		padding-top: 2.5rem;
		padding-bottom: 2rem;
	}

	.myh-footer-links-row {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.myh-footer-cta {
		margin-top: 2rem;
		padding-top: 1.75rem;
	}

	.myh-footer-newsletter-fields {
		flex-direction: column;
	}

	.myh-footer-btn {
		width: 100%;
	}
}
