/*
Theme Name: Yuchai Prairie
Theme URI: https://yuchaiprairie.ca
Description: Child theme for Yuchai Prairie based on GeneratePress.
Author: Yuchai Prairie
Template: generatepress
Version: 1.0.0
Text Domain: yuchaiprairie
*/

:root {
	--color-white-alpha: #FFFFFF40;
	--color-white: #FFFFFF;
	--color-yellow: #FEBC38;
	--color-dark: #151B1F;
	--color-dark-alpha: #151B1F80;
	--yp-red: #C61D25;
	--yp-text-muted: rgba(255, 255, 255, 0.45);
	--yp-text-faint: rgba(255, 255, 255, 0.35);
	--yp-text-soft: rgba(255, 255, 255, 0.75);
}

body {
	font-family: "Inter", Arial, sans-serif;
}

.yp-breadcrumbs {
	padding: 14px max(24px, calc((100vw - 1280px) / 2));
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: #151b1f;
	color: var(--color-yellow);
	font-size: 12px;
	line-height: 18px;
}
.yp-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.yp-breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: var(--color-yellow); }
.yp-breadcrumbs a { color: var(--color-yellow); text-decoration: none; }
.yp-breadcrumbs a:hover { color: var(--color-yellow); text-decoration: underline; }

.yp-inner-hero {
	padding: 110px 0 100px;
	background: #151b1f;
	color: #fff;
}
.yp-inner-hero__inner {
	width: min(100% - 48px, 1280px);
	margin-inline: auto;
}
.yp-inner-hero__eyebrow {
	margin: 0;
	color: var(--color-yellow);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}
.yp-inner-hero h1 {
	max-width: 900px;
	margin: 16px 0 20px;
	color: #fff;
	font-family: "Manrope", Arial, sans-serif;
	font-size: clamp(54px, 7vw, 100px);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}
.yp-inner-hero__inner > p:last-child:not(.yp-inner-hero__eyebrow) {
	max-width: 600px;
	margin: 0;
	color: #d4d7d8;
	line-height: 1.7;
}
.yp-has-inner-hero:not(.blog) .entry-header .entry-title,
.yp-has-inner-hero .page-header .page-title,
.yp-has-inner-hero .tribe-events-single-event-title { display: none; }
.yp-has-inner-hero .entry-content > h1.wp-block-heading:first-child { display: none; }
@media (max-width: 600px) { .yp-inner-hero { padding: 68px 0; } }

.site-header,
.main-navigation,
.site-info {
	background: transparent;
}

.yp-navbar {
	position: relative;
	z-index: 50;
	width: 100%;
	height: 80px;
	background: var(--color-dark);
	color: var(--color-white);
}

.yp-navbar__container,
.yp-footer__container {
	width: min(100%, 1360px);
	margin: 0 auto;
	padding-right: 48px;
	padding-left: 48px;
}

.yp-navbar__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}

.yp-navbar__panel {
	display: flex;
	align-items: center;
	min-width: 0;
	margin-left: auto;
}

.yp-navbar__toggle {
	display: none;
}

.yp-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	text-decoration: none;
	white-space: nowrap;
}

.yp-logo:hover,
.yp-logo:focus {
	text-decoration: none;
}

.yp-logo__mark {
	display: block;
	width: 91.84px;
	height: 43.79px;
	margin-right: -17.18px;
	object-fit: contain;
}

.yp-logo__custom {
	display: block;
	width: auto;
	max-width: min(240px, 55vw);
	height: auto;
	max-height: 56px;
	object-fit: contain;
}

.yp-logo__text {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
	text-align: center;
}

.yp-logo__name {
	color: var(--yp-red);
	font-family: "Archivo Black", "Arial Black", sans-serif;
	font-size: 20.89px;
	font-weight: 400;
	line-height: 1.1;
}

.yp-logo__region {
	color: var(--color-yellow);
	font-family: "Archivo", Arial, sans-serif;
	font-size: 11.89px;
	font-weight: 400;
	line-height: 1.1;
}

.yp-navbar__nav,
.yp-navbar__actions,
.yp-language {
	display: flex;
	align-items: center;
}

.yp-navbar__nav {
	gap: 28px;
}

