/*
 * Mofix Solutions - main stylesheet
 * Light and dark colour tokens, layout, components and Elementor integration.
 * Text/background pairs are chosen for WCAG AA contrast in both modes.
 */

/* ---------- Tokens ---------- */
:root,
[data-theme="light"] {
	--mx-bg: #ffffff;
	--mx-surface: #f4f6f9;
	--mx-card: #ffffff;
	--mx-text: #232a38;
	--mx-heading: #0e1726;
	--mx-muted: #4b5565;
	--mx-border: #dde2ea;
	--mx-link: #7a5b00;
	--mx-on-gold: #16130a;
	--mx-hero: linear-gradient(135deg, #fbf6e8 0%, #eef2f8 100%);
	--mx-header-bg: rgba(255, 255, 255, 0.92);
	--mx-shadow: 0 12px 32px rgba(14, 23, 38, 0.1);
	--mx-shape: rgba(212, 165, 55, 0.35);
	color-scheme: light;
}

[data-theme="dark"] {
	--mx-bg: #0d1117;
	--mx-surface: #131922;
	--mx-card: #171e29;
	--mx-text: #e3e7ee;
	--mx-heading: #ffffff;
	--mx-muted: #a9b3c1;
	--mx-border: #2a3341;
	--mx-link: #e6b94d;
	--mx-on-gold: #16130a;
	--mx-hero: linear-gradient(135deg, #111827 0%, #0d1117 100%);
	--mx-header-bg: rgba(13, 17, 23, 0.92);
	--mx-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	--mx-shape: rgba(230, 185, 77, 0.3);
	color-scheme: dark;
}

:root {
	--mx-gold: #d4a537;
	--mx-container: 1200px;
	--mx-radius: 14px;
	--mx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--mx-sec-pad: clamp(56px, 8vw, 104px);
}

/* Make Elementor's global colours follow the light/dark mode. */
body[class*="elementor-kit-"] {
	--e-global-color-primary: var(--mx-heading);
	--e-global-color-secondary: var(--mx-muted);
	--e-global-color-text: var(--mx-text);
	--e-global-color-accent: var(--mx-gold);
	--e-global-typography-primary-font-family: var(--mx-font);
	--e-global-typography-secondary-font-family: var(--mx-font);
	--e-global-typography-text-font-family: var(--mx-font);
	--e-global-typography-accent-font-family: var(--mx-font);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--mx-bg);
	color: var(--mx-text);
	font-family: var(--mx-font);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	transition: background-color 0.25s ease, color 0.25s ease;
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
	color: var(--mx-heading);
	font-family: var(--mx-font);
	line-height: 1.2;
	margin: 0 0 0.6em;
	font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

a { color: var(--mx-link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
	outline: 3px solid var(--mx-gold);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	background: var(--mx-gold); color: var(--mx-on-gold);
	padding: 12px 20px; position: fixed; top: 8px; left: 8px; z-index: 1000;
	font-weight: 700; text-decoration: none; border-radius: 8px;
}

.mx-wrap {
	width: 100%;
	max-width: var(--mx-container);
	margin-inline: auto;
	padding-inline: 20px;
}
.mx-narrow-wrap { max-width: 820px; }

/* ---------- Buttons ---------- */
.mx-btn,
.wp-block-button__link,
button.mx-btn,
.elementor-widget-button .elementor-button,
.elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	background: var(--mx-gold);
	color: var(--mx-on-gold);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body .elementor-widget-button .elementor-button { background-color: var(--mx-gold); color: var(--mx-on-gold); fill: var(--mx-on-gold); }

.mx-btn:hover,
.elementor-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(212, 165, 55, 0.35);
	color: var(--mx-on-gold);
}

.mx-btn-ghost .elementor-button,
.mx-btn.mx-btn-ghost,
body .elementor-widget-button.mx-btn-ghost .elementor-button {
	background: transparent;
	color: var(--mx-heading);
	border-color: var(--mx-heading);
	fill: var(--mx-heading);
}
.mx-btn-ghost .elementor-button:hover,
.mx-btn.mx-btn-ghost:hover {
	background: var(--mx-heading);
	color: var(--mx-bg);
	box-shadow: none;
}

/* ---------- Header ---------- */
.site-header {
	position: relative;
	z-index: 100;
	background: var(--mx-header-bg);
	border-bottom: 1px solid var(--mx-border);
	backdrop-filter: blur(10px);
}
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-sticky-header .site-header { top: 46px; } }

.header-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 76px;
}

