/* ==========================================================================
   Quantivista — main stylesheet
   Mobile-first. Tokens → base → layout → components → sections → pages.
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-var-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
	--c-navy-950: #050818;
	--c-navy-900: #070b24;
	--c-navy-800: #0d1440;
	--c-navy-700: #18225a;
	--c-navy-600: #283477;
	--c-blue-500: #5b6cff;
	--c-blue-600: #3a54e8;
	--c-cyan-300: #67e8f9;
	--c-cyan-400: #22d3ee;
	--c-cyan-700: #0e7490;
	--c-green-600: #15803d;
	--c-amber-500: #f59e0b;
	--c-red-600: #dc2626;

	--c-ink: #0b1026;
	--c-body: #414a66;
	--c-muted: #5b6480;
	--c-line: #e3e7f1;
	--c-line-strong: #cfd5e4;
	--c-surface: #ffffff;
	--c-surface-2: #f5f7fc;
	--c-surface-3: #edf0f8;
	--c-on-dark: #eef1ff;
	--c-on-dark-muted: #a9b2d8;
	--c-on-dark-line: rgba(255, 255, 255, 0.1);

	--gradient-accent: linear-gradient(135deg, #22d3ee 0%, #5b6cff 100%);
	--gradient-text: linear-gradient(100deg, #67e8f9 0%, #8b9bff 60%, #c4b5fd 100%);
	--gradient-dark: radial-gradient(1200px 500px at 85% -10%, rgba(91, 108, 255, 0.35), transparent 60%), radial-gradient(900px 480px at 0% 110%, rgba(34, 211, 238, 0.18), transparent 60%), #070b24;

	--font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 18px;
	--r-xl: 26px;
	--r-pill: 999px;

	--sh-sm: 0 1px 2px rgba(11, 16, 38, 0.06), 0 1px 3px rgba(11, 16, 38, 0.08);
	--sh-md: 0 6px 18px -6px rgba(11, 16, 38, 0.12), 0 2px 6px rgba(11, 16, 38, 0.06);
	--sh-lg: 0 24px 60px -18px rgba(11, 16, 38, 0.25);
	--sh-glow: 0 12px 36px -12px rgba(34, 211, 238, 0.55);

	--container: 1240px;
	--container-narrow: 780px;
	--container-wide: 1400px;
	--gutter: clamp(16px, 4vw, 32px);
	--section-y: clamp(64px, 9vw, 120px);
	--header-h: 72px;

	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--focus: #3a54e8;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--c-body);
	background: var(--c-surface);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "cv11", "ss01";
	overflow-x: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

svg.icon {
	display: inline-block;
	flex-shrink: 0;
	vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--c-ink);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.022em;
}

h1 { font-size: clamp(2.2rem, 1.35rem + 3.4vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.65rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p {
	margin: 0 0 1em;
}

a {
	color: var(--c-blue-600);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s var(--ease);
}

a:hover {
	color: var(--c-ink);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
	border-radius: 4px;
}

::selection {
	background: rgba(34, 211, 238, 0.35);
	color: var(--c-ink);
}

hr {
	border: 0;
	border-top: 1px solid var(--c-line);
	margin: 2.5rem 0;
}

.site-header,
.hero,
.section--dark,
.page-hero,
.post-hero,
.site-footer,
.error-404,
.cta-band {
	--focus: #22d3ee;
}

/* ---------- Accessibility helpers ---------- */
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	top: 12px;
	right: 12px;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: #fff;
	color: var(--c-ink);
	border-radius: var(--r-sm);
	box-shadow: var(--sh-lg);
}

.hp-field {
	position: absolute;
	right: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.site-main:focus {
	outline: none;
}

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }

.section {
	padding-block: var(--section-y);
	position: relative;
}

.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--muted { background: var(--c-surface-2); }
.section--dark {
	background: var(--gradient-dark);
	color: var(--c-on-dark-muted);
}
.section--dark h2,
.section--dark h3 { color: #fff; }

.grid {
	display: grid;
	gap: clamp(16px, 2.4vw, 28px);
}

@media (min-width: 640px) {
	.grid--2,
	.grid--3,
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
	.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.muted { color: var(--c-muted); }

/* ---------- Typography components ---------- */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.9rem;
	font-size: 0.78rem;
	font-weight: 650;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-cyan-700);
}

.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.post-hero .eyebrow,
.site-footer .eyebrow,
.mega-promo .eyebrow,
.cta-band .eyebrow {
	color: var(--c-cyan-400);
}

.text-gradient {
	background: var(--gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.section-head {
	max-width: 720px;
	margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head--center {
	margin-inline: auto;
	text-align: center;
}

.section-head__title { margin-bottom: 0.4em; }

.section-head__lead {
	font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
	color: var(--c-muted);
	margin: 0;
}

.section--dark .section-head__lead { color: var(--c-on-dark-muted); }

.section-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head-row .section-head { margin-bottom: 0; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--c-blue-600);
}

.link-arrow .icon { transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(-3px); }

.pill,
.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.28rem 0.7rem;
	border-radius: var(--r-pill);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}

.pill {
	background: rgba(58, 84, 232, 0.08);
	color: var(--c-blue-600);
}

.pill:hover { background: rgba(58, 84, 232, 0.14); color: var(--c-blue-600); }

.chip {
	padding: 0.45rem 0.95rem;
	font-size: 0.875rem;
	border: 1px solid var(--c-line);
	background: #fff;
	color: var(--c-body);
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.chip:hover { border-color: var(--c-line-strong); color: var(--c-ink); }
.chip.is-active { background: var(--c-navy-900); border-color: var(--c-navy-900); color: #fff; }

.chip-nav {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 6px;
	margin-bottom: clamp(24px, 4vw, 40px);
	scrollbar-width: thin;
}

/* ---------- Buttons ---------- */
.btn {
	--btn-bg: var(--c-navy-900);
	--btn-fg: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.78rem 1.3rem;
	border: 1px solid transparent;
	border-radius: var(--r-md);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-size: 0.95rem;
	font-weight: 620;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
	color: var(--btn-fg);
	transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn--primary:hover { --btn-bg: var(--c-navy-700); box-shadow: var(--sh-md); }

.btn--accent {
	--btn-fg: var(--c-navy-900);
	background: var(--gradient-accent);
}

.btn--accent:hover { box-shadow: var(--sh-glow); }

.btn--ghost {
	--btn-bg: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.24);
	backdrop-filter: blur(6px);
}

.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.45); }

.btn--outline {
	--btn-bg: transparent;
	--btn-fg: var(--c-ink);
	border-color: var(--c-line-strong);
}

.btn--outline:hover { border-color: var(--c-ink); }

.btn--sm { padding: 0.55rem 0.95rem; font-size: 0.875rem; border-radius: 10px; }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.btn-row--center { justify-content: center; }

.icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--r-md);
	background: transparent;
	color: var(--c-on-dark);
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.icon-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
select,
textarea {
	width: 100%;
	padding: 0.72rem 0.9rem;
	border: 1px solid var(--c-line-strong);
	border-radius: 10px;
	background: #fff;
	color: var(--c-ink);
	font-size: 0.97rem;
	line-height: 1.4;
	transition: border-color 0.2s, box-shadow 0.2s;
}

textarea { min-height: 140px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--c-blue-600);
	box-shadow: 0 0 0 4px rgba(58, 84, 232, 0.16);
}

input::placeholder,
textarea::placeholder { color: #8a92ab; }

label {
	display: inline-block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--c-ink);
}

input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--c-blue-600);
	width: 1.05em;
	height: 1.05em;
}

.search-form {
	position: relative;
	display: flex;
	gap: 8px;
	align-items: center;
}

.search-form__icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--c-muted);
	pointer-events: none;
}

.search-form__input { padding-right: 2.6rem !important; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(7, 11, 36, 0.97);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--c-on-dark-line);
	color: var(--c-on-dark);
	transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header.is-stuck {
	background: rgba(7, 11, 36, 0.94);
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}

.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	height: var(--header-h);
}

.site-branding { flex-shrink: 0; }

.site-logo,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
}

