/* =====================================================================
   Our Services — hub (/services/). Template: page-templates/services-hub.php
   Module: inc/services-hub.php. Loaded only on that template, after
   site-chrome.css (same tokens + Inter / Bricolage fonts as the header).
   Scoped to .ks-hub — Foundation + theme.css element rules load here too.
   ===================================================================== */

.ks-hub {
	--hub-yellow: #ffcc00;
	--hub-yellow-hover: #e6b800;
	--hub-blue: #000f71;
	--hub-blue-mid: #011083;
	--hub-blue-deep: #000b51;
	--hub-card: #e9ebf6;
	--hub-card-hover: #dde1f2;
	--hub-border: #dfe3f2;
	--hub-muted: #5a5e75;
	--hub-tint: #f3f4fa;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--hub-blue);
	background: #fff;
	text-align: left;
}

.ks-hub *,
.ks-hub *::before,
.ks-hub *::after {
	box-sizing: border-box;
}

.ks-hub a {
	text-decoration: none;
}

.ks-hub a:focus-visible {
	outline: 3px solid var(--hub-yellow) !important;
	outline-offset: 2px;
}

.ks-hub ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ks-hub li {
	margin: 0;
}

.ks-hub p {
	margin: 0;
	font-size: inherit;
}

.ks-hub h1,
.ks-hub h2 {
	font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
	font-weight: 800;
	color: var(--hub-blue);
	text-transform: none;
	margin: 0;
}

.ks-hub img {
	display: block;
	max-width: 100%;
}

.ks-hub-wrap {
	max-width: 1312px;
	margin: 0 auto;
	padding: 0 24px;
}

.ks-hub-arrow {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	opacity: 0.5;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

/* ---------------------------------------------------------------------
   Hero: H1 + intro
   --------------------------------------------------------------------- */

.ks-hub-hero {
	background: var(--hub-blue);
	color: #fff;
	padding: 64px 0 80px;
}

.ks-hub-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 56px;
	align-items: center;
}

.ks-hub .ks-hub-hero__title {
	font-size: 76px;
	line-height: 1;
	letter-spacing: -2px;
	color: #fff;
	margin: 0 0 24px;
}

.ks-hub .ks-hub-hero__intro {
	font-size: 18px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
	max-width: 600px;
	margin: 0 0 20px;
}

.ks-hub .ks-hub-hero__lead {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 14px;
}

.ks-hub-jumps {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 32px !important;
}

.ks-hub .ks-hub-jump {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 10px 0 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
}

.ks-hub .ks-hub-jump:hover,
.ks-hub .ks-hub-jump:focus {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.ks-hub-jump__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--hub-yellow);
	color: var(--hub-blue-deep);
	font-size: 12px;
	font-weight: 800;
}

.ks-hub-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.ks-hub-checks li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ks-hub-check {
	width: 18px;
	height: 18px;
	color: var(--hub-yellow);
	stroke-width: 2;
	flex-shrink: 0;
}

.ks-hub-hero__media {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: #0a165c;
}

.ks-hub-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ks-hub .ks-hub-hero__badge {
	position: absolute;
	left: 20px;
	bottom: 20px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	border-radius: 10px;
	background: var(--hub-yellow);
	color: var(--hub-blue-deep);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.ks-hub-badge-ico {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   Group sections
   --------------------------------------------------------------------- */

.ks-hub-sec {
	padding: 96px 0;
	background: #fff;
}

.ks-hub-sec--tint {
	background: var(--hub-tint);
}

.ks-hub-sec__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px 40px;
	margin-bottom: 36px;
}

.ks-hub .ks-hub-eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--hub-muted);
	margin: 0 0 10px;
}

.ks-hub .ks-hub-sec__head h2 {
	font-size: 56px;
	line-height: 1.02;
	letter-spacing: -1.4px;
}

.ks-hub .ks-hub-sec__intro {
	max-width: 470px;
	color: var(--hub-muted);
	font-size: 16px;
	line-height: 1.6;
}

/* Icon tiles (General) */
.ks-hub-tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.ks-hub .ks-hub-tile {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	min-height: 84px;
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--hub-card);
	color: var(--hub-blue);
	transition: background 0.15s ease;
}

.ks-hub .ks-hub-tile:hover,
.ks-hub .ks-hub-tile:focus {
	background: var(--hub-card-hover);
	color: var(--hub-blue);
}

.ks-hub-tile:hover .ks-hub-arrow,
.ks-hub-tile:focus .ks-hub-arrow,
.ks-hub-row:hover .ks-hub-arrow,
.ks-hub-row:focus .ks-hub-arrow {
	opacity: 1;
	transform: translateX(3px);
}

.ks-hub-tile__ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #fff;
	color: var(--hub-blue);
	flex-shrink: 0;
}

.ks-hub-ico {
	width: 24px;
	height: 24px;
}

.ks-hub-tile__name {
	flex: 1;
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.25;
}