.site-branding { flex: 0 0 auto; }
.site-branding img { max-height: 48px; width: auto; }

.site-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--mx-heading);
	text-decoration: none;
}

.logo-mark {
	width: 26px;
	height: 26px;
	background: var(--mx-gold);
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
	display: inline-block;
}

.main-navigation { flex: 1 1 0; min-width: 0; }
.main-navigation .menu,
.footer-menu,
.mx-social,
.mx-contact-list { list-style: none; margin: 0; padding: 0; }

.main-navigation .menu { display: flex; flex-wrap: nowrap; gap: 2px; justify-content: center; }
.main-navigation li { position: relative; }

.main-navigation a {
	display: block;
	padding: 10px 12px;
	white-space: nowrap;
	color: var(--mx-heading);
	font-weight: 600;
	font-size: 0.96rem;
	text-decoration: none;
	border-radius: 8px;
}
.main-navigation a:hover { background: var(--mx-surface); }
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_item > a {
	color: var(--mx-link);
	box-shadow: inset 0 -3px 0 var(--mx-gold);
	border-radius: 8px 8px 0 0;
}

.main-navigation .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	background: var(--mx-card);
	border: 1px solid var(--mx-border);
	border-radius: 12px;
	box-shadow: var(--mx-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu,
.main-navigation li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.mx-sub-toggle {
	display: none;
	background: none;
	border: 0;
	color: var(--mx-heading);
	cursor: pointer;
	padding: 6px 8px;
}
.mx-sub-toggle::after {
	content: "";
	display: inline-block;
	width: 8px; height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}
.js .menu-item-has-children > a { display: inline-block; }
.js .main-navigation .menu-item-has-children { display: flex; align-items: center; flex-wrap: wrap; }
.js .mx-sub-toggle { display: inline-flex; margin-left: -8px; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: 0 0 auto; }
.header-cta { padding: 0 24px; min-height: 44px; white-space: nowrap; font-size: 0.96rem; }
.mobile-only { display: none; }

.mx-theme-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 2px solid var(--mx-border);
	background: var(--mx-card);
	color: var(--mx-heading);
	cursor: pointer;
	transition: transform 0.25s ease, border-color 0.2s;
}
.js .mx-theme-toggle { display: inline-flex; }
.mx-theme-toggle:hover { border-color: var(--mx-gold); transform: rotate(15deg); }
.mx-theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .mx-theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .mx-theme-toggle .icon-moon { display: none; }

.mx-nav-toggle {
	display: none;
	width: 44px; height: 44px;
	border: 2px solid var(--mx-border);
	border-radius: 10px;
	background: var(--mx-card);
	cursor: pointer;
	position: relative;
}
.mx-nav-toggle .bars,
.mx-nav-toggle .bars::before,
.mx-nav-toggle .bars::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 20px; height: 2px;
	background: var(--mx-heading);
	transform: translateX(-50%);
	transition: transform 0.2s, opacity 0.2s;
}
.mx-nav-toggle .bars { top: 50%; margin-top: -1px; }
.mx-nav-toggle .bars::before { top: -7px; left: 0; transform: none; }
.mx-nav-toggle .bars::after { top: 7px; left: 0; transform: none; }
.mx-nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.mx-nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.mx-nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
	.mx-nav-toggle { display: inline-block; margin-left: auto; order: 2; }
	.header-actions { order: 3; margin-left: 0; }
	.header-actions .desktop-only { display: none; }
	.mobile-only { display: inline-flex; margin: 12px 14px 16px; }
	.main-navigation { order: 4; flex-basis: 100%; }
	.header-inner { flex-wrap: wrap; row-gap: 0; }
	.js .main-navigation { display: none; }
	.js .main-navigation.is-open { display: block; padding-bottom: 12px; }
	.main-navigation .menu { flex-direction: column; justify-content: flex-start; flex-wrap: wrap; }
	.main-navigation a { white-space: normal; }
	.main-navigation .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		display: none; box-shadow: none; border: 0; border-left: 2px solid var(--mx-gold);
		border-radius: 0; margin-left: 14px; min-width: 0; width: calc(100% - 14px);
	}
	.main-navigation li.is-open > .sub-menu { display: block; }
	.main-navigation li:hover > .sub-menu { display: none; }
	.main-navigation li.is-open:hover > .sub-menu { display: block; }
	.js .main-navigation .menu-item-has-children > a { flex: 1; }
}

