/**
 * KHM Security - theme stylesheet
 *
 *  1.  Tokens
 *  2.  Reset & base
 *  3.  Typography
 *  4.  Buttons & links
 *  5.  Shell & sections
 *  6.  Header
 *  7.  Mobile drawer
 *  8.  Heroes
 *  9.  Stats
 *  10. Cards & grids
 *  11. Split
 *  12. Process / timeline / mission / compare / trust / quote
 *  13. Contact & forms
 *  14. Footer
 *  15. Floating controls
 *  16. Blog, 404, search
 *  17. Elementor scoping
 *  18. Accessibility & motion
 *  19. Responsive
 */

/* ------------------------------------------------------------- 1. Tokens - */
:root {
	--khm-primary: #E31B23;
	--khm-bright: #FF202B;
	--khm-black: #050607;
	--khm-charcoal: #111317;
	--khm-offwhite: #F4F3EF;
	--khm-white: #fff;
	--khm-grey: #A8ACB3;
	--khm-grey-dark: #5A5E64;

	--khm-line-dark: rgba(255, 255, 255, .12);
	--khm-line-light: rgba(5, 6, 7, .10);

	--khm-font-display: "Oswald", "Barlow Condensed", "Arial Narrow", sans-serif;
	--khm-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--khm-h1: clamp(2.4rem, 1.15rem + 4.6vw, 4.9rem);
	--khm-h2: clamp(1.8rem, 1.1rem + 2.5vw, 3rem);
	--khm-h3: clamp(1.15rem, 1.02rem + .55vw, 1.45rem);
	--khm-body: clamp(1rem, .97rem + .16vw, 1.0625rem);
	--khm-small: .9375rem;

	--khm-shell: 1280px;
	--khm-gutter: clamp(1.25rem, .6rem + 2.2vw, 2.5rem);

	/* Section padding scale, tightened per breakpoint in section 19. */
	--khm-scale: 1;
	--khm-pt: 90px;
	--khm-pb: 90px;

	--khm-radius: 5px;
	--khm-radius-lg: 10px;
	--khm-shadow: 0 20px 50px rgba(0, 0, 0, .38);
	--khm-shadow-light: 0 14px 38px rgba(5, 6, 7, .10);

	--khm-header-min: 88px;
	--khm-header-h: 88px;
	--khm-logo-w: 130px;
	--khm-logo-w-mob: 104px;
	--khm-header-bg: #050607;
	--khm-footer-bg: #050607;

	--khm-t: .25s ease;
}

/* --------------------------------------------------------- 2. Reset/base - */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--khm-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--khm-white);
	color: var(--khm-charcoal);
	font-family: var(--khm-font-body);
	font-size: var(--khm-body);
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
figure { margin: 0; }

/* ------------------------------------------------------- 3. Typography --- */
.khm-h,
h1, h2, h3, h4, h5, h6 {
	font-family: var(--khm-font-display);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: .012em;
	text-transform: uppercase;
	margin: 0 0 .5em;
	text-wrap: balance;
}

h1, .khm-phero__title { font-size: var(--khm-h1); }
h2 { font-size: var(--khm-h2); }
h3 { font-size: var(--khm-h3); }

.khm-h__hl { display: block; }
.khm-h__dot { color: var(--khm-primary); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--khm-primary); text-underline-offset: 3px; transition: color var(--khm-t); }
a:hover { color: var(--khm-bright); }

.khm-eyebrow {
	font-family: var(--khm-font-body);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--khm-primary);
	margin: 0 0 .85rem;
}

.khm-prose > * + * { margin-top: 1.05em; }

/* --------------------------------------------------------- 4. Buttons ---- */
.khm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	min-height: 50px;
	padding: .9rem 1.75rem;
	border: 2px solid transparent;
	border-radius: var(--khm-radius);
	font-family: var(--khm-font-body);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--khm-t), color var(--khm-t), border-color var(--khm-t), transform var(--khm-t);
}

.khm-btn:hover { transform: translateY(-2px); }

