/*
Theme Name: MEKK Storefront
Description: MEKK WooCommerce child theme. Elementor is used for editorial content while transactional views remain theme and WooCommerce owned.
Author: MEKK
Version: 1.0.4
Template: hello-elementor
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: mekk-storefront
*/

:root {
	--mekk-primary: #041b4d;
	--mekk-primary-soft: #1e3163;
	--mekk-navy: #111b36;
	--mekk-gold: #f5c445;
	--mekk-gold-dark: #7b5a00;
	--mekk-ink: #0c1c30;
	--mekk-muted: #5d6470;
	--mekk-surface: #f8f9ff;
	--mekk-surface-low: #eff3ff;
	--mekk-surface-mid: #e6eeff;
	--mekk-white: #ffffff;
	--mekk-line: #dfe4ee;
	--mekk-success: #216e4e;
	--mekk-danger: #a13b34;
	--mekk-radius-sm: 4px;
	--mekk-radius: 8px;
	--mekk-radius-lg: 16px;
	--mekk-shadow-sm: 0 4px 14px rgba(12, 28, 48, 0.06);
	--mekk-shadow-lg: 0 24px 64px rgba(12, 28, 48, 0.14);
	--mekk-container: 1280px;
	--mekk-reading: 820px;
	--mekk-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--mekk-display: "Hanken Grotesk", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-width: 320px;
	background: var(--mekk-white);
	color: var(--mekk-ink);
	font-family: var(--mekk-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.mekk-menu-open {
	overflow: hidden;
}

a {
	color: var(--mekk-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--mekk-primary-soft);
}

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

button,
input,
select,
textarea {
	font: inherit;
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--mekk-gold);
	outline-offset: 3px;
}

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

.mekk-container {
	width: min(var(--mekk-container), calc(100% - 40px));
	margin-inline: auto;
}

.mekk-reading-container {
	max-width: var(--mekk-reading);
}

.mekk-skip-link {
	position: fixed;
	z-index: 10000;
	top: 12px;
	left: 12px;
	padding: 10px 16px;
	background: var(--mekk-gold);
	color: var(--mekk-navy);
	font-weight: 700;
	transform: translateY(-180%);
}

.mekk-skip-link:focus {
	transform: translateY(0);
}

.mekk-eyebrow {
	margin: 0 0 8px;
	color: #53678f;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.mekk-button,
.mekk-entry-content .wp-element-button {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border: 1px solid transparent;
	border-radius: var(--mekk-radius-sm);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.mekk-button:hover,
.mekk-entry-content .wp-element-button:hover {
	transform: translateY(-1px);
}

.mekk-button--primary,
.mekk-entry-content .wp-element-button {
	background: var(--mekk-primary);
	color: var(--mekk-white);
}

.mekk-button--gold {
	background: var(--mekk-gold);
	color: var(--mekk-navy);
}

.mekk-button--outline {
	border-color: rgba(255, 255, 255, 0.48);
	background: transparent;
	color: var(--mekk-white);
}

.mekk-ruo-strip {
	padding: 7px 0;
	background: var(--mekk-navy);
	color: var(--mekk-white);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.055em;
	line-height: 1.4;
	text-transform: uppercase;
}

.mekk-ruo-strip .mekk-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.mekk-ruo-origin {
	color: #dce5ff;
	white-space: nowrap;
}

.mekk-site-header {
	position: sticky;
	z-index: 100;
	top: 0;
	border-bottom: 1px solid rgba(117, 118, 128, 0.18);
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 1px 5px rgba(12, 28, 48, 0.04);
	backdrop-filter: blur(18px);
}

.mekk-header-inner {
	display: grid;
	min-height: 72px;
	grid-template-columns: 170px minmax(0, 1fr) auto;
	align-items: center;
	gap: 26px;
}

.mekk-logo-link {
	display: inline-flex;
	width: 166px;
	height: 50px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--mekk-white);
}

.mekk-logo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mekk-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--mekk-line);
	border-radius: var(--mekk-radius-sm);
	background: var(--mekk-white);
	color: var(--mekk-navy);
}

.mekk-menu-icon {
	display: grid;
	width: 20px;
	gap: 4px;
}

.mekk-menu-icon span {
	display: block;
	height: 2px;
	background: currentColor;
	transition: transform 160ms ease, opacity 160ms ease;
}

.mekk-menu-toggle[aria-expanded="true"] .mekk-menu-icon span:first-child {
	transform: translateY(6px) rotate(45deg);
}

.mekk-menu-toggle[aria-expanded="true"] .mekk-menu-icon span:nth-child(2) {
	opacity: 0;
}

.mekk-menu-toggle[aria-expanded="true"] .mekk-menu-icon span:last-child {
	transform: translateY(-6px) rotate(-45deg);
}

.mekk-primary-nav {
	justify-self: center;
}