/* ---------- Sections ---------- */
.site-content { min-height: 50vh; }

.mx-section,
.e-con.mx-section {
	--padding-top: var(--mx-sec-pad);
	--padding-bottom: var(--mx-sec-pad);
	--padding-left: 0px;
	--padding-right: 0px;
	--margin-top: 0px;
	--margin-bottom: 0px;
	--gap: 0px;
	--flex-direction: column;
	display: block;
	width: 100%;
	padding-top: var(--mx-sec-pad);
	padding-bottom: var(--mx-sec-pad);
	padding-left: 0;
	padding-right: 0;
	background: var(--mx-bg);
}
.mx-section.mx-alt { background: var(--mx-surface); }
.mx-section.mx-narrow .mx-wrap { max-width: 860px; }

.e-con.mx-wrap,
.mx-wrap.e-con {
	--padding-top: 0px;
	--padding-bottom: 0px;
	--padding-left: 20px;
	--padding-right: 20px;
	--width: 100%;
	max-width: var(--mx-container);
	margin-inline: auto;
	width: 100%;
	display: block;
	padding-left: 20px;
	padding-right: 20px;
}

.mx-fullwidth > .e-con,
.mx-fullwidth > .elementor,
.elementor > .e-con.mx-section { max-width: 100%; }

.mx-sec-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.mx-sec-head .elementor-heading-title,
.mx-sec-head .mx-lead { text-align: center; }

.mx-eyebrow .elementor-heading-title,
.mx-eyebrow,
h6.elementor-heading-title.mx-eyebrow {
	font-size: 0.82rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--mx-link);
	margin: 0 0 12px;
}

.mx-lead,
.mx-lead p,
.mx-lead .elementor-widget-container {
	font-size: 1.18rem;
	color: var(--mx-muted);
}

.mx-page-hero {
	background: var(--mx-hero);
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--mx-border);
}
.mx-page-hero::before {
	content: "";
	position: absolute;
	right: -80px; top: -80px;
	width: 320px; height: 320px;
	border: 2px solid var(--mx-shape);
	transform: rotate(45deg);
	pointer-events: none;
}
.mx-page-hero::after {
	content: "";
	position: absolute;
	right: 60px; bottom: -120px;
	width: 220px; height: 220px;
	background: var(--mx-shape);
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
	pointer-events: none;
}
.mx-page-hero .mx-wrap { position: relative; z-index: 1; }
.mx-page-hero .mx-h1,
.mx-page-hero h1 { max-width: 820px; }
.mx-page-hero .mx-lead { max-width: 720px; }
.mx-404 { text-align: center; }
.mx-404 .search-form { margin: 24px auto; justify-content: center; }
.mx-404 .mx-actions { justify-content: center; }

.mx-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.e-con.mx-actions { display: flex; flex-direction: row; flex-wrap: wrap; --flex-direction: row; --gap: 14px; }
.mx-actions .elementor-widget { width: auto; margin: 0; }
.mx-actions .elementor-widget-button { --container-widget-width: auto; }

.mx-h1 .elementor-heading-title,
h1.mx-h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; }
.mx-gold { color: var(--mx-link); }
.mx-title .elementor-heading-title,
.mx-title { margin-bottom: 18px; }