.khm-btn--primary { background: var(--khm-primary); border-color: var(--khm-primary); color: #fff; }
.khm-btn--primary:hover { background: var(--khm-bright); border-color: var(--khm-bright); color: #fff; }

.khm-btn--dark { background: var(--khm-black); border-color: var(--khm-black); color: #fff; }
.khm-btn--dark:hover { background: var(--khm-charcoal); color: #fff; }

.khm-btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.khm-btn--outline:hover { background: var(--khm-primary); border-color: var(--khm-primary); color: #fff; }

.khm-btn--white { background: #fff; border-color: #fff; color: var(--khm-black); }
.khm-btn--white:hover { background: var(--khm-primary); border-color: var(--khm-primary); color: #fff; }

.khm-btn--whatsapp { background: #25D366; border-color: #25D366; color: #06301a; }
.khm-btn--whatsapp:hover { background: #1eb958; border-color: #1eb958; color: #06301a; }

.khm-btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.khm-btn-row--center { justify-content: center; }

.khm-link {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin-top: auto;
	padding-top: 1rem;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
}

.khm-link svg { transition: transform var(--khm-t); }
.khm-link:hover svg { transform: translateX(5px); }

/* ---------------------------------------------------- 5. Shell/sections -- */
.khm-shell {
	width: 100%;
	max-width: var(--khm-shell);
	margin-inline: auto;
	padding-inline: var(--khm-gutter);
}

.khm-sec {
	position: relative;
	padding-top: calc(var(--khm-pt) * var(--khm-scale));
	padding-bottom: calc(var(--khm-pb) * var(--khm-scale));
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.khm-sec--has-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(5, 6, 7, .74);
	pointer-events: none;
}

.khm-sec--has-bg > .khm-shell { position: relative; z-index: 1; }

.khm-sechead { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.khm-sechead--left { margin-inline: 0; text-align: left; }
.khm-sechead__title { margin-bottom: 0; }

.khm-sechead__title::after {
	content: "";
	display: block;
	width: 62px;
	height: 3px;
	background: var(--khm-primary);
	margin: 1.1rem auto 0;
}

.khm-sechead--left .khm-sechead__title::after { margin-inline: 0; }
.khm-sechead__text { margin-top: 1rem; opacity: .82; }

/* The recurring red diagonal wedge. Decorative only. */
.khm-wedge {
	position: absolute;
	top: 0;
	right: 0;
	width: 30%;
	height: 100%;
	background: var(--khm-primary);
	clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%);
	pointer-events: none;
	z-index: 0;
}

.khm-sec > .khm-shell { position: relative; z-index: 2; }

/* ---------------------------------------------------------- 6. Header ---- */
.khm-head {
	position: relative;
	z-index: 100;
	background: var(--khm-header-bg);
	border-bottom: 1px solid var(--khm-line-dark);
}

.khm-header-sticky .khm-head { position: sticky; top: 0; }

.khm-header-transparent .khm-head {
	position: absolute;
	inset-inline: 0;
	top: 0;
	background: transparent;
	border-bottom-color: transparent;
}

.khm-header-transparent.khm-header-sticky .khm-head { position: fixed; }

.khm-head.is-stuck {
	position: fixed;
	background: rgba(5, 6, 7, .97);
	backdrop-filter: blur(8px);
	border-bottom-color: var(--khm-line-dark);
	box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
}

.khm-head {
	/* Breathing room above the logo row. */
	padding-top: clamp(16px, 2vw, 34px);
}

.khm-head__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: clamp(1rem, 2.5vw, 2.5rem);
	/* Sized by its OWN token. Never by --khm-header-h, which JS derives from
	   this element - that would feed the measurement back into itself and the
	   header would grow on every resize. */
	min-height: var(--khm-header-min);
}

.khm-head__brand { flex: 0 0 auto; }
.khm-head__logo { display: block; line-height: 0; }
/* The logo setting acts as a MAX width; the height cap keeps the header bar at
   its designed height whatever aspect ratio the uploaded logo has. */
.khm-logo-img {
	width: auto;
	height: auto;
	max-width: var(--khm-logo-w);
	max-height: 62px;
	object-fit: contain;
}

.khm-head__name {
	font-family: var(--khm-font-display);
	font-size: 1.4rem;
	color: #fff;
	text-transform: uppercase;
	line-height: 1.2;
}

.khm-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.khm-menu, .khm-submenu { list-style: none; margin: 0; padding: 0; }
.khm-menu { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.2rem); }
.khm-menu > li { position: relative; }

.khm-menu a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .55rem 0;
	font-size: .9375rem;
	font-weight: 500;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}

.khm-menu > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: .1rem;
	width: 0;
	height: 2px;
	background: var(--khm-primary);
	transition: width var(--khm-t);
}

.khm-menu > li:hover > a::after,
.khm-menu > li:focus-within > a::after { width: 100%; }

.khm-menu .current-menu-item > a,
.khm-menu .current-menu-ancestor > a,
.khm-menu .current_page_item > a { color: var(--khm-primary); }

.khm-menu .submenu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	padding: .4rem 0;
	margin: 0;
	list-style: none;
	background: var(--khm-charcoal);
	border: 1px solid var(--khm-line-dark);
	border-radius: var(--khm-radius);
	box-shadow: var(--khm-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity var(--khm-t), transform var(--khm-t), visibility var(--khm-t);
}

.khm-menu li:hover > .submenu,
.khm-menu li:focus-within > .submenu,
.khm-menu li.is-open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

.khm-menu .submenu a { display: block; padding: .6rem 1.1rem; white-space: normal; }
.khm-menu .submenu a::after { display: none; }
.khm-menu .submenu a:hover { background: rgba(227, 27, 35, .16); color: var(--khm-primary); }

.khm-sub-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	background: none;
	border: 0;
	color: currentColor;
	cursor: pointer;
	transform: rotate(180deg);
	transition: transform var(--khm-t);
}

.khm-sub-toggle[aria-expanded="true"] { transform: rotate(0); color: var(--khm-primary); }

.khm-head__actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; grid-column: -2; justify-self: end; }

.khm-head__phone {
	display: none;
	align-items: center;
	gap: .45rem;
	font-size: .9375rem;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
}

.khm-head__phone:hover { color: var(--khm-primary); }

@media (min-width: 1200px) { .khm-head__phone { display: inline-flex; } }

.khm-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--khm-line-dark);
	border-radius: var(--khm-radius);
	color: #fff;
	cursor: pointer;
}

.khm-burger__bars { display: grid; gap: 5px; width: 22px; }
.khm-burger__bars span { display: block; height: 2px; background: currentColor; transition: transform var(--khm-t), opacity var(--khm-t); }
.khm-burger[aria-expanded="true"] .khm-burger__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.khm-burger[aria-expanded="true"] .khm-burger__bars span:nth-child(2) { opacity: 0; }
.khm-burger[aria-expanded="true"] .khm-burger__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------- 7. Mobile drawer -- */
.khm-drawer { position: fixed; inset: 0; z-index: 200; background: rgba(5, 6, 7, .6); }
.khm-drawer[hidden] { display: none; }

.khm-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(400px, 88vw);
	height: 100%;
	overflow-y: auto;
	padding: calc(var(--khm-header-h) + 1rem) 1.5rem 2.5rem;
	background: var(--khm-charcoal);
	border-left: 1px solid var(--khm-line-dark);
}

