/* ==========================================================================
   HD Custom Dev — Who We Are module
   Scoped with .hd-wwa-page (added via body_class on Our Why, About,
   Technology & Equipment, and News only). Never affects Home / Mountain West.
   ========================================================================== */

/* --- Dictionary value cards: tap/click open state (mobile + accessibility).
       Mirrors the existing global :hover behavior. --- */
.hd-wwa-page .dictionary-card.tapped .card-hover-overlay {
	opacity: 1;
	pointer-events: auto;
}
.hd-wwa-page .dictionary-card.tapped .card-front-content {
	opacity: 0;
}
.hd-wwa-page .dictionary-card {
	cursor: pointer;
}

/* Keyboard focus parity with hover */
.hd-wwa-page .dictionary-card:focus-within .card-hover-overlay {
	opacity: 1;
	pointer-events: auto;
}
.hd-wwa-page .dictionary-card:focus-within .card-front-content {
	opacity: 0;
}

/* --- Pronunciation buttons --- */
.hd-wwa-page .hd-say {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 10px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.5px;
	color: #2f3437;
	background: rgba(184, 92, 56, 0.12);
	border: 1px solid rgba(184, 92, 56, 0.45);
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	vertical-align: middle;
}
.hd-wwa-page .hd-say:hover,
.hd-wwa-page .hd-say:focus {
	background: #b85c38;
	border-color: #b85c38;
	color: #ffffff;
	outline: none;
}
.hd-wwa-page .hd-say.speaking {
	background: #2f3437;
	border-color: #2f3437;
	color: #ffffff;
}

/* Value card front subtitle */
.hd-wwa-page .card-front-content p {
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
	margin: 0;
}

/* Anchor offset so #curiosity etc. don't hide under the sticky header */
.hd-wwa-page .dictionary-card[id] {
	scroll-margin-top: 140px;
}

/* --- Reduced motion: everything just sits still on these pages --- */
@media (prefers-reduced-motion: reduce) {
	.hd-wwa-page .fusion-animated,
	.hd-wwa-page [class*="fusion-scroll-reveal"] {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
		visibility: visible !important;
	}
	.hd-wwa-page .dictionary-card,
	.hd-wwa-page .card-front-content,
	.hd-wwa-page .card-hover-overlay,
	.hd-wwa-page .hd-say {
		transition: none !important;
	}
}

/* ==========================================================================
   About Us (/about) — Our Story timeline, Friendly Faces crew grid
   Same .hd-wwa-page scoping; classes are hd-ab-* / hd-crew-* so nothing
   collides with the Mountain West timeline or global styles.
   ========================================================================== */

/* --- Our Story timeline (mirrors the approved Mountain West look) --- */
.hd-wwa-page .hd-ab-milestone {
	position: relative;
	padding-left: 70px;
	margin-bottom: 120px;
	color: #2f3437;
	transition: color 0.5s ease;
}
.hd-wwa-page .hd-ab-milestone::before {
	content: ''; position: absolute; left: 0; top: 0;
	width: 40px; height: 40px;
	border: 3px solid #2f3437;
	border-radius: 50%; background: #fff;
	z-index: 3;
	transition: background 0.5s ease, border-color 0.5s ease;
}
.hd-wwa-page .hd-ab-milestone::after {
	content: ''; position: absolute;
	left: 18.5px;
	top: 36px;
	width: 3px;
	height: calc(100% + 120px - 32px);
	background-image: linear-gradient(to bottom, #2f3437 50%, rgba(47, 52, 55, 0.15) 50%);
	background-size: 100% 200%;
	background-position: bottom;
	transition: background-position 0.8s ease-in-out;
}
.hd-wwa-page .hd-ab-milestone:last-child::after { display: none !important; }

.hd-wwa-page .hd-ab-milestone.filled { color: #2f3437; }
.hd-wwa-page .hd-ab-milestone.filled::before { background: #2f3437; border-color: #2f3437; }
.hd-wwa-page .hd-ab-milestone.filled::after { background-position: top !important; }

.hd-wwa-page .hd-ab-milestone.current,
.hd-wwa-page .hd-ab-milestone.current .hd-ab-ms-title { color: #b85c38 !important; }
.hd-wwa-page .hd-ab-milestone.current::before {
	background: #b85c38 !important;
	border-color: #b85c38 !important;
	width: 36px; height: 36px; left: -2px; top: -2px;
	animation: hd-ab-pulse 1.8s infinite;
}
.hd-wwa-page .hd-ab-milestone.current::after { background-position: top; }

@keyframes hd-ab-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(184, 92, 56, 0.4); }
	70%  { box-shadow: 0 0 0 14px rgba(184, 92, 56, 0); }
	100% { box-shadow: 0 0 0 0 rgba(184, 92, 56, 0); }
}

.hd-wwa-page .hd-ab-ms-year {
	font-family: 'Montserrat', sans-serif;
	font-size: 30px; font-weight: 700;
	display: block; line-height: 1.2;
}
.hd-wwa-page .hd-ab-ms-title {
	font-size: 20px !important;
	margin: 6px 0 10px;
}
.hd-wwa-page .hd-ab-ms-copy {
	font-size: 16px; line-height: 1.7; color: #555a5e; max-width: 560px;
}

/* --- Sticky then/now photo stack --- */
.hd-wwa-page .hd-ab-photo-stack {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}
.hd-wwa-page .hd-ab-img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.8s ease;
}
.hd-wwa-page .hd-ab-img.active { opacity: 1; }
.hd-wwa-page .hd-ab-year {
	font-family: 'Montserrat', sans-serif;
	font-size: 44px; font-weight: 700;
	color: #b85c38;
	margin-top: 16px;
	transition: opacity 0.4s ease;
}

/* --- Friendly Faces: filters --- */
.hd-wwa-page .hd-crew-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin-top: 24px;
}
.hd-wwa-page .hd-crew-filters br { display: none; } /* wpautop artifact */
.hd-wwa-page .hd-crew-filter {
	display: inline-block;
	margin: 0 6px 8px;
	padding: 8px 22px;
	font-family: 'Inter', sans-serif;
	font-size: 14px; font-weight: 600;
	letter-spacing: 0.5px;
	color: #2f3437;
	background: transparent;
	border: 2px solid rgba(47, 52, 55, 0.25);
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.25s ease-in-out;
}
.hd-wwa-page .hd-crew-filter:hover,
.hd-wwa-page .hd-crew-filter:focus {
	border-color: #b85c38; color: #b85c38; outline: none;
}
.hd-wwa-page .hd-crew-filter.active {
	background: #b85c38; border-color: #b85c38; color: #ffffff;
}

