/**
 * TAV Houston Volleyball - Flexible Page Builder Styles
 * New components used by page-flex.php / template-parts/flex-render.php.
 * Shared components (hero, stats, cta, quote, feature/value/team cards,
 * timeline, checklist) are inherited from inner-pages.css.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   HERO ADD-ONS
   ═══════════════════════════════════════════════════════════════════════════ */

.tav-page-hero--lg {
	min-height: 560px;
}

.tav-eyebrow--light {
	color: rgba(255, 255, 255, 0.85);
}

.tav-page-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.tav-cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   IMAGE PLACEHOLDER (self-contained, never loads an external image)
   ═══════════════════════════════════════════════════════════════════════════ */

.tav-ph {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, rgba(31, 25, 139, 0.10), rgba(231, 31, 149, 0.10));
	color: var(--tav-primary);
	border: 1px dashed rgba(31, 25, 139, 0.25);
	overflow: hidden;
}

.tav-ph--wide { aspect-ratio: 16 / 9; }
.tav-ph--tall { aspect-ratio: 3 / 4; }

.tav-ph.tav-rounded-image { border-radius: 16px; }

.tav-ph__icon {
	width: 46px;
	height: 46px;
	opacity: 0.5;
}

.tav-ph__label {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	opacity: 0.7;
	max-width: 80%;
	text-align: center;
	line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MEDIA FRAME (Text + Image)
   ═══════════════════════════════════════════════════════════════════════════ */

.tav-media-frame {
	position: relative;
}

.tav-media-frame > img,
.tav-media-frame > .tav-ph {
	position: relative;
	z-index: 1;
}

.tav-media-frame__accent {
	position: absolute;
	bottom: -12px;
	right: -12px;
	width: 120px;
	height: 120px;
	background: var(--tav-primary);
	opacity: 0.1;
	border-radius: 16px;
	z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STEPS / PROCESS
   ═══════════════════════════════════════════════════════════════════════════ */

.tav-steps {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

.tav-step {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	background: #ffffff;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	padding: 24px 26px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tav-step:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}

.tav-step__num {
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--tav-primary);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1.1rem;
}

.tav-step__title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #111827;
	margin-bottom: 6px;
}

.tav-step__desc {
	font-size: 0.95rem;
	color: #6b7280;
	line-height: 1.6;
	margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ / ACCORDION (native <details> — no JS required)
   ═══════════════════════════════════════════════════════════════════════════ */

.tav-faq {
	max-width: 820px;
}

.tav-faq__item {
	border: 1px solid #e9eaee;
	border-radius: 14px;
	margin-bottom: 14px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	overflow: hidden;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.tav-faq__item:hover {
	box-shadow: 0 6px 18px rgba(16, 24, 40, 0.07);
}

.tav-faq__item[open] {
	border-color: var(--tav-primary);
	box-shadow: 0 10px 28px rgba(28, 21, 196, 0.10);
}

.tav-faq__q {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px;
	font-weight: 700;
	font-size: 1rem;
	color: #111827;
	line-height: 1.4;
}

.tav-faq__q::-webkit-details-marker { display: none; }

.tav-faq__item[open] .tav-faq__q {
	color: var(--tav-primary);
}

.tav-faq__icon {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: #f3f4f6;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 1.05rem;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23374151'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.tav-faq__item[open] .tav-faq__icon {
	transform: rotate(180deg);
	background-color: var(--tav-primary);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.tav-faq__a {
	padding: 0 22px 20px;
	font-size: 0.95rem;
	color: #4b5563;
	line-height: 1.75;
}

.tav-faq__a > :last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════════════════════ */

.tav-gallery__item {
	margin: 0;
}

.tav-gallery__img {
	width: 100%;
	border-radius: 14px;
	display: block;
}

img.tav-gallery__img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	height: auto;
}

.tav-ph.tav-gallery__img { border-radius: 14px; }

.tav-gallery__caption {
	margin-top: 10px;
	font-size: 0.85rem;
	color: #6b7280;
	text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESOURCE CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

.tav-resource-card {
	background: #ffffff;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	padding: 30px 28px;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tav-resource-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.tav-resource-card__icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: rgba(28, 21, 196, 0.08);
	color: var(--tav-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	margin-bottom: 16px;
}

.tav-resource-card__title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #111827;
	margin-bottom: 8px;
}

.tav-resource-card__desc {
	font-size: 0.92rem;
	color: #6b7280;
	line-height: 1.6;
	margin-bottom: 14px;
}

.tav-resource-card__link {
	margin-top: auto;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--tav-primary);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tav-resource-card__link:hover {
	color: var(--tav-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RICH TEXT
   ═══════════════════════════════════════════════════════════════════════════ */

.tav-richtext--narrow {
	max-width: 760px;
}

.tav-prose ul,
.tav-prose ol {
	padding-left: 1.25em;
	margin-bottom: 1em;
}

.tav-prose li {
	margin-bottom: 0.4em;
}

.tav-prose h3 {
	font-size: 1.25rem;
	font-weight: 700;
	color: #111827;
	margin: 1.2em 0 0.5em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION BACKGROUNDS (white / light / dark / brand)
   ═══════════════════════════════════════════════════════════════════════════ */

.tav-section--light {
	background: #f9fafb;
}

.tav-section--dark {
	background: #0a0a2e;
}

.tav-section--brand {
	background: linear-gradient(135deg, var(--tav-primary) 0%, var(--tav-secondary) 100%);
}

.tav-section--dark .tav-section-heading,
.tav-section--brand .tav-section-heading {
	color: #ffffff;
}

.tav-section--dark .tav-section-intro,
.tav-section--brand .tav-section-intro {
	color: rgba(255, 255, 255, 0.82);
}

.tav-section--dark .tav-eyebrow,
.tav-section--brand .tav-eyebrow {
	color: rgba(255, 255, 255, 0.9);
}

.tav-section--dark .tav-prose,
.tav-section--brand .tav-prose {
	color: rgba(255, 255, 255, 0.85);
}

.tav-section--dark .tav-prose h1,
.tav-section--dark .tav-prose h2,
.tav-section--dark .tav-prose h3,
.tav-section--brand .tav-prose h1,
.tav-section--brand .tav-prose h2,
.tav-section--brand .tav-prose h3 {
	color: #ffffff;
}

/* Cards on DARK sections become translucent */
.tav-section--dark .tav-value-card,
.tav-section--dark .tav-feature-card,
.tav-section--dark .tav-team-card,
.tav-section--dark .tav-resource-card,
.tav-section--dark .tav-step,
.tav-section--dark .tav-faq__item {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.14);
	box-shadow: none;
}

.tav-section--dark .tav-value-card__title,
.tav-section--dark .tav-feature-card__title,
.tav-section--dark .tav-team-card__age,
.tav-section--dark .tav-resource-card__title,
.tav-section--dark .tav-step__title,
.tav-section--dark .tav-faq__q {
	color: #ffffff;
}

.tav-section--dark .tav-value-card__desc,
.tav-section--dark .tav-feature-card__desc,
.tav-section--dark .tav-team-card__desc,
.tav-section--dark .tav-resource-card__desc,
.tav-section--dark .tav-step__desc,
.tav-section--dark .tav-faq__a,
.tav-section--dark .tav-gallery__caption {
	color: rgba(255, 255, 255, 0.7);
}

.tav-section--dark .tav-feature-card__number {
	color: var(--tav-secondary);
}

.tav-section--dark .tav-value-card__icon,
.tav-section--dark .tav-resource-card__icon {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.tav-section--dark .tav-step__num {
	background: var(--tav-secondary);
}

.tav-section--dark .tav-faq__item[open] {
	border-color: var(--tav-secondary);
}

.tav-section--dark .tav-faq__icon {
	background-color: rgba(255, 255, 255, 0.14);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.tav-section--dark .tav-resource-card__link {
	color: #ffffff;
}

.tav-section--dark .tav-resource-card__link:hover {
	color: var(--tav-secondary);
}

/* Cards on BRAND sections stay white for contrast */
.tav-section--brand .tav-value-card,
.tav-section--brand .tav-feature-card,
.tav-section--brand .tav-team-card,
.tav-section--brand .tav-resource-card,
.tav-section--brand .tav-step {
	background: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO THEMES
   ═══════════════════════════════════════════════════════════════════════════ */

.tav-page-hero--brand .tav-page-hero__overlay {
	background: linear-gradient(135deg, rgba(31, 25, 139, 0.94) 0%, rgba(231, 31, 149, 0.85) 100%);
}

.tav-page-hero--dark {
	background-color: #0a0a2e;
}

.tav-page-hero--dark .tav-page-hero__overlay {
	background: linear-gradient(135deg, rgba(10, 10, 46, 0.96) 0%, rgba(10, 10, 46, 0.78) 100%);
}

.tav-page-hero--light {
	background-color: #eef2ff;
}

.tav-page-hero--light .tav-page-hero__overlay {
	background: linear-gradient(135deg, #eef2ff 0%, #fce7f3 100%);
}

.tav-page-hero--light .tav-page-hero__title {
	color: #0a0a2e;
}

.tav-page-hero--light .tav-page-hero__subtitle {
	color: #4b5563;
}

.tav-page-hero--center .tav-page-hero__content {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.tav-page-hero--center .tav-page-hero__actions {
	justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   QUOTE BAND VARIANTS
   ═══════════════════════════════════════════════════════════════════════════ */

.tav-quote-band--dark {
	background: #0a0a2e;
}

.tav-quote-band--brand {
	background: linear-gradient(135deg, var(--tav-primary) 0%, var(--tav-secondary) 100%);
}

.tav-quote-band--dark .tav-blockquote__text,
.tav-quote-band--brand .tav-blockquote__text {
	color: #ffffff;
}

.tav-quote-band--dark .tav-blockquote__author,
.tav-quote-band--brand .tav-blockquote__author {
	color: rgba(255, 255, 255, 0.85);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPLIT FEATURE (full-bleed band)
   ═══════════════════════════════════════════════════════════════════════════ */

.tav-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	overflow: hidden;
}

.tav-split__media {
	position: relative;
	min-height: 340px;
}

.tav-split__media > img,
.tav-split__media > .tav-ph {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: 0;
	aspect-ratio: auto;
}

.tav-split__media > img {
	object-fit: cover;
}

.tav-split__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(40px, 6vw, 80px);
}

.tav-split__body .tav-section-heading {
	margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ICON ROW
   ═══════════════════════════════════════════════════════════════════════════ */

.tav-icon-row__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.tav-icon-row__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 22px;
	background: #ffffff;
	border: 1px solid #eef0f4;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	color: #111827;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.tav-icon-row__item i {
	color: var(--tav-primary);
	font-size: 1.15rem;
}

.tav-section--dark .tav-icon-row__item {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	box-shadow: none;
}

.tav-section--dark .tav-icon-row__item i {
	color: var(--tav-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
	.tav-split {
		grid-template-columns: 1fr;
	}
	.tav-split__media {
		min-height: 260px;
		order: -1;
	}
}

@media (max-width: 575px) {
	.tav-step {
		padding: 20px;
		gap: 14px;
	}
	.tav-media-frame__accent {
		display: none;
	}
	.tav-split__body {
		padding: 36px 24px;
	}
}