.khm-drawer__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--khm-line-dark);
	border-radius: var(--khm-radius);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.khm-drawer__close:hover { background: var(--khm-primary); border-color: var(--khm-primary); }

.khm-drawer__menu, .khm-drawer__menu .submenu { list-style: none; margin: 0; padding: 0; }
.khm-drawer__menu > li { border-bottom: 1px solid var(--khm-line-dark); }
.khm-drawer__menu li { position: relative; }

.khm-drawer__menu a {
	display: block;
	padding: .95rem .25rem;
	font-size: 1.05rem;
	font-weight: 500;
	color: #fff;
	text-decoration: none;
}

.khm-drawer__menu .current-menu-item > a { color: var(--khm-primary); }
.khm-drawer__menu .khm-sub-toggle { position: absolute; top: .5rem; right: 0; width: 44px; height: 44px; color: #fff; }
.khm-drawer__menu .submenu { display: none; padding-left: 1rem; }
.khm-drawer__menu li.is-open > .submenu { display: block; }

.khm-drawer__contact { display: grid; gap: .5rem; margin-top: 1.75rem; }

.khm-drawer__contact a {
	display: flex;
	align-items: center;
	gap: .6rem;
	min-height: 44px;
	color: var(--khm-grey);
	text-decoration: none;
}

.khm-drawer__contact a:hover { color: var(--khm-primary); }
.khm-drawer__cta { width: 100%; margin-top: 1.5rem; }
.khm-drawer__social { display: flex; gap: .6rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }

.khm-drawer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--khm-line-dark);
	border-radius: 50%;
	color: #fff;
}

.khm-drawer__social a:hover { background: var(--khm-primary); border-color: var(--khm-primary); }

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

/* ----------------------------------------------------------- 8. Heroes --- */
.khm-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	align-items: end;
	gap: clamp(1.5rem, 3vw, 3rem);
	min-height: min(78vh, 780px);
	color: #fff;
}

.khm-hero__copy { padding-bottom: clamp(2.5rem, 6vw, 5rem); }

/* The header is overlaid, so the hero reserves at least its height. */
.khm-header-transparent .khm-sec--hero,
.khm-header-transparent .khm-sec--phero {
	padding-top: max(calc(var(--khm-pt) * var(--khm-scale)), calc(var(--khm-header-h) + 28px));
}
.khm-hero__title { margin-bottom: 1.1rem; }
.khm-hero__text { max-width: 46ch; color: var(--khm-grey); font-size: 1.0625rem; }
.khm-hero__media { display: flex; justify-content: center; align-items: flex-end; align-self: stretch; }

/* Cut-outs keep their own aspect ratio and are never cropped. */
.khm-cutout {
	width: auto;
	max-width: 100%;
	max-height: min(74vh, 720px);
	object-fit: contain;
	object-position: bottom center;
	filter: drop-shadow(0 26px 48px rgba(0, 0, 0, .55));
}

.khm-phero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; color: #fff; }
.khm-phero--media { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; }
.khm-phero__title { margin-bottom: .5rem; }
.khm-phero__text { color: var(--khm-grey); max-width: 52ch; margin: 0; }
.khm-phero__form { max-width: 460px; margin-top: 1.5rem; }
.khm-phero__media { display: flex; justify-content: flex-end; align-items: flex-end; }
.khm-phero__media .khm-cutout { max-height: min(46vh, 430px); }

.khm-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin-bottom: 1rem;
	font-size: var(--khm-small);
	color: var(--khm-grey);
	text-transform: uppercase;
	letter-spacing: .08em;
}

.khm-crumbs a { color: var(--khm-grey); text-decoration: none; }
.khm-crumbs a:hover { color: var(--khm-primary); }
.khm-crumbs [aria-current] { color: var(--khm-primary); }