.site-logo:hover { color: #fff; }

.site-logo__text {
	font-size: 1.2rem;
	font-weight: 750;
	letter-spacing: -0.03em;
}

.custom-logo { max-height: 40px; width: auto; }

.header-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-right: auto;
}

.header-cta { display: none; margin-right: 8px; }

@media (min-width: 640px) { .header-cta { display: inline-flex; } }

.cart-count {
	position: absolute;
	top: 3px;
	left: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--r-pill);
	background: var(--c-cyan-400);
	color: var(--c-navy-900);
	font-size: 0.68rem;
	font-weight: 750;
	line-height: 18px;
	text-align: center;
	transition: transform 0.3s var(--ease);
}

.cart-count.is-empty { transform: scale(0); }
.cart-count.is-bumped { animation: qv-bump 0.5s var(--ease); }

@keyframes qv-bump {
	40% { transform: scale(1.35); }
}

.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: grid; }

/* Primary menu — shared */
.menu,
.sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

.submenu-toggle {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: var(--r-sm);
	background: transparent;
	color: inherit;
}

.submenu-toggle .icon { transition: transform 0.25s var(--ease); }
.is-open > .submenu-toggle .icon { transform: rotate(-180deg); }

/* Mobile navigation (default) */
.primary-nav {
	position: fixed;
	inset: var(--header-h) 0 0 0;
	z-index: 99;
	display: none;
	overflow-y: auto;
	padding: 16px var(--gutter) 32px;
	background: var(--c-navy-900);
	border-top: 1px solid var(--c-on-dark-line);
}

.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }

.nav-open { overflow: hidden; }
.nav-open .primary-nav { display: block; animation: qv-fade-down 0.25s var(--ease); }

@keyframes qv-fade-down {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}

.primary-nav .menu > li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--c-on-dark-line);
}

.primary-nav .menu > li > .menu-link {
	flex: 1;
	padding: 14px 0;
	color: var(--c-on-dark);
	font-size: 1.05rem;
	font-weight: 600;
}

.primary-nav .sub-menu,
.primary-nav .mega-panel {
	display: none;
	width: 100%;
	padding: 0 12px 14px 0;
}

.primary-nav li.is-open > .sub-menu,
.primary-nav li.is-open > .mega-panel { display: block; }

.primary-nav .sub-menu .menu-link {
	padding: 8px 0;
	color: var(--c-on-dark-muted);
}

.primary-nav .sub-menu .menu-link:hover,
.primary-nav .menu-link[aria-current="page"] { color: #fff; }

.primary-nav .mega-col > .menu-link .menu-link__label { color: #fff; font-weight: 600; }
.menu-link__desc { font-size: 0.82rem; color: var(--c-on-dark-muted); line-height: 1.45; }

.primary-nav .mega-col .sub-menu { display: block; padding: 0 12px 8px 0; }

.mega-promo { display: none; }

.primary-nav__mobile-cta { padding-top: 24px; }

/* Desktop navigation */
@media (min-width: 1080px) {
	.nav-toggle { display: none; }

	.primary-nav {
		position: static;
		display: block;
		overflow: visible;
		padding: 0;
		background: none;
		border: 0;
		margin-inline: auto;
	}

	.primary-nav__mobile-cta { display: none; }

	.primary-nav .menu {
		display: flex;
		align-items: center;
		gap: 2px;
	}

	.primary-nav .menu > li {
		position: relative;
		flex-wrap: nowrap;
		border: 0;
	}

	.primary-nav .menu > li.mega-menu { position: static; }

	.primary-nav .menu > li > .menu-link {
		padding: 10px 12px;
		font-size: 0.93rem;
		font-weight: 550;
		color: var(--c-on-dark-muted);
		border-radius: var(--r-sm);
	}

	.primary-nav .menu > li.menu-item-has-children > .menu-link { padding-left: 2px; }

	.primary-nav .menu > li > .menu-link:hover,
	.primary-nav .menu > li:hover > .menu-link,
	.primary-nav .menu > li.is-open > .menu-link,
	.primary-nav .menu > .current-menu-item > .menu-link,
	.primary-nav .menu > .current-menu-ancestor > .menu-link,
	.primary-nav .menu > .current-menu-parent > .menu-link {
		color: #fff;
	}

	.primary-nav .menu > .current-menu-item > .menu-link .menu-link__label,
	.primary-nav .menu > .current-menu-ancestor > .menu-link .menu-link__label {
		background: linear-gradient(var(--c-cyan-400), var(--c-cyan-400)) no-repeat 0 100% / 100% 2px;
		padding-bottom: 2px;
	}

	.primary-nav .submenu-toggle {
		width: 24px;
		color: var(--c-on-dark-muted);
	}

	/* Regular dropdown */
	.primary-nav .menu > li > .sub-menu,
	.primary-nav .mega-panel {
		position: absolute;
		top: calc(100% + 6px);
		display: block;
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), visibility 0.2s;
	}

	.primary-nav .menu > li > .sub-menu {
		right: 0;
		min-width: 250px;
		padding: 8px;
		background: #fff;
		border-radius: var(--r-lg);
		box-shadow: var(--sh-lg);
		border: 1px solid var(--c-line);
	}

	.primary-nav .menu > li:hover > .sub-menu,
	.primary-nav .menu > li:focus-within > .sub-menu,
	.primary-nav .menu > li.is-open > .sub-menu,
	.primary-nav .menu > li:hover > .mega-panel,
	.primary-nav .menu > li:focus-within > .mega-panel,
	.primary-nav .menu > li.is-open > .mega-panel {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	/* hover bridge so the pointer can travel into the panel */
	.primary-nav .menu > li.menu-item-has-children::after {
		content: "";
		position: absolute;
		right: 0;
		left: 0;
		top: 100%;
		height: 14px;
	}

	.primary-nav .menu > li > .sub-menu .menu-link {
		padding: 9px 12px;
		border-radius: var(--r-sm);
		color: var(--c-body);
		font-size: 0.92rem;
		font-weight: 500;
	}

	.primary-nav .menu > li > .sub-menu .menu-link:hover,
	.primary-nav .menu > li > .sub-menu .menu-link[aria-current="page"] {
		background: var(--c-surface-2);
		color: var(--c-ink);
	}

	/* Mega panel */
	.primary-nav .mega-panel {
		right: 50%;
		width: min(1080px, calc(100vw - 48px));
		margin-right: calc(min(1080px, calc(100vw - 48px)) / -2);
		top: calc(100% - 6px);
		transform: translateY(8px);
	}

	.primary-nav .menu > li:hover > .mega-panel,
	.primary-nav .menu > li:focus-within > .mega-panel,
	.primary-nav .menu > li.is-open > .mega-panel { transform: none; }

	.mega-panel__inner {
		display: grid;
		grid-template-columns: 1fr 280px;
		gap: 12px;
		padding: 12px;
		background: #fff;
		border: 1px solid var(--c-line);
		border-radius: var(--r-xl);
		box-shadow: var(--sh-lg);
	}

	.primary-nav .mega-panel__cols {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 4px;
		padding: 8px;
	}

	.primary-nav .mega-col > .menu-link {
		padding: 12px;
		border-radius: var(--r-md);
		gap: 2px;
	}

	.primary-nav .mega-col > .menu-link .menu-link__label {
		color: var(--c-ink);
		font-size: 0.98rem;
		font-weight: 650;
	}

	.primary-nav .mega-col > .menu-link .menu-link__desc { color: var(--c-muted); }
	.primary-nav .mega-col > .menu-link:hover { background: var(--c-surface-2); }

	.primary-nav .mega-col .sub-menu {
		display: block;
		padding: 0 12px 8px;
	}

	.primary-nav .mega-col .sub-menu .menu-link {
		flex-direction: row;
		align-items: center;
		gap: 8px;
		padding: 6px 0;
		color: var(--c-body);
		font-size: 0.9rem;
	}

	.primary-nav .mega-col .sub-menu .menu-link::before {
		content: "";
		width: 6px;
		height: 6px;
		border-radius: 2px;
		background: var(--c-line-strong);
		transition: background 0.2s;
	}

	.primary-nav .mega-col .sub-menu .menu-link:hover { color: var(--c-blue-600); }
	.primary-nav .mega-col .sub-menu .menu-link:hover::before { background: var(--c-cyan-400); }

	.mega-promo {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		padding: 24px;
		border-radius: var(--r-lg);
		background: var(--gradient-dark);
		color: var(--c-on-dark-muted);
		--focus: #22d3ee;
	}

	.mega-promo__title { margin: 0 0 6px; color: #fff; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
	.mega-promo__text { font-size: 0.9rem; margin-bottom: 18px; }
	.mega-promo .btn { margin-top: auto; }
}

/* Search panel */
.search-panel {
	padding: 16px 0 20px;
	border-top: 1px solid var(--c-on-dark-line);
	animation: qv-fade-down 0.25s var(--ease);
}

.search-panel .search-form__input {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.search-panel .search-form__input::placeholder { color: var(--c-on-dark-muted); }
.search-panel .btn--primary { --btn-bg: var(--c-cyan-400); --btn-fg: var(--c-navy-900); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero,
.post-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px);
	background: var(--c-navy-900);
	color: var(--c-on-dark-muted);
}

.page-hero--compact { padding-block: clamp(40px, 5vw, 64px); }

.page-hero__glow {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(700px 320px at 80% 0%, rgba(91, 108, 255, 0.38), transparent 70%),
		radial-gradient(520px 300px at 10% 100%, rgba(34, 211, 238, 0.2), transparent 70%);
	pointer-events: none;
}

.page-hero__glow::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(-90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 70% 0%, #000 20%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 20%, transparent 70%);
}

.page-hero__inner,
.post-hero__inner { position: relative; }

.page-hero__title,
.post-hero__title {
	max-width: 900px;
	margin-bottom: 0.3em;
	color: #fff;
}

.page-hero--compact .page-hero__title { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }

.page-hero__lead,
.post-hero__lead {
	max-width: 680px;
	margin: 0;
	font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem);
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 18px;
	font-size: 0.85rem;
	color: var(--c-on-dark-muted);
}

.breadcrumbs a { color: var(--c-on-dark-muted); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs__sep { opacity: 0.5; }
.breadcrumbs .breadcrumb_last { color: #fff; }
.breadcrumbs > span > span > a,
.breadcrumbs > span > span { margin-left: 4px; }

/* ---------- Home: Hero slider ---------- */
.hero {
	position: relative;
	overflow: hidden;
	min-height: clamp(580px, calc(100svh - var(--header-h)), 860px);
	background: var(--c-navy-950);
	color: var(--c-on-dark-muted);
	isolation: isolate;
}

.hero__slides { position: absolute; inset: 0; }

.hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero__media video,
.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__media img { transform: scale(1.06); transition: transform 8s linear; }
.hero__slide.is-active .hero__media img { transform: scale(1); }

.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(-90deg, rgba(5, 8, 24, 0.96) 0%, rgba(5, 8, 24, 0.88) 45%, rgba(5, 8, 24, 0.4) 100%),
		linear-gradient(0deg, rgba(5, 8, 24, 0.85) 0%, transparent 35%);
}

.hero__content {
	position: relative;
	padding-block: 72px 140px;
}

.hero__content > * {
	max-width: 700px;
}

.hero__title {
	margin-bottom: 0.35em;
	color: #fff;
	font-size: clamp(2.3rem, 1.3rem + 4vw, 4.4rem);
	font-weight: 760;
	letter-spacing: -0.04em;
	line-height: 1.04;
}

.hero__lead {
	margin-bottom: 2rem;
	font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem);
	max-width: 600px;
	color: #c4cbe8;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 1.4rem;
	padding: 6px 6px 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(8px);
	font-size: 0.85rem;
	color: var(--c-on-dark);
}

.hero__badge strong {
	padding: 2px 10px;
	border-radius: var(--r-pill);
	background: var(--gradient-accent);
	color: var(--c-navy-900);
	font-size: 0.75rem;
}

.hero__slide .hero__content > * {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: 0.08s; }
.hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: 0.16s; }
.hero__slide.is-active .hero__content > :nth-child(4) { transition-delay: 0.24s; }

.hero__controls {
	position: absolute;
	right: 0;
	left: 0;
	bottom: clamp(24px, 4vw, 44px);
	z-index: 5;
}

.hero__controls-inner {
	display: flex;
	align-items: center;
	gap: 16px;
}

.hero__dots {
	display: flex;
	gap: 8px;
	flex: 1;
	max-width: 520px;
}

.hero__dot {
	position: relative;
	flex: 1;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-on-dark-muted);
	font-size: 0.75rem;
	font-weight: 600;
	text-align: right;
}