/* ---------- Grids ---------- */
.mx-grid,
.e-con.mx-grid {
	display: grid !important;
	grid-template-columns: repeat(var(--mx-cols, 3), minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
	--gap: 24px;
}
.mx-cols-1 { --mx-cols: 1; }
.mx-cols-2 { --mx-cols: 2; }
.mx-cols-3 { --mx-cols: 3; }
.mx-cols-4 { --mx-cols: 4; }
.mx-grid > .elementor-widget { margin: 0; width: 100%; }
.mx-grid > .e-con { width: 100%; }

@media (max-width: 1024px) {
	.mx-cols-3, .mx-cols-4 { --mx-cols: 2; }
}
@media (max-width: 720px) {
	.mx-cols-2, .mx-cols-3, .mx-cols-4 { --mx-cols: 1; }
}

/* ---------- Cards ---------- */
.mx-card,
.e-con.mx-card {
	position: relative;
	overflow: hidden;
	background: var(--mx-card);
	border: 1px solid var(--mx-border);
	border-radius: var(--mx-radius);
	padding: 28px;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
	--padding-top: 28px; --padding-bottom: 28px; --padding-left: 28px; --padding-right: 28px;
	--gap: 0px;
	display: block;
	height: 100%;
}
.mx-card::after {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 3px;
	background: var(--mx-gold);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.4s ease;
	pointer-events: none;
}
.mx-card:hover,
.mx-card:focus-within { box-shadow: var(--mx-shadow); }
.mx-card:hover::after,
.mx-card:focus-within::after { transform: scaleX(1); }
.mx-card-title,
.mx-card-title .elementor-heading-title,
.mx-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.mx-card p:last-child { margin-bottom: 0; }

.mx-card.elementor-widget-icon-box { padding: 28px; }
.mx-card .elementor-icon-box-wrapper { text-align: left; display: block; }
.mx-card .elementor-icon-box-icon { margin: 0 0 16px; }
.mx-card .elementor-icon-box-title a { color: var(--mx-heading); text-decoration: none; }
.mx-card .elementor-icon-box-title a:hover { color: var(--mx-link); text-decoration: underline; }
.mx-card .elementor-icon-box-title,
.mx-card .elementor-icon-box-title a { font-size: 1.2rem; }
.mx-card .elementor-icon-box-description,
.mx-card .elementor-widget-container { color: var(--mx-muted); }
.mx-card .elementor-icon { color: var(--mx-link); font-size: 34px; }
.mx-card .elementor-icon i { color: var(--mx-link); }
.mx-card .elementor-icon svg { fill: var(--mx-link); }
.mx-card .elementor-heading-title { color: var(--mx-heading); }

.mx-checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.mx-checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.mx-checklist li::before {
	content: "";
	position: absolute; left: 0; top: 0.5em;
	width: 14px; height: 8px;
	border-left: 3px solid var(--mx-link);
	border-bottom: 3px solid var(--mx-link);
	transform: rotate(-45deg);
}

.mx-step-no .elementor-heading-title,
.mx-step-no {
	color: var(--mx-link);
	font-size: 2.2rem;
	font-weight: 800;
	margin-bottom: 6px;
}

.mx-note,
.mx-note .elementor-widget-container {
	font-size: 0.95rem;
	color: var(--mx-muted);
	border: 1px dashed var(--mx-border);
	border-radius: 10px;
	padding: 10px 16px;
	margin-bottom: 28px;
	text-align: center;
}

/* ---------- Hero (home) ---------- */
.mx-hero {
	background: var(--mx-hero);
	position: relative;
	overflow: hidden;
	padding-top: clamp(48px, 7vw, 96px);
	padding-bottom: clamp(48px, 7vw, 96px);
}
.mx-hero::before {
	content: "";
	position: absolute;
	right: -120px; top: -120px;
	width: 420px; height: 420px;
	border: 2px solid var(--mx-shape);
	transform: rotate(45deg);
	pointer-events: none;
}
.mx-hero-grid { align-items: center; gap: 40px; }
.mx-hero-grid .mx-lead { max-width: 560px; }
.mx-hero-img { max-width: 600px; margin-inline: auto; width: 100%; }
.mx-hero-img img {
	width: 100%;
	filter: drop-shadow(0 24px 36px rgba(8, 13, 24, 0.35));
	animation: mx-float 9s ease-in-out infinite;
}
@keyframes mx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (max-width: 900px) { .mx-hero-img { max-width: 440px; } }

/* ---------- Media (images and videos, all replaceable in Elementor) ---------- */
.mx-media img,
.mx-media video,
.mx-media .elementor-wrapper {
	width: 100%;
	border-radius: 16px;
	border: 1px solid var(--mx-border);
	box-shadow: var(--mx-shadow);
	display: block;
}
.mx-media .elementor-wrapper { overflow: hidden; }
.mx-split { align-items: center; gap: 48px; }
.e-con.mx-split { --gap: 48px; }
.mx-stack,
.e-con.mx-stack { display: flex; flex-direction: column; gap: 24px; --flex-direction: column; --gap: 24px; }
.mx-section.mx-tight,
.e-con.mx-section.mx-tight { padding-bottom: 0; --padding-bottom: 0px; }
.mx-media-lg img { width: 100%; }
@media (max-width: 900px) { .mx-split { gap: 28px; } }

.mx-btn-sm .elementor-button,
.mx-btn.mx-btn-sm { padding: 9px 20px; font-size: 0.92rem; }

/* ---------- Stats / counters ---------- */
.mx-stats { background: var(--mx-surface); padding-top: 48px; padding-bottom: 48px; }
.mx-stat .elementor-counter-number-wrapper,
.mx-stat .elementor-counter-number,
.mx-stat .elementor-counter-number-suffix {
	color: var(--mx-link);
	font-size: 2.6rem;
	font-weight: 800;
	line-height: 1.1;
	justify-content: center;
}
.mx-stat .elementor-counter-title { color: var(--mx-muted); text-align: center; font-size: 1rem; margin-top: 6px; }
.mx-stat .elementor-counter { text-align: center; }

/* ---------- Projects ---------- */
.mx-project,
.e-con.mx-project {
	padding: 0;
	--padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px;
	display: flex;
	flex-direction: column;
	--flex-direction: column;
}
.mx-card-img { margin: 0 !important; overflow: hidden; width: 100%; }
.mx-card-img img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}
.mx-project:hover .mx-card-img img { transform: scale(1.04); }
.mx-card-pad,
.e-con.mx-card-pad {
	padding: 24px;
	--padding-top: 24px; --padding-bottom: 24px; --padding-left: 24px; --padding-right: 24px;
	display: flex;
	flex-direction: column;
	--flex-direction: column;
	flex: 1;
}
.mx-card-pad .elementor-widget-button { margin-top: auto; padding-top: 8px; }
.mx-card-pad .elementor-heading-title.elementor-size-default { margin-bottom: 8px; }