/* ------------------------------------------------------------ 9. Stats --- */
.khm-stats {
	display: grid;
	grid-template-columns: repeat(var(--khm-cols, 3), minmax(0, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.khm-stat {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .35rem;
	text-align: center;
	padding: .5rem 1rem;
}

.khm-stat + .khm-stat::before {
	content: "";
	position: absolute;
	left: 0;
	top: 15%;
	height: 70%;
	width: 1px;
	background: currentColor;
	opacity: .18;
}

.khm-stat__icon { color: var(--khm-primary); }

.khm-stat__value {
	font-family: var(--khm-font-display);
	font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.1rem);
	line-height: 1;
	font-weight: 700;
}

.khm-stat__label {
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .72;
}

/* -------------------------------------------------------- 10. Cards ------ */
.khm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 1025px) {
	.khm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.khm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.khm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.khm-grid--center { text-align: center; }

.khm-card {
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 2.2vw, 2.1rem);
	background: var(--khm-charcoal);
	border: 1px solid var(--khm-line-dark);
	border-radius: var(--khm-radius-lg);
	color: #fff;
	text-decoration: none;
	transition: transform var(--khm-t), border-color var(--khm-t), box-shadow var(--khm-t);
}

.khm-card--light { background: #fff; border-color: var(--khm-line-light); color: var(--khm-charcoal); }

/* A card that is a link must not inherit link colouring for its whole body. */
.khm-card:hover,
.khm-card:focus-visible { color: #fff; }

.khm-card--light:hover,
.khm-card--light:focus-visible { color: var(--khm-charcoal); }

.khm-card .khm-card__title,
.khm-card .khm-card__text { color: inherit; }

/* Links inside a card keep the brand colour but lose the underline. */
.khm-card--light .khm-card__text a { color: var(--khm-primary); text-decoration: none; }
.khm-card--light .khm-card__text a:hover { text-decoration: underline; }

.khm-card--link:hover,
.khm-card--link:focus-visible {
	transform: translateY(-6px);
	border-color: var(--khm-primary);
	box-shadow: var(--khm-shadow);
}

.khm-card--light.khm-card--link:hover { box-shadow: var(--khm-shadow-light); }
.khm-grid--center .khm-card { align-items: center; }

.khm-card__icon { color: var(--khm-primary); margin-bottom: 1.1rem; display: inline-flex; }

/* An uploaded icon scales like the built-in ones and never distorts. */
.khm-card__svg {
	width: auto;
	height: 42px;
	max-width: 64px;
	object-fit: contain;
}
.khm-card__media { display: block; margin: -0.4rem 0 1.2rem; }
.khm-card__img { width: 100%; border-radius: var(--khm-radius); aspect-ratio: 16 / 10; object-fit: cover; }
.khm-card__title { font-size: 1.15rem; letter-spacing: .04em; margin-bottom: .7rem; }
.khm-card__text { font-size: .9375rem; line-height: 1.75; opacity: .82; margin-bottom: 0; }
.khm-card__full { font-size: .9375rem; margin-top: .9rem; opacity: .82; }

.khm-card__more {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-top: 1.1rem;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--khm-primary);
}

.khm-card__more svg { transition: transform var(--khm-t); }
.khm-card--link:hover .khm-card__more svg { transform: translateX(4px); }
.khm-card.is-featured { border-color: var(--khm-primary); }

/* -------------------------------------------------------- 11. Split ------ */
.khm-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(2rem, 4vw, 4rem);
}

.khm-split--rev .khm-split__media { order: 2; }
.khm-split__media { display: flex; justify-content: center; }
.khm-split__media .khm-cutout { max-height: min(60vh, 560px); }
.khm-split__img { width: 100%; border-radius: var(--khm-radius-lg); object-fit: cover; }

.khm-featlist { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.khm-featlist li { display: flex; gap: .9rem; align-items: flex-start; }
.khm-featlist svg { flex: 0 0 auto; color: var(--khm-primary); margin-top: .15rem; }
.khm-featlist strong { display: block; font-size: 1rem; }
.khm-featlist em { display: block; font-style: normal; font-size: .9375rem; opacity: .78; margin-top: .15rem; }

/* Keep the CTA clear of the feature list above it. */
.khm-split__copy .khm-btn { margin-top: 1.75rem; }

/* ------------------------------- 12. Process / timeline / mission / etc -- */
.khm-process {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.khm-step {
	padding: clamp(1.4rem, 2vw, 1.9rem);
	background: rgba(255, 255, 255, .03);
	border: 1px solid var(--khm-line-dark);
	border-radius: var(--khm-radius-lg);
}

.khm-step__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }

.khm-step__num {
	font-family: var(--khm-font-display);
	font-size: clamp(2.2rem, 1.4rem + 2vw, 3rem);
	line-height: 1;
	color: var(--khm-primary);
}

.khm-step__icon { color: var(--khm-primary); opacity: .85; }
.khm-step__title { font-size: 1.05rem; letter-spacing: .05em; margin-bottom: .6rem; }
.khm-step__text { font-size: .9375rem; line-height: 1.7; opacity: .8; margin: 0; }

/* Timeline: horizontal on desktop, vertical from tablet down. */
.khm-timeline {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.khm-tl { position: relative; padding-top: 2.4rem; }

.khm-tl__dot {
	position: absolute;
	top: 0;
	left: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--khm-primary);
	box-shadow: 0 0 0 4px rgba(227, 27, 35, .22);
}

.khm-tl__line {
	display: block;
	position: absolute;
	top: 7px;
	left: 16px;
	right: -1rem;
	height: 2px;
	background: var(--khm-primary);
	transition: transform .7s ease, opacity .7s ease;
}

/*
 * Reveal-on-scroll for the timeline.
 *
 * Both states are written with the same selector shape so the cascade is
 * unambiguous: the revealed rule simply carries one more class. Everything is
 * gated on .khm-js, so with JavaScript off the timeline is visible immediately.
 */
.khm-js .khm-timeline .khm-tl__line {
	opacity: 0;
	transform: scaleX(0);
	transform-origin: left center;
}

.khm-js .khm-timeline.is-visible .khm-tl__line {
	opacity: 1;
	transform: scaleX(1);
}

.khm-js .khm-timeline .khm-tl__dot {
	opacity: 0;
	transform: scale(.4);
}

.khm-js .khm-timeline.is-visible .khm-tl__dot {
	opacity: 1;
	transform: scale(1);
}

.khm-js .khm-timeline.is-visible .khm-tl:nth-child(2)::before,
.khm-js .khm-timeline.is-visible .khm-tl:nth-child(2) .khm-tl__dot { transition-delay: .18s; }
.khm-js .khm-timeline.is-visible .khm-tl:nth-child(3)::before,
.khm-js .khm-timeline.is-visible .khm-tl:nth-child(3) .khm-tl__dot { transition-delay: .36s; }
.khm-js .khm-timeline.is-visible .khm-tl:nth-child(4)::before,
.khm-js .khm-timeline.is-visible .khm-tl:nth-child(4) .khm-tl__dot { transition-delay: .54s; }
.khm-js .khm-timeline.is-visible .khm-tl:nth-child(5)::before,
.khm-js .khm-timeline.is-visible .khm-tl:nth-child(5) .khm-tl__dot { transition-delay: .72s; }

@media (prefers-reduced-motion: reduce) {
	.khm-tl__line,
	.khm-tl__dot { transform: none; transition: none; }
}

.khm-tl:last-child .khm-tl__line { display: none; }

.khm-tl__year {
	display: block;
	font-family: var(--khm-font-display);
	font-size: 1.9rem;
	line-height: 1;
	color: var(--khm-primary);
	margin-bottom: .4rem;
}

.khm-tl__title { font-size: .9375rem; letter-spacing: .12em; margin-bottom: .5rem; }
.khm-tl__text { font-size: .9375rem; line-height: 1.7; opacity: .8; margin: 0; }

/* Mission / vision */
.khm-mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.khm-mv__card {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	padding: clamp(2.2rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem);
	color: #fff;
}

.khm-mv__card svg { flex: 0 0 auto; opacity: .9; }
.khm-mv__card .khm-h { font-size: 1.6rem; margin-bottom: .6rem; }
.khm-mv__card p { font-size: .9375rem; line-height: 1.75; opacity: .9; }
.khm-mv__card--mission { background: var(--khm-primary); }
.khm-mv__card--vision { background: var(--khm-charcoal); }
.khm-mv__card--vision svg { color: var(--khm-primary); }

/* Trust statement */
.khm-trust {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.2fr);
	align-items: center;
	gap: clamp(1.5rem, 3vw, 3rem);
}

.khm-trust__title { margin: 0; }
.khm-trust__metric { text-align: center; padding-inline: clamp(1rem, 2vw, 2rem); border-inline: 1px solid var(--khm-line-light); }

.khm-trust__value {
	display: block;
	font-family: var(--khm-font-display);
	font-size: clamp(3rem, 2rem + 4vw, 5rem);
	line-height: .95;
	color: var(--khm-primary);
}

.khm-trust__label { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.khm-trust__text { font-size: .9375rem; line-height: 1.8; }

/* Comparison */
.khm-compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.khm-compare__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }

.khm-compare__col li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .85rem 1.1rem;
	background: #fff;
	border: 1px solid var(--khm-line-light);
	border-radius: var(--khm-radius);
	font-size: .9375rem;
}

