/* ============================================================================
   WEST COAST ATHLETICS — kids-youth.css
   Page-level styles for the Kids Fitness & Youth Athletics page ONLY.
   Enqueued via the page-ID map (is_page) in functions.php. No global rules here.
   Youth pages use a slightly warmer (gold) accent on program cards per the brief.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   SECTION 01 — Youth Hero
   --------------------------------------------------------------------------- */
.ky-hero {
	position: relative;
	min-height: 56vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background:
		linear-gradient(180deg, rgba(27, 27, 27,0.74) 0%, rgba(27, 27, 27,0.9) 100%),
		radial-gradient(90% 90% at 50% 0%, rgba(242, 217, 82,0.18) 0%, transparent 55%),
		url(../Images/IMG_5220-1.webp) center / cover no-repeat,
		var(--c-black);
	border-bottom: 1px solid var(--c-crimson-dim);
}
.ky-hero__inner { max-width: 880px; margin-inline: auto; padding-block: var(--space-xl); text-align: center; }
.ky-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px;
	text-transform: uppercase; color: var(--c-crimson); margin-bottom: var(--space-sm);
}
.ky-hero__eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--c-crimson); }
.ky-hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1; margin-bottom: var(--space-sm); }
.ky-hero__body { max-width: 680px; margin: var(--space-md) auto var(--space-lg); }

/* ---------------------------------------------------------------------------
   SECTION 02 — Youth Programs (3 cards, warm gold accent)
   --------------------------------------------------------------------------- */
.ky-programs .section-head { margin-inline: auto; text-align: center; }
.ky-programs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); align-items: stretch; }
.ky-prog { display: flex; flex-direction: column; gap: var(--space-sm); }
.ky-prog__icon {
	width: 52px; height: 52px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--c-crimson-dim);
	border: 1px solid rgba(242, 217, 82,0.3);
	color: var(--c-crimson);
	font-size: 21px;
}
.ky-prog__title {
	font-family: var(--font-display);
	font-weight: 600; font-size: 19px; text-transform: uppercase;
	color: var(--c-white); letter-spacing: 0.5px;
}
.ky-prog__age {
	font-family: var(--font-mono);
	font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase;
	color: var(--c-crimson);
}
.ky-prog__desc { color: var(--c-silver); font-size: 14px; line-height: 1.6; }
.ky-prog__expect {
	font-size: 13px; color: var(--c-silver-lt); line-height: 1.6;
	border-top: 1px solid var(--c-border); padding-top: var(--space-sm); margin-top: auto;
}
.ky-prog__expect strong { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--c-crimson); margin-bottom: 4px; font-weight: 500; }
.ky-programs__note { max-width: 760px; margin: var(--space-lg) auto 0; }

/* ---------------------------------------------------------------------------
   SECTION 03 — Location Advantage (text + map)
   --------------------------------------------------------------------------- */
.ky-location { background: var(--c-charcoal); }
.ky-location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.ky-location__body p { color: var(--c-silver); }
.ky-location__details {
	font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.5px;
	color: var(--c-silver-lt); margin-top: var(--space-md); line-height: 1.9;
}
.ky-map {
	border-radius: var(--radius); overflow: hidden;
	border: 1px solid var(--c-border); min-height: 320px;
}
.ky-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }

/* ---------------------------------------------------------------------------
   SECTION 04 — What Parents Say (testimonial placeholders — no invented quotes)
   --------------------------------------------------------------------------- */
.ky-parents .section-head { margin-inline: auto; text-align: center; }
.ky-parents__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }

/* ---------------------------------------------------------------------------
   SECTION 05 — Schedule & Age Requirements (logistics)
   --------------------------------------------------------------------------- */
.ky-logi .section-head { margin-inline: auto; text-align: center; }
.ky-logi__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.ky-logi-card h3 {
	font-family: var(--font-display);
	font-weight: 600; font-size: 17px; text-transform: uppercase;
	color: var(--c-white); letter-spacing: 0.5px; margin-bottom: var(--space-sm);
}
.ky-logi-card ul { display: flex; flex-direction: column; gap: 8px; }
.ky-logi-card li { display: flex; align-items: flex-start; gap: 10px; color: var(--c-silver-lt); font-size: 14px; }
.ky-logi-card li i { color: var(--c-crimson); font-size: 13px; margin-top: 3px; }
.ky-logi-card li .ky-logi__label { color: var(--c-white); }
.ky-logi-card p { color: var(--c-silver); font-size: 14px; line-height: 1.6; }

