/* ==========================================================
   Kushnir – shared styles for the custom page templates
   (about, business development, representation, recruitment, contact).
   The tunnel background URL is set from functions.php as
   --kg-bg-image (Media Library attachment).
   The "let's talk" band above the footer is styled in global.css.
   ========================================================== */

body.kg-template { background: #2B2B2B; }

.kg-page {
	--kg-white: #FFFFFF;
	--kg-text: #D4D4D4;
	--kg-muted: #BDBDBD;
	--kg-glass: rgba(255, 255, 255, .07);
	--kg-glass-border: rgba(255, 255, 255, .16);
	--kg-accent: #FFFFFF;          /* recruitment overrides with copper */

	/* sit under the fixed header, like the other pages */
	margin-top: calc(-1 * var(--kg-header-h, 105px));

	font-family: Heebo, Arial, sans-serif;
	color: #E6E6E6;
	width: 100%;
	min-width: 0;
	overflow-x: clip;   /* never let decorative/overflowing bits widen the page */
	position: relative;
	isolation: isolate;
}
/* Tunnel background: a fixed, screen-sized layer behind the page.
   (background-attachment: fixed doesn't work on phones, and "cover"
   on the whole tall page blows the image up into a blur.) */
.kg-page::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(18, 18, 18, .55), rgba(18, 18, 18, .55)),
		var(--kg-bg-image, none);
	background-size: cover;
	background-position: center;
}
.kg-page h1, .kg-page h2, .kg-page h3, .kg-page p,
.kg-page li, .kg-page a, .kg-page span, .kg-page label,
.kg-page button, .kg-page input, .kg-page select, .kg-page textarea {
	font-family: Heebo, Arial, sans-serif;
}
.kg-page a { color: var(--kg-white); }
.kg-page a:hover { color: #E0E0E0; }

.kg-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 32px;
	box-sizing: border-box;
}
.kg-section { padding-top: 104px; padding-bottom: 104px; }

/* First section on a page clears the fixed header */
.kg-page > section:first-child .kg-first {
	padding-top: calc(var(--kg-header-h, 105px) + 88px);
}

/* ---------- Shared type ---------- */
.kg-eyebrow {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--kg-muted);
}
.kg-h2 {
	margin: 0 0 28px;
	font-size: 44px;
	line-height: 1.2;
	font-weight: 800;
	color: var(--kg-white);
}
.kg-h2--flush { margin: 0; }
.kg-h2--md { font-size: 42px; }
.kg-body {
	margin: 0 0 20px;
	font-size: 18px;
	line-height: 1.8;
	color: var(--kg-text);
}
.kg-body:last-child { margin-bottom: 0; }
.kg-body--tight { margin-bottom: 16px; }
.kg-head { max-width: 720px; margin-bottom: 48px; }

/* ---------- Buttons ---------- */
.kg-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.kg-page .kg-btn {
	text-decoration: none;
	border-radius: 999px;
	font-size: 18px;
	display: inline-block;
	cursor: pointer;
}
.kg-page .kg-btn--solid {
	color: #1A1A1A;
	background: var(--kg-white);
	border: 0;
	padding: 16px 32px;
	font-weight: 700;
}
.kg-page .kg-btn--solid:hover { color: #1A1A1A; background: #E6E6E6; }
.kg-page .kg-btn--outline {
	color: var(--kg-white);
	background: transparent;
	padding: 15px 31px;
	border: 1px solid rgba(255, 255, 255, .6);
	font-weight: 500;
}
.kg-page .kg-btn--solid.kg-btn--lg { padding: 18px 36px; }
.kg-page .kg-btn--outline.kg-btn--lg { padding: 17px 35px; }

/* ---------- Hero ---------- */
.kg-hero {
	color: var(--kg-white);
	background-image: linear-gradient(270deg, rgba(10, 10, 10, .7) 0%, rgba(10, 10, 10, .45) 45%, rgba(10, 10, 10, 0) 100%);
}
.kg-hero__inner {
	padding: calc(var(--kg-header-h, 105px) + 95px) 0 140px;
	max-width: 680px;
}
.kg-hero__inner--wide { max-width: 720px; padding-bottom: 112px; }
.kg-hero .kg-eyebrow { margin-bottom: 20px; }
.kg-hero__title {
	margin: 0 0 24px;
	font-size: 64px;
	line-height: 1.1;
	font-weight: 800;
	color: var(--kg-white);
}
.kg-hero__title--sm { font-size: 60px; line-height: 1.12; }
.kg-hero__lead {
	margin: 0 0 40px;
	font-size: 20px;
	line-height: 1.7;
	color: #E0E0E0;
}
.kg-hero__lead:last-child { margin-bottom: 0; }

/* ---------- Check list ---------- */
.kg-checks {
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.kg-checks li {
	display: flex;
	gap: 10px;
	font-size: 16px;
	line-height: 1.6;
	color: #E6E6E6;
}
.kg-checks svg { flex: none; margin-top: 5px; color: var(--kg-white); }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.kg-page { margin-top: calc(-1 * var(--kg-header-h-mobile, 90px)); }
	.kg-page::before { background-position: right center; } /* like the home page on mobile */

	.kg-container { padding: 0 20px; }
	.kg-section { padding-top: 64px; padding-bottom: 64px; }
	.kg-page > section:first-child .kg-first { padding-top: calc(var(--kg-header-h-mobile, 90px) + 40px); }

	.kg-hero__inner,
	.kg-hero__inner--wide { padding: calc(var(--kg-header-h-mobile, 90px) + 48px) 0 72px; }
	.kg-eyebrow { font-size: 13px; margin-bottom: 12px; }
	.kg-hero .kg-eyebrow { margin-bottom: 14px; }
	.kg-hero__title,
	.kg-hero__title--sm { font-size: 34px; line-height: 1.15; margin-bottom: 16px; }
	.kg-hero__lead { font-size: 17px; line-height: 1.65; margin-bottom: 28px; }

	.kg-h2, .kg-h2--md { font-size: 27px; line-height: 1.25; margin-bottom: 16px; }
	.kg-h2--flush { margin-bottom: 0; }
	.kg-body { font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
	.kg-head { margin-bottom: 32px; }

	.kg-actions { gap: 12px; }
	.kg-page .kg-btn { font-size: 16px; }
	.kg-page .kg-btn--solid,
	.kg-page .kg-btn--solid.kg-btn--lg { padding: 13px 26px; }
	.kg-page .kg-btn--outline,
	.kg-page .kg-btn--outline.kg-btn--lg { padding: 12px 25px; }
	.kg-checks li { font-size: 15px; }
}
