/*
 * JYC Prompt B responsive layer.
 *
 * Elementor classes are listed first. The Genesis selectors map the same rules
 * to the audited Altitude Pro widget areas. No top-level section uses CSS order;
 * Navigator/widget order remains the accessibility and keyboard order.
 */

.jyc-b-hero-section,
body.home #front-page-1 {
	min-height: 0 !important;
}

/*
 * Keep the desktop navigation in normal document flow. The live menu can wrap
 * to two rows, so a fixed header otherwise hides the hero heading at page top.
 * Sticky preserves the familiar persistent navigation without obscuring H1.
 */
@media (min-width: 1024px) {
	body.home .site-header {
		position: sticky !important;
		top: var(--wp-admin--admin-bar--height, 0px) !important;
	}
}

.jyc-b-hero-section .elementor-container,
.jyc-b-hero-section .e-con-inner,
body.home #front-page-1 .flexible-widgets > .wrap {
	align-items: center;
}

.jyc-prompt-b-hero .jyc-actions,
.jyc-b-hero-actions {
	display: grid;
	gap: 0.55rem;
}

.jyc-prompt-b-hero .jyc-actions .button,
.jyc-b-hero-actions .elementor-button-wrapper,
.jyc-b-hero-actions .elementor-button {
	width: 100%;
}

.jyc-b-hero-media img {
	display: block;
	width: 100%;
	height: min(34vw, 280px);
	object-fit: cover;
}

.jyc-d-event-card,
.jyc-b-event-card {
	display: block;
	width: 100%;
}

.jyc-d-event-card h3,
.jyc-b-event-card .elementor-heading-title {
	margin: 0 0 0.5rem !important;
}

.jyc-d-event-datetime,
.jyc-b-event-datetime {
	margin: 0 0 0.9rem !important;
}

.jyc-d-event-facts,
.jyc-b-event-facts {
	display: grid;
	gap: 0;
	margin: 0 0 1rem;
}

.jyc-d-event-facts > div,
.jyc-b-event-facts > div {
	display: grid;
	grid-template-columns: minmax(5.25rem, 0.34fr) minmax(0, 1fr);
	gap: 0.75rem;
	padding: 0.65rem 0;
}

.jyc-d-event-description,
.jyc-b-event-vibe {
	margin: 0 0 1rem !important;
}

.jyc-d-event-actions,
.jyc-b-event-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.6rem;
	width: 100%;
}

.jyc-d-event-actions .jyc-d-button,
.jyc-b-event-actions .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin: 0 !important;
	text-align: center;
}

.jyc-d-event-tertiary,
.jyc-b-event-tertiary {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 0.55rem;
	margin: 0.45rem 0 0;
	font-size: 0.92rem;
}

.jyc-d-event-tertiary a,
.jyc-b-event-tertiary a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	text-underline-offset: 0.2em;
}

.jyc-cadence-promise {
	padding: clamp(34px, 5vw, 58px) 18px;
	background: #fff8f2;
	border-block: 1px solid #ead8ca;
}

.jyc-cadence-promise > .wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px 32px;
	align-items: center;
	width: min(1100px, 100%);
	margin: 0 auto;
}

.jyc-cadence-eyebrow {
	grid-column: 1;
	margin: 0;
	color: #a93619;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	line-height: 1.3;
	text-transform: uppercase;
}

.jyc-cadence-promise h2 {
	grid-column: 1;
	margin: 0;
	color: #0b2942;
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.05;
}

.jyc-cadence-promise p:not(.jyc-cadence-eyebrow) {
	grid-column: 1;
	max-width: 760px;
	margin: 0;
	color: #173247;
	font-size: 1.05rem;
	line-height: 1.55;
}

.jyc-cadence-actions {
	grid-column: 2;
	grid-row: 1 / span 3;
	display: grid;
	gap: 10px;
	justify-items: stretch;
	min-width: 230px;
	text-align: center;
}

.jyc-cadence-actions .button {
	margin: 0;
}

.jyc-cadence-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	font-weight: 700;
	text-underline-offset: 0.2em;
}

/* The install card is always an inline region, never a viewport overlay. */
[data-jyc-g3-install] {
	display: none !important;
}

[data-jyc-g3-install].jyc-prompt-b-install-ready:not([hidden]) {
	display: block !important;
}

