/* =========================================================
   Human Impact Certified — Site framework
   Add this file at: assets/css/site.css
   ========================================================= */

:root {
	--hi-gold: #cc9933;
	--hi-black: #000000;
	--hi-background: #292828;
	--hi-white: #ffffff;
	--hi-muted: #b8b8b8;
	--hi-border: rgba(255, 255, 255, 0.12);
	--hi-radius: 16px;
	--hi-width: 1180px;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--hi-background);
	color: var(--hi-white);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body,
body * {
	box-sizing: border-box;
}

a {
	color: inherit;
}

.hi-shell {
	width: min(100% - 48px, var(--hi-width));
	margin-inline: auto;
}

.hi-main {
	overflow: hidden;
}

.hi-skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 9999;
	padding: 12px 16px;
	background: var(--hi-white);
	color: var(--hi-black);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-160%);
}

.hi-skip-link:focus {
	transform: translateY(0);
}

/* Header */

.hi-site-header {
	position: relative;
	z-index: 100;
	width: 100%;
	background: rgba(41, 40, 40, 0.96);
	border-bottom: 1px solid var(--hi-border);
}

.hi-site-header__inner {
	width: min(100% - 48px, var(--hi-width));
	min-height: 84px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.hi-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--hi-white);
	text-decoration: none;
}

.hi-brand img {
	width: 52px;
	height: 52px;
	display: block;
}

.hi-brand__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.hi-brand__text strong {
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0.03em;
	line-height: 1;
	text-transform: uppercase;
}

.hi-brand__text strong span {
	color: var(--hi-gold);
}

.hi-brand__text small {
	width: fit-content;
	padding: 3px 11px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 999px;
	color: var(--hi-white);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.22em;
	line-height: 1;
	text-transform: uppercase;
}

.hi-nav {
	display: flex;
	align-items: center;
	gap: 30px;
}

.hi-nav a {
	color: var(--hi-muted);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	transition: color 160ms ease;
}

.hi-nav a:hover {
	color: var(--hi-white);
}

.hi-nav .hi-nav__cta {
	min-height: 44px;
	padding: 12px 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--hi-gold);
	border-radius: 10px;
	color: var(--hi-black);
	font-weight: 500;
}

.hi-nav .hi-nav__cta:hover {
	color: var(--hi-black);
	background: #d7a63f;
}

.hi-nav a:focus-visible,
.hi-brand:focus-visible,
.hi-button:focus-visible {
	outline: 3px solid var(--hi-white);
	outline-offset: 4px;
}

/* Shared */

.hi-eyebrow {
	margin: 0 0 20px;
	color: var(--hi-gold);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.hi-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 32px;
}

.hi-button {
	display: inline-flex;
	min-height: 52px;
	padding: 14px 24px;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.hi-button:hover {
	transform: translateY(-1px);
}

.hi-button-primary {
	background: var(--hi-gold);
	color: var(--hi-black);
}

.hi-button-primary:hover {
	background: #d7a63f;
	color: var(--hi-black);
}

.hi-button-secondary {
	background: transparent;
	color: var(--hi-white);
	border-color: var(--hi-border);
}

.hi-button-secondary:hover {
	border-color: var(--hi-gold);
	color: var(--hi-gold);
}

/* Hero */

.hi-home-hero {
	padding: clamp(72px, 7vw, 105px) 0;
	background:
		radial-gradient(circle at 82% 24%, rgba(204, 153, 51, 0.09), transparent 28%),
		var(--hi-background);
}

.hi-home-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
	align-items: center;
	gap: clamp(52px, 7vw, 95px);
}

.hi-home-hero__content h1 {
	max-width: 900px;
	margin: 0;
	font-size: clamp(44px, 5.3vw, 68px);
	font-weight: 600;
	letter-spacing: -0.045em;
	line-height: 1.01;
	text-wrap: balance;
}

.hi-home-hero__lead {
	max-width: 760px;
	margin: 28px 0 0;
	color: var(--hi-muted);
	font-size: clamp(17px, 1.35vw, 19px);
	font-weight: 400;
	line-height: 1.62;
}

.hi-home-hero__lead strong {
	color: var(--hi-white);
	font-weight: 500;
}

.hi-score-panel {
	padding: clamp(28px, 3.2vw, 44px);
	background: var(--hi-black);
	border: 1px solid var(--hi-border);
	border-radius: var(--hi-radius);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.hi-score-panel__label,
.hi-score-panel__note {
	margin: 0;
	color: var(--hi-muted);
	font-size: 13px;
	line-height: 1.6;
}

.hi-score-panel__label {
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hi-score-list {
	margin: 28px 0 0;
}

.hi-score-list div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--hi-border);
}

.hi-score-list dt,
.hi-score-list dd {
	margin: 0;
}

.hi-score-list dt {
	color: var(--hi-muted);
}

.hi-score-list dd {
	color: var(--hi-white);
	font-size: 18px;
	font-weight: 500;
}

