/*
	(c)2021 - visuallizard.com

	General Layout Styles.
	Sets major blocking to elements that appear across the site in different templates.
	All can be removed and started from scratch or elements can be adjusted individually.
*/

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 1.5rem;
	position: relative;
	width: 100%;
}
.container-inner {
	max-width: var(--container-inner);
	margin: 0 auto;
}
.container-outter {
	max-width: var(--container-outter);
}

	.full-width {
		width: 100vw;
		position: relative;
		left: 50%;
		right: 50%;
		margin-left: -50vw;
		margin-right: -50vw;
	}
	.full-bleed {
	/* 	alternative to .full-width - https://andy-bell.design/wrote/creating-a-full-bleed-css-utility/ */
		width: 100vw;
		margin-left: 50%;
		transform: translateX(-50%);
	}

.site-header {
	padding: 1rem 0 2rem;
	border-bottom: .5rem solid transparent;

	border-image: linear-gradient(
		90deg,
		var(--color-gold) 0%,
		var(--color-gold) 25%,
		var(--color-navy) 25%,
		var(--color-navy) 50%,
		var(--color-slate) 50%,
		var(--color-slate) 75%,
		var(--color-clay) 75%,
		var(--color-clay) 100%
	) 4;
}
	.site-header-container {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-end;
		justify-content: space-between;
	}

.site-title {
	max-width: 360px;
	width: 100%;
	margin-inline-end: auto;
}
	.site-title > a {
		display: block;

		text-decoration: none;
		color: inherit;
		font-weight: 800;
		font-size: 30px;
		line-height: 1;
		transition: all .2s;
	}
	.site-title:hover > a {
		opacity: .8;
	}
	.site-title-img {
		width: 100%;
		height: auto;
	}

.languages {
	list-style: none;
	padding: 0;

	position: absolute;
	top: 1rem;
	right: 1.5rem;

	font-weight: 700;
	text-transform: uppercase;
}
.languages a:focus {
	outline: 2px dotted var(--color-link);
	outline-offset: 3px;
	border-radius: .25rem;
}

/* Search Form */
.search-form {
	float: right;
	display: inline-flex;
	margin: .5em 0;
}
	.search-input {

	}
	.search-button {
		/* border-radius: 0; */
	}


/* ! Announcement Ribbon */
.announcement {
	display: block;
	background: var(--color-gold);
	padding: 1rem 0;
	color: #fff;
	font-size: 80%;
	text-align: center;
}
	.announcement * {
		color: inherit;
	}
	.announcement > .container div > * {
		margin-bottom: .25em;
	}
	.announcement > .container div > *:last-child {
		margin-bottom: 0;
	}
	.announcement h2 {
		font-size: 26px;
		font-weight: 600;
		margin-block: .25rem;
	}
	.announcement a {
		color: inherit;
		text-decoration: underline;
		text-decoration-thickness: 1.5px;
	}
	.announcement a:hover {
		color: var(--color-link);
	}


/* 	! SECTIONS	*/
main {
	/* padding-bottom: 4rem; */
}
	.primary {
		width: 70%;
		padding: 2em 5% 2em 0;
	}
	.sidebar {
		width: 30%;
		padding: 2em 0 2em 5%;
		border-left: 1px solid #777;
	}

	/* ! Regions for Layout Module */
	.region-row {
		display: flex;
	}
		.region-cell {
			width: 100%;
			padding: 2rem 5%;
		}
		.region-cell:first-child {
			padding-left: 0;
		}
		.region-cell:last-child {
			padding-right: 0;
		}