.khm-compare__head {
	font-size: 1.05rem;
	letter-spacing: .1em;
	text-align: center;
	padding: .9rem 1rem;
	border-radius: var(--khm-radius);
	margin-bottom: 1rem;
}

.khm-compare__col--std .khm-compare__head { background: #e7e5df; color: var(--khm-grey-dark); }
.khm-compare__col--khm .khm-compare__head { background: var(--khm-primary); color: #fff; }
.khm-compare__col--khm li { border-color: rgba(227, 27, 35, .35); }
.khm-compare__mark { flex: 0 0 auto; display: inline-flex; }
.khm-compare__mark--no { color: var(--khm-primary); }
.khm-compare__mark--yes { color: #1a9c4b; }

.khm-compare__vs {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: var(--khm-black);
	color: #fff;
	font-family: var(--khm-font-display);
	font-size: 1.2rem;
}

/* Testimonial */
.khm-quote { margin: 0 auto; max-width: 900px; display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.khm-quote__mark { color: var(--khm-primary); opacity: .5; }
.khm-quote blockquote { margin: 0; font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem); line-height: 1.55; }
.khm-quote figcaption { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }

/* About intro */
.khm-intro { display: grid; gap: 2.5rem; }
.khm-intro__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.khm-intro__cols .khm-prose { font-size: .9375rem; line-height: 1.85; }

.khm-intro__quote {
	display: grid;
	gap: 1rem;
	align-content: start;
	padding-left: clamp(1rem, 2vw, 2rem);
	border-left: 2px solid var(--khm-primary);
}

.khm-intro__quote svg { color: var(--khm-primary); }
.khm-intro__quote p { font-family: var(--khm-font-display); font-size: 1.35rem; line-height: 1.25; text-transform: uppercase; }

/* Leadership */
.khm-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.khm-lead .khm-prose { font-size: .9375rem; line-height: 1.85; opacity: .85; }

/* Services */
.khm-services { display: grid; gap: 2.5rem; }
.khm-services__intro { max-width: 780px; }
.khm-services__text { font-size: .9375rem; opacity: .8; }

/* CTA band */
.khm-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.khm-cta__copy { display: flex; align-items: center; gap: 1.25rem; }
.khm-cta__icon { flex: 0 0 auto; opacity: .95; }
.khm-cta__title { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); }
.khm-cta__text { margin: .5rem 0 0; font-size: .9375rem; opacity: .9; }
.khm-cta .khm-btn-row { margin-top: 0; }

/* ------------------------------------------------------ 13. Contact ------ */
.khm-contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.khm-contact__text { font-size: .9375rem; opacity: .85; }
.khm-contact__list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; }
.khm-contact__list li { display: flex; gap: .8rem; align-items: flex-start; }
.khm-contact__list svg { flex: 0 0 auto; color: var(--khm-primary); margin-top: .3rem; }
.khm-contact__list a { color: inherit; text-decoration: none; }
.khm-contact__list a:hover { color: var(--khm-primary); }
.khm-contact__list address { font-style: normal; }
.khm-contact__fallback { font-size: .9375rem; }

.khm-admin-note {
	margin-top: 1rem;
	padding: .9rem 1.1rem;
	border: 1px dashed var(--khm-primary);
	border-radius: var(--khm-radius);
	font-size: .875rem;
}

/* Form */
.khm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.khm-form-block p { margin: 0 0 1rem; }
.khm-field label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .45rem; opacity: .8; }
.khm-req { color: var(--khm-primary); }
.khm-hp { position: absolute !important; left: -9999px; }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="number"],
select,
textarea {
	width: 100%;
	min-height: 50px;
	padding: .8rem 1rem;
	background: #fff;
	border: 1px solid var(--khm-line-light);
	border-radius: var(--khm-radius);
	color: var(--khm-charcoal);
	font-family: inherit;
	font-size: 1rem;
}

