/*
 * Leg Lagos Challenge — custom CSS that Elementor cannot express natively.
 * Colours come only from Elementor Global Colours (CSS variables generated by the Kit).
 * Kit slot mapping: primary = Forest, secondary = Gold, text = Ink, accent = Brand Green.
 * Declared on body: Elementor defines --e-global-* on body.elementor-kit-N, not :root.
 */
body {
	--llc-forest: var(--e-global-color-primary);
	--llc-gold: var(--e-global-color-secondary);
	--llc-ink: var(--e-global-color-text);
	--llc-brand-green: var(--e-global-color-accent);
	--llc-light-gold: var(--e-global-color-lightgold);
	--llc-white: var(--e-global-color-white);
	--llc-side-pad: clamp(16px, 4vw, 56px);
	--llc-section-pad: clamp(72px, 9vw, 120px);
}

html,
body {
	overflow-x: clip; /* HANDOFF §7: never allow horizontal scroll */
}

/* HANDOFF §7: flex children holding text may shrink, so long words never overflow. */
.e-con > .e-con-inner > *,
.e-con > * {
	min-width: 0;
}

/* HANDOFF §9: visible 3px Gold focus ring on every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="tab"]:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--llc-gold);
	outline-offset: 3px;
}

/* HANDOFF §6: card hover zoom. Add class "llc-card" to the card container in Elementor. */
.llc-card {
	overflow: hidden;
}
.llc-card img {
	transition: transform 0.6s ease;
}
.llc-card:hover img {
	transform: scale(1.05);
}

/* Visually hidden helper for screen-reader-only text. */
.llc-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* HANDOFF §6/§9: respect reduced motion everywhere. Feature-specific rules are added in Phase 4. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   Typography helpers. Global Fonts carry the font identity (family, weight,
   style, case); sizes, letter-spacing and line-height live here because
   Elementor ignores local sizes when a global font is applied (DECISIONS 1.1).
   ========================================================================== */
.llc-accent {
	font-family: var(--e-global-typography-accent-font-family), sans-serif;
	font-weight: var(--e-global-typography-accent-font-weight);
	font-style: var(--e-global-typography-accent-font-style);
	text-transform: none;
	color: var(--llc-gold);
}
.llc-accent--light { color: var(--llc-light-gold); }
.elementor-widget-text-editor.llc-tight p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Background video hero (Coming soon, Home video). Elementor container with a
   hosted background video + Forest overlay; class "llc-video-hero".
   ========================================================================== */
.llc-video-hero { position: relative; isolation: isolate; }
.llc-video-hero > .e-con,
.llc-video-hero > .elementor-element { position: relative; z-index: 2; }

/* Reduced motion: no autoplay; the poster (container fallback image) shows instead. */
@media (prefers-reduced-motion: reduce) {
	.llc-video-hero:not(.is-user-playing) .elementor-background-video-container { display: none; }
}

.llc-video-toggle {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 50%;
	border: 1.5px solid color-mix(in srgb, var(--llc-white) 60%, transparent);
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	color: var(--llc-white);
}
.llc-video-toggle:hover,
.llc-video-toggle:focus { background: transparent; color: var(--llc-white); }
.llc-video-toggle svg { fill: currentColor; display: block; }
.llc-video-toggle .llc-video-toggle__play,
.llc-video-toggle.is-paused .llc-video-toggle__pause { display: none; }
.llc-video-toggle.is-paused .llc-video-toggle__play { display: block; }

/* ==========================================================================
   Countdown boxes ([llc_countdown]).
   ========================================================================== */
.llc-countdown {
	list-style: none;
	margin: 32px auto 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(8px, 1.4vw, 16px);
	width: min(100%, 640px);
}
.llc-countdown__box {
	background: color-mix(in srgb, var(--llc-forest) 70%, transparent);
	border: 1px solid color-mix(in srgb, var(--llc-gold) 50%, transparent);
	border-radius: 18px;
	padding: 18px 8px;
	text-align: center;
}
.llc-countdown__num {
	display: block;
	font-family: var(--e-global-typography-primary-font-family), sans-serif;
	font-weight: var(--e-global-typography-primary-font-weight);
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1;
	color: var(--llc-white);
}
.llc-countdown__label {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--llc-light-gold);
}
.llc-countdown__done {
	margin: 32px 0 0;
	font-family: var(--e-global-typography-primary-font-family), sans-serif;
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1;
	text-transform: uppercase;
	color: var(--llc-white);
}

/* ==========================================================================
   Coming soon page (design/preview/ComingSoon.html, HANDOFF §5.8).
   ========================================================================== */
