/* Projects Page hero — styles for template-projects.php. Enqueued conditionally via theme_projects_hero_assets() in functions.php. */

:root {
	--ph-color-navy: #192456;
	--ph-color-cta-blue: #0047bb;
	--ph-color-light-gray: #eaeaea;
	--ph-color-white: #ffffff;
	--ph-overlay-hero: linear-gradient(90deg, rgba(25, 36, 86, 0.89) 30%, rgba(25, 36, 86, 0.32) 100%);
	--ph-font-heading: 'Montserrat', sans-serif;
	--ph-font-button: 'Montserrat', sans-serif;
	--ph-font-body: 'Open Sans', sans-serif;
	--ph-fs-body: 16px;
	--ph-heading-size: clamp(24px, 3.5vw, 34px);
	--ph-container-max: 1223px;
}

/* Full-bleed out of .pd_left_right gutters */
.project-template-page .projects-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	padding: 72px 16px 56px;
	overflow: hidden;
	color: var(--ph-color-white);
	background-color: var(--ph-color-navy);
	width: calc(100% + 24px);
	margin-left: -12px;
	margin-right: -12px;
	box-sizing: border-box;
}

.projects-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.projects-hero__overlay {
	position: absolute;
	inset: 0;
	background: var(--ph-overlay-hero);
	z-index: 1;
	pointer-events: none;
}

.projects-hero__container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--ph-container-max);
	margin: 0 auto;
}

.projects-hero__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	max-width: 771px;
	margin: 0 auto;
	text-align: center;
}

.projects-hero__eyebrow {
	margin: 0;
	font-family: var(--ph-font-heading);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ph-color-white);
	line-height: 1.3;
}

.projects-hero__heading {
	margin: 0;
	width: 100%;
	text-align: center;
	font-family: var(--ph-font-heading);
	font-weight: 700;
	font-size: var(--ph-heading-size);
	line-height: normal;
	text-transform: uppercase;
	color: var(--ph-color-white);
}

.projects-hero__intro {
	margin: 0;
}

.projects-hero__intro p {
	margin: 0 0 12px;
	font-size: var(--ph-fs-body);
	color: var(--ph-color-white);
	font-family: Montserrat, sans-serif;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
}

.projects-hero__intro :last-child {
	margin-bottom: 0;
}

.projects-hero__intro a {
	color: var(--ph-color-white);
	text-decoration: underline;
}

.projects-hero__cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}

.projects-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 18px;
	min-width: 140px;
	font-family: var(--ph-font-button);
	font-weight: 700;
	font-size: var(--ph-fs-body);
	line-height: 1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	border: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.projects-hero__btn,
.projects-hero__btn:hover,
.projects-hero__btn:focus,
.projects-hero__btn:active,
.projects-hero__btn:visited {
	text-decoration: none;
}

.projects-hero__btn:focus {
	outline: 2px solid var(--ph-color-white);
	outline-offset: 2px;
}

.projects-hero__btn--primary {
	background-color: var(--ph-color-cta-blue);
	color: var(--ph-color-white);
}

.projects-hero__btn--primary:hover,
.projects-hero__btn--primary:focus {
	background-color: #141b4d;
	color: var(--ph-color-white);
}

.projects-hero__btn--secondary {
	background-color: var(--ph-color-light-gray);
	color: var(--ph-color-navy);
}

.projects-hero__btn--secondary:hover,
.projects-hero__btn--secondary:focus {
	background-color: var(--ph-color-white);
	color: var(--ph-color-navy);
}

@media (min-width: 768px) {
	.project-template-page .projects-hero {
		min-height: 360px;
		padding: 88px 24px 64px;
	}

	.projects-hero__heading {
		max-width: 633px;
	}

	.projects-hero__content {
		gap: 24px;
	}
}

@media (min-width: 1200px) {
	.project-template-page .projects-hero {
		padding: 96px 32px 72px;
	}
}

@media (max-width: 767px) {
	.project-template-page.pd_left_right .projects-hero {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}