.mx-filter-wrap { margin-bottom: 8px; }
.mx-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 32px; }
.mx-filter button {
	font: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 9px 20px;
	border-radius: 999px;
	border: 2px solid var(--mx-border);
	background: var(--mx-card);
	color: var(--mx-heading);
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}
.mx-filter button:hover { border-color: var(--mx-gold); }
.mx-filter button.is-active { background: var(--mx-gold); border-color: var(--mx-gold); color: var(--mx-on-gold); }
.mx-project.is-hidden { display: none !important; }

.mx-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	background-color: var(--mx-surface);
	background-image:
		linear-gradient(135deg, transparent 0 55%, var(--mx-shape) 55% 70%, transparent 70%),
		repeating-linear-gradient(45deg, var(--mx-border) 0 1px, transparent 1px 22px);
}
.mx-thumb-2 { background-image: radial-gradient(circle at 30% 40%, var(--mx-shape) 0 22%, transparent 23%), repeating-linear-gradient(-45deg, var(--mx-border) 0 1px, transparent 1px 22px); }
.mx-thumb-3 { background-image: linear-gradient(60deg, var(--mx-shape) 0 30%, transparent 30%), repeating-linear-gradient(90deg, var(--mx-border) 0 1px, transparent 1px 26px); }
.mx-thumb-4 { background-image: conic-gradient(from 45deg at 70% 60%, var(--mx-shape), transparent 25%, var(--mx-shape) 50%, transparent 75%), repeating-linear-gradient(45deg, var(--mx-border) 0 1px, transparent 1px 22px); }
.mx-thumb-5 { background-image: linear-gradient(120deg, transparent 0 40%, var(--mx-shape) 40% 55%, transparent 55%), repeating-linear-gradient(0deg, var(--mx-border) 0 1px, transparent 1px 26px); }
.mx-thumb-6 { background-image: radial-gradient(circle at 70% 30%, var(--mx-shape) 0 18%, transparent 19%), repeating-linear-gradient(135deg, var(--mx-border) 0 1px, transparent 1px 22px); }

.mx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.mx-tags span,
.mx-tags a {
	font-size: 0.8rem;
	padding: 3px 12px;
	border: 1px solid var(--mx-border);
	border-radius: 999px;
	color: var(--mx-muted);
	text-decoration: none;
}

