/**
 * TAV Houston Volleyball - Roadmap Section
 * Athlete pathway roadmap with pin stops and Bootstrap 5 modals.
 */

/* ==========================================================================
   Section
   ========================================================================== */

.roadmap-section {
	background: linear-gradient(
		to bottom,
		var(--roadmap-bg-top, #EEF3F9),
		var(--roadmap-bg-bottom, #DCE5F0)
	);
	padding: 80px 0 0;
	overflow: hidden;
}

/* ==========================================================================
   Section Header
   ========================================================================== */

.roadmap-header {
	position: absolute;
	top: 0;
	left: 10%;
	z-index: 3;
	text-align: left;
	padding: 0;
}

.roadmap-title {
	font-size: clamp(1.75rem, 4vw, 3rem);
	color: var(--tav-primary, #0045af);
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-weight: 800;
}

.roadmap-subtitle {
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	color: #4a5568;
	max-width: 400px;
	margin-left: auto;
    margin-right: auto;
	line-height: 1.5;
}
@media (max-width: 1558px) {
.roadmap-title {
		font-size: clamp(1.75rem, 4vw, 2rem);
		color: var(--tav-primary, #0045af);
		margin-bottom: 0.5rem;
		text-transform: uppercase;
		letter-spacing: 0.02em;
		font-weight: 800;
	}
	.roadmap-header {
	position: absolute;
	top: -10%;
	left: 15px;
	z-index: 3;
	text-align: left;
	padding: 0;
}

}
@media (max-width: 767.98px) {
	.roadmap-header {
		position: relative;
		top: auto;
		right: auto;
		left: auto;
		text-align: center;
		margin-bottom: 2rem;
		padding: 0 1rem;
	}
	.roadmap-title {
		font-size: clamp(1.75rem, 4vw, 2rem);
		color: var(--tav-primary, #0045af);
		margin-bottom: 0.5rem;
		text-transform: uppercase;
		letter-spacing: 0.02em;
		font-weight: 800;
	}
	.roadmap-subtitle {
		margin: 0 auto;
		max-width: 700px;
	}
}

/* ==========================================================================
   Container and Road
   ========================================================================== */

.roadmap-container {
	position: relative;
	max-width: 1920px;
	margin: 0 auto;
}

.roadmap-road-wrapper {
	display: block;
	width: 100%;
	line-height: 0;
}

.roadmap-road {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================================================
   Pins (desktop)
   ========================================================================== */

.roadmap-pin {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 0;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: 2;
	transform: translate(-50%, -100%);
	transition: transform 0.2s ease;
}

.roadmap-pin:hover {
	transform: translate(-50%, -100%) scale(1.05);
}

.roadmap-pin:focus-visible {
	outline: 2px solid var(--tav-primary, #0045af);
	outline-offset: 4px;
	border-radius: 4px;
}

.roadmap-pin__icon {
	width: 80px;
	height: auto;
	flex-shrink: 0;
	pointer-events: none;
}

/* Pin label (title + subtitle) */
.roadmap-pin__label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	white-space: nowrap;
	pointer-events: none;
}

.roadmap-pin__title {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #0a1e3d;
	line-height: 1.2;
}

.roadmap-pin__subtitle {
	font-size: 0.72rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: #4a5568;
	line-height: 1.3;
}

/* ---------- Label positions ---------- */

/* Above: label on top, icon below (default column) */
.roadmap-pin--label-above {
	flex-direction: column;
	align-items: center;
	text-align: center;
	transform: translate(-50%, -100%);
}

.roadmap-pin--label-above .roadmap-pin__label {
	order: -1;
	margin-bottom: 4px;
	align-items: center;
}

/* Below: icon on top, label underneath */
.roadmap-pin--label-below {
	flex-direction: column;
	align-items: center;
	text-align: center;
	transform: translate(-50%, -50%);
}

.roadmap-pin--label-below .roadmap-pin__label {
	order: 1;
	margin-top: 4px;
	align-items: center;
}

.roadmap-pin--label-below:hover {
	transform: translate(-50%, -50%) scale(1.05);
}

/* Left: label to the left, icon to the right */
.roadmap-pin--label-left {
	flex-direction: row-reverse;
	text-align: right;
	transform: translate(-50%, -100%);
}

.roadmap-pin--label-left .roadmap-pin__label {
	margin-right: 8px;
	align-items: flex-end;
}

/* Right: icon to the left, label to the right */
.roadmap-pin--label-right {
	flex-direction: row;
	text-align: left;
	transform: translate(-50%, -100%);
}

.roadmap-pin--label-right .roadmap-pin__label {
	margin-left: 8px;
	align-items: flex-start;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.roadmap-modal {
	border: none;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.roadmap-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
}

.roadmap-modal__body {
	position: relative;
	min-height: 380px;
	display: flex;
	align-items: stretch;
}

.roadmap-modal__image-wrap {
	position: absolute;
	bottom: 0;
	right: -30px;
	width: 100%;
	height: 93%;
	z-index: 0;
	overflow: hidden;
}

.roadmap-modal__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: bottom right;
	display: block;
}

.roadmap-modal__text {
	position: relative;
	z-index: 1;
	width: 55%;
	padding: 40px 36px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: linear-gradient(
		to right,
		rgba(255, 255, 255, 0.97) 0%,
		rgba(255, 255, 255, 0.92) 60%,
		rgba(255, 255, 255, 0.6) 85%,
		rgba(255, 255, 255, 0) 100%
	);
}

.roadmap-modal__heading {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--tav-primary, #0045af);
	text-transform: uppercase;
	margin-bottom: 18px;
	line-height: 1.2;
	letter-spacing: 0.5px;
}

.roadmap-modal__content {
	font-size: 0.92rem;
	color: #374151;
	line-height: 1.7;
	margin-bottom: 28px;
}

.roadmap-modal__content p {
	margin-bottom: 0.75em;
}

.roadmap-modal__content p:last-child {
	margin-bottom: 0;
}

.roadmap-modal__cta {
	display: inline-block;
	background: var(--tav-primary, #0045af);
	border: 2px solid var(--tav-primary, #0045af);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.82rem;
	padding: 12px 28px;
	border-radius: 8px;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	align-self: flex-start;
	text-decoration: none;
}

.roadmap-modal__cta:hover {
	background: #003a94;
	border-color: #003a94;
	color: #ffffff;
}

/* ==========================================================================
   Mobile Cards (< 768px)
   ========================================================================== */

.roadmap-mobile-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0 16px;
}

.roadmap-mobile-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px;
	cursor: pointer;
	transition: box-shadow 0.2s ease;
	text-align: left;
	width: 100%;
}

.roadmap-mobile-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.roadmap-mobile-card:focus-visible {
	outline: 2px solid var(--tav-primary, #0045af);
	outline-offset: 2px;
}

.roadmap-mobile-card__icon {
	width: 48px;
	height: auto;
	flex-shrink: 0;
}

.roadmap-mobile-card__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.roadmap-mobile-card__title {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #0a1e3d;
	line-height: 1.3;
}

.roadmap-mobile-card__subtitle {
	font-size: 0.78rem;
	font-weight: 400;
	color: #4a5568;
	line-height: 1.3;
}

.roadmap-mobile-card__arrow {
	flex-shrink: 0;
	color: var(--tav-secondary, #e71f95);
	font-size: 1rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767.98px) {
	.roadmap-road-wrapper,
	.roadmap-pin {
		display: none;
	}

	.roadmap-section {
		padding: 40px 0;
	}

	.roadmap-modal__body {
		min-height: 280px;
	}

	.roadmap-modal__text {
		width: 100%;
		padding: 28px 20px;
		background: linear-gradient(
			to bottom,
			rgba(255, 255, 255, 0.97) 0%,
			rgba(255, 255, 255, 0.92) 70%,
			rgba(255, 255, 255, 0.7) 100%
		);
	}

	.roadmap-modal__heading {
		font-size: 1.35rem;
	}
}

@media (min-width: 768px) {
	.roadmap-mobile-cards {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1023.98px) {
	.roadmap-pin__icon {
		width: 56px;
	}

	.roadmap-pin__title {
		font-size: 0.72rem;
	}

	.roadmap-pin__subtitle {
		font-size: 0.62rem;
	}
}

@media (min-width: 1024px) and (max-width: 1439.98px) {
	.roadmap-pin__icon {
		width: 68px;
	}

	.roadmap-pin__title {
		font-size: 0.78rem;
	}

	.roadmap-pin__subtitle {
		font-size: 0.68rem;
	}
}

@media (min-width: 1440px) {
	.roadmap-pin__icon {
		width: 80px;
	}
}