textarea { min-height: 140px; resize: vertical; }

select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.6rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .9rem center;
	background-size: 16px 16px;
}

/* The option list is painted by the OS, not the page, so it must be styled
   explicitly or it inherits the dark form treatment and becomes unreadable. */
select option {
	background-color: #fff;
	color: #111317;
}

/* Red only on the hovered/highlighted option - a selected option keeps the
   plain white row so the closed control never looks like a red block. */
select option:hover,
select option:focus {
	background-color: var(--khm-primary);
	color: #fff;
}

select option:checked {
	background-color: #fff;
	color: #111317;
}

.khm-form-dark select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8ACB3' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
}

input:focus, select:focus, textarea:focus {
	outline: 2px solid var(--khm-primary);
	outline-offset: 1px;
	border-color: var(--khm-primary);
}

.khm-form-dark input,
.khm-form-dark select,
.khm-form-dark textarea {
	background: rgba(255, 255, 255, .05);
	border-color: var(--khm-line-dark);
	color: #fff;
}

.khm-form-dark ::placeholder { color: var(--khm-grey); opacity: 1; }

.khm-form-success,
.khm-form-error { padding: 1rem 1.15rem; border-radius: var(--khm-radius); margin-bottom: 1.25rem; font-size: .9375rem; }
.khm-form-success { background: rgba(37, 211, 102, .12); border: 1px solid #25D366; }
.khm-form-error { background: rgba(227, 27, 35, .1); border: 1px solid var(--khm-primary); }

input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--khm-bright); }

.khm-map { line-height: 0; }
.khm-map iframe { width: 100%; height: var(--khm-map-h, 420px); border: 0; }

.khm-search-form { display: flex; gap: .5rem; }
.khm-search-form__submit { flex: 0 0 auto; padding-inline: 1.1rem; }

