/*
Theme Name: Linguaflow
Theme URI: https://example.com/linguaflow
Author: Your Studio
Description: A fast, SEO-friendly WordPress theme for translation and localization companies. Services, industries and language pages, a quote form that stores leads, a DeepL machine-translation demo, dark mode and one-click starter content.
Version: 1.5.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: linguaflow
*/

/* ---------- Tokens ---------- */
:root {
	--lf-bg: #ffffff;
	--lf-bg-alt: #f8fafc;
	--lf-fg: #0f172a;
	--lf-muted: #64748b;
	--lf-card: #ffffff;
	--lf-border: #e2e8f0;
	--lf-radius: 16px;
	--lf-shadow: 0 10px 30px rgba(15, 23, 42, .08);
	--lf-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--lf-mono: 'Share Tech Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--lf-grad: linear-gradient(90deg, var(--lf-primary), var(--lf-secondary));
	--lf-header-h: 72px;
}
[data-theme="dark"] {
	--lf-bg: #0b1226;
	--lf-bg-alt: rgba(15, 23, 42, .55);
	--lf-fg: #f8fafc;
	--lf-muted: #a5b4cc;
	--lf-card: rgba(30, 41, 59, .55);
	--lf-border: rgba(71, 85, 105, .55);
	--lf-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--lf-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--lf-fg);
	background: var(--lf-bg);
	overflow-x: hidden;
}
[data-theme="dark"] body {
	background: linear-gradient(135deg, #0b1226 0%, #12206b 55%, #271b6d 100%) fixed;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--lf-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lf-icon { flex: none; vertical-align: middle; }
.lf-skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; z-index: 1000; border-radius: 8px; }
.lf-skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lf-accent); outline-offset: 2px; }

.lf-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.lf-container--narrow { max-width: 820px; }
.lf-container--content { max-width: 880px; }