.yp-navbar__menu,
.yp-footer__social-menu,
.yp-footer__legal-menu {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yp-navbar__menu .sub-menu {
	display: none;
	position: absolute;
	z-index: 20;
	min-width: 170px;
	margin: 0;
	padding: 10px;
	background: #151b1f;
	list-style: none;
}

.yp-navbar__menu li { position: relative; }
.yp-navbar__menu li:hover > .sub-menu,
.yp-navbar__menu li:focus-within > .sub-menu { display: block; }

.yp-navbar__actions {
	gap: 20px;
	margin-left: clamp(32px, 8vw, 167px);
}

.yp-navbar__menu a,
.yp-navbar__quote,
.yp-language__link {
	font-family: "Manrope", Arial, sans-serif;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
}

.yp-navbar__menu a {
	color: var(--yp-text-soft);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.32px;
	line-height: 16.5px;
}

.yp-navbar__menu a:hover,
.yp-navbar__menu a:focus {
	color: var(--color-white);
	text-decoration: none;
}

.yp-language {
	gap: 2px;
}

.yp-language__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	padding: 4px 8px;
	border-right: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.35);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 15px;
}

.yp-language__link:last-child {
	border-right: 0;
}

.yp-language__link.is-active {
	color: var(--color-yellow);
}

.yp-navbar__quote {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 37px;
	padding: 10px 20px;
	background: var(--color-yellow);
	color: var(--color-dark);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.54px;
	line-height: 16.5px;
}

.yp-navbar__quote:hover,
.yp-navbar__quote:focus-visible {
	background: #ed9e00;
	color: var(--color-dark);
	text-decoration: none;
}

.yp-navbar__quote:active {
	background: #fec85d;
}

@media (min-width: 1361px) {
	.yp-navbar__container { position: relative; }
	.yp-navbar__nav { position: absolute; left: 50%; transform: translateX(-50%); }
	.yp-navbar__actions { margin-left: 0; }
}

/* Contact Form 7 form based on Figma node 15017:4421. */
.yp-contact-form {
	width: min(100%, 584px);
	margin: 0;
	background: transparent;
	color: var(--color-white);
}

.yp-contact-form,
.yp-contact-form * {
	box-sizing: border-box;
}

.yp-contact-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 16px;
}

.yp-contact-form__interest {
	margin: 0 0 20px;
}

.yp-contact-form__interest-label {
	margin: 0 0 12px;
	color: rgba(255, 255, 255, 0.4);
	font-family: "Manrope", Arial, sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1.8px;
	line-height: 15px;
	text-transform: uppercase;
}

.yp-contact-form__interest-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.yp-contact-form__interest-grid > p {
	display: contents;
	margin: 0;
}

.yp-contact-form__interest-button {
	min-width: 0;
	height: 43px;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.1px;
	line-height: 16.5px;
	text-align: center;
	text-transform: uppercase;
	transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.yp-contact-form__interest-button:hover,
.yp-contact-form__interest-button:focus-visible {
	border-color: var(--color-yellow);
	color: var(--color-yellow);
}

.yp-contact-form__interest-button.is-active,
.yp-contact-form__interest-button.is-active:hover,
.yp-contact-form__interest-button.is-active:focus-visible {
	border-color: var(--color-yellow);
	background: var(--color-yellow);
	color: var(--color-dark);
}

.yp-contact-form__field,
.yp-contact-form__field label,
.yp-contact-form__field .wpcf7-form-control-wrap {
	display: block;
	min-width: 0;
	margin: 0;
}

.yp-contact-form__field--full {
	grid-column: 1 / -1;
}

.yp-contact-form__field p,
.yp-contact-form > p {
	margin: 0;
}

.yp-contact-form__label {
	display: block;
	height: 23px;
	padding-bottom: 8px;
	color: rgba(255, 255, 255, 0.4);
	font-family: "Manrope", Arial, sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1.8px;
	line-height: 15px;
	text-transform: uppercase;
}

.yp-contact-form input:not([type="submit"]),
.yp-contact-form select,
.yp-contact-form textarea {
	display: block;
	width: 100%;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.06);
	box-shadow: none;
	color: rgba(255, 255, 255, 0.82);
	font-family: "Inter", Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	transition: border-color 160ms ease, background-color 160ms ease;
}

.yp-contact-form input:not([type="submit"]),
.yp-contact-form select {
	height: 50px;
	padding: 14px 16px;
}