.mekk-menu,
.mekk-menu ul,
.mekk-footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mekk-menu {
	display: flex;
	align-items: center;
	gap: 5px;
}

.mekk-menu > li {
	position: relative;
}

.mekk-menu > li > a {
	display: flex;
	min-height: 44px;
	align-items: center;
	padding: 0 12px;
	color: #45464f;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.mekk-menu > li.current-menu-item > a,
.mekk-menu > li.current-menu-ancestor > a,
.mekk-menu > li > a:hover {
	color: var(--mekk-primary);
}

.mekk-menu .sub-menu {
	position: absolute;
	top: calc(100% - 2px);
	left: 0;
	display: none;
	width: 230px;
	padding: 8px;
	border: 1px solid var(--mekk-line);
	border-radius: var(--mekk-radius);
	background: var(--mekk-white);
	box-shadow: var(--mekk-shadow-lg);
}

.mekk-menu li:hover > .sub-menu,
.mekk-menu li:focus-within > .sub-menu {
	display: block;
}

.mekk-menu .sub-menu a {
	display: block;
	padding: 9px 10px;
	border-radius: var(--mekk-radius-sm);
	color: var(--mekk-ink);
	font-size: 13px;
	text-decoration: none;
}

.mekk-menu .sub-menu a:hover {
	background: var(--mekk-surface-low);
}

.mekk-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mekk-mobile-nav-tools {
	display: none;
}

.mekk-language-switcher {
	display: flex;
	height: 36px;
	align-items: center;
	gap: 5px;
	padding: 0 8px;
	border: 1px solid var(--mekk-line);
	border-radius: var(--mekk-radius-sm);
	color: var(--mekk-muted);
	font-size: 11px;
	font-weight: 700;
}

.mekk-language-switcher a {
	color: var(--mekk-muted);
	text-decoration: none;
}

.mekk-language-switcher a[aria-current="page"] {
	color: var(--mekk-primary);
}

.mekk-account-link {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border: 1px solid var(--mekk-line);
	border-radius: var(--mekk-radius-sm);
	color: var(--mekk-navy);
	font-size: 22px;
	text-decoration: none;
}

.mekk-cart-link {
	display: flex;
	min-height: 40px;
	align-items: center;
	gap: 9px;
	padding: 7px 10px 7px 14px;
	border-radius: var(--mekk-radius-sm);
	background: var(--mekk-primary);
	color: var(--mekk-white);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.mekk-cart-link:hover {
	background: var(--mekk-primary-soft);
	color: var(--mekk-white);
}

.mekk-cart-count {
	display: grid;
	min-width: 23px;
	height: 23px;
	place-items: center;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--mekk-gold);
	color: var(--mekk-navy);
	font-size: 11px;
}

.mekk-builder-content {
	min-height: 40vh;
}

.mekk-hero {
	padding: 44px 0;
	background: var(--mekk-surface);
}

.mekk-hero-grid {
	position: relative;
	display: grid;
	min-height: 510px;
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
	align-items: center;
	gap: 56px;
	overflow: hidden;
	padding: 68px;
	border-radius: var(--mekk-radius);
	background:
		radial-gradient(circle at 86% 20%, rgba(76, 105, 170, 0.55), transparent 33%),
		linear-gradient(120deg, var(--mekk-navy), var(--mekk-primary));
	color: var(--mekk-white);
}

.mekk-hero-grid::after {
	position: absolute;
	right: -90px;
	bottom: -140px;
	width: 420px;
	height: 420px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 50%;
	box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.035), 0 0 0 110px rgba(255, 255, 255, 0.025);
	content: "";
}

.mekk-hero-copy,
.mekk-hero-panel {
	position: relative;
	z-index: 1;
}

.mekk-hero .mekk-eyebrow {
	color: #b8c9f1;
}

.mekk-hero h1 {
	max-width: 760px;
	margin: 0;
	color: var(--mekk-white);
	font-family: var(--mekk-display);
	font-size: clamp(42px, 5vw, 72px);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.02;
}

.mekk-hero-lede {
	max-width: 650px;
	margin: 24px 0 0;
	color: #dbe5ff;
	font-size: 18px;
}

.mekk-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 32px;
}

.mekk-hero-panel {
	padding: 30px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--mekk-radius);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
	backdrop-filter: blur(12px);
}

.mekk-hero-panel h2 {
	margin: 0 0 18px;
	color: var(--mekk-white);
	font-family: var(--mekk-display);
	font-size: 27px;
	line-height: 1.2;
}

.mekk-hero-panel ul {
	display: grid;
	gap: 13px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mekk-hero-panel li {
	position: relative;
	padding-left: 24px;
	color: #e9efff;
	font-size: 14px;
}

.mekk-hero-panel li::before {
	position: absolute;
	top: 0.65em;
	left: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--mekk-gold);
	content: "";
}

