/* ------------------------------------------------------------------
	Amity — site navigation and layout additions
	Inline nav on larger screens, hamburger + overlay menu on mobile,
	plus page headings and small layout refinements.
	Loaded after main.css so it can refine the generated layout.
------------------------------------------------------------------- */

/* Header layout ---------------------------------------------------- */

/* Give the nav column room to breathe (default split is 80% / 20%). */

.container-component.instance-11.has-nav > .wrapper > .inner > :nth-child(1) {
	width: auto;
	flex-grow: 1;
	flex-shrink: 1;
}

.container-component.instance-11.has-nav > .wrapper > .inner > :nth-child(2) {
	width: auto;
	flex-grow: 0;
	flex-shrink: 0;
}

.container-component.instance-11.has-nav > .wrapper > .inner {
	flex-wrap: nowrap;
}

.site-logo {
	display: inline-block;
	text-decoration: none;
	border: 0;
}

.site-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.75rem;
}

/* Neutralise the generated icon-list spacing inside the header row. */

.site-header-actions > .icons-component,
.site-header-actions > .buttons-component {
	margin: 0 !important;
}

/* Inline nav ------------------------------------------------------- */

.site-nav > ul {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	display: block;
	font-family: 'Fredoka', sans-serif;
	font-size: 0.8em;
	font-weight: 400;
	line-height: 1.5;
	white-space: nowrap;
	text-decoration: none;
	color: #242424;
	transition: color 0.25s ease;
}

.site-nav a:hover {
	color: #49A258;
}

.site-nav a.is-current {
	color: #49A258;
}

/* Hamburger -------------------------------------------------------- */

.site-nav-toggle-wrap {
	display: none;
}

/* Overlay menu ----------------------------------------------------- */

.site-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	background-color: #121738;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.35s ease, visibility 0.35s;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.site-menu.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.site-menu::before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	background-image: linear-gradient(to top, rgba(18,23,56,0.978), rgba(18,23,56,0.978)), url('images/bg.jpg');
	background-position: 0% 0%, center;
	background-repeat: repeat, no-repeat;
	background-size: auto, cover;
}

.site-menu > * {
	position: relative;
	z-index: 1;
}

.site-menu-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 1.125rem 1.5rem;
}

.site-menu-head img {
	display: block;
	width: 10.125rem;
	max-width: 45vw;
	height: auto;
}

.site-menu-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: solid 3px #FFFFFF;
	border-radius: 0.625rem;
	background: transparent;
	cursor: pointer;
	transition: color 0.25s ease, border-color 0.25s ease;
	color: #FFFFFF;
}

.site-menu-close::before {
	content: '\00d7';
	display: block;
	font-family: 'Fredoka', sans-serif;
	font-size: 1.5em;
	line-height: 1;
}

.site-menu-close:hover {
	color: #F7D347;
	border-color: #F7D347;
}

.site-menu-body {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2rem 1.5rem 3rem 1.5rem;
}

.site-menu-body > ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-menu-body > ul > li {
	border-bottom: solid 1px rgba(255,255,255,0.14);
}

.site-menu-body > ul > li:first-child {
	border-top: solid 1px rgba(255,255,255,0.14);
}

.site-menu-body > ul a {
	display: block;
	padding: 1.125rem 0;
	font-family: 'Fredoka', sans-serif;
	font-size: 1.5em;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.05rem;
	text-decoration: none;
	color: #FFFFFF;
	transition: color 0.25s ease;
}

.site-menu-body > ul a:hover,
.site-menu-body > ul a.is-current {
	color: #F7D347;
}

.site-menu-cta {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	width: auto;
	height: 3.375rem;
	line-height: 3.375rem;
	margin-top: 2.25rem;
	padding: 0 1.6875rem;
	font-family: 'Fredoka', sans-serif;
	font-size: 1em;
	font-weight: 400;
	border-radius: 0.375rem;
	flex-direction: row-reverse;
	justify-content: flex-end;
	text-decoration: none;
	background-color: #49A258;
	color: #FFFFFF;
	background-image: linear-gradient(45deg, #388244 0%, rgba(73,162,88,0.012) 100%);
	background-position: 0% 0%;
	background-repeat: repeat;
	background-size: cover;
	transition: color 0.25s ease, background-color 0.25s ease;
}

.site-menu-cta > svg {
	display: block;
	fill: #FFFFFF;
	flex-grow: 0;
	flex-shrink: 0;
	height: 1em;
	width: 1em;
	min-width: 16px;
	margin-left: 0.5em;
	margin-right: -0.125em;
	pointer-events: none;
}

.site-menu-cta > .label {
	overflow: hidden;
	flex-grow: 1;
	flex-shrink: 1;
	text-align: left;
	width: 100%;
}

.site-menu-cta:hover {
	background-color: #F7D347 !important;
}

body.menu-open {
	overflow: hidden;
}

/* Page headings ---------------------------------------------------- */

.page-title {
	text-align: left;
	color: #242424;
	font-family: 'Fredoka', sans-serif;
	letter-spacing: -0.125rem;
	width: 100%;
	font-size: 2.5em;
	line-height: 1.125;
	font-weight: 400;
}

.page-title .accent {
	color: #49A258;
}

/* The body containers run on zero child spacing, so the heading and the
   closing call to action set their own. */

.container-component > .wrapper > .inner > .page-title {
	margin-bottom: 1.75rem !important;
}

.container-component > .wrapper > .inner > .page-cta {
	margin-top: 2.25rem !important;
}

/* Responsive ------------------------------------------------------- */

@media (max-width: 980px) {

	.site-nav {
		display: none;
	}

	.site-nav-toggle-wrap {
		display: flex;
	}

	.site-header-actions {
		gap: 1.25rem;
	}

	.page-title {
		font-size: 2em;
		letter-spacing: -0.075rem;
	}

}

@media (max-width: 736px) {

	/* "My Circle is Complete" — lead with the photo once the columns
	   stack, and carry the divider over to the text below it. */

	.container-component.instance-9.columns > .wrapper > .inner > div:last-of-type {
		order: -1;
	}

	.container-component.instance-9.columns > .wrapper > .inner > *:last-child::before {
		display: none !important;
	}

	.container-component.instance-9.columns > .wrapper > .inner > *:first-child::before {
		display: block !important;
	}

	/* The photo bleeds into the container's bottom padding when it is the
	   last block stacked; moved to the top it has text underneath, so drop
	   the bleed and give that text its own breathing room. */

	.container-component.instance-9.columns > .wrapper > .inner > div:last-of-type > .full:last-child {
		margin-bottom: 0 !important;
	}

	.container-component.instance-9.columns > .wrapper > .inner > div:first-of-type {
		padding-top: calc(var(--gutters) * 0.5) !important;
	}

	.site-menu-body > ul a {
		font-size: 1.25em;
	}

	.site-menu-cta {
		align-self: stretch;
		width: 100%;
	}

	.page-title {
		font-size: 1.75em;
		letter-spacing: -0.05rem;
	}

}