/* ---------- Pricing ---------- */
.mx-price { position: relative; }
.mx-price .mx-price-amount { font-size: 2rem; font-weight: 800; color: var(--mx-heading); margin-bottom: 6px; line-height: 1.2; }
.mx-price .mx-price-amount small { font-size: 0.9rem; font-weight: 500; color: var(--mx-muted); }
.mx-featured { border: 2px solid var(--mx-gold); box-shadow: var(--mx-shadow); }
.mx-badge .elementor-heading-title,
.mx-badge {
	display: inline-block;
	background: var(--mx-gold);
	color: var(--mx-on-gold);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 800;
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 12px;
}
.mx-badge .elementor-heading-title { color: var(--mx-on-gold); padding: 0; margin: 0; }
.mx-price .elementor-widget-button { margin-top: 16px; }

/* ---------- Testimonials ---------- */
.mx-quote .elementor-testimonial-content { font-size: 1.05rem; color: var(--mx-text); font-style: italic; margin-bottom: 18px; }
.mx-quote .elementor-testimonial-name { color: var(--mx-heading); font-weight: 700; }
.mx-quote .elementor-testimonial-job { color: var(--mx-muted); font-size: 0.92rem; }
.mx-quote .elementor-testimonial-wrapper { text-align: left; }
.mx-quote .elementor-testimonial-meta { margin-top: 8px; }
.mx-quote::before { content: "\201C"; font-size: 3.5rem; line-height: 1; color: var(--mx-gold); display: block; height: 32px; }

/* ---------- Accordion / FAQ ---------- */
.mx-accordion .elementor-accordion-item,
.mx-details {
	border: 1px solid var(--mx-border);
	border-radius: 12px;
	background: var(--mx-card);
	margin-bottom: 12px;
	overflow: hidden;
}
.mx-accordion .elementor-accordion .elementor-accordion-item { border: 1px solid var(--mx-border); }
.mx-accordion .elementor-tab-title,
.mx-details summary {
	color: var(--mx-heading);
	font-weight: 700;
	padding: 18px 22px;
	cursor: pointer;
}
.mx-accordion .elementor-tab-title a { color: var(--mx-heading); }
.mx-accordion .elementor-tab-title.elementor-active,
.mx-accordion .elementor-tab-title.elementor-active a { color: var(--mx-link); }
.mx-accordion .elementor-tab-content { color: var(--mx-text); padding: 0 22px 20px; border-top: 0; }
.mx-accordion .elementor-accordion-icon { color: var(--mx-link); }
.mx-details > div { padding: 0 22px 18px; }

/* ---------- CTA ---------- */
.mx-cta { background: var(--mx-bg); }
.mx-cta-box,
.e-con.mx-cta-box {
	text-align: center;
	border: 1px solid var(--mx-border);
	border-radius: 24px;
	padding: clamp(32px, 6vw, 64px);
	background: var(--mx-hero);
	position: relative;
	overflow: hidden;
	display: block;
	--padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px;
}
.mx-cta-box .mx-lead { max-width: 620px; margin-inline: auto; }
.mx-cta-box .mx-actions { justify-content: center; }
.mx-cta-box::before {
	content: "";
	position: absolute;
	left: -60px; bottom: -60px;
	width: 180px; height: 180px;
	border: 2px solid var(--mx-shape);
	transform: rotate(45deg);
	pointer-events: none;
}