.hi-score-total {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	padding: 30px 0;
}

.hi-score-total span {
	max-width: 100px;
	color: var(--hi-muted);
	font-size: 14px;
	line-height: 1.4;
}

.hi-score-total strong {
	color: var(--hi-gold);
	font-size: clamp(64px, 8vw, 96px);
	font-weight: 600;
	letter-spacing: -0.06em;
	line-height: 0.8;
}

/* Homepage sections */

.hi-home-section {
	padding: clamp(88px, 10vw, 140px) 0;
	border-top: 1px solid var(--hi-border);
}

.hi-home-section__narrow {
	max-width: 900px;
}

.hi-home-section h2 {
	max-width: 900px;
	margin: 0;
	font-size: clamp(38px, 5vw, 64px);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.06;
	text-wrap: balance;
}

.hi-home-section__narrow > p:last-child,
.hi-home-section__heading > p:last-child {
	max-width: 780px;
	margin: 28px 0 0;
	color: var(--hi-muted);
	font-size: clamp(18px, 1.7vw, 21px);
	line-height: 1.7;
}

.hi-pillar-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-top: 56px;
	border-top: 1px solid var(--hi-border);
	border-left: 1px solid var(--hi-border);
}

.hi-pillar-card {
	min-height: 290px;
	padding: 30px;
	border-right: 1px solid var(--hi-border);
	border-bottom: 1px solid var(--hi-border);
	background: rgba(0, 0, 0, 0.12);
}

.hi-pillar-card > span {
	color: var(--hi-gold);
	font-size: 13px;
	letter-spacing: 0.12em;
}

.hi-pillar-card h3 {
	margin: 70px 0 16px;
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
}

.hi-pillar-card p {
	margin: 0;
	color: var(--hi-muted);
	font-size: 15px;
	line-height: 1.65;
}

/* Footer */

.hi-site-footer {
	padding: 44px 0;
	background: var(--hi-black);
	border-top: 1px solid var(--hi-border);
}

.hi-site-footer__inner {
	width: min(100% - 48px, var(--hi-width));
	margin-inline: auto;
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 40px;
}

.hi-site-footer p {
	margin: 0;
	color: var(--hi-muted);
	font-size: 14px;
	line-height: 1.6;
}

.hi-site-footer strong {
	color: var(--hi-white);
	font-weight: 500;
}

.hi-site-footer__meta {
	text-align: right;
}

/* Responsive */

@media (max-width: 1024px) {
	.hi-home-hero__grid {
		grid-template-columns: 1fr;
	}

	.hi-score-panel {
		max-width: 620px;
	}

	.hi-pillar-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.hi-site-header__inner {
		width: min(100% - 36px, var(--hi-width));
		min-height: 76px;
		padding: 10px 0 12px;
		flex-wrap: wrap;
		gap: 10px 24px;
	}

	.hi-brand {
		flex: 1 1 auto;
	}

	.hi-nav {
		width: 100%;
		order: 3;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 24px;
		padding-top: 12px;
		border-top: 1px solid var(--hi-border);
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.hi-nav::-webkit-scrollbar {
		display: none;
	}

	.hi-nav a,
	.hi-nav a:not(.hi-nav__cta) {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		min-height: 38px;
		white-space: nowrap;
		font-size: 14px;
	}

	.hi-nav .hi-nav__cta {
		min-height: 38px;
		padding: 9px 14px;
		border-radius: 9px;
	}
}

@media (max-width: 600px) {
	.hi-shell,
	.hi-site-footer__inner {
		width: min(100% - 36px, var(--hi-width));
	}

	.hi-brand__text {
		display: none;
	}

	.hi-site-header__inner {
		min-height: 70px;
		padding-top: 9px;
		padding-bottom: 10px;
	}

	.hi-brand img {
		width: 46px;
		height: 46px;
	}

	.hi-nav {
		gap: 20px;
		padding-top: 10px;
	}

	.hi-nav a,
	.hi-nav a:not(.hi-nav__cta) {
		min-height: 36px;
		font-size: 13px;
	}

	.hi-nav .hi-nav__cta {
		min-height: 36px;
		padding: 8px 13px;
		font-size: 13px;
	}

	.hi-home-hero {
		padding: 72px 0 84px;
	}

	.hi-home-hero__content h1 br {
		display: none;
	}

	.hi-actions {
		flex-direction: column;
	}

	.hi-button {
		width: 100%;
	}

	.hi-pillar-grid {
		grid-template-columns: 1fr;
	}

	.hi-pillar-card {
		min-height: 230px;
	}

	.hi-pillar-card h3 {
		margin-top: 48px;
	}

	.hi-site-footer__inner {
		align-items: start;
		flex-direction: column;
	}

	.hi-site-footer__meta {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.hi-button,
	.hi-nav a {
		transition: none;
	}

	.hi-button:hover {
		transform: none;
	}
}
