/**
 * Site header — values from program HTML base.css (.header-top, .header-content, .country-link).
 */

.header {
	width: 100%;
	background: #fff;
	color: #000;
	font-family: var(--site-font);
}

.header-top {
	width: 100%;
	padding: 12px 0;
	background: #000;
	color: #fff;
	transform: translateY(0);
	transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.header-top .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	position: relative;
}

.header-top .sticky-logo {
	display: none;
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.header-top.is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.admin-bar .header-top.is-sticky {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.location-label {
	color: #fff;
	font-family: var(--site-font-display);
	font-size: 24px;
	font-style: oblique;
	font-stretch: condensed;
	font-weight: 700;
	line-height: 32px;
	letter-spacing: 0.42px;
}

.header-top.is-sticky .location-label {
	display: none;
}

.sticky-logo {
	display: none;
}

.header-top.is-sticky .sticky-desktop-logo,
.header-top.is-sticky .sticky-mobile-logo {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	white-space: normal;
}

.sticky-logo img {
	display: block;
	width: auto;
	height: 32px;
}

.country-link {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.country-link ul {
	display: flex;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.country-link li {
	border-right: 1px solid var(--site-gold);
	padding-right: 32px;
}

.country-link li:last-child {
	border: 0;
	padding: 0;
}

.country-link .header-country {
	color: #fff;
	font-family: var(--site-font-medium);
	font-size: 18.66px;
	font-style: normal;
	font-weight: 500;
	line-height: 20.66px;
	letter-spacing: 0.187px;
	text-decoration: none;
	text-underline-offset: auto;
	text-underline-position: from-font;
}

.country-link .header-country:hover,
.country-link .header-country:focus-visible {
	text-decoration: underline;
}

.country-link .header-country:focus-visible {
	text-decoration: underline;
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.header-container {
	background: #fff;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 16px 0 28px;
}

.header-top + .header-container .header-content {
	padding-top: 16px;
}

.header-logo {
	display: flex;
	line-height: 0;
}

.header-logo img {
	display: block;
	width: auto;
	height: 48px;
	max-width: 100%;
}

.enquiary-link a {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--site-font-medium);
	font-size: 18.66px;
	font-weight: 500;
	line-height: 20.66px;
	letter-spacing: 0.187px;
	text-decoration: none;
	white-space: nowrap;
}

.header-top .enquiary-link a {
	color: #fff;
}

.header-top .enquiary-link svg,
.header-top .enquiary-link svg path {
	fill: #fff;
}

.enquiary-link a:hover,
.enquiary-link a:focus-visible {
	text-decoration: none;
}

.enquiary-link a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.enquiary-link svg {
	flex-shrink: 0;
}

@media (min-width: 1025px) {
	.header-top .enquiary-link {
		display: block;
	}

	.header-top.is-sticky .sticky-desktop-logo {
		display: block;
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
	}

	.header-top.is-sticky .enquiary-link {
		display: block;
		transition: width 0.3s ease, height 0.3s ease;
	}
}

@media (max-width: 1024px) {
	.header-content {
		padding-top: 12px;
		padding-bottom: 16px;
	}

	.header-top + .header-container .header-content {
		padding-top: 12px;
	}

	/* HTML: black bar = location + hamburger; Apply lives in the drawer (custom-menu-cta). */
	.header-top .country-link {
		display: none;
	}

	.header-top.is-sticky .sticky-mobile-logo {
		display: block;
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
	}
}

.header-logo-link {
	display: block;
	line-height: 0;
	text-decoration: none;
}

.header-logo-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* —— Primary nav + megamenu (program HTML base) —— */

.menu-bar {
	background: var(--site-gold);
	width: 32px;
	height: 32px;
	border-radius: 100px;
	align-items: center;
	justify-content: center;
	display: flex;
	cursor: pointer;
	border: 0;
	padding: 0;
	flex-shrink: 0;
}

.menu-close-icon {
	display: none;
}

.menu-bar.active .menu-bar-icon {
	display: none;
}

.menu-bar.active .menu-close-icon {
	display: block;
}

.menu-bar:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.main-nav .nav-megamenu {
	display: none;
}

.main-nav .nav-megamenu.show {
	display: block;
}

nav ul {
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav > ul {
	align-items: center;
}

nav li a {
	color: #000;
	font-size: 18.66px;
	font-style: normal;
	font-weight: 500;
	line-height: 20.66px;
	letter-spacing: 0.187px;
	font-family: var(--site-font-medium);
	display: flex;
	gap: 8px;
	align-items: center;
	text-decoration: none;
}

.main-nav > ul > li > a.has-megamenu span {
	display: inline-flex;
}

.main-nav > ul > li > a.active,
.main-nav > ul > li.is-open > a.has-megamenu {
	text-decoration: underline;
}

.main-nav > ul > li > a.has-megamenu span svg {
	transition: transform 0.2s ease;
}

.main-nav > ul > li.is-open > a.has-megamenu span svg {
	transform: rotate(180deg);
}

.megamenu-wrapper {
	display: flex;
	gap: 48px;
}

.mm-left {
	width: 33%;
}

.mm-right {
	width: 67%;
}

.mm-card {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.mm-card-media {
	overflow: hidden;
}

.mm-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	aspect-ratio: 360 / 220;
}

.mm-card-content {
	width: 100%;
	display: flex;
	flex-direction: column;
	background: var(--site-gold);
	padding: 24px;
	row-gap: 32px;
	transition: background-color 0.3s ease;
}

.mm-card-title {
	color: #000;
	font-size: 22px;
	font-weight: 500;
	line-height: 35px;
	letter-spacing: 0.22px;
	font-family: var(--site-font-bold);
}

.mm-card-link a {
	width: 100%;
	justify-content: space-between;
}

.mm-card:hover .mm-card-media img {
	transform: scale(1.05);
}

.mm-card:hover .mm-card-content {
	background: #fff9ea;
}

.mm-right-wrapper {
	display: grid;
	gap: 32px;
}

.mm-links-block {
	display: flex;
	flex-direction: column;
	row-gap: 0;
}

.megamenu-wrapper li {
	width: 100%;
}

.mm-links-title {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mm-links-title a {
	font-size: 22px;
	line-height: 35px;
	letter-spacing: 0.22px;
}

.megamenu-wrapper ul {
	flex-direction: column;
	row-gap: 0;
}

.megamenu-wrapper li a {
	font-family: var(--site-font);
	font-weight: 300;
}

.mm-links-flat {
	display: flex;
	flex-direction: column;
	row-gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

.mm-links-flat a {
	padding: 8px 4px;
	font-size: 22px;
	line-height: 35px;
}

.mm-links-flat a:hover {
	background: #fff9ea;
}

.mm-links ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-menu-title,
.custom-menu-cta,
.custom-menu-links,
.main-nav-legal-subnav {
	display: none;
}

@media (min-width: 1025px) {
	.menu-bar {
		display: none;
	}

	.main-nav > ul > li {
		position: relative;
	}

	.main-nav > ul > li.is-open > .nav-megamenu,
	.main-nav .nav-megamenu.show {
		display: block;
	}

	.nav-megamenu {
		border-top: 1px solid var(--site-gold);
		background: var(--site-gold-soft);
		box-shadow: 0 51px 56px 0 rgba(0, 0, 0, 0.16);
		padding: 48px 0 64px;
		position: fixed;
		width: 100%;
		left: 0;
		z-index: 999;
	}

	.mm-links-title svg {
		display: none;
	}

	.megamenu-wrapper li a:hover {
		background: #fff9ea;
	}

	.megamenu-wrapper li a {
		padding: 8px 4px;
	}

	.mm-links {
		display: block !important;
	}
}

@media (max-width: 1024px) {
	body.has-site-primary-nav {
		padding-top: 56px;
	}

	.admin-bar body.has-site-primary-nav {
		padding-top: calc(56px + var(--wp-admin--admin-bar--height, 32px));
	}

	.header-top {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 1000;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	}

	.admin-bar .header-top {
		top: var(--wp-admin--admin-bar--height, 32px);
	}

	.main-nav {
		display: none;
	}

	.header.menu-open .main-nav {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 99;
		background: var(--site-gold-soft);
		padding: 32px;
		padding-top: 88px;
		overflow-y: auto;
	}

	.header.menu-open .nav-megamenu.show {
		position: static;
		box-shadow: none;
		padding: 16px 0 0;
		background: transparent;
		top: inherit !important;
	}

	.header.menu-open .main-nav .nav-megamenu .container {
		padding: 0;
	}

	.header.menu-open .megamenu-wrapper {
		flex-direction: column;
		gap: 0;
	}

	.header.menu-open .mm-left {
		display: none;
	}

	.header.menu-open .mm-right {
		width: 100%;
	}

	.header.menu-open .mm-right-wrapper {
		gap: 0;
		grid-template-columns: repeat(1, 1fr);
	}

	.header.menu-open .mm-links-block {
		gap: 0;
	}

	.main-nav > ul {
		flex-direction: column;
		gap: 0;
		align-items: stretch;
	}

	.main-nav > ul > li > a {
		position: relative;
		font-size: 20px;
		font-weight: 300;
		line-height: 32px;
		letter-spacing: 0.2px;
		font-family: var(--site-font);
		padding: 12px 0 4px;
		justify-content: space-between;
		color: #000;
	}

	.main-nav > ul > li > a.active,
	.main-nav > ul > li.is-open > a.has-megamenu {
		text-decoration: underline;
	}

	.mm-links-title span,
	.main-nav > ul > li > a.has-megamenu span {
		min-width: 48px;
		height: 100%;
		display: flex;
		text-align: center;
		justify-content: center;
		align-items: center;
		position: absolute;
		right: 0;
		top: 0;
	}

	.main-nav > ul > li > a.active span,
	.main-nav > ul > li.is-open > a.has-megamenu span {
		background: #fff9ea;
	}

	.mobile-menu-title {
		display: block;
		color: #000;
		font-size: 22px;
		font-weight: 500;
		line-height: 35px;
		letter-spacing: 0.22px;
		font-family: var(--site-font-bold);
		margin-bottom: 0;
	}

	.mm-links-title a {
		justify-content: space-between;
		position: relative;
		background: #fff9ea;
		padding: 8px 4px;
	}

	.mm-links-title.active span {
		background: #fff;
	}

	.mm-links {
		display: none;
	}

	.mm-links-block.active .mm-links {
		display: block;
	}

	.mm-links-block.active .mm-links-title span svg,
	.mm-links-title.active svg {
		transform: rotate(180deg);
	}

	.mm-links,
	.mm-links-title {
		font-size: 18.66px;
		font-weight: 500;
		line-height: 29.66px;
		letter-spacing: 0.187px;
	}

	.mm-links ul {
		gap: 0;
	}

	.mm-links a {
		background: #fff;
		padding: 4px 8px;
		font-size: 18.66px;
		line-height: 29.66px;
	}

	.mm-links a:hover,
	.mm-links-title a:hover {
		text-decoration: underline;
		background: #fff;
	}

	.header.menu-open .mm-links-flat {
		gap: 0;
	}

	.header.menu-open .mm-links-flat li a {
		display: block;
		background: #fff;
		padding: 4px 8px;
		font-size: 18.66px;
		font-weight: 500;
		line-height: 29.66px;
		letter-spacing: 0.187px;
		font-family: var(--site-font-medium);
	}

	.header.menu-open .mm-links-flat li:last-child a {
		padding-bottom: 12px;
	}

	.header.menu-open .megamenu-wrapper li a {
		padding: 12px 8px 4px;
	}

	.custom-menu-cta,
	.custom-menu-links {
		display: block;
	}

	.custom-menu-cta {
		margin: 20px 0 24px;
		border-top: 1px solid #28939d;
		border-bottom: 1px solid #28939d;
		padding: 16px 0;
	}

	.custom-menu-cta .cta {
		width: 100%;
		display: flex;
		justify-content: space-between;
	}

	.custom-menu-links a {
		font-size: 20px;
		font-weight: 300;
		line-height: 32px;
		letter-spacing: 0.2px;
		text-decoration: none;
		color: #000;
		font-family: var(--site-font);
	}
}

@media (max-width: 767px) {
	.header.menu-open .main-nav-legal-subnav {
		display: block;
		border-bottom: 1px solid #28939d;
	}

	.main-nav-legal-subnav__title {
		margin-bottom: 4px;
	}

	.main-nav-legal-subnav + .main-nav-primary-section__title {
		margin-bottom: 4px;
		padding-top: 20px;
	}

	.main-nav-legal-subnav .site-legal-subnav {
		margin: 0;
		padding-bottom: 20px;
	}

	.main-nav-legal-subnav .site-legal-subnav__list {
		flex-direction: column;
		align-items: stretch;
		flex-wrap: nowrap;
		gap: 0;
	}

	.main-nav-legal-subnav .site-legal-subnav__link {
		display: block;
		background: transparent;
		padding: 4px 0;
		font-size: 20px;
		font-weight: 300;
		line-height: 32px;
		letter-spacing: 0.2px;
		font-family: var(--site-font);
		color: #000;
		white-space: normal;
	}

	.main-nav-legal-subnav .site-legal-subnav__link.is-active {
		text-decoration: underline;
		font-weight: 300;
		background: transparent;
	}
	.site-legal-subnav__item{
		padding: 12px 0 4px 0;
	}
}