/* ---------- Contact ---------- */
.mx-contact-list li { display: flex; flex-direction: column; margin-bottom: 14px; }
.mx-contact-list strong { color: var(--mx-heading); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.mx-social { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.mx-social a { font-weight: 600; }

.mx-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--mx-heading); }
.mx-form .req { color: var(--mx-link); }
.mx-form input[type="text"],
.mx-form input[type="email"],
.mx-form textarea,
.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 13px 16px;
	font: inherit;
	color: var(--mx-text);
	background: var(--mx-bg);
	border: 2px solid var(--mx-border);
	border-radius: 10px;
}
.mx-form input:focus,
.mx-form textarea:focus,
.search-field:focus { border-color: var(--mx-gold); outline: 0; box-shadow: 0 0 0 3px rgba(212, 165, 55, 0.35); }
.mx-consent { display: flex; gap: 10px; align-items: flex-start; }
.mx-consent input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--mx-gold); }
.mx-consent label { font-weight: 400; font-size: 0.95rem; }
.mx-hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.mx-form-note { padding: 14px 18px; border-radius: 10px; border: 2px solid; font-weight: 600; margin-bottom: 18px; }
.mx-form-note.is-success { border-color: #1f7a45; color: var(--mx-heading); background: rgba(31, 122, 69, 0.12); }
.mx-form-note.is-error { border-color: #b3261e; color: var(--mx-heading); background: rgba(179, 38, 30, 0.12); }

.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form .search-field { flex: 1; }

/* ---------- Blog ---------- */
.mx-post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mx-post-card .mx-card-media { display: block; }
.mx-post-card .mx-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.mx-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.mx-card-body .mx-card-title a { color: var(--mx-heading); text-decoration: none; }
.mx-card-body .mx-card-title a:hover { color: var(--mx-link); text-decoration: underline; }
.mx-excerpt { color: var(--mx-muted); flex: 1; }
.mx-excerpt p { margin-bottom: 14px; }
.mx-meta { font-size: 0.88rem; color: var(--mx-muted); display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; }
.mx-cat { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.mx-post-list .mx-post-card { flex-direction: row; }
.mx-post-list .mx-card-media { width: 34%; flex: none; }
.mx-post-list .mx-card-media .mx-thumb { height: 100%; aspect-ratio: auto; min-height: 180px; }
@media (max-width: 720px) { .mx-post-list .mx-post-card { flex-direction: column; } .mx-post-list .mx-card-media { width: 100%; } }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
	padding: 8px 16px;
	border: 1px solid var(--mx-border);
	border-radius: 999px;
	text-decoration: none;
	color: var(--mx-heading);
	background: var(--mx-card);
}
.pagination .page-numbers.current { background: var(--mx-gold); color: var(--mx-on-gold); border-color: var(--mx-gold); font-weight: 700; }

.entry-content { font-size: 1.1rem; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content pre {
	background: var(--mx-surface);
	border: 1px solid var(--mx-border);
	border-radius: 10px;
	padding: 16px;
	overflow-x: auto;
	font-size: 0.92rem;
}
.entry-content code { background: var(--mx-surface); padding: 2px 6px; border-radius: 5px; font-size: 0.92em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content blockquote { border-left: 4px solid var(--mx-gold); margin: 1.5em 0; padding: 4px 20px; color: var(--mx-muted); }
.entry-content img { border-radius: 10px; }
.post-thumb { margin: 0 0 28px; }
.entry-footer { margin-top: 32px; }
.post-navigation { display: flex; justify-content: space-between; gap: 20px; margin: 48px 0; padding-top: 24px; border-top: 1px solid var(--mx-border); }
.post-navigation a { font-weight: 700; text-decoration: none; }
.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
@media (max-width: 960px) { .has-sidebar { grid-template-columns: 1fr; } }
.widget { margin-bottom: 32px; }
.widget-title { font-size: 1.1rem; }
.widget ul { padding-left: 1.2em; }
.mx-legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.mx-empty { text-align: center; padding: 40px 0; }
.mx-empty .search-form { margin: 0 auto; }

.comment-list { list-style: none; padding: 0; }
.comment-body { border: 1px solid var(--mx-border); border-radius: 12px; padding: 18px; margin-bottom: 16px; background: var(--mx-card); }
.comment-list .children { list-style: none; padding-left: 24px; }

/* ---------- Interactive blog ---------- */
.mx-progress {
	position: fixed; top: 0; left: 0; right: 0; height: 4px;
	background: var(--mx-gold);
	transform: scaleX(0); transform-origin: left center;
	z-index: 1001; pointer-events: none;
}
.admin-bar .mx-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .mx-progress { top: 46px; } }

.post-thumb img { width: 100%; border-radius: 16px; border: 1px solid var(--mx-border); }
.mx-callout {
	background: var(--mx-surface);
	border: 1px solid var(--mx-border);
	border-left: 5px solid var(--mx-gold);
	border-radius: 12px;
	padding: 20px 24px;
	margin: 1.6em 0;
}
.mx-callout-title { display: block; color: var(--mx-heading); margin-bottom: 8px; font-size: 1.05rem; }
.mx-callout ul { margin: 0; }

.mx-toc { border: 1px solid var(--mx-border); border-radius: 12px; padding: 18px 24px; margin: 1.6em 0; background: var(--mx-card); }
.mx-toc-title { font-weight: 700; color: var(--mx-heading); margin: 0 0 8px; }
.mx-toc ol { margin: 0; padding-left: 1.2em; }
.mx-toc a { text-decoration: none; color: var(--mx-text); }
.mx-toc a:hover, .mx-toc a.is-active { color: var(--mx-link); text-decoration: underline; }

.mx-figure { margin: 2em 0; }
.mx-figure img, .mx-figure video { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--mx-border); box-shadow: var(--mx-shadow); display: block; }
.mx-figure figcaption { text-align: center; color: var(--mx-muted); font-size: 0.92rem; margin-top: 10px; }

.mx-todo { border: 1px solid var(--mx-border); border-radius: 14px; padding: 22px 24px; margin: 2em 0; background: var(--mx-card); }
.mx-todo-title { font-weight: 700; color: var(--mx-heading); margin: 0 0 12px; }
.mx-todo ul { list-style: none; padding: 0; margin: 0 0 14px; }
.mx-todo li { margin: 0 0 8px; }
.mx-todo label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.mx-todo input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--mx-gold); flex: none; }
.mx-todo input:checked + span { text-decoration: line-through; color: var(--mx-muted); }
.mx-todo-bar { height: 8px; border-radius: 4px; background: var(--mx-border); overflow: hidden; }
.mx-todo-bar span { display: block; height: 100%; width: 0; background: var(--mx-gold); transition: width 0.35s ease; }
.mx-todo-count { font-size: 0.9rem; color: var(--mx-muted); margin: 8px 0 0; }