.yp-contact-form textarea {
	height: 110px;
	min-height: 110px;
	padding: 14px 16px;
	resize: vertical;
}

.yp-contact-form input::placeholder,
.yp-contact-form textarea::placeholder {
	color: rgba(255, 255, 255, 0.5);
	opacity: 1;
}

.yp-contact-form input:not([type="submit"]):not(:placeholder-shown),
.yp-contact-form textarea:not(:placeholder-shown) {
	border-color: rgba(255, 255, 255, 0.5);
}

.yp-contact-form input:disabled,
.yp-contact-form select:disabled,
.yp-contact-form textarea:disabled {
	border-color: rgba(21, 27, 31, 0.2);
	color: rgba(255, 255, 255, 0.2);
	cursor: not-allowed;
}

.yp-contact-form select option {
	background: var(--color-dark);
	color: var(--color-white);
}

.yp-contact-form input:not([type="submit"]):focus,
.yp-contact-form select:focus,
.yp-contact-form textarea:focus {
	border-color: var(--color-yellow);
	outline: 1px solid var(--color-yellow);
	outline-offset: -1px;
	background: rgba(255, 255, 255, 0.09);
}

.yp-contact-form input:not([type="submit"]):focus:not(:placeholder-shown),
.yp-contact-form textarea:focus:not(:placeholder-shown) {
	color: var(--color-yellow);
}

.yp-contact-form .wpcf7-not-valid,
.yp-contact-form .wpcf7-not-valid:focus {
	border-color: #8e151b !important;
	outline-color: #8e151b;
	background: rgba(227, 30, 30, 0.06);
}

.yp-contact-form__actions {
	margin-top: 26px;
}

.yp-contact-form__actions p {
	margin: 0;
}

.yp-contact-form .yp-contact-form__submit {
	display: block;
	width: 100%;
	height: 49px;
	margin: 0;
	padding: 16px;
	border: 0;
	border-radius: 0;
	background: var(--color-yellow);
	box-shadow: none;
	color: var(--color-dark);
	cursor: pointer;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.98px;
	line-height: 16.5px;
	text-align: center;
	text-transform: uppercase;
	transition: background-color 160ms ease;
}

.yp-contact-form .yp-contact-form__submit:hover,
.yp-contact-form .yp-contact-form__submit:focus-visible {
	background: #ed9e00;
	color: var(--color-dark);
}

.yp-contact-form .yp-contact-form__submit:active {
	background: #fec85d;
}

.yp-contact-form .yp-contact-form__submit:disabled {
	background: #f1f5f9;
	color: #cbd5e1;
	cursor: not-allowed;
}

.yp-contact-form .wpcf7-spinner {
	display: block;
	margin: 8px auto 0;
}

.yp-contact-form .wpcf7-not-valid-tip {
	margin-top: 6px;
	color: #ea7177;
	font-family: "Inter", Arial, sans-serif;
	font-size: 10px;
	line-height: 15px;
}

.yp-contact-form__note {
	margin-top: 20px !important;
	color: rgba(255, 255, 255, 0.25);
	font-family: "Manrope", Arial, sans-serif;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.25px;
	line-height: 15px;
	text-align: center;
}

.yp-contact-form + .wpcf7-response-output {
	width: min(100%, 584px);
	margin: 20px 0 0;
	border-color: var(--color-yellow);
	color: var(--color-white);
	font-size: 13px;
}

.yp-footer {
	width: 100%;
	padding: 80px 0 40px;
	background: var(--color-dark);
	color: var(--color-white);
}

.yp-footer__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 40px;
	padding-bottom: 64px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yp-footer__brand {
	grid-column: span 2;
}

.yp-footer__brand > p {
	width: 220px;
	margin: 24px 0 0;
	color: var(--yp-text-faint);
	font-size: 14px;
	font-weight: 400;
	line-height: 22.75px;
}

.yp-footer__socials {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}

.yp-footer__social-menu { gap: 12px; }

.yp-footer__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--yp-text-faint);
	font-family: "Manrope", Arial, sans-serif;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.45px;
	line-height: 13.5px;
	text-decoration: none;
}