/* Sections */
.section {
	padding-block: 6rem;
	overflow-y: clip;

	--section-bg: var(--secondary);
	--section-fg: var(--primary);
	--section-img: none;

	color: var(--section-fg);
	background-color: var(--section-bg);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	box-shadow: -50vw 0 0 0 var(--section-bg),
				-40vw 0 0 0 var(--section-bg),
				-30vw 0 0 0 var(--section-bg),
				-20vw 0 0 0 var(--section-bg),
				-10vw 0 0 0 var(--section-bg),
				 10vw 0 0 0 var(--section-bg),
				 20vw 0 0 0 var(--section-bg),
				 30vw 0 0 0 var(--section-bg),
				 40vw 0 0 0 var(--section-bg),
				 50vw 0 0 0 var(--section-bg);
}
	.type-1 {
		background-image:  url("/img/bg-bands.svg");
		background-attachment: fixed;
		background-size: 1200px auto;
	}

	/* Promote first section and make headings look like H1. TODO:  to be replaced with actual H1s */
	:where(.main-container > .section.type-1:first-child) h2 {
		font-size: clamp(2.3rem, 5.5vw, 4rem);
		letter-spacing: -.01em;
	}
	:where(.main-container > .section.type-1:first-child) p {
		font-size: 1.25rem;
		orphans: 2;
	}

	/* Animations */
	.section.is-visible h2 {
		animation: revealUp 1.5s cubic-bezier(.22,1,.36,1) both;
	}
	.section.is-visible .cke > div > * {
		animation: revealUp 1s cubic-bezier(.22,1,.36,1) both;
	}

	.section + .section:not(.type-0) {
		border-top: 1px solid var(--color-line);
	}

	.type-1 + .type-1 {
		padding-top: 0;
	}

	.section.type-1 {
		--section-bg: var(--color-soft);
		/* --section-fg: var(--secondary, #fff); */
		/* background-image: url("../img/ornament-1.svg"); */
		/* background-position: bottom right; */
		/* background-repeat: no-repeat; */
	}
		:where(.section.type-1) :is(h2, .h2, h3, .h3, h4, .h4) {
			/* color: var(--secondary); */
		}
		:where(.section.type-1) .button {
			color: #fff;
			border-color: currentcolor;
		}

	.section.type-2,
	.section.cta {
		--section-bg: var(--color-navy);
		--section-fg: var(--secondary, #fff);
		text-align: center;
	}
		.section.cta {
			margin-top: auto;
		}

		:where(.section.type-2, .section.cta) :is(h2, .h2, h3, .h3, h4, .h4) {
			color: var(--secondary);
		}
		:where(.section.type-2, .section.cta) .button {
			background-color: var(--color-gold);
			color: var(--color-navy);
			border-color: currentcolor;
		}
		.section.cta p {
			max-width: none;
		}
		.p-contact .section.cta {
			display: none;
		}

	/* Sections for Services */
	.section.callout {
		--callout-theme: var(--color-gold);
		position: relative;
		background: var(--color-soft);
		border-left: 6px solid var(--callout-theme);
		padding: 2.5rem;
		margin-block: 4rem;
		display: flex;
		flex-direction: column;
		row-gap: 2rem;
		overflow: hidden;
	}
		.section.callout.theme-gold { --callout-theme: var(--color-gold); }
		.section.callout.theme-navy { --callout-theme: var(--color-navy); }
		.section.callout.theme-clay { --callout-theme: var(--color-clay); }
		.section.callout.theme-slate { --callout-theme: var(--color-slate); }

		.section.callout ::marker {
			color: var(--callout-theme);
		}
		.section.callout::after {
			content: '';

			display: block;
			aspect-ratio: 1/1;
			max-width: 20%;
			width: 100%;
			margin: auto;
			opacity: 1;
			background-repeat: no-repeat;
			left: auto;
			background-size: contain;
			bottom: 0;
			order: -1;

		}
		.section.callout#talent::after { background-image: url("/img/icon-talent-workforce.svg"); }
		.section.callout#tourism::after { background-image: url("/img/icon-tourism-destination.svg"); }
		.section.callout#investment::after { background-image: url("/img/icon-investment.svg"); }
		.section.callout#placemaking::after { background-image: url("/img/icon-placemaking.svg"); }

		@media (width > 600px) {
			.section.callout {
				/* flex-direction: row; */
				column-gap: 1rem;
				padding-right: 25%;
			}
			.section.callout::after {
				position: absolute;
				max-width: none;
				width: 45%;
				right: -10%;
				top: 15%;

				opacity: 0.05;
				order: 1;
			}
		}


		.section.callout + .section.callout {
			border-top: none;
			margin-top: 0rem;
		}

	.section.hero h1 {
		animation: rise .9s ease both;
	}

/* Extends .toggle-unit functionality and styes */
.toggle-section {

}
	.toggle-section .toggle-head {
		padding-left: 3rem;
	}
	.toggle-section .toggle {
		width: 4rem;
		height: 4rem;
	}
	.toggle-section .toggle-details {
		margin-left: 1rem;
	}


/* ! Social element */
.social {
	display: block;
	list-style: none;
	margin: .25em 0;
	margin-left: 1.5rem;
	padding: 0;
	line-height: 1;

	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	/* justify-content: flex-end; */

	--icon-size: 2rem;
}
	.social > li {
		display: inline-flex;
		margin-left: .5rem;
		margin-bottom: 0;
	}
	.social > li:first-of-type {
		margin-left: -.25rem;
	}
	.social > li > a {
		display: inline-block;
		padding: 0;
		margin: 0;
		border: 0px solid transparent;
		border-radius: 100%;
		vertical-align: middle;

		color: var(--color-link);
		color: inherit;
		transition: opacity: .3s;
	}
	.social > li > a:hover {
		color: var(--color-link);
	}
	.social > li > a:focus {
		outline-width: medium;
		outline-color: var(--color-link);
		outline-offset: 4px;
	}
	.social .icon {
		width: var(--icon-size);
		height: var(--icon-size);
	}

	.site-header .social {
		position: absolute;
		right: 6rem;
		top: .5rem;
	}
		.site-header .social .su {
			margin-left: 2rem;
		}
	.site-footer .social {
		margin-left: 0;
	}


/* Signup Popover */
.signup-popover[popover] {
	inline-size: min(90vm, 600px);
	block-size: auto;
	padding: 0 1rem;
	border: .2rem solid var(--color-line);
	border-radius: var(--border-radius-2);
	background-color: color-mix(in srgb, var(--color-soft) 50%, #fff);
	box-shadow: 0 8px 32px hsl(0 0% 0% / 0.12);
	box-shadow: var(--shadow-5);

	grid-template-columns: auto 1fr;

	opacity: 0;
	translate: 0 -1rem;
	transition-property: display, overlay, opacity, translate;
	transition-duration: .5s;
	transition-behavior: allow-discrete;

	&:popover-open {
		display: grid;

		opacity: 1;
		translate: 0 0;

		@starting-style {
			opacity: 0;
			translate: 0 2rem;
		}
	}

	@supports (anchor-name: --anchor) {
		margin: 1rem;
		inset: auto;
		position-area: bottom;
	}
}

	.signup-trigger {
		font-size: 14px;
		padding: .3rem 1rem;
	}
	.signup-trigger:hover {

	}

	.signup-intro {
		text-align: center;
	}
		.signup-intro > h2 {
			font-size: 1.25rem;
			text-wrap: balance;
		}

@media (width < 600px) {
	.signup-popover[popover] {

	}
}
@media (width > 600px) {
	.signup-popover[popover] {
		padding-inline: 2rem;
	}
	.signup-intro > h2 {
		font-size: 2rem;
	}
}


/* Layout Helpers */
	.align-center {
		text-align: center;
	}
	.align-content-middle .cke > * {
		align-content: center;
	}
	.no-padding {
		padding: 0;
	}



/* ! Site Footer  */
.site-footer {
	position: relative;
	clear: both;
	padding: 1em 0;
	margin: 0;
	background-color: var(--color-navy-dark);
	color: var(--secondary);
	color: #cbd5e0;
}
	.site-footer a:hover {
		color: var(--color-gold);
	}
	.site-footer .button {
		background-color:  transparent;
		border-color: currentcolor;
	}

	:where(.site-footer) .region-row {
		display: flex;
		row-gap: 1rem;
	}
	:where(.site-footer) .region-cell {
		padding-inline: 2.5rem;
		flex-basis: 25%;
	}

	.site-footer h2 {
		margin: 0 0 .25rem 0;
		font-size: 1.5rem;
		font-weight: 600;
		line-height: 1.3;
		color: var(--secondary);
	}
	.site-footer a {
		color: inherit;
	}

	.site-footer .footer-fine {
		margin-top: 2rem;
		padding-top: 1rem;
		border-top: 1px solid #26374f;
		font-size: .8rem;
	}
		.site-footer .land-acknowledgement {
			/* font-size: 90%; */
			font-style: italic;
		}
		@media (width > 800px) {
			.site-footer .footer-fine {
				display: flex;
				column-gap: 2rem;
				justify-content: space-between;
			}
			.site-footer .land-acknowledgement {
				flex-basis: 54%;
				max-width: none;
			}
		}


/* ! Error Pages */
.error-header {
	font-size: 50px;
}
.error-code {
	font-size: 12px;
}
