/* Braemar Lens — supplementary front-end styles */

:root {
	--bl-bg: #1b2230;
	--bl-bg-deep: #11161f;
	--bl-card: #2a3242;
	--bl-card-border: #3a4456;
	--bl-fg: #f1f1f1;
	--bl-fg-muted: #9aa6b8;
	--bl-green: #4ade80;
	--bl-green-deep: #22c07a;
	--bl-blue: #5fa8d3;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* --- Transparent header, overlaid on the hero --- */
header.wp-block-template-part {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: transparent;
}

/* Collapse the block-gap between top-level sections so their backgrounds meet
   flush — otherwise the page's base colour shows through as a strip (e.g. above
   the footer, or below the out-of-flow header). */
.wp-site-blocks > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* Sticky footer: full-height column so the content fills short pages and the
   footer sits at the bottom of the viewport rather than floating mid-screen. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.wp-site-blocks > main,
.wp-site-blocks > .bl-hero-field {
	flex: 1 0 auto;
}

/* Clear the WordPress admin bar for logged-in users (public visitors never see it). */
.admin-bar header.wp-block-template-part {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar header.wp-block-template-part {
		top: 46px;
	}
}

/* --- Header tagline next to the logo --- */
.bl-header-tagline {
	padding-left: 1rem;
	margin-left: 0.25rem;
	border-left: 1px solid var(--bl-card-border);
	line-height: 1;
}

@media (max-width: 600px) {
	.bl-header-tagline {
		display: none;
	}
}

/* --- Eyebrow / kicker text --- */
.bl-eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bl-green);
}

.bl-eyebrow.has-text-align-center {
	display: block;
}

/* --- CTA buttons --- */
.wp-block-button .wp-block-button__link {
	position: relative;
	background: linear-gradient(180deg, #5ef0a0 0%, var(--bl-green) 55%, var(--bl-green-deep) 100%);
	color: var(--bl-bg-deep);
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: 0.005em;
	padding: 0.95rem 2.1rem;
	box-shadow:
		0 1px 0 0 rgba(255, 255, 255, 0.35) inset,
		0 10px 24px -8px rgba(74, 222, 128, 0.55),
		0 2px 6px -2px rgba(0, 0, 0, 0.4);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
	will-change: transform;
}

.wp-block-button .wp-block-button__link:hover {
	color: var(--bl-bg-deep);
	transform: translateY(-2px);
	filter: brightness(1.04);
	box-shadow:
		0 1px 0 0 rgba(255, 255, 255, 0.45) inset,
		0 16px 34px -8px rgba(74, 222, 128, 0.7),
		0 3px 8px -2px rgba(0, 0, 0, 0.45);
}

.wp-block-button .wp-block-button__link:active {
	transform: translateY(0);
	box-shadow:
		0 1px 0 0 rgba(255, 255, 255, 0.25) inset,
		0 6px 16px -8px rgba(74, 222, 128, 0.5);
}

.wp-block-button .wp-block-button__link:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 3px rgba(17, 22, 31, 1),
		0 0 0 5px var(--bl-green),
		0 12px 28px -8px rgba(74, 222, 128, 0.6);
}

/* --- Video player --- */
.bl-video {
	position: relative;
	width: 100%;
	max-width: 1040px;
	margin-inline: auto;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--bl-card-border);
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
	background: var(--bl-bg-deep);
	line-height: 0;
}

.bl-video video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	background: var(--bl-bg-deep);
}

/* Subtle teal glow framing the player */
.bl-video::after {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: 16px;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(95, 168, 211, 0.12);
}

/* --- Feature cards --- */
.bl-feature {
	height: 100%;
	padding: 1.75rem;
	border-radius: 14px;
	background: var(--bl-card);
	border: 1px solid var(--bl-card-border);
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.bl-feature:hover {
	transform: translateY(-3px);
	border-color: rgba(74, 222, 128, 0.4);
}

.bl-feature .bl-feature__num {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--bl-green);
}