.mekk-trust-row {
	border-block: 1px solid var(--mekk-line);
	background: var(--mekk-white);
}

.mekk-trust-row .mekk-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.mekk-trust-row .mekk-container > div {
	display: grid;
	gap: 2px;
	padding: 22px 24px;
	border-right: 1px solid var(--mekk-line);
	text-align: center;
}

.mekk-trust-row .mekk-container > div:first-child {
	border-left: 1px solid var(--mekk-line);
}

.mekk-trust-row strong {
	color: var(--mekk-primary);
	font-size: 14px;
}

.mekk-trust-row span {
	color: var(--mekk-muted);
	font-size: 12px;
}

.mekk-section {
	padding: 80px 0;
}

.mekk-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.mekk-section-heading h2,
.mekk-compliance-section h2 {
	margin: 0;
	color: var(--mekk-primary);
	font-family: var(--mekk-display);
	font-size: clamp(32px, 4vw, 48px);
	letter-spacing: -0.025em;
	line-height: 1.12;
}

.mekk-section-heading > a,
.mekk-text-link {
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.mekk-empty-state {
	padding: 60px 24px;
	border: 1px dashed #aebfe4;
	border-radius: var(--mekk-radius);
	background: var(--mekk-surface);
	color: var(--mekk-muted);
	text-align: center;
}

.mekk-compliance-section {
	background: var(--mekk-surface-low);
}

.mekk-compliance-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 80px;
}

.mekk-compliance-grid p:not(.mekk-eyebrow) {
	margin: 0 0 20px;
	color: #45464f;
	font-size: 17px;
}

.mekk-content-page,
.mekk-not-found {
	min-height: 58vh;
	padding: 72px 0 96px;
}

.mekk-content-page--builder {
	padding: 0;
}

.mekk-page-header {
	margin-bottom: 40px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--mekk-line);
}