.hero__dot::before,
.hero__dot::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 6px;
	height: 3px;
	border-radius: 3px;
}

.hero__dot::before { left: 0; background: rgba(255, 255, 255, 0.18); }
.hero__dot::after { width: 0; background: var(--gradient-accent); }

.hero__dot[aria-current="true"] { color: #fff; }
.hero__dot[aria-current="true"]::after { animation: qv-progress var(--slide-duration, 7s) linear forwards; }
.is-paused .hero__dot[aria-current="true"]::after { animation: none; width: 100%; }

.hero__dot-label { display: none; }

@media (min-width: 768px) {
	.hero__dot-label { display: block; position: absolute; top: 0; right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}

@keyframes qv-progress { to { width: 100%; } }

.hero__arrows { display: flex; gap: 8px; margin-right: auto; }

.hero__arrows .icon-btn {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.04);
}

/* ---------- Home: Trust bar ---------- */
.trust {
	position: relative;
	z-index: 2;
	margin-top: -1px;
	padding-block: clamp(40px, 6vw, 64px);
	border-bottom: 1px solid var(--c-line);
}

.stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
	position: relative;
	padding-right: 18px;
}

.stat::before {
	content: "";
	position: absolute;
	right: 0;
	top: 6px;
	bottom: 6px;
	width: 3px;
	border-radius: 3px;
	background: var(--gradient-accent);
}

.stat__value {
	display: block;
	color: var(--c-ink);
	font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem);
	font-weight: 760;
	letter-spacing: -0.04em;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.stat__label { font-size: 0.92rem; color: var(--c-muted); }

.logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px clamp(24px, 5vw, 56px);
	margin-top: clamp(32px, 5vw, 48px);
	padding-top: clamp(28px, 4vw, 40px);
	border-top: 1px dashed var(--c-line);
}

.logos__label {
	flex-basis: 100%;
	margin: 0 0 4px;
	text-align: center;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.logo-mark {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #6b7391;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	opacity: 0.85;
	transition: color 0.25s, opacity 0.25s;
}

.logo-mark:hover { color: var(--c-ink); opacity: 1; }

/* ---------- Home: Category cards ---------- */
.cat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	background: #fff;
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.cat-card:hover {
	transform: translateY(-6px);
	border-color: transparent;
	box-shadow: var(--sh-lg);
}

.cat-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--c-navy-900);
}

.cat-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.cat-card:hover .cat-card__media img { transform: scale(1.05); }

.cat-card__icon {
	position: absolute;
	right: 20px;
	bottom: -22px;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 4px solid #fff;
	border-radius: 16px;
	background: var(--gradient-accent);
	color: var(--c-navy-900);
}

.cat-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 36px 24px 24px;
}

.cat-card__title { margin-bottom: 0.4rem; font-size: 1.35rem; }

.cat-card__title a {
	color: inherit;
	text-decoration: none;
}

.cat-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.cat-card__text { color: var(--c-muted); font-size: 0.97rem; }

.cat-card__sub {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.cat-card__sub li {
	padding: 3px 10px;
	border-radius: var(--r-pill);
	background: var(--c-surface-2);
	font-size: 0.78rem;
	font-weight: 550;
	color: var(--c-body);
}

.cat-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--c-line);
	font-size: 0.9rem;
	color: var(--c-muted);
}

.cat-card__foot .link-arrow { position: relative; z-index: 2; }

/* ---------- Products catalogue: category tiles ---------- */
.cat-tiles { align-items: stretch; }
section[id].section { scroll-margin-top: var(--header-h); }