.ks-hub-tile__badge {
	display: inline-block;
	margin-left: 4px;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--hub-yellow);
	color: var(--hub-blue-deep);
	font-size: 11px;
	font-weight: 800;
	vertical-align: 2px;
}

.ks-hub .ks-hub-tile--em {
	background: var(--hub-blue);
	color: #fff;
}

.ks-hub .ks-hub-tile--em:hover,
.ks-hub .ks-hub-tile--em:focus {
	background: var(--hub-blue-mid);
	color: #fff;
}

.ks-hub-tile--em .ks-hub-tile__ico {
	background: var(--hub-yellow);
	color: var(--hub-blue-deep);
}

.ks-hub-tile--em .ks-hub-arrow {
	opacity: 0.9;
}

/* Tiles on a tinted band: white cards, tinted icon box. */
.ks-hub .ks-hub-sec--tint .ks-hub-tile:not(.ks-hub-tile--em) {
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--hub-border);
}

.ks-hub .ks-hub-sec--tint .ks-hub-tile:not(.ks-hub-tile--em):hover,
.ks-hub .ks-hub-sec--tint .ks-hub-tile:not(.ks-hub-tile--em):focus {
	background: var(--hub-card);
}

.ks-hub-sec--tint .ks-hub-tile:not(.ks-hub-tile--em) .ks-hub-tile__ico {
	background: var(--hub-card);
}

.ks-hub-help {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-height: 84px;
	padding: 14px 18px;
	border-radius: 16px;
	border: 1.5px dashed #aab2d8;
}

.ks-hub-help span {
	font-size: 13.5px;
	color: var(--hub-muted);
}

.ks-hub .ks-hub-help a {
	font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
	font-size: 21px;
	font-weight: 800;
	color: var(--hub-blue);
}

/* Photo cards (Hot Water, Gas) */
.ks-hub-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.ks-hub-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--hub-border);
	border-radius: 24px;
	overflow: hidden;
}

.ks-hub-card--wide {
	grid-column: span 2;
}

.ks-hub-card__media {
	height: 260px;
	background: var(--hub-card);
}

.ks-hub-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ks-hub-card__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1;
	padding: 32px 32px 30px;
}

.ks-hub .ks-hub-card__body .ks-hub-eyebrow {
	margin: 0 0 -6px;
}

.ks-hub .ks-hub-card__body h2 {
	font-size: 44px;
	line-height: 1.05;
	letter-spacing: -1px;
}

.ks-hub .ks-hub-card__intro {
	color: var(--hub-muted);
	font-size: 15.5px;
	line-height: 1.6;
}

.ks-hub-rows {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 28px;
	margin-top: 6px !important;
}

.ks-hub-rows--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ks-hub .ks-hub-row {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 62px;
	padding: 12px 0;
	border-top: 1px solid var(--hub-border);
	color: var(--hub-blue);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.3;
}

.ks-hub .ks-hub-row:hover,
.ks-hub .ks-hub-row:focus {
	color: var(--hub-blue-deep);
}

.ks-hub-row__ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--hub-card);
	flex-shrink: 0;
}

.ks-hub-row__ico .ks-hub-ico {
	width: 20px;
	height: 20px;
}

.ks-hub-row__name {
	flex: 1;
}

.ks-hub-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto !important;
	padding-top: 6px !important;
}

.ks-hub-chips li {
	padding: 7px 13px;
	border-radius: 8px;
	background: var(--hub-card);
	color: #3d4160;
	font-size: 12.5px;
	font-weight: 600;
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.ks-hub-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ks-hub-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ks-hub-card--wide {
		grid-column: 1 / -1;
	}
}

@media (max-width: 900px) {
	.ks-hub-hero__grid,
	.ks-hub-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.ks-hub-card--wide {
		grid-column: auto;
	}

	.ks-hub .ks-hub-hero__title {
		font-size: 56px;
	}

	.ks-hub .ks-hub-sec__head h2 {
		font-size: 44px;
	}
}

@media (max-width: 640px) {
	.ks-hub-hero {
		padding: 36px 0 48px;
	}

	.ks-hub-hero__grid {
		gap: 32px;
	}

	.ks-hub .ks-hub-hero__title {
		font-size: 46px;
		letter-spacing: -1.2px;
	}

	.ks-hub .ks-hub-hero__intro {
		font-size: 16.5px;
	}

	.ks-hub-sec {
		padding: 64px 0;
	}

	.ks-hub .ks-hub-sec__head h2,
	.ks-hub .ks-hub-card__body h2 {
		font-size: 36px;
	}

	.ks-hub-tiles,
	.ks-hub-rows--two {
		grid-template-columns: minmax(0, 1fr);
	}

	.ks-hub-card__media {
		height: 200px;
	}

	.ks-hub-card__body {
		padding: 24px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ks-hub-arrow,
	.ks-hub .ks-hub-tile {
		transition: none;
	}
}
