/* KHOME global — header, footer, and white/navy/grey palette */

:root {
	--kh-orange:     #ff6b1a; /* primary action color */
	--kh-orange-600: #e85a0c;
	--kh-navy:       #0c2340; /* dark backgrounds */
	--kh-accent:     #ff6b1a; /* legacy alias — kept for back-compat */
	--kh-dark:       #111827;
	--kh-grey:       #6B7280;
	--kh-light:      #F5F7FA;
	--kh-white:      #FFFFFF;
	--kh-border:     rgba(0,0,0,.08);
}

/* ---- Header ---- */
.kh-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--kh-white) !important;
	box-shadow: 0 1px 0 rgba(0,0,0,.06);
	padding: 16px 24px !important;
}
.kh-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1280px;
	margin: 0 auto;
}
.kh-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--kh-dark);
}
.kh-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: var(--kh-navy);
	color: #fff;
	font-weight: 800;
	font-size: 1.15rem;
	border-radius: 8px;
}
.kh-logo-text {
	display: flex;
	flex-direction: column;
	font-weight: 800;
	letter-spacing: 0.5px;
	line-height: 1;
	font-size: 1rem;
}
.kh-logo-text small {
	font-weight: 500;
	font-size: 0.62rem;
	letter-spacing: 1.5px;
	color: var(--kh-grey);
	margin-top: 3px;
}
.kh-nav ul {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.kh-nav a {
	color: var(--kh-dark);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
}
.kh-nav a:hover { color: var(--kh-orange); }
.kh-header-cta {
	display: inline-block;
	padding: 10px 20px;
	background: var(--kh-orange);
	color: #fff !important;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: background .15s, transform .15s;
}
.kh-header-cta:hover { background: var(--kh-orange-600); transform: translateY(-1px); }
.kh-menu-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}
.kh-menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--kh-dark);
	margin: 5px 0;
}
@media (max-width: 900px) {
	.kh-nav, .kh-header-cta { display: none; }
	.kh-menu-toggle { display: block; }
	.kh-header-inner.is-open { flex-wrap: wrap; }
	.kh-header-inner.is-open .kh-nav,
	.kh-header-inner.is-open .kh-header-cta {
		display: block;
		width: 100%;
		margin-top: 16px;
	}
	.kh-header-inner.is-open .kh-nav ul { flex-direction: column; gap: 12px; }
	.kh-header-inner.is-open .kh-header-cta { text-align: center; }
}

/* ---- Footer ---- */
.kh-footer {
	background: var(--kh-navy) !important;
	color: #fff !important;
	padding: 60px 24px 30px !important;
}
.kh-footer h4 {
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0 0 16px;
}
.kh-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
	max-width: 1280px;
	margin: 0 auto;
}
.kh-footer-brand p {
	color: rgba(255,255,255,.7);
	font-size: 0.9rem;
	max-width: 320px;
	margin: 16px 0 24px;
}
.kh-footer-brand .kh-logo-text { color: #fff; }
.kh-footer-brand .kh-logo-text small { color: rgba(255,255,255,.6); }
.kh-socials { display: flex; gap: 12px; }
.kh-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,.08);
	color: #fff;
	text-decoration: none;
	transition: background .15s;
}
.kh-socials a:hover { background: var(--kh-orange); }
.kh-footer-links,
.kh-footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.kh-footer-links a,
.kh-footer-contact a {
	color: rgba(255,255,255,.7);
	text-decoration: none;
	font-size: 0.9rem;
}
.kh-footer-links a:hover,
.kh-footer-contact a:hover { color: #fff; }
.kh-footer-contact li {
	color: rgba(255,255,255,.7);
	font-size: 0.9rem;
	line-height: 1.5;
}
.kh-footer-bottom {
	display: flex;
	justify-content: space-between;
	max-width: 1280px;
	margin: 48px auto 0;
	padding-top: 24px;
	border-top: 1px solid rgba(255,255,255,.1);
	color: rgba(255,255,255,.6);
	font-size: 0.85rem;
}
.kh-footer-bottom a { color: rgba(255,255,255,.7); text-decoration: none; }
.kh-footer-bottom a:hover { color: #fff; }

@media (max-width: 900px) {
	.kh-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
	.kh-footer-grid { grid-template-columns: 1fr; }
	.kh-footer-bottom { flex-direction: column; gap: 12px; }
}

/* ---- Site-wide color overrides (cream → light grey) ---- */
.has-accent-5-background-color { background-color: var(--kh-light) !important; }
.has-accent-5-color            { color: var(--kh-light) !important; }
