/*
 * W/E Fast Under Construction 2.0 — front-end styles.
 *
 * Components (.we-fuc-btn, .we-fuc-form, .we-fuc-lock, .we-fuc-modal, .we-fuc-floating) are self-scoped
 * so they also work inside any theme / page-builder page. The page layout is scoped to .we-fuc-body.
 * Values come from :root custom properties printed by Render::css_vars().
 */

/* ---------- Built-in page ---------- */
body.we-fuc-body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--we-fuc-bg-color, #111);
	color: var(--we-fuc-card-text, #111);
	font-family: var(--we-fuc-font-body, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
	font-size: var(--we-fuc-b-size, 17px);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
.we-fuc-body *,
.we-fuc-body *::before,
.we-fuc-body *::after {
	box-sizing: border-box;
}

.we-fuc-bg,
.we-fuc-darken {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 100vh;
	height: 100lvh;
	pointer-events: none;
}
.we-fuc-bg {
	z-index: 0;
	overflow: hidden;
	background: var(--we-fuc-bg-color, #111);
}
.we-fuc-darken {
	z-index: 1;
	background: rgba(0, 0, 0, var(--we-fuc-darken, 0));
}

.we-fuc-bg-image,
.we-fuc-bg-poster {
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	background-position: var(--we-fuc-bg-pos, center center);
	background-size: cover;
}
.we-fuc-bg-image {
	background-image: var(--we-fuc-bg-img);
}
@media (max-width: 767px) {
	.we-fuc-bg-image {
		background-image: var(--we-fuc-bg-img-m, var(--we-fuc-bg-img));
	}
}
.we-fuc-bg-image.we-fuc-size-cover { background-size: cover; }
.we-fuc-bg-image.we-fuc-size-contain { background-size: contain; }
.we-fuc-bg-image.we-fuc-size-stretch { background-size: 100% 100%; }
.we-fuc-bg-image.we-fuc-size-original { background-size: auto; }
.we-fuc-bg-image.we-fuc-size-repeat { background-size: auto; background-repeat: repeat; }

.we-fuc-bg-poster {
	background-image: var(--we-fuc-poster);
	background-position: center center;
}

.we-fuc-bg-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: transparent;
}
.we-fuc-bg-video.we-fuc-fit-contain {
	object-fit: contain;
}

/* YouTube: iframes can't use object-fit, so size a 16:9 (or 9:16) box to cover / contain the viewport. */
.we-fuc-bg-yt {
	position: absolute;
	inset: 0;
	overflow: hidden;
	opacity: 0;
	transition: opacity .8s ease;
}
.we-fuc-bg-yt.is-playing {
	opacity: 1;
}
.we-fuc-bg-yt iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	border: 0;
	pointer-events: none;
	width: 100vw;
	height: 56.25vw;
	min-width: 177.78vh;
	min-height: 100vh;
	transform: translate(-50%, -50%) scale(var(--we-fuc-yt-zoom, 1.12));
}
.we-fuc-bg-yt.we-fuc-fit-contain iframe {
	min-width: 0;
	min-height: 0;
	max-width: 177.78vh;
	max-height: 100vh;
	transform: translate(-50%, -50%);
}
.we-fuc-bg-yt.is-vertical iframe {
	width: 100vw;
	height: 177.78vw;
	min-width: 56.25vh;
	min-height: 100vh;
	max-width: none;
	max-height: none;
}
.we-fuc-bg-yt.is-vertical.we-fuc-fit-contain iframe {
	width: 56.25vh;
	height: 100vh;
	min-width: 0;
	min-height: 0;
	max-width: 100vw;
	max-height: 177.78vw;
}

/* Stage + card (normal flow: long content scrolls instead of being clipped). */
.we-fuc-stage {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 76px 16px;
}
.we-fuc-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: var(--we-fuc-card-w, 50vw);
	max-width: calc(100vw - 32px);
	padding: clamp(20px, 3.5vw, 40px);
	background: var(--we-fuc-card-bg, rgba(255, 255, 255, .85));
	color: var(--we-fuc-card-text, #111);
	border: var(--we-fuc-card-border-w, 2px) solid var(--we-fuc-card-border, #f00);
	border-radius: var(--we-fuc-card-radius, 16px);
	box-shadow: var(--we-fuc-glow, none);
	text-align: center;
	-webkit-backdrop-filter: blur(var(--we-fuc-card-blur, 2px));
	backdrop-filter: blur(var(--we-fuc-card-blur, 2px));
	overflow-wrap: anywhere;
}
@media (max-width: 1024px) {
	.we-fuc-card {
		width: var(--we-fuc-card-w-t, 80vw);
	}
}
@media (max-width: 640px) {
	.we-fuc-stage {
		padding: 68px 8px;
	}
	.we-fuc-card {
		width: var(--we-fuc-card-w-m, 92vw);
		max-width: calc(100vw - 16px);
		gap: 14px;
	}
}

.we-fuc-logo {
	line-height: 0;
}
.we-fuc-logo-img {
	display: inline-block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: var(--we-fuc-logo-h, 80px);
}

.we-fuc-text {
	font-family: var(--we-fuc-font-body, inherit);
	font-size: var(--we-fuc-b-size, 17px);
}
.we-fuc-text > :first-child { margin-top: 0; }
.we-fuc-text > :last-child { margin-bottom: 0; }
.we-fuc-text h1,
.we-fuc-text h2,
.we-fuc-text h3,
.we-fuc-text h4 {
	margin: 0 0 .4em;
	color: inherit;
	font-family: var(--we-fuc-font-heading, inherit);
	font-weight: var(--we-fuc-font-heading-weight, 700);
	line-height: 1.15;
	letter-spacing: normal;
	text-transform: none;
}
.we-fuc-text h1 { font-size: var(--we-fuc-h-size, 40px); }
.we-fuc-text h2 { font-size: calc(var(--we-fuc-h-size, 40px) * .8); }
.we-fuc-text h3 { font-size: calc(var(--we-fuc-h-size, 40px) * .65); }
.we-fuc-text h4 { font-size: calc(var(--we-fuc-h-size, 40px) * .52); }
.we-fuc-text p,
.we-fuc-text li {
	margin: 0 0 .75em;
	font-size: var(--we-fuc-b-size, 17px);
}
.we-fuc-text a {
	color: inherit;
}
@media (max-width: 640px) {
	.we-fuc-text { font-size: var(--we-fuc-b-size-m, 16px); }
	.we-fuc-text h1 { font-size: var(--we-fuc-h-size-m, 28px); }
	.we-fuc-text h2 { font-size: calc(var(--we-fuc-h-size-m, 28px) * .82); }
	.we-fuc-text h3 { font-size: calc(var(--we-fuc-h-size-m, 28px) * .68); }
	.we-fuc-text h4 { font-size: calc(var(--we-fuc-h-size-m, 28px) * .56); }
	.we-fuc-text p,
	.we-fuc-text li { font-size: var(--we-fuc-b-size-m, 16px); }
}

/* ---------- Buttons (component) ---------- */
.we-fuc-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
a.we-fuc-btn,
button.we-fuc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	margin: 0;
	padding: 11px 22px;
	border: 0;
	border-radius: var(--we-fuc-btn-radius, 999px);
	background: var(--we-fuc-btn-bg, #111);
	color: var(--we-fuc-btn-text, #fff);
	font-family: var(--we-fuc-font-ui, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
a.we-fuc-btn:hover,
a.we-fuc-btn:focus-visible,
button.we-fuc-btn:hover,
button.we-fuc-btn:focus-visible {
	background: var(--we-fuc-btn-bg, #111);
	color: var(--we-fuc-btn-text, #fff);
	text-decoration: none;
	transform: translateY(-1px);
	filter: brightness(1.1);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}
a.we-fuc-btn:focus-visible,
button.we-fuc-btn:focus-visible {
	outline: 3px solid var(--we-fuc-btn-bg, #111);
	outline-offset: 3px;
}
.we-fuc-btn-text {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}
.we-fuc-btn-sub {
	font-size: .82em;
	font-weight: 500;
	opacity: .88;
}
.we-fuc-icon {
	flex: 0 0 auto;
}
.we-fuc-pulse {
	animation: we-fuc-pulse 2.2s infinite;
}
@keyframes we-fuc-pulse {
	0% { box-shadow: 0 0 0 0 var(--we-fuc-btn-pulse, rgba(0, 0, 0, .35)); }
	70% { box-shadow: 0 0 0 14px rgba(0, 0, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}
.we-fuc-only-mobile {
	display: none !important;
}
@media (max-width: 767px) {
	a.we-fuc-only-mobile { display: inline-flex !important; }
	.we-fuc-only-desktop { display: none !important; }
}

/* ---------- Floating buttons ---------- */
.we-fuc-floating {
	position: fixed;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}
.we-fuc-floating--bottom-right { right: 16px; bottom: 16px; }
.we-fuc-floating--bottom-left { left: 16px; bottom: 16px; align-items: flex-start; }
.we-fuc-floating--top-right { right: 16px; top: 16px; }
.we-fuc-floating--top-left { left: 16px; top: 16px; align-items: flex-start; }
.we-fuc-floating--bottom-center {
	left: 50%;
	bottom: 16px;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	width: max-content;
	max-width: calc(100vw - 32px);
	transform: translateX(-50%);
}
@supports (padding: max(0px)) {
	.we-fuc-floating--bottom-right,
	.we-fuc-floating--bottom-left,
	.we-fuc-floating--bottom-center { bottom: max(16px, env(safe-area-inset-bottom)); }
}
.we-fuc-floating.has-lock.we-fuc-floating--top-left,
.we-fuc-floating.has-lock.we-fuc-floating--top-right { top: 70px; }
.we-fuc-floating.has-lock.we-fuc-floating--bottom-left,
.we-fuc-floating.has-lock.we-fuc-floating--bottom-right { bottom: 70px; }

/* ---------- Lock button ---------- */
button.we-fuc-lock {
	position: fixed;
	z-index: 99991;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 9px 13px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 999px;
	background: rgba(0, 0, 0, .5);
	color: #fff;
	font-family: var(--we-fuc-font-ui, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: .92;
	transition: opacity .15s ease, background .15s ease;
}
button.we-fuc-lock:hover,
button.we-fuc-lock:focus-visible {
	background: rgba(0, 0, 0, .72);
	color: #fff;
	opacity: 1;
}
button.we-fuc-lock:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.we-fuc-lock--top-left { top: 16px; left: 16px; }
.we-fuc-lock--top-right { top: 16px; right: 16px; }
.we-fuc-lock--bottom-left { bottom: 16px; left: 16px; }
.we-fuc-lock--bottom-right { bottom: 16px; right: 16px; }

.we-fuc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Passcode dialog ---------- */
dialog.we-fuc-modal {
	width: min(420px, calc(100vw - 32px));
	max-width: none;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: #fff;
	color: #111;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	font-family: var(--we-fuc-font-ui, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
}
dialog.we-fuc-modal:not([open]) {
	display: none;
}
dialog.we-fuc-modal[open] {
	animation: we-fuc-pop .18s ease;
}
dialog.we-fuc-modal::backdrop {
	background: rgba(0, 0, 0, .6);
}
@keyframes we-fuc-pop {
	from { opacity: 0; transform: translateY(12px) scale(.97); }
}
.we-fuc-unlock {
	margin: 0;
	padding: 24px;
}
.we-fuc-modal-title {
	margin: 0 0 14px;
	color: #111;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
}
.we-fuc-unlock input[type="password"] {
	display: block;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #cfd4dc;
	border-radius: 10px;
	background: #fff;
	color: #111;
	font-family: inherit;
	font-size: 16px;
	box-shadow: none;
}
.we-fuc-unlock input[type="password"]:focus {
	border-color: #111;
	outline: 2px solid #111;
	outline-offset: 1px;
}
.we-fuc-unlock-msg {
	min-height: 20px;
	margin: 8px 0 0;
	color: #b3261e;
	font-size: 14px;
	line-height: 1.4;
}
.we-fuc-unlock-msg.is-ok {
	color: #1b7f3b;
}
.we-fuc-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 12px;
}
.we-fuc-modal-actions button.we-fuc-modal-close,
.we-fuc-modal-actions button.we-fuc-modal-submit {
	min-height: 44px;
	margin: 0;
	padding: 10px 18px;
	border: 0;
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
}
.we-fuc-modal-actions button.we-fuc-modal-submit { background: #111; color: #fff; }
.we-fuc-modal-actions button.we-fuc-modal-close { background: #eef0f3; color: #111; }
.we-fuc-modal-actions button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 640px) {
	.we-fuc-modal-actions { flex-direction: column-reverse; }
	.we-fuc-modal-actions button.we-fuc-modal-close,
	.we-fuc-modal-actions button.we-fuc-modal-submit { width: 100%; }
}

/* ---------- Lead form (component) ---------- */
.we-fuc-form {
	width: 100%;
	margin: 0;
	color: inherit;
	font-family: var(--we-fuc-font-ui, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
	text-align: left;
}
.we-fuc-form-title {
	margin: 0 0 12px;
	color: inherit;
	font-family: var(--we-fuc-font-heading, inherit);
	font-size: 1.25em;
	font-weight: var(--we-fuc-font-heading-weight, 700);
	line-height: 1.2;
	text-align: center;
	text-transform: none;
}
.we-fuc-form-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.we-fuc-field {
	display: flex;
	flex: 1 1 100%;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.we-fuc-field.we-fuc-w-half {
	flex: 1 1 calc(50% - 6px);
}
@media (max-width: 480px) {
	.we-fuc-field.we-fuc-w-half { flex-basis: 100%; }
}
.we-fuc-field > label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}
.we-fuc-req {
	color: #d0342c;
}
.we-fuc-form input[type="text"],
.we-fuc-form input[type="email"],
.we-fuc-form input[type="tel"],
.we-fuc-form select,
.we-fuc-form textarea {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, .22);
	border-radius: 10px;
	background: rgba(255, 255, 255, .96);
	color: #111;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	box-shadow: none;
}
.we-fuc-form textarea {
	min-height: 96px;
	resize: vertical;
}
.we-fuc-form input:focus-visible,
.we-fuc-form select:focus-visible,
.we-fuc-form textarea:focus-visible {
	border-color: var(--we-fuc-btn-bg, #111);
	outline: 2px solid var(--we-fuc-btn-bg, #111);
	outline-offset: 1px;
}
.we-fuc-field.has-error input,
.we-fuc-field.has-error select,
.we-fuc-field.has-error textarea {
	border-color: #d0342c;
}
.we-fuc-field-error {
	color: #d0342c;
	font-size: 13px;
	line-height: 1.3;
}
.we-fuc-field-error:empty {
	display: none;
}
.we-fuc-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	cursor: pointer;
}
.we-fuc-form .we-fuc-check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
}
.we-fuc-field--consent {
	margin-top: 10px;
}
.we-fuc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.we-fuc-form-actions {
	display: flex;
	justify-content: center;
	margin-top: 14px;
}
button.we-fuc-btn--submit {
	min-width: 180px;
}
.we-fuc-form-msg {
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.45;
	text-align: center;
}
.we-fuc-form-msg:empty {
	display: none;
}
.we-fuc-form-msg.is-error { color: #d0342c; }
.we-fuc-form-msg.is-ok { color: #1b7f3b; font-weight: 600; }
.we-fuc-form.is-sent .we-fuc-form-grid,
.we-fuc-form.is-sent .we-fuc-field--consent,
.we-fuc-form.is-sent .we-fuc-form-actions {
	display: none;
}

/* ---------- Debug panel (admins, ?we_fuc_debug=1) ---------- */
.we-fuc-debug {
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: 99999;
	max-width: 380px;
	padding: 10px 14px;
	border-top-right-radius: 8px;
	background: #111;
	color: #0f0;
	font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace;
	opacity: .94;
}

@media (prefers-reduced-motion: reduce) {
	.we-fuc-pulse,
	dialog.we-fuc-modal[open] { animation: none; }
	a.we-fuc-btn,
	button.we-fuc-btn,
	.we-fuc-bg-yt { transition: none; }
}
