/* ============================================================
   Clients page  (template: page-clients.php)
   Brand tokens taken from the live site: Inter, navy #011f53,
   accent #2574f6, body text #375281.
   ============================================================ */

.np-clients {
	--np-navy:   #011f53;
	--np-blue:   #2574f6;
	--np-text:   #375281;
	--np-line:   #e5ebf2;
	--np-soft:   #eef3f9;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
	color: var(--np-text);
	/* Break out of the theme's max-width container so section
	   backgrounds run edge to edge. Inner .np-container re-centers. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow-x: clip;
}

/* This custom template doesn't render Elementor content, so ElementsKit's
   button CSS isn't enqueued — leaving the header "Contact us" button text
   the generic link colour (navy on navy). Restore the white label. */
body.page-template-page-clients .elementskit-btn,
body.page-template-page-clients .elementskit-btn:hover,
body.page-template-page-clients .elementskit-btn:focus {
	color: #fff;
}

/* Remove the theme container's top/bottom padding so the full-bleed
   hero meets the header and the CTA meets the footer with no white gap.
   (This stylesheet only loads on the Clients template.) */
body.page-template-page-clients .site-content > .keydesign-container {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.np-clients .np-container {
	/* Matches the theme header's content container so page content
	   lines up with the logo / nav. */
	max-width: 1240px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.np-clients h1,
.np-clients h2 {
	font-family: inherit;
	color: var(--np-navy);
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0;
}

/* ---------- Hero ---------- */
.np-hero {
	background: linear-gradient(180deg, #f4f7fb 0%, #eaf0f8 100%);
}
.np-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 48px;
	padding-top: 84px;
	padding-bottom: 84px;
}
.np-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--np-blue);
	margin-bottom: 18px;
}
.np-hero__title {
	font-size: clamp(2rem, 4vw, 3.1rem);
	line-height: 1.1;
	margin-bottom: 22px;
}
.np-hero__intro {
	font-size: 1.0625rem;
	line-height: 1.7;
	max-width: 34em;
}
.np-hero__intro p { margin: 0 0 1em; }
.np-hero__intro p:last-child { margin-bottom: 0; }
.np-hero__media {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 24px 50px -24px rgba(1, 31, 83, 0.4);
}
.np-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Client logos ---------- */
.np-logos { padding: 90px 0 96px; background: #fff; }
/* When an intro follows the title, tighten the title's gap. */
.np-clients .np-logos__title:has( + .np-logos__intro ) { margin-bottom: 28px; }

.np-logos__intro {
	max-width: 720px;
	margin: 0 auto 56px;
	text-align: center;
	font-size: 1.0625rem;
	line-height: 1.7;
}
.np-logos__intro p { margin: 0 0 1em; }
.np-logos__intro p:last-child { margin-bottom: 0; }

.np-clients .np-logos__title {
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--np-navy);
	margin-bottom: 82px;
}
.np-logos__title span {
	position: relative;
	padding: 0 26px;
}
.np-logos__title span::before,
.np-logos__title span::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 90px;
	height: 1px;
	background: var(--np-line);
}
.np-logos__title span::before { right: 100%; }
.np-logos__title span::after  { left: 100%; }

.np-logos__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--np-line);
	border-left: 1px solid var(--np-line);
}
.np-logo {
	border-right: 1px solid var(--np-line);
	border-bottom: 1px solid var(--np-line);
	padding: 40px 22px 30px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 18px;
	transition: background .2s ease;
}
.np-logo:hover { background: var(--np-soft); }
.np-logo__mark {
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.np-logo__mark a { display: inline-flex; }
.np-logo__img {
	max-height: 58px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
	filter: none;
}
.np-logo__name { font-weight: 700; color: var(--np-navy); font-size: 1.05rem; }
.np-logo__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--np-text);
}
.np-logo__l1 { font-weight: 600; color: var(--np-navy); }
.np-logo__l2 { color: #6b7f9c; }

/* ---------- Experience section ---------- */
.np-exp { background: var(--np-soft); padding: 80px 0; }
.np-clients .np-exp__inner { max-width: 820px; text-align: center; }
.np-clients .np-exp__title {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	margin-bottom: 22px;
}
.np-exp__text { font-size: 1.0625rem; line-height: 1.75; }
.np-exp__text p { margin: 0 0 1.1em; }
.np-exp__text p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.np-cta { background: var(--np-navy); color: #fff; }
.np-cta__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	min-height: 300px;
}
.np-cta__text {
	/* Left edge lines up with the page content container (logo / footer). */
	padding: 64px 48px 64px max(20px, calc((100vw - 1240px) / 2 + 20px));
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
}
.np-cta__text > * { max-width: 33rem; }
.np-clients .np-cta__title { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-bottom: 16px; }
.np-cta__desc { margin: 0 0 30px; }
.np-cta__desc p { color: rgba(255,255,255,0.82); font-size: 1.0625rem; line-height: 1.7; margin: 0 0 0.9em; }
.np-cta__desc p:last-child { margin-bottom: 0; }
.np-cta__btn {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 15px 30px;
	border: 1.5px solid rgba(255,255,255,0.6);
	color: #fff;
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 5px;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.np-cta__btn:hover { background: var(--np-blue); border-color: var(--np-blue); color: #fff; }
.np-cta__btn svg { transition: transform .2s ease; }
.np-cta__btn:hover svg { transform: translateX(4px); }
.np-cta__media { position: relative; min-height: 260px; }
.np-cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.np-hero__inner { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
	.np-hero__media { order: -1; }
	.np-logos__grid { grid-template-columns: repeat(2, 1fr); }
	.np-cta__inner { grid-template-columns: 1fr; }
	.np-cta__text { margin: 0; max-width: none; }
	.np-cta__media { min-height: 220px; order: -1; }
}
@media (max-width: 480px) {
	.np-logos__grid { grid-template-columns: 1fr; }
	.np-logos__title span::before, .np-logos__title span::after { width: 40px; }
}