.cat-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	background: #fff;
	scroll-margin-top: calc(var(--header-h) + 24px);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.cat-tile:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--sh-lg); }
.cat-tile:target { border-color: var(--c-cyan-400); box-shadow: var(--sh-glow); }

.cat-tile__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 14px;
	background: var(--gradient-accent);
	color: var(--c-navy-900);
}

.cat-tile--soon .cat-tile__icon { background: var(--c-surface-3); color: var(--c-blue-600); }
.cat-tile__title { margin-bottom: 0.4rem; font-size: 1.2rem; }
.cat-tile__title a { color: inherit; text-decoration: none; }
.cat-tile__title a:hover { color: var(--c-blue-600); }
.cat-tile__text { color: var(--c-muted); font-size: 0.95rem; }

.cat-tile__items { margin: 0 0 16px; padding: 0; list-style: none; }
.cat-tile__items a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--c-blue-600);
	text-decoration: none;
}
.cat-tile__items a:hover { text-decoration: underline; }

.cat-tile__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--c-line);
	font-size: 0.9rem;
}

.cat-tile__badge {
	padding: 3px 10px;
	border-radius: var(--r-pill);
	background: var(--c-surface-2);
	color: var(--c-muted);
	font-size: 0.78rem;
	font-weight: 600;
}

.catalog-cta__title { margin: 0; font-size: 1.4rem; color: var(--c-ink); }
.catalog-cta p { max-width: 560px; margin: 0 0 8px; }

/* Store category: pages listed as its products (e.g. the clinic software) */
.cat-pages { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.cat-pages__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 24px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: var(--c-surface-2);
	color: var(--c-body);
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.cat-pages__link:hover { border-color: var(--c-cyan-400); box-shadow: var(--sh-md); }
.cat-pages__title { color: var(--c-ink); font-size: 1.15rem; font-weight: 700; }
.cat-pages__text { color: var(--c-muted); font-size: 0.95rem; }

/* Menu items with an icon (class "qv-icon-<name>") */
.primary-nav .menu-link > .icon { flex: none; }
.primary-nav .sub-menu .menu-link:has(> .icon) { flex-direction: row; align-items: center; gap: 8px; }

@media (min-width: 1080px) {
	.primary-nav .mega-col .sub-menu .menu-link:has(> .icon)::before { display: none; }
	.primary-nav .mega-col .sub-menu .menu-link > .icon { color: var(--c-blue-600); }
	.primary-nav li.mega-menu--catalog .mega-panel__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
	.primary-nav li.mega-menu--catalog .mega-col:last-child > .sub-menu { columns: 2; column-gap: 16px; }
	.primary-nav li.mega-menu--catalog .mega-col .sub-menu li { break-inside: avoid; }
}

/* ---------- Carousel ---------- */
.carousel { position: relative; }

.carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 84%;
	gap: 20px;
	margin: 0;
	padding: 6px 2px 24px;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }

@media (min-width: 640px) { .carousel__track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (min-width: 960px) { .carousel__track { grid-auto-columns: calc((100% - 40px) / 3); } }
@media (min-width: 1200px) { .carousel__track--4 { grid-auto-columns: calc((100% - 60px) / 4); } }

.carousel__nav { display: flex; gap: 8px; }

.carousel__btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--r-pill);
	background: #fff;
	color: var(--c-ink);
	transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.carousel__btn:hover:not(:disabled) { border-color: var(--c-ink); }
.carousel__btn:disabled { opacity: 0.4; cursor: default; }

.section--dark .carousel__btn {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
}

/* ---------- Home: Why choose us ---------- */
.why-grid { counter-reset: why; }

.value-card {
	position: relative;
	padding: 28px;
	border: 1px solid var(--c-on-dark-line);
	border-radius: var(--r-xl);
	background: linear-gradient(-180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
	transition: border-color 0.3s, transform 0.35s var(--ease), background 0.3s;
}

.value-card:hover {
	transform: translateY(-4px);
	border-color: rgba(34, 211, 238, 0.4);
}

.value-card__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 22px;
	border-radius: 14px;
	background: rgba(34, 211, 238, 0.12);
	color: var(--c-cyan-400);
	box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.25);
}

.value-card__title { margin-bottom: 0.5rem; font-size: 1.15rem; }
.value-card__text { margin: 0; font-size: 0.96rem; }

.why-split {
	display: grid;
	gap: 40px;
	align-items: center;
	margin-top: clamp(40px, 6vw, 72px);
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--c-on-dark-line);
	border-radius: var(--r-xl);
	background: rgba(255, 255, 255, 0.03);
}

@media (min-width: 900px) { .why-split { grid-template-columns: 1.1fr 1fr; } }

.why-split h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }

.check-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.check-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.check-list .icon {
	margin-top: 3px;
	padding: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(34, 211, 238, 0.15);
	color: var(--c-cyan-700);
}

.section--dark .check-list .icon { color: var(--c-cyan-400); }

/* ---------- Blog cards ---------- */
.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: #fff;
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--sh-lg);
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--c-surface-3);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.post-card:hover .post-card__media img { transform: scale(1.04); }

.media-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--c-muted);
	background: linear-gradient(-135deg, var(--c-surface-2), var(--c-surface-3));
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 22px 20px;
}

.post-card__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.post-meta {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 0.83rem;
	color: var(--c-muted);
}

.post-card__title {
	margin-bottom: 0.5rem;
	font-size: 1.16rem;
	line-height: 1.3;
}

.post-card__title a {
	color: var(--c-ink);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
	transition: background-size 0.35s var(--ease);
}

.post-card__title a:hover { background-size: 100% 1px; }

.post-card__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.95rem;
	color: var(--c-muted);
}

.post-card__author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--c-line);
	font-size: 0.87rem;
	font-weight: 550;
	color: var(--c-ink);
}

.avatar { border-radius: 50%; }

@media (min-width: 960px) {
	.post-card--featured {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1.3fr 1fr;
	}

	.post-card--featured .post-card__media { aspect-ratio: auto; min-height: 380px; }
	.post-card--featured .post-card__body { padding: 40px; justify-content: center; }
	.post-card--featured .post-card__title { font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); }
	.post-card--featured .post-card__author { margin-top: 20px; }
}

.blog-layout { display: grid; gap: 48px; }

@media (min-width: 1080px) {
	.blog-layout--sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
	.blog-layout--sidebar .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.widget {
	margin-bottom: 28px;
	padding: 24px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: #fff;
}

.widget__title { font-size: 1rem; margin-bottom: 14px; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--c-line); }
.widget li:last-child { border: 0; }
.widget a { color: var(--c-body); text-decoration: none; }
.widget a:hover { color: var(--c-blue-600); }

/* Block widgets */
.widget .wp-block-search__label { display: none; }
.widget .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.widget .wp-block-search__button {
	padding: 0.6rem 0.9rem;
	border: 0;
	border-radius: 10px;
	background: var(--c-navy-900);
	color: #fff;
	font-weight: 600;
}
.widget .wp-block-categories-list li { display: flex; justify-content: space-between; color: var(--c-muted); }
.widget .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.widget .wp-block-tag-cloud a {
	padding: 0.25rem 0.7rem;
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	font-size: 0.8rem !important;
}
.widget .wp-block-tag-cloud a:hover { border-color: var(--c-ink); }