/* Register intro line: allow it to run wider than the form column and sit on
   one line on larger screens; it still wraps naturally on narrow viewports. */
@media (min-width: 1040px) {
	.bl-reg-sub {
		max-width: none !important;
		white-space: nowrap;
	}
}

/* --- Register form --- */
.bl-form {
	max-width: 560px;
	margin-inline: auto;
	background: var(--bl-card);
	border: 1px solid var(--bl-card-border);
	border-radius: 18px;
	padding: clamp(1.25rem, 0.9rem + 1.4vw, 2rem);
	box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}

/* wpautop injects <br> between the label and input in the shortcode output —
   strip them so spacing is controlled purely by the flex gap. */
.bl-form br {
	display: none;
}

.bl-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.7rem;
	margin-bottom: 0.5rem;
}

.bl-form__row .bl-form__field {
	margin-bottom: 0;
}

.bl-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-bottom: 0.5rem;
}

.bl-form__field label {
	margin: 0;
	line-height: 1.2;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--bl-fg-muted);
}

.bl-form__field label .bl-req {
	color: var(--bl-green);
	margin-left: 1px;
}

.bl-form input,
.bl-form select {
	box-sizing: border-box;
	margin: 0;
	width: 100%;
	padding: 0.6rem 0.9rem;
	font: inherit;
	font-size: 1rem;
	line-height: 1.3;
	color: var(--bl-fg);
	background: var(--bl-bg-deep);
	border: 1px solid var(--bl-card-border);
	border-radius: 11px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	appearance: none;
}

.bl-form input:hover,
.bl-form select:hover {
	border-color: #4a5568;
}

.bl-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa6b8' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
	cursor: pointer;
}

.bl-form input::placeholder {
	color: #6b7a90;
}

.bl-form input:focus,
.bl-form select:focus {
	outline: none;
	border-color: var(--bl-green);
	background: var(--bl-bg);
	box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

/* Submit button — matches the home-page CTA (gradient pill + glow + hover lift). */
.bl-form__submit {
	width: 100%;
	margin-top: 1rem;
	padding: 0.85rem 1.5rem;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.005em;
	color: var(--bl-bg-deep);
	background: linear-gradient(180deg, #5ef0a0 0%, var(--bl-green) 55%, var(--bl-green-deep) 100%);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	box-shadow:
		0 1px 0 0 rgba(255, 255, 255, 0.35) inset,
		0 10px 24px -8px rgba(74, 222, 128, 0.55),
		0 2px 6px -2px rgba(0, 0, 0, 0.4);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.bl-form__submit:hover {
	transform: translateY(-2px);
	filter: brightness(1.04);
	box-shadow:
		0 1px 0 0 rgba(255, 255, 255, 0.45) inset,
		0 16px 34px -8px rgba(74, 222, 128, 0.7),
		0 3px 8px -2px rgba(0, 0, 0, 0.45);
}

.bl-form__submit:active {
	transform: translateY(0);
	box-shadow:
		0 1px 0 0 rgba(255, 255, 255, 0.25) inset,
		0 6px 16px -8px rgba(74, 222, 128, 0.5);
}

.bl-form__submit:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 3px var(--bl-card),
		0 0 0 5px var(--bl-green),
		0 12px 28px -8px rgba(74, 222, 128, 0.6);
}

.bl-form__note {
	margin-top: 0.85rem;
	font-size: 0.8rem;
	color: var(--bl-fg-muted);
	text-align: center;
}

/* --- Notices --- */
.bl-notice {
	max-width: 560px;
	margin: 0 auto 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: 12px;
	font-weight: 500;
}

.bl-notice--success {
	background: rgba(74, 222, 128, 0.12);
	border: 1px solid rgba(74, 222, 128, 0.45);
	color: #c6f6d9;
}

.bl-notice--error {
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.45);
	color: #fbcaca;
}

@media (max-width: 600px) {
	.bl-form__row {
		grid-template-columns: 1fr;
	}
}