.mekk-page-header h1,
.mekk-not-found h1 {
	margin: 0;
	color: var(--mekk-primary);
	font-family: var(--mekk-display);
	font-size: clamp(38px, 5vw, 60px);
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.mekk-entry-content {
	color: #273549;
}

.mekk-entry-content > * + * {
	margin-top: 1.4em;
}

.mekk-entry-content h2,
.mekk-entry-content h3 {
	margin-top: 1.8em;
	color: var(--mekk-primary);
	font-family: var(--mekk-display);
	line-height: 1.2;
}

.mekk-entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.mekk-entry-content th,
.mekk-entry-content td {
	padding: 12px;
	border: 1px solid var(--mekk-line);
	text-align: left;
}

.mekk-post-list {
	display: grid;
	gap: 18px;
}

.mekk-post-card {
	padding: 24px;
	border: 1px solid var(--mekk-line);
	border-radius: var(--mekk-radius);
	box-shadow: var(--mekk-shadow-sm);
}

.mekk-post-card h2 {
	margin: 0 0 8px;
	font-family: var(--mekk-display);
}

.mekk-post-card h2 a {
	text-decoration: none;
}

.mekk-not-found {
	display: grid;
	place-items: center;
	text-align: center;
}

.mekk-not-found .mekk-container {
	max-width: 650px;
}

.mekk-not-found p:not(.mekk-eyebrow) {
	margin: 16px 0 28px;
	color: var(--mekk-muted);
}

.mekk-site-footer {
	padding: 60px 0 28px;
	background: var(--mekk-navy);
	color: #dce5f8;
}

.mekk-footer-grid {
	display: grid;
	grid-template-columns: minmax(280px, 2fr) 1fr 1fr;
	gap: 64px;
}

.mekk-logo-link--footer {
	width: 178px;
	height: 54px;
	margin-bottom: 14px;
}

.mekk-footer-brand > p {
	max-width: 500px;
	margin: 8px 0;
	color: #c7d2e8;
	font-size: 14px;
}

.mekk-footer-brand .mekk-origin-label {
	color: var(--mekk-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.mekk-footer-column h2 {
	margin: 0 0 15px;
	color: var(--mekk-white);
	font-size: 13px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.mekk-footer-menu {
	display: grid;
	gap: 8px;
}

.mekk-footer-menu a {
	color: #dce5f8;
	font-size: 14px;
	text-decoration: none;
}

.mekk-footer-menu a:hover {
	color: var(--mekk-gold);
}

.mekk-footer-legal {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	margin-top: 46px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: #aebbd4;
	font-size: 12px;
}

.mekk-footer-legal p {
	max-width: 880px;
	margin: 0;
}

@media (max-width: 1050px) {
	.mekk-header-inner {
		grid-template-columns: 145px minmax(0, 1fr) auto;
		gap: 12px;
	}

	.mekk-logo-link {
		width: 142px;
	}

	.mekk-menu > li > a {
		padding-inline: 7px;
		font-size: 13px;
	}

	.mekk-hero-grid {
		grid-template-columns: 1fr 0.75fr;
		gap: 36px;
		padding: 48px;
	}
}

@media (max-width: 820px) {
	.mekk-container {
		width: min(100% - 32px, var(--mekk-container));
	}

	.mekk-ruo-strip {
		font-size: 9px;
	}

	.mekk-ruo-origin {
		display: none;
	}

	.mekk-header-inner {
		position: relative;
		grid-template-columns: 48px minmax(0, 1fr) auto;
		min-height: 66px;
	}

	.mekk-logo-link {
		grid-column: 2;
		justify-self: center;
		width: 146px;
		height: 44px;
	}

	.mekk-menu-toggle {
		display: inline-flex;
		grid-column: 1;
		grid-row: 1;
	}

	.mekk-primary-nav {
		grid-column: 1 / -1;
		width: 100%;
		padding: 6px 0 16px;
	}

	.mekk-js .mekk-primary-nav {
		position: absolute;
		top: 100%;
		left: -16px;
		display: none;
		width: calc(100% + 32px);
		max-height: calc(100vh - 100px);
		overflow: auto;
		padding: 16px;
		border-bottom: 1px solid var(--mekk-line);
		background: var(--mekk-white);
		box-shadow: var(--mekk-shadow-lg);
	}

	.mekk-js .mekk-primary-nav.is-open {
		display: block;
	}

	.mekk-menu {
		display: grid;
		gap: 2px;
	}

	.mekk-menu > li > a {
		min-height: 48px;
		padding-inline: 12px;
		border-bottom: 1px solid var(--mekk-line);
	}

	.mekk-menu .sub-menu {
		position: static;
		display: block;
		width: auto;
		margin-left: 14px;
		border: 0;
		box-shadow: none;
	}

	.mekk-mobile-nav-tools {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 18px 12px 4px;
	}

	.mekk-mobile-nav-tools > a {
		font-size: 13px;
		font-weight: 700;
		text-decoration: none;
	}

	.mekk-mobile-nav-tools .mekk-language-switcher {
		display: flex;
	}

	.mekk-header-actions {
		grid-column: 3;
		grid-row: 1;
	}

	.mekk-header-actions > .mekk-language-switcher {
		display: none;
	}

	.mekk-account-link {
		display: none;
	}

	.mekk-cart-link {
		width: 44px;
		justify-content: center;
		padding: 6px;
	}

	.mekk-cart-link > span:first-child {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.mekk-hero {
		padding: 0;
	}

	.mekk-hero .mekk-container {
		width: 100%;
	}

	.mekk-hero-grid {
		min-height: auto;
		grid-template-columns: 1fr;
		padding: 64px 24px;
		border-radius: 0;
		text-align: center;
	}

	.mekk-hero-copy {
		max-width: 620px;
		margin: auto;
	}

	.mekk-hero h1 {
		font-size: clamp(38px, 10vw, 58px);
	}

	.mekk-hero-lede {
		font-size: 16px;
	}

	.mekk-hero-actions {
		justify-content: center;
	}

	.mekk-hero-panel {
		max-width: 560px;
		margin: 0 auto;
		text-align: left;
	}

	.mekk-trust-row .mekk-container {
		grid-template-columns: repeat(2, 1fr);
	}

	.mekk-trust-row .mekk-container > div:nth-child(3) {
		border-left: 1px solid var(--mekk-line);
	}

	.mekk-trust-row .mekk-container > div:nth-child(-n + 2) {
		border-bottom: 1px solid var(--mekk-line);
	}

	.mekk-section {
		padding: 60px 0;
	}

	.mekk-compliance-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.mekk-footer-grid {
		grid-template-columns: 1.5fr 1fr 1fr;
		gap: 32px;
	}
}

@media (max-width: 560px) {
	.mekk-ruo-strip .mekk-container {
		justify-content: center;
		text-align: center;
	}

	.mekk-header-inner {
		grid-template-columns: 44px minmax(0, 1fr) 40px;
	}

	.mekk-logo-link {
		width: 130px;
	}

	.mekk-menu-toggle,
	.mekk-cart-link {
		width: 40px;
		height: 40px;
		min-height: 40px;
	}

	.mekk-hero-grid {
		padding: 54px 20px;
	}

	.mekk-hero-panel {
		padding: 22px;
	}

	.mekk-button {
		width: 100%;
	}

	.mekk-trust-row .mekk-container {
		width: 100%;
	}

	.mekk-trust-row .mekk-container > div {
		padding: 17px 10px;
	}

	.mekk-section-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.mekk-content-page,
	.mekk-not-found {
		padding: 52px 0 72px;
	}

	.mekk-footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.mekk-footer-brand {
		grid-column: 1 / -1;
	}

	.mekk-footer-legal {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