.widget:has(.sidebar-cta) {
	border: 0;
	background: var(--gradient-dark);
	color: var(--c-on-dark-muted);
	--focus: #22d3ee;
}
.sidebar-cta .eyebrow { color: var(--c-cyan-400); margin-bottom: 6px; }
.sidebar-cta .widget__title { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.sidebar-cta p { font-size: 0.92rem; }
.sidebar-cta .btn { --btn-bg: #fff; --btn-fg: var(--c-navy-900); }

/* Pagination */
.pagination,
.navigation.pagination { margin-top: 48px; }

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	color: var(--c-ink);
	font-weight: 600;
	text-decoration: none;
}

.page-numbers:hover { border-color: var(--c-ink); color: var(--c-ink); }
.page-numbers.current { background: var(--c-navy-900); border-color: var(--c-navy-900); color: #fff; }
.page-numbers.dots { border: 0; }

/* ---------- Testimonials ---------- */
.testimonial {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	padding: clamp(24px, 3vw, 34px);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	background: #fff;
	box-shadow: var(--sh-sm);
}

.testimonial__quote-icon { color: var(--c-cyan-400); margin-bottom: 14px; }

.testimonial__text {
	margin: 0 0 22px;
	color: var(--c-ink);
	font-size: 1.06rem;
	line-height: 1.6;
}

.testimonial__text p:last-child { margin: 0; }

.testimonial__foot {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--c-line);
}

.testimonial__avatar {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--gradient-accent);
	color: var(--c-navy-900);
	font-weight: 750;
}

.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name { display: block; color: var(--c-ink); font-weight: 650; font-style: normal; }
.testimonial__role { display: block; font-size: 0.87rem; color: var(--c-muted); }
.testimonial .stars { margin-right: auto; }

.stars { display: inline-flex; gap: 2px; }
.stars .is-on { color: var(--c-amber-500); }
.stars .is-off { color: var(--c-line-strong); }

/* ---------- CTA band ---------- */
.cta-band {
	position: relative;
	overflow: hidden;
	padding: clamp(36px, 6vw, 72px);
	border-radius: clamp(20px, 3vw, 32px);
	background: var(--gradient-dark);
	color: var(--c-on-dark-muted);
	isolation: isolate;
}

.cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(-90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 60%);
	-webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 60%);
}

.cta-band__grid {
	display: grid;
	gap: 32px;
	align-items: center;
}

@media (min-width: 960px) { .cta-band__grid { grid-template-columns: 1.4fr 1fr; } }

.cta-band__title { color: #fff; margin-bottom: 0.4em; }
.cta-band__text { font-size: 1.08rem; margin-bottom: 1.8rem; max-width: 620px; }

.cta-band__contact {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 24px;
	list-style: none;
	border: 1px solid var(--c-on-dark-line);
	border-radius: var(--r-lg);
	background: rgba(255, 255, 255, 0.04);
}

.cta-band__contact li { display: flex; gap: 12px; align-items: center; }
.cta-band__contact .icon { color: var(--c-cyan-400); }
.cta-band__contact a { color: #fff; text-decoration: none; }
.cta-band__contact a:hover { color: var(--c-cyan-300); }

/* ---------- Footer ---------- */
.site-footer {
	position: relative;
	overflow: hidden;
	padding-top: clamp(56px, 8vw, 96px);
	background: var(--c-navy-950);
	color: var(--c-on-dark-muted);
	font-size: 0.95rem;
}

.site-footer__glow {
	position: absolute;
	top: -200px;
	right: 50%;
	width: 900px;
	height: 400px;
	transform: translateX(50%);
	background: radial-gradient(closest-side, rgba(91, 108, 255, 0.22), transparent);
	pointer-events: none;
}

.footer-grid {
	position: relative;
	display: grid;
	gap: 40px 32px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-col--brand,
.footer-col--newsletter { grid-column: 1 / -1; }

@media (min-width: 1024px) {
	.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.6fr; }
	.footer-col--brand,
	.footer-col--newsletter { grid-column: auto; }
}

.footer-about { margin: 18px 0 20px; max-width: 360px; }

.footer-col__title {
	margin-bottom: 16px;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 650;
	letter-spacing: 0.02em;
}

.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin-bottom: 10px; }

.footer-menu a,
.footer-bottom a {
	color: var(--c-on-dark-muted);
	text-decoration: none;
}

.footer-menu a:hover,
.footer-bottom a:hover { color: #fff; }

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--c-on-dark-line);
	border-radius: var(--r-md);
	color: var(--c-on-dark-muted);
	transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.social-links a:hover {
	color: var(--c-navy-900);
	border-color: transparent;
	background: var(--c-cyan-400);
	transform: translateY(-2px);
}

.newsletter-form { margin-top: 4px; }

.newsletter-form__row {
	display: flex;
	gap: 8px;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
}

.newsletter-form__row input[type="email"] {
	min-width: 0;
	border: 0;
	background: transparent;
	color: #fff;
	box-shadow: none;
}

.newsletter-form__row input::placeholder { color: #7f88b0; }
.newsletter-form__row .btn { flex-shrink: 0; }
.newsletter-form__row:focus-within { border-color: var(--c-cyan-400); }
.newsletter-form__legal { margin: 10px 0 0; font-size: 0.8rem; }
.newsletter-form__legal a { color: var(--c-on-dark); }

.newsletter-form__notice {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: var(--r-sm);
	font-size: 0.87rem;
	color: #fff;
	background: rgba(34, 211, 238, 0.12);
}

.newsletter-form__notice--invalid { background: rgba(220, 38, 38, 0.2); }

.footer-extra { position: relative; padding-top: 40px; }

.footer-bottom {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: clamp(40px, 6vw, 64px);
	padding-block: 24px;
	border-top: 1px solid var(--c-on-dark-line);
	font-size: 0.86rem;
}

.footer-bottom p { margin: 0; }

.footer-bottom__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

/* ---------- Prose (post & page content) ---------- */
.prose {
	color: var(--c-body);
	font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.1rem);
	line-height: 1.78;
}

.prose > * + * { margin-top: 1.25em; }
.prose > :first-child { margin-top: 0; }

.prose h2 { margin-top: 2em; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.prose h3 { margin-top: 1.7em; font-size: clamp(1.18rem, 1.08rem + 0.5vw, 1.4rem); }
.prose h4 { margin-top: 1.5em; }

.prose p,
.prose ul,
.prose ol { margin-bottom: 0; }

.prose ul,
.prose ol { padding-right: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--c-blue-600); }

.prose a { color: var(--c-blue-600); text-decoration: underline; }
.prose a:hover { color: var(--c-ink); }
.prose strong { color: var(--c-ink); }

.prose blockquote {
	margin-inline: 0;
	padding: 4px 24px 4px 0;
	border-right: 4px solid;
	border-image: var(--gradient-accent) 1;
	color: var(--c-ink);
	font-size: 1.15em;
	font-weight: 500;
}

.prose code {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: var(--c-surface-3);
	color: var(--c-ink);
	font-family: var(--font-mono);
	font-size: 0.88em;
}

.prose pre {
	overflow-x: auto;
	padding: 20px 22px;
	border-radius: var(--r-lg);
	background: var(--c-navy-900);
	color: #dfe5ff;
	font-size: 0.9rem;
	line-height: 1.65;
}

.prose pre code { padding: 0; background: none; color: inherit; }

.prose img,
.prose figure img { border-radius: var(--r-lg); }

.prose figcaption,
.post-cover figcaption {
	margin-top: 10px;
	font-size: 0.87rem;
	color: var(--c-muted);
	text-align: center;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.prose th,
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: right; }
.prose th { color: var(--c-ink); background: var(--c-surface-2); }

.prose .callout {
	padding: 18px 22px;
	border: 1px solid rgba(58, 84, 232, 0.2);
	border-radius: var(--r-lg);
	background: rgba(58, 84, 232, 0.05);
}

/* ---------- Single post ---------- */
.post-hero .pill {
	background: rgba(34, 211, 238, 0.14);
	color: var(--c-cyan-300);
	margin-bottom: 18px;
}

.post-hero__title { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); }
.post-hero__lead { margin-bottom: 28px; }

.post-hero__meta {
	display: flex;
	align-items: center;
	gap: 14px;
}

.post-hero__author { display: block; color: #fff; font-weight: 650; text-decoration: none; }
.post-hero__author:hover { color: var(--c-cyan-300); }
.post-hero .post-meta { color: var(--c-on-dark-muted); }

.post-cover {
	position: relative;
	margin-block: clamp(-60px, -5vw, -32px) 0;
	margin-top: 0;
	padding-top: clamp(28px, 4vw, 48px);
}

.post-cover img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: clamp(16px, 2vw, 28px);
	box-shadow: var(--sh-lg);
}

.post-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	padding-block: clamp(36px, 5vw, 64px);
}

