/*
 * Site header, overlay menu and footer. Type and colour come from the Elementor
 * kit variables so the brand stays in one place.
 */

:root {
	--gp-green: var(--e-global-color-primary, #334232);
	--gp-paper: var(--e-global-color-secondary, #fbfbf9);
	--gp-ink: var(--e-global-color-text, #2b2b2b);
	--gp-serif: var(--e-global-typography-primary-font-family, "Cormorant Garamond"), Georgia, serif;
	--gp-sans: var(--e-global-typography-0931ac5-font-family, "Montserrat"), Arial, sans-serif;
	--gp-micro: var(--e-global-typography-240f159-font-size, .8rem);
	--gp-header-pad: clamp(.625rem, .0159rem + .9518vw, 1.5625rem);
	--gp-gutter: clamp(1.25rem, -1.257rem + 10.286vw, 8rem);
}

/* --------------------------------------------------------------- The header */

.gp-header {
	position: fixed;
	inset-block-start: 0;
	inset-inline: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: var(--gp-header-pad);
	background: #fff;
	transition: background-color .4s ease, padding .4s ease;
}

/* Over a full bleed hero the bar is clear and the lockup white, until the page
   is scrolled and the bar comes in behind it. The class is added by the script,
   so a page without it keeps a solid, legible bar. */
.gp-header.is-top {
	background: transparent;
}

.gp-header-light .gp-header.is-top {
	--gp-header-pad: clamp(2.1875rem, -.4521rem + 4.1244vw, 6.25rem);
}

.gp-header .gp-header__logo {
	display: block;
	line-height: 0;
	color: var(--gp-green);
	transition: color .4s ease;
}

.gp-header__logo svg {
	display: block;
	width: auto;
	height: clamp(2.25rem, 1.83rem + 1.714vw, 3.5rem);
}

.gp-header-light .gp-header.is-top .gp-header__logo,
.gp-menu-open .gp-header .gp-header__logo {
	--gp-logo-sub: rgba(255, 255, 255, .6);

	color: #fff;
}

/* The toggle */

.gp-header .gp-header__toggle {
	display: flex;
	align-items: center;
	gap: .9rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--gp-ink);
	cursor: pointer;
	transition: color .4s ease;
}

.gp-header-light .gp-header.is-top .gp-header__toggle,
.gp-menu-open .gp-header__toggle {
	color: #fff;
}

.gp-header__toggle-label {
	font-family: var(--gp-sans);
	font-size: var(--gp-micro);
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1;
	text-transform: uppercase;
}

.gp-burger {
	display: grid;
	gap: 4px;
	width: clamp(1.375rem, 1.0497rem + 1.3699vw, 2.625rem);
}

.gp-burger span {
	display: block;
	height: 2px;
	background: currentColor;
	transition: transform .25s ease, opacity .15s ease;
}

.gp-menu-open .gp-burger span:first-child {
	opacity: 0;
}

.gp-menu-open .gp-burger span:nth-child(2) {
	transform: translateY(3px) rotate(45deg);
}

.gp-menu-open .gp-burger span:nth-child(3) {
	transform: translateY(-3px) rotate(-45deg);
}

/* ---------------------------------------------------------- The overlay menu */

.gp-menu {
	position: fixed;
	inset: 0;
	z-index: 998;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: clamp(1.25rem, .8rem + 1.6vw, 2rem);
	padding: 5% var(--gp-gutter) 4%;
	background: linear-gradient(180deg, #334232de, #334232f5);
	color: #fff;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s ease, visibility 0s .4s;
}

.gp-menu-open .gp-menu {
	opacity: 1;
	visibility: visible;
	transition: opacity .4s ease;
}

.gp-menu__list,
.gp-menu__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}

.gp-menu .gp-menu__list a {
	display: block;
	padding-block: clamp(.4rem, .2rem + .6vw, .85rem);
	color: #fff;
	font-family: var(--gp-serif);
	font-size: clamp(1.25rem, .6003rem + 1.0152vw, 2.25rem);
	font-weight: 400;
	letter-spacing: -.8px;
	line-height: 1.1;
	text-decoration: none;
	transition: opacity .2s ease;
}

.gp-menu.is-ready .gp-menu__list li,
.gp-menu.is-ready .gp-menu__meta li {
	opacity: 0;
	translate: 0 .75rem;
}

.gp-menu-open .gp-menu.is-ready .gp-menu__list li,
.gp-menu-open .gp-menu.is-ready .gp-menu__meta li,
.gp-menu-open.gp-menu-open .gp-menu.is-ready li {
	animation: gp-menu-item .5s cubic-bezier(.2, .6, .2, 1) calc(120ms + var(--i, 0) * 55ms) forwards;
}

@keyframes gp-menu-item {
	to {
		opacity: 1;
		translate: none;
	}
}

.gp-menu .gp-menu__list a:hover,
.gp-menu .gp-menu__list a:focus-visible {
	opacity: .6;
}

.gp-menu__meta {
	display: grid;
	justify-items: center;
	gap: .55rem;
	font-family: var(--gp-sans);
	font-size: var(--e-global-typography-799d7b9-font-size, 1.05rem);
}

.gp-menu .gp-menu__meta a {
	color: #fff;
	text-decoration: none;
}

.gp-menu__meta a:hover {
	text-decoration: underline;
}

.gp-menu__social {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-block-end: .6rem;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 50%;
}

.gp-menu__social:hover {
	background: rgba(255, 255, 255, .12);
}

/* Nothing behind the overlay should scroll. */
.gp-menu-open,
.gp-menu-open body {
	overflow: hidden;
}



/* --------------------------------------------------------------- The footer */

.gp-footer {
	padding-inline: var(--gp-gutter);
	background: #fff;
	color: var(--gp-ink);
	font-family: var(--gp-sans);
}

.gp-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 15%) minmax(0, 60%) minmax(0, 23%);
	justify-content: space-between;
	gap: clamp(2rem, 1rem + 3vw, 4rem);
	padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) clamp(2rem, 1.2rem + 2.4vw, 3.5rem);
}