.llc-cs { min-height: 100vh; min-height: 100svh; overflow: hidden; }
.llc-cs::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: radial-gradient(ellipse 60% 55% at 50% 50%, color-mix(in srgb, var(--llc-forest) 55%, transparent) 0%, transparent 100%);
}
.llc-cs-pad { padding-left: var(--llc-side-pad) !important; padding-right: var(--llc-side-pad) !important; }

.llc-logo-tile img { height: 60px; width: auto; display: block; }
.llc-cs-contact .elementor-heading-title { font-size: 16px; font-weight: 700; line-height: 1.6; }
.llc-cs-contact .elementor-heading-title a { color: var(--llc-white); text-decoration: underline; }
.llc-cs-contact .elementor-heading-title a:hover { color: var(--llc-white); }

.llc-cs-crest img { height: clamp(96px, 10vw, 124px); width: auto; display: block; margin: 0 auto; }
body .llc-cs-eyebrow .elementor-heading-title { margin-top: 28px; font-size: 18px; letter-spacing: 0.24em; line-height: 1.5; }
body .llc-cs-h1 .elementor-heading-title { margin-top: 14px; font-size: clamp(52px, 7.4vw, 112px); line-height: 0.92; }
.elementor.elementor .e-con > .elementor-widget.llc-cs-lead { max-width: 560px; margin-top: 22px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }

/* Notify me form (Elementor Pro Form widget, class llc-notify). */
.elementor.elementor .e-con > .elementor-widget.llc-notify { width: min(100%, 560px); max-width: 100%; margin-top: 32px; text-align: left; }
.llc-notify .elementor-form-fields-wrapper { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 !important; }
.llc-notify .elementor-field-group { margin: 0 !important; padding: 0 !important; }
.llc-notify .elementor-field-type-email { flex: 1 1 240px; width: auto !important; }
.llc-notify .elementor-field-type-submit { flex: 0 0 auto; width: auto !important; }
.llc-notify .elementor-field-label { display: block; width: 100%; margin: 0 0 10px; padding: 0; font-weight: 600; font-size: 16px; color: var(--llc-white); }
.llc-notify .elementor-field-textual.elementor-field {
	min-height: 56px;
	padding: 0 22px;
	border-radius: 999px;
	border: 0;
	font-size: 17px;
	color: var(--llc-forest);
	background: var(--llc-white);
}
body .llc-notify .elementor-button.elementor-button {
	min-height: 56px;
	padding: 0 28px;
	border-radius: 999px;
	border: 0;
	background: var(--llc-gold) !important;
	color: var(--llc-forest) !important;
	font-weight: 700;
	font-size: 17px;
	line-height: 1;
}
body .llc-notify .elementor-button.elementor-button:hover { background: var(--llc-light-gold) !important; color: var(--llc-forest) !important; }
.llc-notify .elementor-message { color: var(--llc-white); font-size: 16px; width: 100%; }
.llc-notify .elementor-message.elementor-message-danger,
.llc-notify .elementor-error .elementor-field-label { color: var(--llc-light-gold); }

/* Bottom bar */
.llc-cs-bar { border-top: 1px solid color-mix(in srgb, var(--llc-white) 14%, transparent); }
.llc-cs-credit { font-size: 14px; line-height: 1.4; }

/* Social links ([llc_socials]): 44 px outlined circles with the design's outline icons. */
.llc-socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.llc-socials li { margin: 0; }
.llc-socials__link {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--llc-white) 30%, transparent);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--llc-white);
}
.llc-socials__link:hover,
.llc-socials__link:focus { color: var(--llc-white); border-color: var(--llc-white); }
.llc-socials__link svg { display: block; }

/* Layout helpers for Elementor containers/widgets. */
.e-con.llc-auto { --width: auto; width: auto; }
.elementor.elementor .e-con > .elementor-widget.llc-fill { width: 100%; }
.llc-notify .elementor-field,
.llc-notify .elementor-button { font-family: inherit; }
/* Honeypot stays in the DOM for bots but must not take a flex gap. */
.elementor-form-fields-wrapper > .elementor-field-type-honeypot,
.elementor-form-fields-wrapper > .elementor-field-type-text:not(.elementor-field-group) { display: none !important; }
/* Elementor's form CSS removes the outline on focus; restore the Gold focus ring. */
body .elementor-form .elementor-field:focus-visible,
body .elementor-form .elementor-field:focus {
	outline: 3px solid var(--llc-gold) !important;
	outline-offset: 3px;
}
/* WP Armour honeypot trap field: invisible and out of the tab order (bots still see it in the HTML). */
body #altEmail_container,
body .altEmail_container { display: none !important; }