/* ---------- Header ---------- */
.lf-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .85);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--lf-border);
}
[data-theme="dark"] .lf-header { background: rgba(11, 18, 38, .8); }
.lf-header__inner { display: flex; align-items: center; gap: 20px; height: var(--lf-header-h); }
.lf-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 800; font-size: 1.25rem; }
.lf-brand:hover { text-decoration: none; }
.lf-brand__logo { width: 40px; height: 40px; object-fit: contain; }
.lf-brand__name { background: var(--lf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lf-nav { display: flex; align-items: center; gap: 18px; flex: 1; justify-content: flex-end; }
.lf-menu, .lf-menu ul { list-style: none; margin: 0; padding: 0; }
.lf-menu { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.lf-menu > li { position: relative; }
.lf-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--lf-muted); font-weight: 500; font-size: .95rem; border-radius: 10px; }
.lf-menu a:hover, .lf-menu .current-menu-item > a { color: var(--lf-fg); text-decoration: none; background: rgba(100, 116, 139, .12); }
.lf-menu .menu-item-has-children > a::after { content: ''; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.lf-menu .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 240px; padding: 8px;
	background: var(--lf-bg); border: 1px solid var(--lf-border); border-radius: 14px; box-shadow: var(--lf-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; z-index: 60;
}
[data-theme="dark"] .lf-menu .sub-menu { background: #0f1a3d; }
.lf-menu li:hover > .sub-menu, .lf-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.lf-menu .sub-menu a { display: flex; width: 100%; }
.lf-header__tools { display: flex; align-items: center; gap: 6px; }
.lf-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--lf-fg); border-radius: 12px; cursor: pointer; }
.lf-iconbtn:hover { background: rgba(100, 116, 139, .15); }
.lf-ico-sun { display: none; }
[data-theme="dark"] .lf-ico-sun { display: inline-flex; }
[data-theme="dark"] .lf-ico-moon { display: none; }
.lf-burger { display: none; }

/* ---------- Buttons ---------- */
.lf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: 12px; border: 2px solid transparent;
	font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.lf-btn:hover { text-decoration: none; transform: translateY(-1px); }
.lf-btn--primary { background: var(--lf-grad); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .25); }
.lf-btn--primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(37, 99, 235, .35); }
.lf-btn--outline { border-color: var(--lf-primary); color: var(--lf-primary); background: transparent; }
.lf-btn--outline:hover { background: var(--lf-primary); color: #fff; }
.lf-btn--sm { padding: 8px 16px; font-size: .9rem; }
.lf-btn--lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---------- Sections ---------- */
.lf-main { min-height: 60vh; }
.lf-hero { padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 7vw, 80px); text-align: center; }
.lf-hero__inner { max-width: 900px; }
.lf-hero__title { font-size: clamp(2.2rem, 6vw, 4.2rem); margin-bottom: .5em; }
.lf-hero__text { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--lf-muted); max-width: 720px; margin: 0 auto 1.8em; }
.lf-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
/* Optional hero background media */
.lf-hero--media { position: relative; overflow: hidden; isolation: isolate; }
.lf-hero__media { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.lf-hero__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 28, .45) 0%, rgba(8, 12, 28, .62) 70%, rgba(8, 12, 28, .9) 100%); }
@supports (background: color-mix(in srgb, red 50%, blue)) {
	.lf-hero__media::after { background: linear-gradient(180deg, color-mix(in srgb, var(--lf-bg) 40%, transparent) 0%, color-mix(in srgb, var(--lf-bg) 62%, transparent) 70%, var(--lf-bg) 100%); }
}
.lf-hero--media .lf-hero__title { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: reduce) { .lf-hero__media video { display: none; } }
.lf-gradient-text { background: var(--lf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lf-section { padding: clamp(44px, 7vw, 84px) 0; }
.lf-section--alt { background: var(--lf-bg-alt); }
.lf-section__head { text-align: center; max-width: 760px; margin: 0 auto 2.2rem; }
.lf-section__head p { color: var(--lf-muted); font-size: 1.1rem; }
.lf-badge { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 16px; border-radius: 20px; background: var(--lf-grad); color: #fff; }
.lf-pagehead { padding: clamp(40px, 7vw, 80px) 0 20px; }
.lf-pagehead h1 { margin-bottom: .3em; }
.lf-pagehead--media { position: relative; isolation: isolate; background-size: cover; background-position: center; padding: clamp(56px, 9vw, 110px) 0 clamp(36px, 6vw, 70px); margin-bottom: 20px; }
.lf-pagehead--media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 12, 28, .5) 0%, rgba(8, 12, 28, .72) 75%, rgba(8, 12, 28, .92) 100%); }
@supports (background: color-mix(in srgb, red 50%, blue)) {
	.lf-pagehead--media::before { background: linear-gradient(180deg, color-mix(in srgb, var(--lf-bg) 45%, transparent) 0%, color-mix(in srgb, var(--lf-bg) 70%, transparent) 75%, var(--lf-bg) 100%); }
}
.lf-pagehead__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
@media (prefers-reduced-motion: reduce) { .lf-pagehead__video { display: none; } }
.lf-pagehead--media h1 { text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.lf-lead { font-size: 1.2rem; color: var(--lf-muted); max-width: 760px; }
.lf-cta { text-align: center; max-width: 720px; }
.lf-cta p { color: var(--lf-muted); font-size: 1.1rem; }
.lf-breadcrumbs { font-size: .9rem; color: var(--lf-muted); margin-bottom: 14px; }
.lf-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.lf-breadcrumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.lf-breadcrumbs a { color: inherit; }

/* ---------- Cards ---------- */
.lf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.lf-grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.lf-card {
	display: block; padding: 26px; background: var(--lf-card); color: inherit;
	border: 1px solid var(--lf-border); border-radius: var(--lf-radius); box-shadow: var(--lf-shadow);
	transition: transform .2s ease, border-color .2s ease;
}
.lf-card--link:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--lf-primary); }
.lf-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 16px; border-radius: 14px; color: #fff; font-weight: 800; }
.lf-card__title { font-size: 1.2rem; margin-bottom: .4em; }
.lf-card__text { color: var(--lf-muted); margin: 0; }
.lf-g1 { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.lf-g2 { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.lf-g3 { background: linear-gradient(135deg, #a855f7, #ec4899); }
.lf-g4 { background: linear-gradient(135deg, #ef4444, #f97316); }
.lf-g5 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.lf-g6 { background: linear-gradient(135deg, #6366f1, #3b82f6); }
.lf-g7 { background: linear-gradient(135deg, #14b8a6, #3b82f6); }
.lf-g8 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }

/* ---------- Entry content ---------- */
.lf-entry > * + * { margin-top: 1.1em; }
.lf-entry h2 { margin-top: 1.8em; }
.lf-entry h3 { margin-top: 1.4em; }
.lf-entry ul, .lf-entry ol { padding-left: 1.3em; }
.lf-entry li { margin: .35em 0; }
.lf-entry img { border-radius: 12px; }
.lf-entry--wide { max-width: 1200px; }
.lf-entry .lf-grid { margin: 1.2em 0; }
.lf-entry .lf-card { padding: 22px; }
.lf-entry .lf-card h3, .lf-entry .lf-card h4 { margin-top: 0; font-size: 1.1rem; }
.lf-entry .lf-card ul { margin: .5em 0 0; }
.lf-entry .lf-card p:last-child { margin-bottom: 0; }
.lf-entry .lf-sub { color: var(--lf-muted); font-style: italic; margin-top: -.4em; }
.lf-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0 !important; }
.lf-chips li { margin: 0; padding: 8px 16px; border: 1px solid var(--lf-border); border-radius: 999px; background: var(--lf-card); font-weight: 500; }
.lf-checklist { list-style: none; padding: 0 !important; margin: 0; }
.lf-checklist li { display: flex; gap: 10px; align-items: flex-start; margin: .7em 0; }
.lf-checklist .lf-icon { color: #f59e0b; margin-top: 4px; }
.lf-steps { counter-reset: lfstep; }
.lf-steps .lf-card { position: relative; padding-top: 52px; }
.lf-steps .lf-card::before {
	counter-increment: lfstep; content: counter(lfstep);
	position: absolute; top: 16px; left: 22px; width: 30px; height: 30px; display: grid; place-items: center;
	border-radius: 50%; background: var(--lf-grad); color: #fff; font-weight: 700; font-size: .9rem;
}
.lf-entry details { border: 1px solid var(--lf-border); border-radius: 12px; background: var(--lf-card); padding: 0; margin: .7em 0; }
.lf-entry summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; }
.lf-entry summary::-webkit-details-marker { display: none; }
.lf-entry summary::after { content: '+'; float: right; font-weight: 400; font-size: 1.4rem; line-height: 1; }
.lf-entry details[open] summary::after { content: '\2212'; }
.lf-entry details > :not(summary) { padding: 0 20px 18px; margin: 0; color: var(--lf-muted); }
.lf-ctaband { text-align: center; padding: 34px; border-radius: 20px; background: var(--lf-grad); color: #fff; margin-top: 2em; }
.lf-ctaband h2, .lf-ctaband p { color: #fff; margin-top: 0; }
.lf-ctaband .lf-btn { background: #fff; color: var(--lf-primary); border-color: #fff; }

/* ---------- Contact ---------- */
.lf-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; max-width: 980px; margin: 0 auto; }
.lf-contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.lf-contact__list li { display: flex; gap: 14px; align-items: center; }
.lf-contact__list .lf-card__icon { margin: 0; width: 46px; height: 46px; }

/* ---------- Forms ---------- */
.lf-form-wrap { margin: 0 auto; }
.lf-form { padding: 28px; background: var(--lf-card); border: 1px solid var(--lf-border); border-radius: 20px; box-shadow: var(--lf-shadow); }
.lf-form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.lf-field { display: flex; flex-direction: column; gap: 6px; }
.lf-field--full { grid-column: 1 / -1; }
.lf-field label { font-weight: 600; font-size: .92rem; }
.lf-field input, .lf-field select, .lf-field textarea,
.lf-mt textarea, .lf-mt select {
	width: 100%; padding: 12px 14px; font: inherit; color: inherit;
	background: var(--lf-bg); border: 1px solid var(--lf-border); border-radius: 12px;
}
[data-theme="dark"] .lf-field input, [data-theme="dark"] .lf-field select, [data-theme="dark"] .lf-field textarea,
[data-theme="dark"] .lf-mt textarea, [data-theme="dark"] .lf-mt select { background: rgba(2, 6, 23, .55); }
.lf-field input:focus, .lf-field select:focus, .lf-field textarea:focus { border-color: var(--lf-primary); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.lf-notice--ok { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.lf-notice--err { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }

/* ---------- Machine translation ---------- */
.lf-mt__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lf-mt__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; }
.lf-mt__count { font-weight: 400; color: var(--lf-muted); font-size: .9rem; }
.lf-mt__out { min-height: 238px; padding: 12px 14px; border: 1px dashed var(--lf-border); border-radius: 12px; white-space: pre-wrap; color: var(--lf-muted); }
.lf-mt__out.is-done { color: inherit; border-style: solid; }
.lf-mt__bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: 22px; }
.lf-mt__bar select { width: auto; min-width: 220px; }
.lf-mt__msg { text-align: center; margin-top: 14px; color: var(--lf-muted); min-height: 1.5em; }
.lf-mt__msg.is-err { color: #ef4444; }

/* ---------- Footer ---------- */
.lf-footer { margin-top: 40px; background: #0b1226; color: #cbd5e1; }
.lf-footer a { color: #cbd5e1; }
.lf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-top: 52px; padding-bottom: 36px; }
.lf-footer__title { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.lf-footer__about { margin-top: 14px; max-width: 360px; }
.lf-footer__links, .lf-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lf-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.lf-footer__contact .lf-icon { margin-top: 3px; color: var(--lf-accent); }
.lf-social { display: flex; gap: 10px; margin-top: 14px; }
.lf-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.lf-footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .9rem; color: #94a3b8; }

/* ---------- Dark neon landing (gaming / specialty vertical) ---------- */
.lf-dark {
	--n-cyan: #00e5ff; --n-magenta: #ff2bd6; --n-lime: #7dff3a; --n-bg: #0d0d14; --n-card: #15151f;
	position: relative; padding: clamp(40px, 7vw, 90px) 0; color: #fff; background:
		radial-gradient(1200px 500px at 10% -10%, rgba(255, 43, 214, .18), transparent 60%),
		radial-gradient(900px 500px at 100% 10%, rgba(0, 229, 255, .16), transparent 55%),
		linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 100% 40px,
		linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 40px 100%,
		var(--n-bg);
}
.lf-dark h1, .lf-dark h2, .lf-dark h3, .lf-dark h4 { color: #fff; }
.lf-dark .lf-neon-title { font-family: var(--lf-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--n-cyan); text-shadow: 0 0 12px rgba(0, 229, 255, .7); }
.lf-dark .lf-neon-title.is-magenta { color: var(--n-magenta); text-shadow: 0 0 12px rgba(255, 43, 214, .7); }
.lf-dark .lf-neon-hero { text-align: center; padding: 30px 0 50px; }
.lf-dark .lf-neon-hero h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); }
.lf-dark .lf-neon-hero p { color: #cbd5e1; max-width: 760px; margin-left: auto; margin-right: auto; font-size: 1.15rem; }
.lf-dark .lf-grid { margin: 1.6em 0 3em; }
.lf-dark .lf-card { background: var(--n-card); border: 1px solid rgba(0, 229, 255, .35); box-shadow: 0 0 18px rgba(0, 229, 255, .12); color: #fff; }
.lf-dark .lf-card.is-magenta { border-color: rgba(255, 43, 214, .45); box-shadow: 0 0 18px rgba(255, 43, 214, .14); }
.lf-dark .lf-card.is-lime { border-color: rgba(125, 255, 58, .4); box-shadow: 0 0 18px rgba(125, 255, 58, .12); }
.lf-dark .lf-card p, .lf-dark .lf-entry details > :not(summary) { color: #b6c2d6; }
.lf-dark .lf-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; margin: 8px 0 2px; }
.lf-dark .lf-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--n-cyan), var(--n-magenta)); }
.lf-dark .lf-barlabel { display: flex; justify-content: space-between; font-family: var(--lf-mono); font-size: .8rem; color: #9fb0c8; margin-top: 10px; }
.lf-dark .lf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin: 2em 0 3em; }
.lf-dark .lf-stat { text-align: center; padding: 26px 10px; border: 1px solid rgba(255, 43, 214, .45); border-radius: 14px; background: var(--n-card); box-shadow: 0 0 18px rgba(255, 43, 214, .12); }
.lf-dark .lf-stat strong { display: block; font-family: var(--lf-mono); font-size: 2.6rem; color: var(--n-lime); text-shadow: 0 0 12px rgba(125, 255, 58, .6); }
.lf-dark .lf-stat span { font-family: var(--lf-mono); letter-spacing: .08em; color: #9fb0c8; font-size: .85rem; }
.lf-dark .lf-entry details { background: var(--n-card); border-color: rgba(255, 43, 214, .35); }
.lf-dark .lf-btn--primary { background: linear-gradient(90deg, var(--n-magenta), #8a2be2); font-family: var(--lf-mono); letter-spacing: .06em; text-transform: uppercase; }
.lf-dark a { color: var(--n-cyan); }
.lf-dark .lf-btn--primary:hover { color: #fff; }
.lf-dark .lf-hero-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; border: 1px solid rgba(0, 229, 255, .35); }
.lf-body-dark-landing .lf-header { background: rgba(13, 13, 20, .85); }
.lf-body-dark-landing .lf-footer { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.lf-burger { display: inline-flex; }
	.lf-header__inner { gap: 8px; }
	.lf-header__tools { margin-left: auto; }
	.lf-nav {
		position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - var(--lf-header-h)); height: calc(100dvh - var(--lf-header-h)); flex-direction: column; align-items: stretch; justify-content: flex-start;
		padding: 18px 20px 40px; gap: 14px; overflow-y: auto; background: var(--lf-bg);
		transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
	}
	[data-theme="dark"] .lf-nav { background: #0b1226; }
	.lf-nav.is-open { transform: none; visibility: visible; }
	.lf-menu { flex-direction: column; align-items: stretch; }
	.lf-menu a { width: 100%; }
	.lf-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; }
	.lf-menu .menu-item-has-children > a::after { display: none; }
	.lf-nav__cta { align-self: flex-start; }
	.lf-footer__grid { grid-template-columns: 1fr; }
	.lf-form__grid, .lf-mt__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
[id] { scroll-margin-top: calc(var(--lf-header-h) + 12px); }
.lf-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.lf-reveal.is-in { opacity: 1; transform: none; }
.screen-reader-text { position: absolute; left: -9999px; }
.pagination { margin-top: 30px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 2px; border: 1px solid var(--lf-border); border-radius: 10px; }
.pagination .current { background: var(--lf-primary); color: #fff; border-color: var(--lf-primary); }

/* ---------- Centred text (default; Customizer > Brand > Text alignment) ---------- */
.lf-center .lf-pagehead,
.lf-center .lf-pagehead .lf-lead,
.lf-center .lf-entry,
.lf-center .lf-card,
.lf-center .lf-footer,
.lf-center .lf-section__head { text-align: center; }
.lf-center .lf-lead { margin-inline: auto; }
.lf-center .lf-breadcrumbs ol { justify-content: center; }
.lf-center .lf-entry ul:not(.lf-chips):not(.lf-checklist), .lf-center .lf-entry ol { display: table; margin-inline: auto; text-align: start; padding-inline-start: 1.3em; }
.lf-center .lf-entry li { text-align: start; }
.lf-center .lf-chips li { text-align: center; }
/* Card grids: keep an incomplete last row centred */
.lf-center .lf-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.lf-center .lf-grid > * { flex: 0 0 auto; width: calc((100% - 66px) / 4); }
.lf-center .lf-container--content .lf-grid > *, .lf-center .lf-entry:not(.lf-entry--wide) .lf-grid > * { width: calc((100% - 44px) / 3); }
.lf-center .lf-grid--2 > * { width: calc((100% - 22px) / 2); }
@media (max-width: 900px) { .lf-center .lf-grid > *, .lf-center .lf-container--content .lf-grid > *, .lf-center .lf-entry:not(.lf-entry--wide) .lf-grid > * { width: calc((100% - 22px) / 2); } }
@media (max-width: 600px) { .lf-center .lf-grid > *, .lf-center .lf-grid--2 > *, .lf-center .lf-container--content .lf-grid > *, .lf-center .lf-entry:not(.lf-entry--wide) .lf-grid > * { width: 100%; } }
.lf-center .lf-chips { justify-content: center; }
.lf-center .lf-checklist li { justify-content: center; }
.lf-center .lf-steps .lf-card::before { left: 50%; margin-left: -15px; }
.lf-center .lf-entry details, .lf-center .lf-form, .lf-center .lf-field, .lf-center .lf-mt { text-align: start; }
.lf-center .lf-entry details summary { text-align: start; }
.lf-center .lf-entry .lf-card ul { margin-inline: auto; }
.lf-center .lf-barlabel { text-align: start; }
.lf-center .lf-footer__about { margin-inline: auto; }
.lf-center .lf-footer__grid { justify-items: center; }
.lf-center .lf-footer__links, .lf-center .lf-footer__contact { justify-items: center; }
.lf-center .lf-footer__contact li { justify-content: center; align-items: center; text-align: center; }
.lf-center .lf-footer__contact .lf-icon { margin-top: 0; }
.lf-center .lf-footer .lf-social, .lf-center .lf-footer .lf-brand { justify-content: center; }
.lf-center .lf-footer__bar { text-align: center; }
.lf-center .lf-footer__bar > * { justify-content: center; }
.lf-center .lf-contact__list li { justify-content: center; }

/* Dark landing page background media (Game Zone) */
.lf-dark--media { isolation: isolate; overflow: hidden; }
.lf-dark__media { position: absolute; inset: 0 0 auto 0; height: clamp(480px, 78vh, 720px); z-index: -1; background-size: cover; background-position: center; }
.lf-dark__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-dark__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 20, .35) 0%, rgba(13, 13, 20, .55) 55%, #0d0d14 100%); }
@media (prefers-reduced-motion: reduce) { .lf-dark__media video { display: none; } }

/* v1.5.2 footer contact: icon inline with centered text */
.lf-center .lf-footer__contact li { display: block; text-align: center; }
.lf-center .lf-footer__contact .lf-icon { display: inline-block; vertical-align: -3px; margin-inline-end: 8px; }

/* v1.5.2 home contact card: icon above text, everything centered and aligned */
.lf-center .lf-contact__list { justify-items: center; gap: 22px; }
.lf-center .lf-contact__list li { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.lf-center .lf-contact__list .lf-card__icon { margin: 0 auto; }

/* v1.5.2 keep header on one row with 7 menu items */
@media (min-width: 961px) {
	.lf-menu { flex-wrap: nowrap; gap: 0; }
	.lf-menu a { padding: 0 9px; font-size: .9rem; white-space: nowrap; }
	.lf-header__inner .lf-btn, .lf-header .lf-btn { white-space: nowrap; }
	.lf-header__inner { gap: 12px; }
}

/* v1.5.2 card grids inside pages break out to a wider block so cards are roomy */
@media (min-width: 961px) {
	.lf-entry:not(.lf-entry--wide) .lf-grid { --lf-gw: min(1160px, calc(100vw - 64px)); width: var(--lf-gw); margin-inline: calc((100% - var(--lf-gw)) / 2); }
	.lf-center .lf-entry .lf-grid > :first-child:nth-last-child(4),
	.lf-center .lf-entry .lf-grid > :first-child:nth-last-child(4) ~ * { width: calc((100% - 66px) / 4); }
	.lf-center .lf-entry .lf-grid > :first-child:nth-last-child(3),
	.lf-center .lf-entry .lf-grid > :first-child:nth-last-child(3) ~ * { width: calc((100% - 44px) / 3); }
	.lf-center .lf-entry .lf-grid > :first-child:nth-last-child(2),
	.lf-center .lf-entry .lf-grid > :first-child:nth-last-child(2) ~ * { width: calc((100% - 22px) / 2); }
	.lf-center .lf-entry .lf-grid--2 > :only-child { width: calc((100% - 22px) / 2); }
	.lf-entry .lf-grid--2 .lf-card p, .lf-entry .lf-card p { line-height: 1.65; }
}

/* v1.5.2 tighter header menu on mid-width desktops */
@media (min-width: 961px) and (max-width: 1500px) {
	.lf-menu a { padding: 0 7px; font-size: .86rem; }
	.lf-header__inner { gap: 8px; }
}
@media (min-width: 961px) { .lf-nav { margin-inline-start: 18px; } }