/* -------------------------------------------------------- 14. Footer ----- */
.khm-foot { background: var(--khm-footer-bg); color: var(--khm-grey); padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.khm-foot__grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }

@media (min-width: 640px) { .khm-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1025px) { .khm-foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }

.khm-foot__logo { display: inline-block; line-height: 0; margin-bottom: 1.15rem; }
.khm-foot__logo-img { width: 150px; height: auto; object-fit: contain; }
.khm-foot__about { font-size: .875rem; line-height: 1.8; max-width: 42ch; }

.khm-foot__title {
	display: inline-block;
	font-size: 1rem;
	letter-spacing: .12em;
	color: #fff;
	margin-bottom: 1.15rem;
	padding-bottom: .55rem;
	border-bottom: 2px solid var(--khm-primary);
}

.khm-foot__title--social { margin-top: 1.75rem; }
.khm-foot__menu, .khm-foot__contact, .khm-foot__social, .khm-foot__legal { list-style: none; margin: 0; padding: 0; }
.khm-foot__menu li + li, .khm-foot__contact li + li { margin-top: .6rem; }
.khm-foot__menu a, .khm-foot__contact a { color: var(--khm-grey); text-decoration: none; }
.khm-foot__menu a:hover, .khm-foot__contact a:hover { color: var(--khm-primary); }
.khm-foot__contact li { display: flex; gap: .65rem; align-items: flex-start; font-size: .9375rem; }
.khm-foot__contact svg { flex: 0 0 auto; margin-top: .3rem; color: var(--khm-primary); }
.khm-foot__contact address { font-style: normal; }
.khm-foot__social { display: flex; flex-wrap: wrap; gap: .6rem; }

.khm-foot__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--khm-line-dark);
	border-radius: 50%;
	color: #fff;
	transition: background var(--khm-t), border-color var(--khm-t);
}

.khm-foot__social a:hover { background: var(--khm-primary); border-color: var(--khm-primary); }

.khm-foot__bar { border-top: 1px solid var(--khm-line-dark); padding-block: 1.25rem; font-size: .875rem; }
.khm-foot__bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.khm-foot__copy { margin: 0; }
.khm-foot__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.khm-foot__legal a { color: var(--khm-grey); text-decoration: none; }
.khm-foot__legal a:hover { color: var(--khm-primary); }

/* ----------------------------------------------------- 15. Floating ------ */
.khm-wa-float {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: #25D366;
	color: #05300f;
	border-radius: 50%;
	box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
	transition: transform var(--khm-t);
}

.khm-wa-float:hover { transform: scale(1.06); color: #05300f; }

.khm-top {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: calc(clamp(1rem, 3vw, 2rem) + 68px);
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--khm-primary);
	border: 0;
	border-radius: var(--khm-radius);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity var(--khm-t), transform var(--khm-t);
}

.khm-top.is-visible { opacity: 1; transform: translateY(0); }
.khm-top[hidden] { display: none; }

/* -------------------------------------------------- 16. Blog / 404 ------- */
.khm-blog { display: grid; gap: clamp(2rem, 4vw, 3.5rem); padding-block: clamp(3rem, 6vw, 5rem); }

@media (min-width: 1025px) {
	.khm-blog { grid-template-columns: minmax(0, 1fr) 320px; }
	.khm-blog--full { grid-template-columns: minmax(0, 1fr); }
}

.khm-posts { display: grid; gap: 2rem; }
.khm-article__media img { width: 100%; border-radius: var(--khm-radius-lg); margin-bottom: 2rem; }
.khm-post-card { border: 1px solid var(--khm-line-light); border-radius: var(--khm-radius-lg); overflow: hidden; }
.khm-post-card__body { padding: 1.5rem; }
.khm-post-card__title a { color: inherit; text-decoration: none; }
.khm-post-card__title a:hover { color: var(--khm-primary); }
.khm-post-card__meta { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--khm-grey-dark); }
.khm-post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.khm-sidebar .widget + .widget { margin-top: 2rem; }
.khm-sidebar .widget-title { font-size: 1.1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--khm-primary); }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	min-height: 46px;
	padding: 0 .5rem;
	border: 1px solid var(--khm-line-light);
	border-radius: var(--khm-radius);
	color: var(--khm-charcoal);
	text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--khm-primary); border-color: var(--khm-primary); color: #fff; }

.khm-404 { color: #fff; text-align: center; }
.khm-404__inner { position: relative; z-index: 2; max-width: 660px; }
.khm-404__code { font-family: var(--khm-font-display); font-size: clamp(5rem, 16vw, 10rem); line-height: .9; color: var(--khm-primary); margin: 0; }
.khm-404__text { color: var(--khm-grey); }
.khm-404__form { max-width: 460px; margin: 2rem auto; }

/* -------------------------------------------- 17. Elementor scoping ------ */
/*
 * Pages built with Elementor get NO core-page section styling. Only the shared
 * primitives (buttons, form controls, typography) apply, plus header and footer.
 */
.khm-builder { width: 100%; }
.khm-builder > .elementor { width: 100%; }
.khm-header-transparent .khm-builder { padding-top: var(--khm-header-h); }
.khm-fullwidth { max-width: none; padding: 0; }

.elementor-section,
.elementor-container,
.e-con,
.e-con-inner { min-width: 0; }

/* ------------------------------------------- 18. Accessibility / motion -- */
.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;
}