.post-layout__content {
	min-width: 0;
	width: 100%;
	max-width: var(--container-narrow);
	margin-inline: auto;
}

.post-layout__rail { display: none; }

@media (min-width: 1080px) {
	.post-layout { grid-template-columns: 80px minmax(0, 1fr) 80px; }
	.post-layout__rail { display: block; }
	.post-layout__rail .share { position: sticky; top: calc(var(--header-h) + 32px); flex-direction: column; }
	.post-layout__rail .share__list { flex-direction: column; }
	.post-footer__share { display: none; }
}

.share {
	display: flex;
	align-items: center;
	gap: 12px;
}

.share__label {
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.share__list {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.share__btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	background: #fff;
	color: var(--c-body);
	transition: all 0.2s var(--ease);
}

.share__btn:hover {
	border-color: var(--c-navy-900);
	background: var(--c-navy-900);
	color: #fff;
}

.post-footer {
	display: grid;
	gap: 32px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--c-line);
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.author-bio {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding: clamp(22px, 3vw, 32px);
	border-radius: var(--r-xl);
	background: var(--c-surface-2);
}

.author-bio__avatar { border-radius: 50%; width: 88px; height: 88px; }
.author-bio__body { flex: 1; min-width: 220px; }
.author-bio .eyebrow { margin-bottom: 4px; }
.author-bio__name { margin-bottom: 8px; font-size: 1.25rem; }
.author-bio__name a { color: var(--c-ink); text-decoration: none; }
.author-bio__role { display: block; margin-top: 2px; font-size: 0.9rem; font-weight: 500; color: var(--c-muted); }
.author-bio__text { font-size: 0.97rem; }

.post-nav .nav-links {
	display: grid;
	gap: 12px;
	justify-content: stretch;
}

@media (min-width: 640px) { .post-nav .nav-links { grid-template-columns: 1fr 1fr; } }

.post-nav a {
	display: block;
	height: 100%;
	padding: 18px 20px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.post-nav a:hover { border-color: var(--c-line-strong); box-shadow: var(--sh-md); }
.post-nav .nav-next { text-align: left; }
.post-nav__label { display: block; font-size: 0.8rem; color: var(--c-muted); }
.post-nav__title { display: block; color: var(--c-ink); font-weight: 650; line-height: 1.35; }

/* Comments */
.comments__title,
.comment-reply-title { font-size: 1.5rem; }

.comment-list,
.comment-list .children {
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.comment-list .children { margin: 16px clamp(16px, 4vw, 48px) 0 0; }

.comment-body {
	margin-bottom: 16px;
	padding: 20px 22px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
}

.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 650; color: var(--c-ink); }
.comment-author .says { display: none; }
.comment-metadata { margin: 4px 60px 10px 0; font-size: 0.83rem; }
.comment-metadata a { color: var(--c-muted); text-decoration: none; }
.comment-content { font-size: 0.98rem; }
.reply a { font-size: 0.87rem; font-weight: 600; text-decoration: none; }

.comment-form { display: grid; gap: 16px; }
.comment-form p { margin: 0; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; color: var(--c-muted); }

@media (min-width: 640px) {
	.comment-form { grid-template-columns: 1fr 1fr; }
	.comment-form > .comment-notes,
	.comment-form > .comment-form-comment,
	.comment-form > .comment-form-url,
	.comment-form > .comment-form-cookies-consent,
	.comment-form > .form-submit,
	.comment-form > .logged-in-as { grid-column: 1 / -1; }
}

/* ---------- About page ---------- */
.split {
	display: grid;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

@media (min-width: 960px) {
	.split { grid-template-columns: 1fr 1fr; }
	.split--reverse > :first-child { order: 2; }
}

.split__media {
	position: relative;
}

.split__media img {
	width: 100%;
	border-radius: var(--r-xl);
	box-shadow: var(--sh-lg);
}

.floating-stat {
	position: absolute;
	left: clamp(-12px, -2vw, -24px);
	bottom: clamp(-20px, -3vw, -32px);
	padding: 18px 22px;
	border-radius: var(--r-lg);
	background: #fff;
	box-shadow: var(--sh-lg);
}

.floating-stat strong { display: block; color: var(--c-ink); font-size: 1.8rem; letter-spacing: -0.03em; line-height: 1.1; }
.floating-stat span { font-size: 0.85rem; color: var(--c-muted); }

.mv-card {
	padding: clamp(24px, 3vw, 36px);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	background: #fff;
}

.mv-card__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	border-radius: 14px;
	background: var(--gradient-accent);
	color: var(--c-navy-900);
}

.mv-card p:last-child { margin: 0; }

.team-card {
	text-align: center;
}

.team-card__photo {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
	margin-bottom: 16px;
	border-radius: var(--r-xl);
	background: var(--c-surface-3);
}

.team-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.team-card:hover .team-card__photo img { transform: scale(1.05); }

.team-card__social {
	position: absolute;
	left: 12px;
	bottom: 12px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	color: var(--c-ink);
	box-shadow: var(--sh-md);
}

.team-card__social:hover { background: var(--c-navy-900); color: #fff; }
.team-card__name { margin-bottom: 2px; font-size: 1.08rem; }
.team-card__role { margin: 0; font-size: 0.9rem; color: var(--c-muted); }

.timeline {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.timeline::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 11px;
	width: 2px;
	background: linear-gradient(var(--c-cyan-400), var(--c-blue-500), rgba(91, 108, 255, 0.1));
}

.timeline__item {
	position: relative;
	padding: 0 48px 36px 0;
}

.timeline__item::before {
	content: "";
	position: absolute;
	right: 4px;
	top: 6px;
	width: 16px;
	height: 16px;
	border: 3px solid var(--c-navy-900);
	border-radius: 50%;
	background: var(--c-cyan-400);
	box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2);
}

.timeline__year {
	display: inline-block;
	margin-bottom: 6px;
	color: var(--c-cyan-400);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.timeline__card {
	padding: 20px 22px;
	border: 1px solid var(--c-on-dark-line);
	border-radius: var(--r-lg);
	background: rgba(255, 255, 255, 0.03);
}

.timeline__card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.timeline__card p { margin: 0; font-size: 0.95rem; }

@media (min-width: 900px) {
	.timeline::before { right: 50%; transform: translateX(1px); }
	.timeline__item { width: 50%; padding: 0 0 40px 48px; text-align: left; }
	.timeline__item::before { right: auto; left: -8px; }
	.timeline__item:nth-child(even) { margin-right: 50%; padding: 0 48px 40px 0; text-align: right; }
	.timeline__item:nth-child(even)::before { left: auto; right: -8px; }
}

/* ---------- Contact page ---------- */
.contact-grid {
	display: grid;
	gap: 32px;
}

@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.5fr; align-items: start; } }

.info-list {
	display: grid;
	gap: 14px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.info-card {
	display: flex;
	gap: 16px;
	padding: 20px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: #fff;
}

.info-card__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: rgba(58, 84, 232, 0.08);
	color: var(--c-blue-600);
}

.info-card__label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.info-card__value { color: var(--c-ink); font-weight: 600; text-decoration: none; word-break: break-word; }

.form-card {
	padding: clamp(24px, 4vw, 44px);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	background: #fff;
	box-shadow: var(--sh-lg);
}

.form-card h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }

.form-grid {
	display: grid;
	gap: 16px;
}

@media (min-width: 640px) {
	.form-grid { grid-template-columns: 1fr 1fr; }
	.form-grid .full { grid-column: 1 / -1; }
}

.form-grid p { margin: 0; }
.form-grid label { display: block; }

.wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7-not-valid-tip { margin-top: 6px; font-size: 0.85rem; color: var(--c-red-600); }
.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid { border-color: var(--c-red-600); }

.wpcf7 form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 16px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	font-size: 0.93rem;
}

.wpcf7 form.sent .wpcf7-response-output { border-color: var(--c-green-600); background: rgba(21, 128, 61, 0.06); color: var(--c-green-600); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: var(--c-red-600); background: rgba(220, 38, 38, 0.05); color: var(--c-red-600); }