.jyc-g3-install {
	padding: 24px;
	color: #17243c;
	background: #fff;
	border: 1px solid #dfe5eb;
	border-radius: 12px;
	box-shadow: 0 14px 35px rgba(23, 36, 60, 0.11);
}

.jyc-g3-install h2 {
	margin: 0 0 0.5rem;
}

.jyc-g3-install .jyc-g3-kicker {
	margin: 0 0 0.4rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.jyc-g3-install-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.jyc-g3-install-actions button {
	min-height: 44px;
	padding: 0.65rem 1rem;
}

.jyc-g3-install.is-inline,
.jyc-g3-install.is-floating {
	position: relative !important;
	inset: auto !important;
	width: min(100% - 2rem, 48rem) !important;
	max-width: 48rem !important;
	max-height: none !important;
	margin: 1.5rem auto !important;
	transform: none !important;
	z-index: auto !important;
}

@media (max-width: 767px) {
	.jyc-cadence-promise {
		padding: 30px 18px;
	}

	.jyc-cadence-promise > .wrap {
		grid-template-columns: minmax(0, 1fr);
		gap: 9px;
	}

	.jyc-cadence-promise h2,
	.jyc-cadence-eyebrow,
	.jyc-cadence-promise p:not(.jyc-cadence-eyebrow),
	.jyc-cadence-actions {
		grid-column: 1;
		grid-row: auto;
	}

	.jyc-cadence-promise p:not(.jyc-cadence-eyebrow) {
		font-size: 0.97rem;
		line-height: 1.48;
	}

	.jyc-cadence-actions {
		min-width: 0;
		margin-top: 8px;
	}

	.jyc-b-hero-section,
	body.home #front-page-1 {
		min-height: 0 !important;
	}

	.jyc-b-hero-section .elementor-container,
	.jyc-b-hero-section .e-con-inner,
	body.home #front-page-1 .flexible-widgets > .wrap {
		padding: 14px 18px 16px !important;
	}

	body.home #front-page-1 .jyc-prompt-b-hero {
		padding: 0 !important;
	}

	body.home #front-page-1 .widget {
		margin-bottom: 0 !important;
	}

	.jyc-prompt-b-hero .jyc-eyebrow,
	.jyc-b-hero-eyebrow {
		margin: 0 0 7px !important;
		font-size: 10px !important;
		line-height: 1.3 !important;
	}

	.jyc-prompt-b-hero h1,
	.jyc-b-hero-section h1.elementor-heading-title {
		margin: 0 0 8px !important;
		font-size: clamp(2.1rem, 9.2vw, 2.35rem) !important;
		line-height: 1.02 !important;
		letter-spacing: -0.03em;
	}

	.jyc-prompt-b-hero .jyc-brand-promise,
	.jyc-b-hero-subhead {
		margin: 0 0 10px !important;
		font-size: 14.5px !important;
		line-height: 1.36 !important;
	}

	.jyc-prompt-b-hero .jyc-actions,
	.jyc-b-hero-actions {
		gap: 6px !important;
		margin: 0 0 7px !important;
	}

	.jyc-prompt-b-hero .jyc-actions .button,
	.jyc-b-hero-actions .elementor-button {
		min-height: 43px !important;
		padding: 10px 14px !important;
		font-size: 0.88rem !important;
		line-height: 1.2 !important;
	}

	.jyc-prompt-b-hero .jyc-trust-strip,
	.jyc-b-hero-trust {
		margin: 0 !important;
		font-size: 11.5px !important;
		line-height: 1.32 !important;
	}

	.jyc-b-hero-media img {
		height: 140px !important;
		max-height: 140px !important;
	}

	.jyc-d-event-card,
	.jyc-b-event-card {
		padding: 18px !important;
	}

	.jyc-d-event-card h3,
	.jyc-b-event-card .elementor-heading-title {
		margin-bottom: 7px !important;
		line-height: 1.08 !important;
	}

	.jyc-d-event-datetime,
	.jyc-b-event-datetime {
		margin-top: 0 !important;
		margin-bottom: 12px !important;
	}

	.jyc-d-event-facts > div,
	.jyc-b-event-facts > div {
		grid-template-columns: 5.15rem minmax(0, 1fr);
		padding: 0.55rem 0;
	}

	.jyc-g3-install.is-inline,
	.jyc-g3-install.is-floating {
		width: calc(100% - 24px) !important;
		margin: 18px auto !important;
		padding: 18px !important;
	}

	.jyc-g3-install-actions {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 8px !important;
	}
}
