/* ==========================================================================
   Bam Group theme — main stylesheet (RTL)
   ========================================================================== */

:root {
	--kha-primary: #0E4C8C;
	--kha-primary-hover: #0A3D70;
	--kha-dark: #122A45;
	--kha-about-bg: #0E2A46;
	--kha-text: #37475A;
	--kha-heading: #14293F;
	--kha-footer-bg: #0E2A46;
	--kha-footer-text: #ffffff;
	--kha-footer-accent: #F5A623;
	--kha-container: 1170px;
	--kha-radius: 7px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: 'Vazirmatn', tahoma, arial, sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.7;
	color: var(--kha-text);
	background: #fff;
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: 'Vazirmatn', tahoma, arial, sans-serif;
	color: var(--kha-heading);
	line-height: 1.4;
	margin: 0 0 0.6em;
}

a { color: var(--kha-primary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--kha-primary-hover); }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

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

.kha-container { max-width: var(--kha-container); margin-inline: auto; padding-inline: 20px; }

/* ---------- Header ---------- */
.kha-topbar {
	background: var(--kha-primary);
	color: #fff;
}
.kha-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
	gap: 15px;
	flex-wrap: wrap;
	padding-block: 6px;
}
.kha-topbar-contacts {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}
.kha-topbar-contacts li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	line-height: 2;
	color: #fff;
}
.kha-topbar-contacts svg { font-size: 14px; }
.kha-topbar-socials { display: flex; align-items: center; gap: 8px; }
.kha-topbar-socials .kha-social { color: #fff; font-size: 14px; opacity: .95; }
.kha-topbar-socials .kha-social:hover { color: #fff; opacity: 1; transform: translateY(-1px); }

.kha-header-main { background: #fff; padding-block: 20px; }
.kha-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.kha-site-branding { flex: 1; text-align: center; }
.kha-site-branding img, .kha-site-branding .custom-logo {
	width: 150px;
	height: auto;
	display: inline-block;
}

.kha-menu-toggle {
	display: none;
	background: none;
	border: none;
	color: #222;
	font-size: 24px;
	width: 44px; height: 44px;
	align-items: center; justify-content: center;
}
.kha-menu-toggle-close { display: none; }
.kha-menu-toggle.is-open .kha-menu-toggle-icon { display: none; }
.kha-menu-toggle.is-open .kha-menu-toggle-close { display: inline-flex; }

.kha-header-account { color: #222; font-size: 20px; }
.kha-header-account:hover { color: var(--kha-primary); }

.kha-main-nav {
	text-align: center;
	border-top: 1px dotted #8e8e8e;
	border-bottom: 1px dotted #8e8e8e;
	margin-top: 14px;
}
.kha-menu { display: inline-flex; flex-wrap: wrap; align-items: center; }
.kha-menu > li { position: relative; }
.kha-menu > li > a {
	display: block;
	padding: 16px 35px;
	color: #303030;
	font-size: 15px;
	font-weight: 400;
	position: relative;
}
.kha-menu > li > a::after,
.kha-menu > li > a::before {
	content: '';
	position: absolute;
	left: 50%; right: 50%;
	bottom: 8px;
	height: 2px;
	background: var(--kha-primary);
	opacity: 0;
	transition: all .3s;
}
.kha-menu > li > a::before { bottom: auto; top: 8px; }
.kha-menu > li > a:hover::after,
.kha-menu > li > a:hover::before,
.kha-menu > li.current-menu-item > a::after,
.kha-menu > li.current-menu-item > a::before,
.kha-menu > li.current-menu-ancestor > a::after,
.kha-menu > li.current-menu-ancestor > a::before {
	left: 15px; right: 15px; opacity: 1;
}
.kha-menu > li.current-menu-item > a,
.kha-menu > li.current-menu-ancestor > a,
.kha-menu > li > a:hover { color: var(--kha-primary); }

.kha-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	background: #fff;
	min-width: 240px;
	box-shadow: 0 12px 30px rgba(0,0,0,.12);
	text-align: right;
	z-index: 30;
}
.kha-menu > li:hover > .sub-menu,
.kha-menu > li:focus-within > .sub-menu { display: block; }
.kha-menu .sub-menu a {
	display: block;
	padding: 11px 20px;
	color: #323232;
	font-size: 15px;
	border-bottom: 1px solid #f0f0f0;
}
.kha-menu .sub-menu a:hover { color: var(--kha-primary); background: #fafafa; }

/* ---------- Mobile menu ---------- */
.kha-mobile-menu {
	display: none;
	background: #fff;
	border-top: 1px solid #eee;
	padding: 10px 20px 20px;
	max-height: 70vh;
	overflow-y: auto;
}
.kha-mobile-menu.is-open { display: block; }
.kha-mobile-menu-list li { border-bottom: 1px solid #f0f0f0; }
.kha-mobile-menu-list a {
	display: block;
	padding: 13px 0;
	color: #222;
	font-size: 15px;
}
.kha-mobile-menu-list .sub-menu { padding-inline-start: 18px; }
.kha-mobile-menu-list .sub-menu a { font-size: 14px; color: #555; }
.kha-mobile-socials { display: flex; gap: 14px; padding-top: 16px; color: var(--kha-dark); }
.kha-mobile-socials .kha-social { font-size: 18px; color: var(--kha-dark); }

/* ---------- Hero slider ---------- */
.kha-hero { background: #e1e6ef; }
.kha-hero-slider { position: relative; overflow: hidden; }
.kha-hero-track { display: flex; transition: transform .5s ease; }
.kha-hero-slide { position: relative; min-width: 100%; height: 500px; }
.kha-hero-bg {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center;
}
.kha-hero-slide::after {
	content: '';
	position: absolute; inset: 0;
	background: rgba(0,0,0,.18);
}
.kha-hero-content {
	position: relative;
	z-index: 2;
	max-width: 66%;
	margin-inline: auto;
	text-align: center;
	padding: 40px 20px;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
}
.kha-hero-title { color: #fff; font-size: 40px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.kha-hero-text { color: #fff; font-size: 18px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.kha-hero-btn {
	display: inline-block;
	margin-top: 14px;
	padding: 12px 34px;
	background: var(--kha-primary);
	color: #fff;
	border-radius: 30px;
	font-size: 15px;
}
.kha-hero-btn:hover { background: var(--kha-primary-hover); color: #fff; }

.kha-hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 46px; height: 46px;
	border: none;
	background: rgba(255,255,255,.85);
	color: var(--kha-dark);
	font-size: 18px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	transition: background .3s, color .3s;
}
.kha-hero-prev { right: 18px; }
.kha-hero-next { left: 18px; }
.kha-hero-arrow:hover,
.kha-hero-arrow:focus { background: var(--kha-primary); color: #fff; }

.kha-hero-dots {
	position: absolute;
	bottom: 18px;
	left: 0; right: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 5;
}
.kha-hero-dots button {
	width: 10px; height: 10px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,.6);
	padding: 0;
}
.kha-hero-dots button.is-active { background: var(--kha-primary); }

/* default hero (no slides yet) */
.kha-hero-default {
	background: linear-gradient(135deg, #0E4C8C 0%, #122A45 70%);
	position: relative;
	overflow: hidden;
	min-height: 560px;
	display: flex;
	align-items: center;
}
.kha-hero-default::before {
	content: '';
	position: absolute;
	width: 520px; height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(245,166,35,.22) 0%, transparent 70%);
	top: -160px; left: -120px;
}
.kha-hero-default-inner { position: relative; z-index: 2; text-align: center; padding-block: 80px; }
.kha-hero-kicker {
	color: var(--kha-footer-accent);
	font-size: 16px;
	letter-spacing: .5px;
	margin-bottom: 14px;
}
.kha-hero-default-title {
	color: #fff;
	font-size: 44px;
	font-weight: 700;
	margin: 0 0 18px;
	text-shadow: 0 2px 14px rgba(0,0,0,.3);
}
.kha-hero-default-text { color: rgba(255,255,255,.85); font-size: 17px; max-width: 720px; margin: 0 auto 30px; }
.kha-hero-btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.7); }
.kha-hero-btn-ghost:hover { background: rgba(255,255,255,.12); }

/* generic button */
.kha-btn {
	display: inline-block;
	background: var(--kha-primary);
	color: #fff;
	padding: 12px 34px;
	border-radius: 30px;
	border: none;
	font-family: inherit;
	font-size: 15px;
	cursor: pointer;
	text-align: center;
}
.kha-btn:hover { background: var(--kha-primary-hover); color: #fff; }

/* ---------- Services flip cards ---------- */
.kha-services { padding: 30px 10px 20px; }
.kha-services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
}
.kha-flip-card { position: relative; perspective: 1200px; }
.kha-flip-card:focus { outline: none; }
.kha-flip-card:focus .kha-flip-inner { box-shadow: 0 0 0 3px var(--kha-primary); border-radius: var(--kha-radius); }
.kha-flip-inner {
	position: relative;
	height: 300px;
	transform-style: preserve-3d;
	transition: transform .7s;
}
.kha-flip-card:hover .kha-flip-inner,
.kha-flip-card:focus-within .kha-flip-inner,
.kha-flip-card.is-flipped .kha-flip-inner { transform: rotateY(180deg); }
.kha-flip-front,
.kha-flip-back {
	position: absolute;
	inset: 0;
	border-radius: var(--kha-radius);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
}
.kha-flip-front {
	background-size: cover;
	background-position: center;
	background-color: #12395f;
	background-image: linear-gradient(135deg, #0E4C8C 0%, #122A45 100%);
}
.kha-flip-front::after {
	content: '';
	position: absolute; inset: 0;
	background: rgba(0,0,0,.18);
	border-radius: var(--kha-radius);
}
.kha-flip-front > * { position: relative; z-index: 1; }
.kha-flip-back {
	background: var(--kha-primary);
	color: #fff;
	transform: rotateY(180deg);
}
.kha-flip-icon { font-size: 40px; color: #fff; display: inline-flex; margin-bottom: 12px; }
.kha-flip-back .kha-flip-icon { font-size: 26px; margin-bottom: 8px; }
.kha-flip-title { font-size: 17px; font-weight: 600; color: #fff; margin: 0; }
.kha-flip-text { font-size: 13px; color: rgba(255,255,255,.92); margin: 8px 0 0; }
.kha-flip-link {
	position: absolute; inset: 0;
	z-index: 5;
	border-radius: var(--kha-radius);
}

/* ---------- Section title + divider ---------- */
.kha-activities { border-top: 1px solid #eaeaea; padding: 50px 0 10px; }
.kha-section-title { text-align: center; margin-bottom: 30px; }
.kha-section-title h2 {
	font-size: 24px;
	font-weight: 600;
	color: var(--kha-dark);
	margin: 0;
}
.kha-divider {
	border-top: 1px dotted #000;
	margin: 15px auto 0;
	max-width: 100%;
}

/* ---------- Timeline (matches original sample) ---------- */
.kha-activities { padding: 50px 0 30px; }
.kha-timeline {
	position: relative;
	padding: 20px 0 30px;
	max-width: 1000px;
	margin-inline: auto;
}
.kha-tl-track,
.kha-tl-progress {
	position: absolute;
	top: 0; bottom: 0;
	left: 50%;
	width: 4px;
	transform: translateX(-50%);
	z-index: 0;
}
.kha-tl-track { background: #e6e9ef; }
.kha-tl-progress {
	background: linear-gradient(180deg, var(--kha-primary), var(--kha-footer-accent));
	height: 0;
	z-index: 1;
}
.kha-tl-item { position: relative; width: 50%; margin-bottom: 14px; z-index: 2; }
.kha-tl-item:nth-child(odd) { inset-inline-start: 0; padding-inline-end: 44px; }
.kha-tl-item:nth-child(even) { inset-inline-start: 50%; padding-inline-start: 44px; }
.kha-tl-content {
	position: relative;
	background: var(--kha-dark);
	color: #fff;
	border-radius: 7px;
	padding: 18px 22px;
	text-align: center;
	box-shadow: 0 6px 22px rgba(14,42,70,.18);
}
.kha-tl-item:nth-child(odd) .kha-tl-content::after {
	content: '';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: -14px;
	border: 8px solid transparent;
	border-left: 16px solid var(--kha-dark);
}
.kha-tl-item:nth-child(even) .kha-tl-content::after {
	content: '';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: -14px;
	border: 8px solid transparent;
	border-right: 16px solid var(--kha-dark);
}
.kha-tl-title { color: #fff; font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.kha-tl-text { font-size: 13px; color: rgba(255,255,255,.82); margin: 0; line-height: 1.9; }
.kha-tl-marker {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 46px; height: 46px;
	border-radius: 50%;
	background: var(--kha-primary);
	color: #fff;
	font-size: 20px;
	display: flex; align-items: center; justify-content: center;
	border: 3px solid #fff;
	box-shadow: 0 4px 12px rgba(14,76,140,.35);
}
.kha-tl-item:nth-child(odd) .kha-tl-marker { inset-inline-end: 0; transform: translate(50%, -50%); }
.kha-tl-item:nth-child(even) .kha-tl-marker { inset-inline-start: 0; transform: translate(-50%, -50%); }

/* ---------- About section ---------- */
.kha-about { background: var(--kha-about-bg); padding: 70px 0; margin-top: 30px; }
.kha-about-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 40px;
}
.kha-about-title { color: #fff; font-size: 35px; font-weight: 600; margin: 0 0 15px; }
.kha-about-text { color: rgba(255,255,255,.79); font-size: 16px; line-height: 1.8; text-align: justify; margin: 0; }
.kha-about-image { text-align: center; }
.kha-about-image img { max-width: 100%; border-radius: 8px; }

/* ---------- News ---------- */
.kha-news { padding: 40px 0 60px; }
.kha-news .kha-section-title { margin-bottom: 25px; }
.kha-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	row-gap: 35px;
}
.kha-news-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 6px 30px rgba(0,0,0,.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
}
.kha-news-thumb { display: block; position: relative; overflow: hidden; aspect-ratio: 3/2; }
.kha-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.kha-news-card:hover .kha-news-thumb img { transform: scale(1.05); }
.kha-news-noimage {
	display: flex; align-items: center; justify-content: center;
	height: 100%; background: #e8e4dd; color: #999; font-size: 40px;
}
.kha-news-badge {
	position: absolute;
	top: 20px; right: 20px;
	background: var(--kha-primary);
	color: #fff;
	font-size: 12px;
	padding: 6px 14px;
	border-radius: 3px;
	z-index: 2;
}
.kha-news-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kha-news-title { font-size: 15px; font-weight: 600; margin: 0; }
.kha-news-title a { color: var(--kha-heading); }
.kha-news-title a:hover { color: var(--kha-primary); }
.kha-news-excerpt { font-size: 13px; color: #666; margin: 0; }
.kha-news-more { color: var(--kha-primary); font-size: 13px; margin-top: auto; }

/* ---------- Landing projects ---------- */
.kha-landing-projects { padding: 40px 0 60px; }
.kha-projects-all { text-align: center; margin-top: 35px; }

/* ---------- Contact section (landing + page) ---------- */
.kha-contact-section { padding: 40px 0 70px; background: #F7F9FB; }
.kha-contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.kha-contact-info-list li {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid #e6ebf0;
}
.kha-contact-info-list svg { font-size: 22px; color: var(--kha-primary); margin-top: 3px; }
.kha-contact-info-list strong { display: block; font-size: 14px; color: var(--kha-heading); }
.kha-contact-info-list span,
.kha-contact-info-list a { color: #55677a; font-size: 15px; }
.kha-contact-info-list a:hover { color: var(--kha-primary); }
.kha-contact-form-wrap {
	background: #fff;
	border-radius: 10px;
	padding: 30px;
	box-shadow: 0 8px 30px rgba(20,41,63,.08);
}
.kha-field { margin-bottom: 18px; }
.kha-field label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--kha-heading); }
.kha-field input[type="text"],
.kha-field input[type="tel"],
.kha-field input[type="email"],
.kha-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d9e0e7;
	border-radius: 6px;
	font-family: inherit;
	font-size: 15px;
	background: #fbfcfd;
}
.kha-field input:focus,
.kha-field textarea:focus { outline: none; border-color: var(--kha-primary); }
.kha-hp { position: absolute !important; left: -9999px !important; opacity: 0; }
.kha-form-notice {
	padding: 14px 18px;
	border-radius: 6px;
	margin-bottom: 20px;
	font-size: 14px;
}
.kha-form-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.kha-form-error { background: #fdecea; color: #b71c1c; border: 1px solid #f5b5b5; }

/* ---------- Footer ---------- */
.kha-footer { background: var(--kha-footer-bg); color: var(--kha-footer-text); text-align: center; border-bottom: 5px solid var(--kha-footer-accent); }
.kha-footer-shape {
	color: var(--kha-footer-accent);
	height: 30px;
	line-height: 0;
}
.kha-footer-shape svg {
	width: 100%;
	height: 30px;
	transform: translateX(-50%) rotateY(180deg);
	position: relative;
	left: 50%;
}
.kha-footer-inner {
	max-width: 750px;
	margin-inline: auto;
	padding: 35px 20px 30px;
}
.kha-footer-logo img { width: 200px; max-width: 60%; height: auto; }
.kha-footer-desc {
	font-size: 15px;
	font-weight: 200;
	line-height: 1.5;
	margin: 25px auto;
	color: var(--kha-footer-text);
}
.kha-footer-contacts {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
}
.kha-footer-contacts li {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 16px;
	font-weight: 300;
	color: var(--kha-footer-accent);
}
.kha-footer-contacts svg { color: #fff; font-size: 17px; }
.kha-footer-socials { display: flex; justify-content: center; gap: 15px; margin-bottom: 28px; }
.kha-footer-socials .kha-social { color: #fff; font-size: 20px; }
.kha-footer-socials .kha-social:hover { color: #ffde01; }
.kha-footer-copyright {
	font-size: 13px;
	font-weight: 200;
	font-style: oblique;
	font-family: inherit;
	color: var(--kha-footer-text);
	opacity: .9;
}

/* ---------- Breadcrumbs ---------- */
.kha-breadcrumbs { padding: 14px 0; font-size: 13px; color: #888; }
.kha-breadcrumbs a { color: var(--kha-primary); }
.kha-breadcrumbs .kha-breadcrumb-sep { display: inline-flex; vertical-align: middle; margin-inline: 6px; color: #aaa; }
.kha-breadcrumbs .current { color: #666; }

/* ---------- Generic page ---------- */
.kha-page { padding: 10px 0 60px; }
.kha-page-header { border-bottom: 2px solid var(--kha-primary); margin-bottom: 25px; }
.kha-page-title { font-size: 30px; font-weight: 600; color: var(--kha-dark); margin: 0 0 12px; }
.kha-page-content { font-size: 16px; color: #323232; line-height: 1.9; }
.kha-page-content h2, .kha-page-content h3 { margin-top: 1.4em; }
.kha-page-content img { border-radius: 6px; }

/* ---------- Project archive ---------- */
.kha-archive-header { margin-bottom: 28px; border-bottom: 2px solid var(--kha-primary); padding-bottom: 12px; }
.kha-archive-title { font-size: 28px; font-weight: 600; color: var(--kha-dark); margin: 0; }
.kha-archive-desc { color: #666; font-size: 15px; margin-top: 10px; }
.kha-projects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}
.kha-project-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,.07);
	transition: transform .3s, box-shadow .3s;
}
.kha-project-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.kha-project-thumb { display: block; overflow: hidden; aspect-ratio: 3/2; }
.kha-project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.kha-project-card:hover .kha-project-thumb img { transform: scale(1.05); }
.kha-project-noimage { display: flex; align-items: center; justify-content: center; height: 100%; background: #e8e4dd; color: #999; font-size: 40px; }
.kha-project-body { padding: 18px; text-align: center; }
.kha-project-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.kha-project-title a { color: var(--kha-heading); }
.kha-project-title a:hover { color: var(--kha-primary); }
.kha-project-type { display: block; font-size: 13px; color: #888; margin-bottom: 14px; }
.kha-project-more {
	display: inline-block;
	background: var(--kha-primary);
	color: #fff;
	padding: 9px 26px;
	border-radius: 30px;
	font-size: 14px;
}
.kha-project-more:hover { background: var(--kha-primary-hover); color: #fff; }

/* ---------- Single project ---------- */
.kha-project-article { padding-bottom: 40px; }
.kha-project-headline { text-align: center; margin: 10px 0 30px; }
.kha-project-h1 {
	font-size: 32px;
	font-weight: 400;
	color: var(--kha-dark);
	margin: 0;
}
.kha-project-h1 .kha-project-type-plain { font-weight: 300; }
.kha-project-h1 .kha-project-highlight {
	position: relative;
	font-weight: 600;
	color: var(--kha-primary);
	padding-bottom: 8px;
	display: inline-block;
}
.kha-project-h1 .kha-project-highlight::before,
.kha-project-h1 .kha-project-highlight::after {
	content: '';
	position: absolute;
	left: 0; right: 0;
	height: 3px;
	background: var(--kha-primary);
}
.kha-project-h1 .kha-project-highlight::after { bottom: 0; }
.kha-project-h1 .kha-project-highlight::before { top: 0; }
.kha-project-featured { text-align: center; margin-bottom: 25px; }
.kha-project-featured img { border-radius: 8px; width: 100%; }

.kha-project-terms { text-align: center; margin: -10px 0 20px; }
.kha-project-term {
	display: inline-block;
	background: var(--kha-primary);
	color: #fff;
	font-size: 13px;
	padding: 6px 18px;
	border-radius: 20px;
	margin: 4px;
}
.kha-project-term:hover { background: var(--kha-primary-hover); color: #fff; }

.kha-project-specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 15px;
	margin: 0 0 30px;
}
.kha-project-specs li {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f7f7f7;
	border: 1px solid #eee;
	border-radius: var(--kha-radius);
	padding: 14px 16px;
	font-size: 14px;
}
.kha-spec-icon { color: var(--kha-primary); font-size: 18px; display: inline-flex; }
.kha-spec-label { color: #888; font-size: 13px; }
.kha-spec-value { font-weight: 600; color: var(--kha-dark); }

.kha-project-subtitle {
	font-size: 20px;
	font-weight: 600;
	color: var(--kha-dark);
	margin: 35px 0 18px;
	text-align: center;
}

.kha-project-content { font-size: 16px; color: #323232; line-height: 1.9; }

/* before/after compare */
.kha-compare {
	position: relative;
	height: 460px;
	border-radius: var(--kha-radius);
	overflow: hidden;
	margin: 0 auto 10px;
	max-width: 900px;
	cursor: ew-resize;
	user-select: none;
}
.kha-compare-before,
.kha-compare-after {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}
.kha-compare-before { clip-path: inset(0 0 0 50%); }
.kha-compare-after { z-index: -1; }
.kha-compare-label {
	position: absolute;
	top: 16px;
	background: rgba(0,0,0,.55);
	color: #fff;
	padding: 6px 18px;
	border-radius: 20px;
	font-size: 14px;
}
.kha-compare-label-before { right: 16px; }
.kha-compare-label-after { left: 16px; }
.kha-compare-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 46px; height: 46px;
	border-radius: 50%;
	background: var(--kha-primary);
	color: #fff;
	font-size: 18px;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 0 0 4px rgba(255,255,255,.7);
	z-index: 3;
}
.kha-compare-handle::before {
	content: '';
	position: absolute;
	top: -60px; bottom: -60px;
	width: 2px;
	background: #fff;
	opacity: .8;
}

/* growth (before/after) section on homepage */
.kha-growth { padding: 40px 0; background: #FFF9F0; }
.kha-growth-inner { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 40px; }
.kha-growth-title { font-size: 24px; font-weight: 600; color: var(--kha-dark); }
.kha-growth-text { font-size: 15px; color: #575757; line-height: 1.9; }
.kha-growth .kha-compare { margin: 0; max-width: none; }

/* gallery */
.kha-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.kha-gallery-item { overflow: hidden; border-radius: 6px; aspect-ratio: 4/3; }
.kha-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.kha-gallery-item:hover img { transform: scale(1.06); }

/* ---------- Blog / posts ---------- */
.kha-post-title { font-size: 30px; font-weight: 600; color: var(--kha-dark); }
.kha-post-meta { display: flex; gap: 15px; font-size: 13px; color: #888; margin-bottom: 20px; }
.kha-post-thumb { margin-bottom: 22px; }
.kha-post-thumb img { width: 100%; border-radius: 8px; }
.kha-post-content { font-size: 16px; color: #323232; line-height: 1.9; }
.kha-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.kha-post-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.kha-post-card-thumb { display: block; overflow: hidden; aspect-ratio: 3/2; }
.kha-post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kha-post-noimage { display: flex; align-items: center; justify-content: center; height: 100%; background: #e8e4dd; color: #999; font-size: 40px; }
.kha-post-card-body { padding: 18px; }
.kha-post-card-title { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.kha-post-card-title a { color: var(--kha-heading); }
.kha-post-card-title a:hover { color: var(--kha-primary); }
.kha-post-card-excerpt { font-size: 13px; color: #666; }
.kha-post-card-more { color: var(--kha-primary); font-size: 13px; }

.kha-nothing { text-align: center; color: #888; padding: 40px 0; }

/* ---------- Pagination ---------- */
.kha-pagination { text-align: center; margin-top: 40px; }
.kha-pagination .nav-links { display: inline-flex; gap: 8px; }
.kha-pagination .page-numbers {
	display: inline-flex;
	align-items: center; justify-content: center;
	width: 40px; height: 40px;
	border-radius: 6px;
	border: 1px solid #e2e2e2;
	color: #555;
	font-size: 14px;
}
.kha-pagination .page-numbers.current,
.kha-pagination .page-numbers:hover { background: var(--kha-primary); color: #fff; border-color: var(--kha-primary); }

/* ---------- Comments ---------- */
.kha-comments { margin-top: 40px; }
.comment-list { margin: 0 0 30px; }
.comment-list article { border-bottom: 1px solid #eee; padding: 15px 0; }
.comment-respond .comment-form label { display: block; font-size: 14px; margin-bottom: 4px; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
	width: 100%;
	max-width: 560px;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-family: inherit;
}
.comment-respond .submit {
	background: var(--kha-primary);
	color: #fff;
	border: none;
	padding: 11px 30px;
	border-radius: 30px;
	font-family: inherit;
	font-size: 14px;
}
.comment-respond .submit:hover { background: var(--kha-primary-hover); }

/* ---------- 404 / search ---------- */
.kha-404 { text-align: center; padding: 60px 0; }
.kha-404-code { font-size: 90px; color: var(--kha-primary); margin: 0; }
.kha-404-text { font-size: 18px; color: #666; }
.kha-404-home {
	display: inline-block;
	background: var(--kha-primary);
	color: #fff;
	padding: 11px 34px;
	border-radius: 30px;
	margin-top: 10px;
}
.kha-search-form { display: inline-flex; gap: 8px; margin-top: 25px; max-width: 420px; width: 100%; }
.kha-search-field {
	flex: 1;
	padding: 11px 16px;
	border: 1px solid #ddd;
	border-radius: 30px;
	font-family: inherit;
}
.kha-search-submit {
	background: var(--kha-primary);
	color: #fff;
	border: none;
	width: 44px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 15px;
}

/* ---------- Lightbox ---------- */
.kha-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.85);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}
.kha-lightbox.is-open { display: flex; }
.kha-lightbox-inner { position: relative; max-width: 92vw; max-height: 90vh; }
.kha-lightbox-inner img { max-width: 100%; max-height: 90vh; border-radius: 6px; }
.kha-lightbox-close {
	position: absolute;
	top: -40px; left: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 34px;
	line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.kha-menu-toggle { display: inline-flex; }
	.kha-main-nav { display: none; }
	.kha-site-branding img, .kha-site-branding .custom-logo { width: 120px; }
	.kha-hero-slide { height: 340px; }
	.kha-services-grid,
	.kha-news-grid,
	.kha-projects-grid,
	.kha-posts-grid { grid-template-columns: repeat(2, 1fr); }
	.kha-about-inner { grid-template-columns: 1fr; gap: 30px; }
	.kha-growth-inner { grid-template-columns: 1fr; }
	.kha-tl-track,
	.kha-tl-progress { left: 24px; transform: none; }
	.kha-tl-item,
	.kha-tl-item:nth-child(odd),
	.kha-tl-item:nth-child(even) { width: 100%; inset-inline-start: 0; padding-inline-start: 60px; padding-inline-end: 10px; }
	.kha-tl-item:nth-child(odd) .kha-tl-content::after,
	.kha-tl-item:nth-child(even) .kha-tl-content::after { display: none; }
	.kha-tl-item:nth-child(odd) .kha-tl-marker,
	.kha-tl-item:nth-child(even) .kha-tl-marker { inset-inline-start: 24px; inset-inline-end: auto; transform: translate(-50%, -50%); }
	.kha-compare { height: 320px; }
	.kha-hero-default { min-height: 440px; }
	.kha-hero-default-title { font-size: 32px; }
	.kha-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.kha-topbar-inner { justify-content: center; }
	.kha-services-grid,
	.kha-news-grid,
	.kha-projects-grid,
	.kha-posts-grid { grid-template-columns: 1fr; }
	.kha-hero-slide { height: 220px; }
	.kha-hero-content { max-width: 92%; padding: 20px; }
	.kha-hero-title { font-size: 22px; }
	.kha-about-title { font-size: 26px; }
	.kha-gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.kha-project-h1 { font-size: 24px; }
	.kha-compare { height: 240px; }
	.kha-topbar-contacts { gap: 12px; }
}