.yp-footer__socials a:hover,
.yp-footer__socials a:focus,
.yp-footer__nav a:hover,
.yp-footer__nav a:focus,
.yp-footer__bottom a:hover,
.yp-footer__bottom a:focus {
	color: var(--color-yellow);
	text-decoration: none;
}

.yp-footer__contact {
	margin-top: 32px;
}

.yp-footer h2 {
	margin: 0;
	color: var(--yp-text-faint);
	font-family: "Manrope", Arial, sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 2px;
	line-height: 15px;
	text-transform: uppercase;
}

.yp-footer__contact h2 {
	color: rgba(255, 255, 255, 0.3);
	letter-spacing: 1.8px;
}

.yp-footer__contact p {
	margin: 8px 0 0;
	color: rgba(255, 255, 255, 0.3);
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
}

.yp-footer__contact p:first-of-type {
	color: var(--yp-text-faint);
}

.yp-footer__contact a { color: inherit; text-decoration: none; }
.yp-footer__contact a:hover,
.yp-footer__contact a:focus { color: var(--color-yellow); }

.yp-footer__nav ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.yp-footer__nav a {
	color: var(--yp-text-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	text-decoration: none;
	white-space: nowrap;
}

.yp-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 32px;
}

.yp-footer__bottom p,
.yp-footer__bottom a {
	margin: 0;
	color: rgba(255, 255, 255, 0.25);
	font-family: "Manrope", Arial, sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 1.4px;
	line-height: 15px;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.yp-footer__bottom nav {
	display: flex;
	gap: 24px;
}

.yp-footer__legal-menu { gap: 24px; }

@media (max-width: 1360px) {
	.yp-navbar, .yp-navbar__container { height: 72px; }
	.yp-navbar__toggle { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #fff; cursor: pointer; }
	.yp-navbar__toggle:hover, .yp-navbar__toggle:focus-visible { border-color: var(--color-yellow); color: var(--color-yellow); }
	.yp-navbar__toggle-icon { display: flex; flex-direction: column; justify-content: space-between; width: 20px; height: 16px; }
	.yp-navbar__toggle-icon span { display: block; width: 100%; height: 2px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
	.yp-navbar[data-menu-open="true"] .yp-navbar__toggle-icon span:first-child { transform: translateY(7px) rotate(45deg); }
	.yp-navbar[data-menu-open="true"] .yp-navbar__toggle-icon span:nth-child(2) { opacity: 0; }
	.yp-navbar[data-menu-open="true"] .yp-navbar__toggle-icon span:last-child { transform: translateY(-7px) rotate(-45deg); }
	.yp-navbar__panel { display: none; position: absolute; top: 100%; left: 0; right: 0; width: 100%; max-height: calc(100dvh - 72px); margin: 0; padding: 16px 24px 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); background: var(--color-dark); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.25); overflow-y: auto; }
	.yp-navbar[data-menu-open="true"] .yp-navbar__panel { display: block; }
	.yp-navbar__nav { display: block; width: 100%; margin: 0; }
	.yp-navbar__menu { display: block; }
	.yp-navbar__menu > li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
	.yp-navbar__menu a { display: block; padding: 13px 0; color: #fff; font-size: 13px; line-height: 20px; white-space: normal; }
	.yp-navbar__panel .yp-navbar__menu .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 8px 16px; background: transparent; }
	.yp-navbar__menu .sub-menu a { padding: 8px 0; color: var(--yp-text-soft); font-size: 12px; }
	.yp-navbar__actions { justify-content: space-between; gap: 16px; margin: 20px 0 0; }
}

@media (max-width: 900px) {
	.yp-navbar__container,
	.yp-footer__container {
		padding-right: 24px;
		padding-left: 24px;
	}

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

	.yp-footer__brand {
		grid-column: span 2;
	}
}

@media (max-width: 640px) {
	.yp-contact-form__grid {
		grid-template-columns: 1fr;
	}

	.yp-contact-form__field--full {
		grid-column: auto;
	}

	.yp-footer {
		padding-top: 56px;
	}

	.yp-footer__grid {
		grid-template-columns: 1fr;
		padding-bottom: 48px;
	}

	.yp-footer__brand {
		grid-column: auto;
	}

	.yp-footer__brand > p {
		width: min(100%, 260px);
	}

	.yp-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.yp-footer__bottom p,
	.yp-footer__bottom a {
		white-space: normal;
	}
}