/* ---------------------------------------------------------------------------
   SECTION 06 — Free Trial CTA (GHL embed)
   --------------------------------------------------------------------------- */
.ky-cta {
	text-align: center;
	background:
		linear-gradient(180deg, rgba(242, 217, 82,0.1) 0%, rgba(27, 27, 27,0.95) 70%),
		var(--c-black);
	border-block: 1px solid var(--c-crimson-dim);
}
.ky-cta__inner { max-width: 720px; margin-inline: auto; }
.ky-cta h2 { margin-bottom: var(--space-sm); }
.ky-cta .subline { margin-bottom: var(--space-md); }
.ky-cta__body { margin: 0 auto var(--space-md); max-width: 620px; }
.ky-cta .form-trust { text-align: center; }

/* ---------------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.ky-programs__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
	.ky-location__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
	.ky-location__map { order: -1; }
	.ky-parents__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
	.ky-logi__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   YOUTH CLASS SCHEDULE — same table style as the /schedule/ page. Self-contained
   copy (scoped to .ky-schedule) so the Schedule page and its CSS stay untouched.
   Renders on the dark .ky-schedule section → matches the Schedule page timetable.
   --------------------------------------------------------------------------- */
.ky-schedule .sched-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	margin-top: var(--space-lg);
}
.ky-schedule .sched-table {
	width: 100%;
	min-width: 1120px;
	table-layout: fixed;
	border-collapse: collapse;
	background: var(--c-charcoal) !important;
	border: 0 !important;
	margin: 0 !important;
}
.ky-schedule .sched-table__caption {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.ky-schedule .sched-table thead th {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--c-white);
	background: var(--c-steel);
	padding: 14px 12px;
	text-align: center;
	border-bottom: 2px solid var(--c-crimson);
	border-right: 1px solid var(--c-border);
}
.ky-schedule .sched-table thead th:last-child {
	border-right: 0;
}
.ky-schedule .sched-table td {
	vertical-align: top;
	border: 0;
	padding: var(--space-sm);
	border-right: 1px solid var(--c-border);
}
.ky-schedule .sched-table td:last-child {
	border-right: 0;
}
.ky-schedule .sched-table td:nth-child(even) {
	background: rgba(255, 255, 255, 0.02);
}
.ky-schedule .sched-class {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	margin-bottom: var(--space-sm);
	background: var(--c-black);
	border: 1px solid var(--c-border);
	border-left: 3px solid var(--c-crimson);
	border-radius: var(--radius-sm);
}
.ky-schedule .sched-class:last-child {
	margin-bottom: 0;
}
.ky-schedule .sched-none {
	display: block;
	text-align: center;
	color: var(--c-silver);
	font-size: 20px;
	line-height: 1;
	padding: var(--space-md) 0;
}
.ky-schedule .sched-class__time {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1px;
	color: var(--c-crimson);
}
.ky-schedule .sched-class__name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--c-white);
}
.ky-schedule .sched-class__type {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--c-crimson-lt);
}
.ky-schedule .sched-class__level {
	align-self: flex-start;
	margin-top: 4px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--c-crimson);
	background: var(--c-crimson-dim);
	border: 1px solid rgba(242, 217, 82, 0.3);
	border-radius: var(--radius-sm);
	padding: 3px 7px;
}
.ky-schedule .sched-levels-note {
	margin-top: var(--space-md);
	text-align: center;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--c-crimson);
}

/* ---------------------------------------------------------------------------
   CLASS BOOKING POPUP - same as the Schedule page (opens on a youth-class click).
   --------------------------------------------------------------------------- */
.ky-schedule .sched-class {
	cursor: pointer;
}
.sched-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-md);
}
.sched-modal[hidden] {
	display: none;
}
.sched-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
}
.sched-modal__box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 800px;
	max-height: 92vh;
	overflow-y: auto;
	background: var(--c-charcoal);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: var(--space-lg);
}
.sched-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--c-steel);
	color: var(--c-white);
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background var(--ease), color var(--ease);
}
.sched-modal__close:hover,
.sched-modal__close:focus {
	background: var(--c-crimson);
	color: var(--c-on-accent);
}
.sched-modal__title {
	font-size: clamp(22px, 3vw, 28px);
	margin-bottom: 20px;
	padding-right: 40px;
}
.sched-modal__form iframe {
	display: block;
	width: 100%;
}