.entry-content pre { position: relative; }
.mx-copy {
	position: absolute; top: 8px; right: 8px;
	font: inherit; font-size: 0.8rem; font-weight: 600;
	padding: 4px 12px; border-radius: 999px;
	border: 1px solid var(--mx-border); background: var(--mx-card); color: var(--mx-heading); cursor: pointer;
}
.mx-copy:hover { border-color: var(--mx-gold); }

.mx-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 32px 0; padding-top: 24px; border-top: 1px solid var(--mx-border); }
.mx-share-label { font-weight: 700; color: var(--mx-heading); margin-right: 4px; }
.mx-share a, .mx-share button {
	font: inherit; font-size: 0.9rem; font-weight: 600; text-decoration: none;
	padding: 8px 16px; border-radius: 999px; border: 2px solid var(--mx-border);
	background: var(--mx-card); color: var(--mx-heading); cursor: pointer;
}
.mx-share a:hover, .mx-share button:hover { border-color: var(--mx-gold); }
.mx-author { display: flex; gap: 16px; border: 1px solid var(--mx-border); border-radius: 14px; padding: 20px 24px; background: var(--mx-surface); margin-bottom: 32px; }
.mx-author p { margin: 0; color: var(--mx-muted); }
.mx-author strong { color: var(--mx-heading); display: block; }
.mx-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--mx-surface); border-top: 1px solid var(--mx-border); color: var(--mx-text); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: var(--mx-text); text-decoration: none; }
.footer-menu a:hover { color: var(--mx-link); text-decoration: underline; }
.footer-about p { color: var(--mx-muted); margin-top: 14px; }
.footer-bottom { border-top: 1px solid var(--mx-border); padding: 20px 0; font-size: 0.92rem; color: var(--mx-muted); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion (progressive, reduced-motion safe) ---------- */
.mx-anim-ready .mx-reveal { opacity: 0; translate: 0 24px; transition: opacity 0.6s ease, translate 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.mx-anim-ready .mx-reveal.is-visible { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.mx-anim-ready .mx-reveal { opacity: 1; translate: none; }
}
.mx-no-motion *, .mx-no-motion *::before, .mx-no-motion *::after { animation: none !important; }
.mx-no-motion.mx-anim-ready .mx-reveal { opacity: 1; translate: none; }

/* Elementor editor: never hide content while editing. */
.elementor-editor-active .mx-reveal { opacity: 1 !important; translate: none !important; }

@media print {
	.site-header, .site-footer, .mx-theme-toggle, .mx-hero-visual { display: none; }
	body { background: #fff; color: #000; }
}