.wpcf7-submit { margin-top: 4px; }
.wpcf7-spinner { vertical-align: middle; }
.wpcf7-acceptance label,
.wpcf7-list-item label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--c-muted); }
.wpcf7-list-item { margin: 0; }

.faq {
	display: grid;
	gap: 12px;
}

.faq details {
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: #fff;
	transition: box-shadow 0.2s;
}

.faq details[open] { box-shadow: var(--sh-md); }

.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	color: var(--c-ink);
	font-weight: 650;
	cursor: pointer;
	list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.25s var(--ease); }
.faq details[open] summary .icon { transform: rotate(-180deg); }
.faq details > div { padding: 0 22px 20px; }
.faq details > div p:last-child { margin: 0; }

/* ---------- Policies ---------- */
.policy-layout {
	display: grid;
	gap: 40px;
}

@media (min-width: 1000px) {
	.policy-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
	.policy-nav { position: sticky; top: calc(var(--header-h) + 32px); }
}

.policy-nav {
	padding: 10px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: var(--c-surface-2);
}

.policy-nav__title { margin: 8px 12px 10px; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.policy-nav ul { margin: 0; padding: 0; list-style: none; }

.policy-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--r-sm);
	color: var(--c-body);
	font-size: 0.93rem;
	font-weight: 550;
	text-decoration: none;
}

.policy-nav a:hover { background: #fff; color: var(--c-ink); }
.policy-nav a[aria-current="page"] { background: #fff; color: var(--c-ink); box-shadow: var(--sh-sm); }
.policy-nav a[aria-current="page"] .icon { color: var(--c-blue-600); }

.policy-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-bottom: 28px;
	padding: 14px 18px;
	border-radius: var(--r-md);
	background: var(--c-surface-2);
	font-size: 0.9rem;
	color: var(--c-muted);
}

.policy-meta span { display: inline-flex; align-items: center; gap: 8px; }

.policy-cards .info-card { text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease); }
.policy-cards .info-card:hover { border-color: var(--c-line-strong); box-shadow: var(--sh-md); transform: translateY(-2px); }
.policy-cards h2 { margin: 0 0 4px; font-size: 1.1rem; }
.policy-cards p { margin: 0; font-size: 0.93rem; color: var(--c-muted); }

/* ---------- Search / 404 / empty ---------- */
.search-page__form { max-width: 640px; margin-bottom: 40px; }
.search-group + .search-group { margin-top: 56px; }
.search-group__title { font-size: 1.3rem; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }

.search-list { margin: 0; padding: 0; list-style: none; }
.search-list__item { padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.search-list__type { margin: 0 0 4px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-cyan-700); }
.search-list__title { margin-bottom: 6px; font-size: 1.15rem; }
.search-list__title a { color: var(--c-ink); text-decoration: none; }
.search-list__title a:hover { color: var(--c-blue-600); }
.search-list__excerpt { margin: 0; color: var(--c-muted); }

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 56px 24px;
	border: 1px dashed var(--c-line-strong);
	border-radius: var(--r-xl);
	text-align: center;
	color: var(--c-muted);
}

.empty-state .icon { color: var(--c-blue-600); margin-bottom: 8px; }
.empty-state .search-form { width: 100%; max-width: 480px; margin-top: 12px; }

.error-404 {
	position: relative;
	overflow: hidden;
	padding-block: clamp(80px, 12vw, 160px);
	background: var(--c-navy-900);
	color: var(--c-on-dark-muted);
	text-align: center;
}

.error-404__inner { position: relative; }