.gp-footer .gp-footer__brand a {
	color: var(--gp-green);
}

.gp-footer__brand svg {
	display: block;
	width: 100%;
	max-width: 13.5rem;
	height: auto;
	color: var(--gp-green);
}

.gp-footer__label {
	margin: 0 0 1.5rem;
	font-size: var(--gp-micro);
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.gp-footer__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .85rem clamp(.5rem, .3rem + .8vw, 1rem);
	align-content: start;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gp-footer__details {
	display: grid;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gp-footer__details li {
	display: grid;
	grid-template-columns: 1.6rem 1fr;
	align-items: start;
}

.gp-footer__details svg {
	margin-block-start: .35em;
	color: #d1d1d1;
}

.gp-footer :is(.gp-footer__list, .gp-footer__details) {
	font-size: var(--e-global-typography-799d7b9-font-size, 1.05rem);
	line-height: var(--e-global-typography-799d7b9-line-height, 1.6em);
}

.gp-footer :is(.gp-footer__list, .gp-footer__details) a {
	color: inherit;
	text-decoration: none;
}

.gp-footer :is(.gp-footer__list, .gp-footer__details) a:hover {
	text-decoration: underline;
}

.gp-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
	color: #b3b3b3;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.gp-footer__copyright {
	margin: 0;
}

.gp-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gp-footer__legal li + li {
	border-inline-start: 1px solid currentColor;
	padding-inline-start: 1rem;
}

.gp-footer .gp-footer__legal a {
	color: inherit;
	text-decoration: none;
}

.gp-footer__legal a:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------- Narrow */

@media (max-width: 900px) {
	.gp-footer__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.5rem;
	}

	.gp-footer__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.gp-header,
	.gp-header-light .gp-header.is-top {
		--gp-header-pad: 20px;
	}

	.gp-footer__bar {
		flex-direction: column;
		align-items: flex-start;
		letter-spacing: 1px;
	}

	/* Wrapped, a divider can end up at the start of a line on its own. */
	.gp-footer__legal li + li {
		border-inline-start: 0;
		padding-inline-start: 0;
	}

	.gp-footer__legal {
		gap: .5rem 1.25rem;
	}
}

@media (max-width: 560px) {
	.gp-footer__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gp-header,
	.gp-menu,
	.gp-burger span {
		transition-duration: .01ms;
	}

	.gp-menu.is-ready :is(.gp-menu__list, .gp-menu__meta) li {
		opacity: 1;
		translate: none;
		animation: none;
	}
}