/* --- Friendly Faces: cards --- */
.hd-wwa-page .hd-crew-card {
	text-align: center;
	cursor: pointer;
	padding-bottom: 10px;
}
.hd-wwa-page .hd-crew-photo img {
	width: 100%; max-width: 260px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
	display: block; margin: 0 auto;
	filter: grayscale(100%);
	transition: filter 0.4s ease, transform 0.4s ease;
}
.hd-wwa-page .hd-crew-card:hover .hd-crew-photo img,
.hd-wwa-page .hd-crew-card:focus-within .hd-crew-photo img,
.hd-wwa-page .hd-crew-card.tapped .hd-crew-photo img {
	filter: grayscale(0%);
	transform: scale(1.03);
}
.hd-wwa-page .hd-crew-info {
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	margin-top: 14px;
	transition: opacity 0.4s ease, max-height 0.4s ease;
}
.hd-wwa-page .hd-crew-card:hover .hd-crew-info,
.hd-wwa-page .hd-crew-card:focus-within .hd-crew-info,
.hd-wwa-page .hd-crew-card.tapped .hd-crew-info {
	opacity: 1;
	max-height: 240px;
}
.hd-wwa-page .hd-crew-info h3 {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px; font-weight: 700;
	margin: 0 0 2px;
}
.hd-wwa-page .hd-crew-role {
	font-family: 'Inter', sans-serif;
	font-size: 13px; font-weight: 600;
	letter-spacing: 1.5px; text-transform: uppercase;
	color: #b85c38;
	margin-bottom: 8px;
}
.hd-wwa-page .hd-crew-info p {
	font-size: 15px; line-height: 1.6; color: #555a5e;
	max-width: 280px; margin: 0 auto;
}
.hd-wwa-page .hd-crew-hidden { display: none !important; }

/* --- Mobile --- */
@media (max-width: 768px) {
	.hd-wwa-page .hd-ab-milestone { padding-left: 54px; margin-bottom: 50px; }
	.hd-wwa-page .hd-ab-milestone::after { display: none; }
	.hd-wwa-page .hd-crew-info { /* always show details on phones */
		opacity: 1; max-height: none;
	}
	.hd-wwa-page .hd-crew-photo img { filter: grayscale(0%); }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
	.hd-wwa-page .hd-ab-milestone,
	.hd-wwa-page .hd-ab-milestone::before,
	.hd-wwa-page .hd-ab-milestone::after,
	.hd-wwa-page .hd-ab-img,
	.hd-wwa-page .hd-ab-year,
	.hd-wwa-page .hd-crew-photo img,
	.hd-wwa-page .hd-crew-info,
	.hd-wwa-page .hd-crew-filter {
		transition: none !important;
		animation: none !important;
	}
	.hd-wwa-page .hd-ab-img { opacity: 1; position: relative; }
	.hd-wwa-page .hd-ab-img-now { display: none; }
}