.khm-skip { position: absolute; top: 0; left: 0; z-index: 999; }

.khm-skip:focus {
	clip: auto !important;
	width: auto;
	height: auto;
	margin: 0;
	padding: .85rem 1.4rem;
	background: var(--khm-primary);
	color: #fff;
	text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--khm-bright);
	outline-offset: 2px;
	border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
}

/* ------------------------------------------------------ 19. Responsive --- */

/* Tablet landscape */
@media (max-width: 1024px) {
	:root { --khm-scale: .74; --khm-header-min: 76px; }

	.khm-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 0; }
	.khm-wedge { width: 44%; opacity: .9; }

	.khm-trust { grid-template-columns: minmax(0, 1fr); text-align: center; }
	.khm-trust__metric { border-inline: 0; border-block: 1px solid var(--khm-line-light); padding-block: 1.25rem; }

	.khm-lead { grid-template-columns: minmax(0, 1fr); }
	.khm-intro__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.khm-intro__quote { grid-column: 1 / -1; border-left: 0; border-top: 2px solid var(--khm-primary); padding: 1.25rem 0 0; }

	/* Timeline becomes vertical. */
	.khm-timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.khm-tl { padding: 0 0 2rem 2.25rem; }
	.khm-tl:last-child { padding-bottom: 0; }
	.khm-tl__dot { top: 4px; }
	.khm-tl__line { top: 12px; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
	.khm-js .khm-timeline .khm-tl__line { transform-origin: center top; transform: scaleY(0); }
	.khm-js .khm-timeline.is-visible .khm-tl__line { transform: scaleY(1); }
}

/* Tablet portrait */
@media (max-width: 768px) {
	:root { --khm-scale: .62; }

	/* Mobile hero order: guard image directly under the header, then the
	   headline, description and buttons beneath it. */
	.khm-hero { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
	.khm-hero__media { order: -1; align-items: center; }
	.khm-hero__copy { order: 1; padding-bottom: 1.5rem; text-align: center; }
	.khm-hero__text { margin-inline: auto; }
	.khm-hero .khm-btn-row { justify-content: center; }
	.khm-cutout { max-height: 42vh; }

	.khm-phero--media { grid-template-columns: minmax(0, 1fr); }
	.khm-phero__media { justify-content: center; }
	.khm-phero__media .khm-cutout { max-height: 32vh; }

	.khm-split,
	.khm-split--rev { grid-template-columns: minmax(0, 1fr); }
	.khm-split--rev .khm-split__media { order: 0; }

	.khm-mv { grid-template-columns: minmax(0, 1fr); }

	.khm-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
	.khm-stat + .khm-stat::before { display: none; }

	/* Comparison becomes two stacked blocks - never a sideways table. */
	.khm-compare { grid-template-columns: minmax(0, 1fr); }
	.khm-compare__vs { justify-self: center; width: 52px; height: 52px; }

	.khm-contact { grid-template-columns: minmax(0, 1fr); }
	.khm-form-grid { grid-template-columns: minmax(0, 1fr); }

	.khm-cta { flex-direction: column; align-items: flex-start; }
	.khm-cta__copy { align-items: flex-start; }
}

/* Mobile */
@media (max-width: 480px) {
	:root { --khm-scale: .55; --khm-header-min: 68px; --khm-gutter: 1.25rem; }

	.khm-wedge { width: 74%; opacity: .32; }
	.khm-intro__cols { grid-template-columns: minmax(0, 1fr); }
	.khm-logo-img { max-width: var(--khm-logo-w-mob); max-height: 48px; }

	.khm-btn { width: 100%; }
	.khm-btn-row { flex-direction: column; align-items: stretch; }

	.khm-foot__bar-inner { flex-direction: column; align-items: flex-start; }
	.khm-search-form { flex-wrap: wrap; }
	.khm-search-form input { flex: 1 1 100%; }
	.khm-search-form__submit { width: 100%; }

	.khm-mv__card { flex-direction: column; gap: 1rem; }
	.khm-cta__copy { flex-direction: column; }
}

/* Small mobile */
@media (max-width: 360px) {
	:root { --khm-gutter: 1rem; }
	.khm-stats { grid-template-columns: minmax(0, 1fr); }
}

/* Per-device section visibility, set in KHM Site Manager. */
@media (min-width: 1025px) { .khm-hide-desktop { display: none !important; } }
@media (min-width: 769px) and (max-width: 1024px) { .khm-hide-tablet { display: none !important; } }
@media (max-width: 768px) { .khm-hide-mobile { display: none !important; } }

/* Footer copy stays readable on small screens (>=15px body-text floor). */
@media (max-width: 768px) {
	.khm-foot__about,
	.khm-foot__bar { font-size: .9375rem; }
}