.error-404__code {
	margin: 0;
	font-size: clamp(6rem, 3rem + 14vw, 12rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.06em;
	background: var(--gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.error-404__title { color: #fff; }
.error-404 .search-form { max-width: 520px; margin: 28px auto; }
.error-404 .search-form__input { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #fff; }

/* ---------- Toast ---------- */
.toast {
	position: fixed;
	right: 50%;
	bottom: 24px;
	z-index: 1000;
	padding: 12px 18px;
	border-radius: var(--r-md);
	background: var(--c-navy-900);
	color: #fff;
	font-size: 0.93rem;
	font-weight: 550;
	box-shadow: var(--sh-lg);
	opacity: 0;
	transform: translate(50%, 12px);
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.is-visible { opacity: 1; transform: translate(50%, 0); }

/* ---------- Scroll reveal ---------- */
.js:not(.no-reveal) [data-reveal]:not(.is-revealed) {
	opacity: 0;
	transform: translateY(22px);
}

[data-reveal] {
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
	transition-delay: var(--reveal-delay, 0s);
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.js [data-reveal]:not(.is-revealed) { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
	.site-header,
	.site-footer,
	.post-layout__rail,
	.post-footer__share,
	.comments { display: none !important; }

	.page-hero,
	.post-hero { background: none; color: #000; padding: 0; }
	.page-hero__title,
	.post-hero__title { color: #000; }
}

/* ==========================================================================
   Portfolio: work cards, case studies, founder, skills
   ========================================================================== */
.work-grid { align-items: stretch; }

.work-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: #fff;
	box-shadow: var(--sh-sm);
	transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.work-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }

.work-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-navy-900); }
.work-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.03); }

.work-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.work-card__meta { margin: 0 0 4px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--c-muted); }
.work-card__title { margin: 0 0 6px; font-size: 1.2rem; }
.work-card__title a { color: var(--c-ink); text-decoration: none; }
.work-card__title a:hover { color: var(--c-blue-600); }
.work-card__tagline { margin: 0 0 16px; font-size: 0.95rem; color: var(--c-body); }

.work-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: auto 0 0;
	padding: 0;
	list-style: none;
}

.work-card__tags .chip { padding: 0.2rem 0.6rem; font-size: 0.75rem; }

.work-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }

@media (min-width: 960px) {
	.work-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
	.work-layout__rail { position: sticky; top: 96px; }
}

.work-cover {
	margin: 0 0 28px;
	overflow: hidden;
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	box-shadow: var(--sh-md);
}

.work-cover img { display: block; width: 100%; height: auto; }
.work-summary { margin: 0 0 24px; font-size: 1.15rem; line-height: 1.7; color: var(--c-ink); }

.work-facts {
	margin-bottom: 18px;
	padding: 22px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: var(--c-surface-2);
}

.work-facts__title {
	margin: 0 0 12px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.work-facts .check-list { margin: 0; font-size: 0.94rem; }
.work-facts .work-card__tags { margin: 0; }
.work-facts .btn { width: 100%; justify-content: center; }
.work-facts .btn + .btn { margin-top: 10px; }

.work-metrics { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.work-metrics li { display: grid; gap: 2px; }
.work-metrics strong { font-size: 1.6rem; line-height: 1.2; color: var(--c-ink); }
.work-metrics span { font-size: 0.9rem; color: var(--c-muted); }

.founder-strip {
	display: grid;
	gap: 24px;
	align-items: center;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	background: linear-gradient(-135deg, rgba(34, 211, 238, 0.06), rgba(91, 108, 255, 0.08));
}

@media (min-width: 720px) {
	.founder-strip { grid-template-columns: auto 1fr; gap: 36px; }
}

.founder-strip h2 { margin-bottom: 4px; }
.founder-strip p:last-of-type { max-width: 62ch; }

.founder-strip__avatar {
	display: grid;
	place-items: center;
	width: 112px;
	height: 112px;
	border-radius: 50%;
	background: var(--gradient-accent);
	box-shadow: var(--sh-md);
	color: #fff;
	font-size: 2.2rem;
	font-weight: 750;
	letter-spacing: 0.02em;
}

.founder-strip__role { margin: 0 0 12px; font-weight: 600; color: var(--c-blue-600); }

.founder-links { margin-top: 24px; }
.founder-photo img { display: block; width: 100%; height: auto; border-radius: var(--r-xl); }

.skills-grid { gap: 20px; }

.skill-group {
	padding: 26px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: #fff;
	box-shadow: var(--sh-sm);
}

.skill-group h3 { margin-bottom: 4px; font-size: 1.1rem; }
.skill-group > p { margin: 0 0 16px; font-size: 0.94rem; color: var(--c-muted); }

.skill-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.skill-list li {
	display: grid;
	gap: 2px;
	padding: 10px 0 0;
	border-top: 1px solid var(--c-line);
	font-size: 0.94rem;
}

.skill-list strong { color: var(--c-ink); }
.skill-list span { color: var(--c-muted); }
.work-facts > * + .work-facts__title,
.work-facts > * + .work-card__tags,
.work-facts > * + .btn { margin-top: 20px; }

/* ==========================================================================
   Persian (fa): Vazirmatn and RTL details. main-rtl.css is generated from
   this file with rtlcss (scripts/build-rtl.sh); edit main.css only.
   ========================================================================== */
@font-face {
	font-family: "Vazirmatn";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/vazirmatn-variable.woff2") format("woff2");
}

html[lang^="fa"] {
	--font: "Vazirmatn", "Inter", ui-sans-serif, system-ui, "Segoe UI", Tahoma, sans-serif;
}

html[lang^="fa"] body { line-height: 1.9; }

html[lang^="fa"] h1,
html[lang^="fa"] h2,
html[lang^="fa"] h3,
html[lang^="fa"] h4,
html[lang^="fa"] .eyebrow,
html[lang^="fa"] .work-facts__title {
	letter-spacing: 0;
	line-height: 1.5;
	text-transform: none;
}

html[lang^="fa"] input,
html[lang^="fa"] select,
html[lang^="fa"] textarea,
html[lang^="fa"] button { font-family: var(--font); }

/* Code, emails and URLs stay left-to-right inside Persian text. */
html[dir="rtl"] pre,
html[dir="rtl"] code,
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="tel"] { direction: ltr; text-align: left; }

html[dir="rtl"] .icon--arrow-right,
html[dir="rtl"] .icon--arrow-left,
html[dir="rtl"] .icon--chevron-right,
html[dir="rtl"] .icon--chevron-left { transform: scaleX(-1); }

/* Language switcher */
.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lang-switch a {
	display: inline-block;
	padding: 4px 8px;
	border-radius: var(--r-sm);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
	opacity: 0.75;
}

.lang-switch a:hover,
.lang-switch .is-current a { opacity: 1; background: rgba(255, 255, 255, 0.1); }

/* Header switcher from tablet up; inside the mobile menu below that. */
.lang-switch--header { display: none; }
.lang-switch--mobile { padding-top: 20px; }

@media (min-width: 640px) {
	.lang-switch--header { display: inline-flex; }
}

@media (min-width: 1080px) {
	.lang-switch--mobile { display: none; }
}

/* Latin-only text keeps Latin digits (Vazirmatn draws Persian digits). */
html[lang^="fa"] a[href^="mailto:"],
html[lang^="fa"] code,
html[lang^="fa"] pre,
html[lang^="fa"] input[type="email"],
html[lang^="fa"] input[type="url"],
html[lang^="fa"] .work-metrics strong,
html[lang^="fa"] .work-facts .check-list,
html[lang^="fa"] .chip,
html[lang^="fa"] .service-card__tech li { font-family: "Inter", "Vazirmatn", ui-sans-serif, system-ui, sans-serif; }

/* ---------- Contact: social profiles and map ---------- */
.contact-social__title { margin: 32px 0 14px; font-size: 1.05rem; }

.social-links--named { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.social-links--named a {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: flex-start;
	width: auto;
	height: auto;
	padding: 12px 14px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	background: #fff;
	color: var(--c-ink);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
}
.social-links--named a .icon { color: var(--c-blue-600); }
.social-links--named a:hover { color: #fff; background: var(--c-navy-800); border-color: var(--c-navy-800); }
.social-links--named a:hover .icon { color: var(--c-cyan-400); }

.map-card {
	margin: 28px 0 0;
	overflow: hidden;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: #fff;
	box-shadow: var(--sh-sm);
}
.map-card iframe { display: block; width: 100%; height: 280px; border: 0; filter: saturate(0.85); }
.map-card figcaption {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	padding: 14px 18px;
	font-size: 0.93rem;
	color: var(--c-body);
}
.map-card figcaption .icon { color: var(--c-blue-600); }
.map-card figcaption a { margin-inline-start: auto; font-weight: 600; color: var(--c-blue-600); }

/* ---------- Built-in contact form ---------- */
.contact-form label > input,
.contact-form label > select,
.contact-form label > textarea { margin-top: 6px; }
.contact-form__consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--c-muted); }
.contact-form__consent input { flex: none; width: auto; margin-top: 5px; }
.contact-form__consent a { color: var(--c-blue-600); }
.form-alert { margin: 0 0 20px; padding: 14px 18px; border: 1px solid; border-radius: var(--r-md); font-size: 0.95rem; }
.form-alert--ok { border-color: var(--c-green-600); background: rgba(21, 128, 61, 0.06); color: var(--c-green-600); }
.form-alert--error { border-color: var(--c-red-600); background: rgba(220, 38, 38, 0.05); color: var(--c-red-600); }

/* ---------- Brand mark (glass cube) ---------- */
.site-logo .brand-mark { width: 48px; height: 48px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 10px rgba(34, 211, 238, 0.25)); }

/* ---------- Home: contact form ---------- */
.home-contact__grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 960px) { .home-contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.home-contact .section-head { margin-bottom: 28px; }

/* ---------- Home: services ---------- */
.service-card {
	display: flex;
	flex-direction: column;
	padding: clamp(22px, 2.6vw, 30px);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease);
}
.service-card:hover { border-color: var(--c-line-strong); box-shadow: var(--sh-md); transform: translateY(-3px); }
.service-card__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	border-radius: 14px;
	background: var(--gradient-accent);
	color: var(--c-navy-900);
}
.service-card__title { margin: 0 0 10px; font-size: 1.12rem; }
.service-card__text { flex: 1; margin: 0 0 18px; color: var(--c-muted); font-size: 0.96rem; }
.service-card__tech { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.service-card__tech li {
	padding: 4px 10px;
	border-radius: var(--r-pill);
	background: var(--c-surface-3);
	color: var(--c-navy-700);
	font-family: var(--font);
	font-size: 0.78rem;
	font-weight: 600;
}

/* Stats that are words rather than numbers. */
.stat__value--text { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); letter-spacing: -0.02em; }
@media (min-width: 900px) { .stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }

/* Intro hero image: its glass structure sits on the left, so mirror it in
   English to keep the text over the dark side (Persian keeps it as is). */

/* Founder photo on the home page (replaces the initials circle). */
.founder-strip__photo {
	display: block;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 4px var(--c-surface, #fff), 0 0 0 6px var(--c-blue-600, #3A54E8);
}
@media (min-width: 720px) {
	.founder-strip__photo { width: 180px; height: 180px; }
}

/* About: intro beside the photo, themed sections as cards, closing quote. */
.story-split { align-items: center; }
.story-cards { margin-top: clamp(40px, 6vw, 72px); gap: 20px; }
.story-card {
	padding: clamp(22px, 2.6vw, 30px);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	background: linear-gradient(-160deg, rgba(34, 211, 238, 0.05), rgba(91, 108, 255, 0.07));
}
.story-card__icon {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 14px;
	color: #fff;
	background: var(--gradient-accent);
}
.story-card h3 { margin: 0 0 12px; font-size: 1.18rem; }
.story-card__body p { margin: 0 0 12px; color: var(--c-muted, #4B5563); line-height: 1.85; }
.story-card__body p:last-child { margin-bottom: 0; }
.story-quote {
	position: relative;
	margin: clamp(32px, 5vw, 56px) 0 0;
	padding: clamp(28px, 4vw, 44px) clamp(24px, 5vw, 64px);
	border-radius: var(--r-xl);
	color: #fff;
	text-align: center;
	background: linear-gradient(-135deg, #070B24, #18225A 60%, #1E3A8A);
}
.story-quote svg { color: #22D3EE; opacity: 0.9; }
.story-quote p { max-width: 46ch; margin: 12px auto; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 700; line-height: 1.7; }
.story-quote cite { font-style: normal; color: #A5B4FC; font-size: 0.95rem; }