/* ==========================================================================
   Technology & Equipment (/technology-equipment) — fleet grid + filters.
   Same .hd-wwa-page scoping; hd-fleet-* classes only exist on this page.
   ========================================================================== */

.hd-wwa-page .hd-fleet-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin-top: 24px;
}
.hd-wwa-page .hd-fleet-filters br { display: none; } /* wpautop artifact */
.hd-wwa-page .hd-fleet-filter {
	display: inline-block;
	margin: 0 6px 8px;
	padding: 8px 22px;
	font-family: 'Inter', sans-serif;
	font-size: 14px; font-weight: 600;
	letter-spacing: 0.5px;
	color: #2f3437;
	background: transparent;
	border: 2px solid rgba(47, 52, 55, 0.25);
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.25s ease-in-out;
}
.hd-wwa-page .hd-fleet-filter:hover,
.hd-wwa-page .hd-fleet-filter:focus {
	border-color: #b85c38; color: #b85c38; outline: none;
}
.hd-wwa-page .hd-fleet-filter.active {
	background: #b85c38; border-color: #b85c38; color: #ffffff;
}

.hd-wwa-page .hd-fleet-card {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(47, 52, 55, 0.08);
}
.hd-wwa-page .hd-fleet-card > p {
	margin: 0 !important;
	padding: 0;
	line-height: 0; /* wpautop wraps the image in a <p>; collapse it */
}
.hd-wwa-page .hd-fleet-card img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.hd-wwa-page .hd-fleet-card:hover img,
.hd-wwa-page .hd-fleet-card:focus-within img,
.hd-wwa-page .hd-fleet-card.tapped img {
	transform: scale(1.05);
}
.hd-wwa-page .hd-fleet-front {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 44px 24px 18px;
	background: linear-gradient(to top, rgba(15, 17, 21, 0.85), rgba(15, 17, 21, 0));
	pointer-events: none;
}
.hd-wwa-page .hd-fleet-front h3 {
	font-family: 'Montserrat', sans-serif;
	font-size: 22px; font-weight: 700;
	color: #ffffff;
	margin: 0;
	text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}
.hd-wwa-page .hd-fleet-front p {
	font-family: 'Inter', sans-serif;
	font-size: 14px; color: rgba(255, 255, 255, 0.85);
	margin: 4px 0 0;
}
.hd-wwa-page .hd-fleet-specs {
	position: absolute;
	inset: 0;
	padding: 28px 26px;
	background: rgba(15, 17, 21, 0.88);
	color: #ffffff;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease-in-out;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.hd-wwa-page .hd-fleet-card:hover .hd-fleet-specs,
.hd-wwa-page .hd-fleet-card:focus-within .hd-fleet-specs,
.hd-wwa-page .hd-fleet-card.tapped .hd-fleet-specs {
	opacity: 1;
	pointer-events: auto;
}
.hd-wwa-page .hd-fleet-specs h3 {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px; font-weight: 700;
	color: #ffffff;
	margin: 0 0 4px;
}
.hd-wwa-page .hd-fleet-specs .hd-fleet-type {
	font-family: 'Inter', sans-serif;
	font-size: 12px; font-weight: 600;
	letter-spacing: 1.5px; text-transform: uppercase;
	color: #b85c38;
	margin-bottom: 12px;
}
.hd-wwa-page .hd-fleet-specs ul {
	list-style: none;
	margin: 0; padding: 0;
}
.hd-wwa-page .hd-fleet-specs li {
	font-family: 'Inter', sans-serif;
	font-size: 15px; line-height: 1.5;
	padding-left: 18px;
	position: relative;
	margin-bottom: 8px;
	color: rgba(255, 255, 255, 0.92);
}
.hd-wwa-page .hd-fleet-specs li::before {
	content: '';
	position: absolute;
	left: 0; top: 8px;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #b85c38;
}
.hd-wwa-page .hd-fleet-hidden { display: none !important; }

/* Tab panels (How Technology Shows Up on Site): breathing room around
   the image and the copy below it */
.hd-wwa-page .fusion-tabs .tab-pane {
	padding: 20px 10px 10px;
}
.hd-wwa-page .fusion-tabs .tab-pane .fusion-imageframe {
	display: block;
	margin-bottom: 20px;
}

@media (max-width: 768px) {
	.hd-wwa-page .hd-fleet-specs { padding: 20px 18px; }
	.hd-wwa-page .hd-fleet-specs li { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.hd-wwa-page .hd-fleet-card img,
	.hd-wwa-page .hd-fleet-specs,
	.hd-wwa-page .hd-fleet-filter {
		transition: none !important;
	}
}
