/* Front page. Industrial refrigeration storefront. */

body.nil-front {
	--nil-container: 1220px;
	background: #f3f6f8;
}

body.nil-front .site-main {
	padding: 0;
}

body.nil-front .nil-footer {
	margin-top: 0;
}

.nil-home {
	color: #163044;
}

.nil-kicker,
.nil-index,
.nil-cat__meta em,
.nil-step b,
.nil-metrics strong {
	font-variant-numeric: tabular-nums;
}

.nil-hero {
	position: relative;
	color: #f4f8fb;
	background:
		radial-gradient(circle at 85% 10%, rgb(18 122 184 / 38%), transparent 26rem),
		linear-gradient(160deg, #07141f 0%, #0d283c 58%, #07141f 100%);
	overflow: hidden;
	padding-block: 3.2rem 6.5rem;
}

.nil-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
	gap: 2.5rem;
	align-items: center;
}

.nil-hero__grid > *,
.nil-about > *,
.nil-cta__grid > *,
.nil-section__head > *,
.nil-catalog,
.nil-rooms,
.nil-journal,
.nil-zones,
.nil-paths,
.nil-brands,
.nil-steps {
	min-width: 0;
}

.nil-kicker {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 1rem;
	color: #9fd0ee;
	font-size: 0.92rem;
	font-weight: 700;
}

.nil-kicker::before {
	content: "";
	width: 2rem;
	height: 2px;
	background: #d7a15a;
	flex: 0 0 auto;
}

.nil-hero h1 {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 4.2vw, 3.35rem);
	line-height: 1.28;
	font-weight: 800;
	letter-spacing: 0;
}

.nil-hero__lead {
	margin: 0;
	max-width: 38rem;
	color: #d3e0ea;
	font-size: 1.05rem;
}

.nil-hero__scale {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	width: min(26rem, 100%);
	margin-top: 1.5rem;
	color: #c5d7e4;
	font-size: 0.85rem;
	font-weight: 700;
}

.nil-hero__bar {
	flex: 1;
	height: 0.45rem;
	border-radius: 99px;
	background: linear-gradient(90deg, #08345c, #1a8fd0);
}

.nil-hero__bar--warm {
	background: linear-gradient(90deg, #1a8fd0, #d5e7f2);
}

.nil-hero__actions,
.nil-cta__actions,
.nil-about__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.nil-hero__actions {
	margin-top: 1.6rem;
}

.nil-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.9rem;
	padding: 0.55rem 1.15rem;
	background: #0c7ab8;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	border: 1px solid #0c7ab8;
}

.nil-btn:hover {
	background: #0a689c;
	border-color: #0a689c;
	color: #fff;
}

.nil-btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgb(255 255 255 / 38%);
}

.nil-btn--ghost:hover {
	background: rgb(255 255 255 / 8%);
	color: #fff;
}

.nil-hero__phone {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.2rem;
	margin: 1.1rem 0 0;
	font-weight: 700;
}

.nil-hero__phone a,
.nil-textlink {
	color: #d7e9f6;
	text-decoration: none;
}

.nil-textlink {
	color: #0c5f90;
	font-weight: 700;
}

.nil-section--ink .nil-textlink,
.nil-cta .nil-textlink {
	color: #d7e9f6;
}

.nil-hero__stage {
	position: relative;
	min-height: 28rem;
}

.nil-hero__photo {
	display: block;
	width: 86%;
	max-width: 100%;
	height: 32rem;
	margin-inline-start: auto;
	object-fit: cover;
	border: 1px solid rgb(255 255 255 / 12%);
}

.nil-hero__plate {
	position: absolute;
	inset-inline-start: 0;
	bottom: 1.2rem;
	width: min(16.5rem, 58%);
	margin: 0;
	padding: 0.55rem 0.55rem 0.7rem;
	background: #fff;
	color: #163044;
	box-shadow: 0 18px 40px rgb(0 0 0 / 28%);
}

.nil-hero__plate img {
	display: block;
	width: 100%;
	height: 8.5rem;
	object-fit: cover;
	object-position: center 22%;
}

.nil-hero__plate figcaption {
	padding-top: 0.45rem;
	font-size: 0.85rem;
	font-weight: 700;
}

.nil-metrics-wrap {
	position: relative;
	z-index: 3;
	margin-top: -3.1rem;
}

.nil-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid #d5e0e8;
	box-shadow: 0 16px 40px rgb(7 20 31 / 8%);
}

.nil-metrics li {
	padding: 1.15rem 1.2rem 1.25rem;
	border-inline-start: 1px solid #e6eef3;
}

.nil-metrics li:first-child {
	border-inline-start: 0;
}

.nil-metrics strong {
	display: block;
	color: #0e2436;
	font-size: 1.65rem;
	line-height: 1.2;
}

.nil-metrics span {
	color: #5d7282;
	font-size: 0.92rem;
}

.nil-section {
	padding-block: 4.25rem;
}

.nil-section--plain {
	background: #fff;
}

.nil-section--ink {
	background:
		linear-gradient(180deg, rgb(255 255 255 / 3%), transparent 8rem),
		#0c2233;
	color: #e7eef4;
}

.nil-section__head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 0.8rem 1.1rem;
	align-items: end;
	margin-bottom: 1.6rem;
}

.nil-section__head h2,
.nil-about h2,
.nil-clients h2,
.nil-cta h2 {
	margin: 0 0 0.35rem;
	font-size: clamp(1.45rem, 2vw, 1.9rem);
	line-height: 1.35;
	font-weight: 800;
}

.nil-section__head p,
.nil-about p,
.nil-cta p {
	margin: 0;
	max-width: 42rem;
}

.nil-section--ink .nil-section__head p {
	color: #c5d5e2;
}

.nil-index {
	margin: 0;
	color: #0c7ab8;
	font-size: 1.7rem;
	font-weight: 800;
	line-height: 1;
}

.nil-section--ink .nil-index {
	color: #8ecff3;
}

.nil-catalog {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 15.5rem;
	gap: 0.75rem;
}

.nil-cat {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
	background: #fff;
	color: inherit;
	text-decoration: none;
	border: 1px solid #d5e0e8;
}

.nil-cat--lead {
	grid-column: span 2;
	grid-row: span 2;
}

.nil-catalog .nil-cat:nth-child(6),
.nil-catalog .nil-cat:nth-child(7) {
	grid-column: span 2;
}

.nil-cat__photo {
	display: block;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	padding: 0.45rem 0.45rem 0;
	background: #fff;
}

.nil-cat__photo img {
	display: block;
	width: 100%;
	/* Category shots are square and end in a 14% blue strip. Stretching
	   past the frame drops that strip below the crop so the caption sits
	   under the product instead of across it. */
	height: calc(100% / 0.86);
	object-fit: contain;
	object-position: center top;
}

.nil-cat__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.6rem 0.9rem;
	background: #0e2436;
	color: #fff;
	line-height: 1.35;
}

.nil-cat__meta strong,
.nil-cat__meta small,
.nil-cat__meta em {
	display: block;
}

.nil-cat__meta strong {
	font-size: 0.98rem;
}

.nil-cat__meta small {
	color: #b7c8d6;
	font-size: 0.75rem;
}

.nil-cat__meta em {
	font-style: normal;
	font-weight: 800;
	font-size: 1.25rem;
	color: #8ecff3;
}

.nil-cat:hover .nil-cat__meta {
	background: #12344c;
}

.nil-paths {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.nil-paths div {
	padding: 0.95rem 1rem 1.05rem;
	background: #fff;
	border: 1px solid #d5e0e8;
}

.nil-paths strong {
	display: block;
	margin-bottom: 0.35rem;
}

.nil-paths ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nil-paths li:not(:last-child)::after {
	content: "·";
	margin-inline: 0.4rem;
	color: #8aa0b3;
}

.nil-paths a {
	color: #1d4f70;
	text-decoration: none;
	font-weight: 600;
}

.nil-paths a:hover {
	color: #0c7ab8;
}

.nil-zones {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.nil-zone {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 24rem;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
}

.nil-zone img,
.nil-zone__shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.nil-zone img {
	object-fit: cover;
	transition: transform 0.45s ease;
}

.nil-zone:hover img {
	transform: scale(1.04);
}

.nil-zone__shade {
	background: linear-gradient(180deg, rgb(7 16 28 / 5%) 20%, rgb(7 16 28 / 88%));
}

.nil-zone__copy {
	position: relative;
	display: grid;
	gap: 0.3rem;
	padding: 1.4rem 1.4rem 1.5rem;
}

.nil-zone__copy small {
	font-weight: 700;
	color: #b9dff6;
}

.nil-zone__copy strong {
	font-size: 1.7rem;
	line-height: 1.3;
}

.nil-zone__copy span {
	max-width: 28rem;
	color: #e4eef6;
}

.nil-rooms,
.nil-journal {
	display: grid;
	gap: 0.9rem;
}

.nil-rooms {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nil-journal {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.nil-front .nil-journal .nil-note__media {
	aspect-ratio: 16 / 9;
}

.nil-notes__nav {
	display: none;
	gap: 0.45rem;
	align-self: end;
}

.nil-notes__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid #d5e0e8;
	background: #fff;
	color: #163044;
	cursor: pointer;
}

.nil-notes__btn:hover {
	border-color: #0c7ab8;
	color: #0c7ab8;
}

.nil-notes__btn svg {
	display: block;
}

[dir="rtl"] .nil-notes__btn svg {
	transform: scaleX(-1);
}

.nil-notes__btn:focus-visible {
	outline: 2px solid #0c7ab8;
	outline-offset: 2px;
}

.nil-room,
.nil-note {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #d5e0e8;
}

.nil-room__media,
.nil-note__media {
	display: block;
	aspect-ratio: 1.15;
	overflow: hidden;
	background: #e7eef3;
}

.nil-room__media img,
.nil-note__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nil-room__body,
.nil-note__body {
	padding: 0.95rem 1rem 1.1rem;
}

.nil-room h3,
.nil-note h3 {
	margin: 0 0 0.45rem;
	font-size: 1.02rem;
	line-height: 1.45;
}

.nil-room h3 a,
.nil-note h3 a {
	color: inherit;
	text-decoration: none;
}

.nil-room h3 a:hover,
.nil-note h3 a:hover {
	color: #0c7ab8;
}

.nil-room__label {
	margin: 0 0 0.45rem;
	color: #6a7f90;
	font-size: 0.78rem;
	font-weight: 700;
}

.nil-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nil-chips li {
	padding: 0.12rem 0.45rem;
	background: #eef4f8;
	color: #1c4664;
	font-size: 0.75rem;
}

.nil-steps {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	background: #f7fafc;
	border: 1px solid #d5e0e8;
}

.nil-step,
.nil-steps li {
	padding: 1.2rem 1rem 1.35rem;
	border-inline-start: 1px solid #d5e0e8;
}

.nil-steps li:first-child {
	border-inline-start: 0;
}

.nil-steps b {
	display: block;
	margin-bottom: 0.45rem;
	color: #0c7ab8;
	font-size: 1.35rem;
}

.nil-steps strong {
	display: block;
	margin-bottom: 0.35rem;
}

.nil-steps p {
	margin: 0;
	color: #52697a;
	font-size: 0.92rem;
}

.nil-about {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 2.5rem;
	align-items: center;
}

.nil-about__copy p + p {
	margin-top: 0.9rem;
}

.nil-promises {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin: 1.2rem 0;
	padding: 0;
	list-style: none;
}

.nil-promises li {
	padding: 0.7rem 0.8rem;
	background: #fff;
	border: 1px solid #d5e0e8;
	border-inline-start: 3px solid #0c7ab8;
	font-weight: 700;
}

.nil-about__links {
	margin-top: 0.4rem;
}

.nil-about__links .nil-textlink {
	color: #0c5f90;
}

.nil-about__media {
	display: grid;
	grid-template-columns: 1.4fr 0.8fr;
	gap: 0.7rem;
}

.nil-about__media img {
	display: block;
	width: 100%;
	height: 16rem;
	object-fit: cover;
}

.nil-about__media img:first-child {
	grid-row: span 2;
	height: 100%;
	min-height: 22rem;
}

.nil-about__badge {
	height: 8.5rem !important;
	object-fit: contain !important;
	background: #07141f;
	padding: 0.85rem;
	border: 0;
}

.nil-brands,
.nil-clients ul {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nil-brands {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nil-brands li,
.nil-clients li {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 6.2rem;
	padding: 0.8rem;
	background: #fff;
	border: 1px solid #d5e0e8;
}

.nil-brands img,
.nil-clients img {
	display: block;
	max-width: 100%;
	max-height: 3.4rem;
	width: auto;
	object-fit: contain;
}

.nil-clients {
	padding-block: 0 4rem;
}

.nil-clients h2 {
	margin-bottom: 1rem;
}

.nil-clients ul {
	grid-template-columns: repeat(9, minmax(0, 1fr));
}

.nil-clients li {
	min-height: 5.2rem;
}

.nil-note time {
	color: #6a7f90;
	font-size: 0.8rem;
}

.nil-note p {
	margin: 0;
	color: #52697a;
	font-size: 0.92rem;
}

.nil-cta {
	background: #0b4f78;
	color: #f3f8fb;
	padding-block: 3.2rem;
}

.nil-cta__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.7fr);
	gap: 2rem;
	align-items: start;
}

.nil-cta p {
	margin-top: 0.7rem;
	max-width: 38rem;
	color: #d5e6f1;
}

.nil-cta address {
	display: grid;
	gap: 0.45rem;
	margin: 0;
	padding: 1.1rem 1.15rem;
	font-style: normal;
	background: rgb(0 0 0 / 16%);
}

.nil-cta address a {
	color: #fff;
}

.nil-cta .nil-btn--ghost {
	color: #fff;
}

@media (max-width: 1100px) {
	.nil-rooms,
	.nil-journal {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nil-clients ul {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.nil-steps {
		grid-template-columns: 1fr;
	}

	.nil-steps li {
		border-inline-start: 0;
		border-top: 1px solid #d5e0e8;
	}

	.nil-steps li:first-child {
		border-top: 0;
	}
}

@media (max-width: 860px) {
	.nil-hero {
		padding-block: 2.2rem 5.5rem;
	}

	.nil-hero__grid,
	.nil-about,
	.nil-cta__grid,
	.nil-zones,
	.nil-paths,
	.nil-section__head {
		grid-template-columns: 1fr;
	}

	.nil-hero h1 {
		font-size: 1.85rem;
	}

	.nil-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.nil-hero__photo {
		width: 100%;
		height: 16rem;
		max-width: 100%;
	}

	.nil-hero__stage {
		min-height: 0;
	}

	.nil-hero__plate {
		position: static;
		width: min(18rem, 100%);
		margin-top: 0.8rem;
		margin-inline: auto;
	}

	.nil-metrics {
		grid-template-columns: 1fr 1fr;
	}

	.nil-metrics li:nth-child(3) {
		border-inline-start: 0;
		border-top: 1px solid #e6eef3;
	}

	.nil-metrics li:nth-child(4) {
		border-top: 1px solid #e6eef3;
	}

	.nil-catalog {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 16.5rem;
	}

	.nil-cat--lead,
	.nil-catalog .nil-cat:nth-child(6),
	.nil-catalog .nil-cat:nth-child(7) {
		grid-column: span 2;
		grid-row: auto;
	}

	.nil-brands {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.nil-about__media img:first-child {
		min-height: 14rem;
	}
}

@media (max-width: 640px) {
	.nil-metrics,
	.nil-rooms,
	.nil-journal,
	.nil-promises,
	.nil-catalog,
	.nil-about__media {
		grid-template-columns: 1fr;
	}

	.nil-brands {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nil-clients ul {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.nil-cat--lead,
	.nil-catalog .nil-cat:nth-child(6),
	.nil-catalog .nil-cat:nth-child(7) {
		grid-column: auto;
	}

	.nil-metrics li {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.1rem;
		border-inline-start: 0;
		border-top: 1px solid #e6eef3;
	}

	.nil-metrics strong {
		width: auto;
	}

	.nil-metrics li:first-child {
		border-top: 0;
	}

	.nil-zone {
		min-height: 18rem;
	}
}

@media (min-width: 1101px) {
	body.nil-front .nil-notes .nil-journal {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	body.nil-front .nil-notes .nil-note {
		min-width: 0;
	}

	body.nil-front .nil-notes.is-slider .nil-notes__nav {
		display: flex;
	}

	body.nil-front .nil-notes.is-slider .nil-notes__viewport {
		overflow-x: auto;
		scroll-snap-type: inline mandatory;
		scrollbar-width: none;
	}

	body.nil-front .nil-notes.is-slider .nil-notes__viewport::-webkit-scrollbar {
		display: none;
	}

	body.nil-front .nil-notes.is-slider .nil-journal {
		display: flex;
		gap: 0.9rem;
	}

	body.nil-front .nil-notes.is-slider .nil-note {
		flex: 0 0 calc((100% - 2.7rem) / 4);
		width: calc((100% - 2.7rem) / 4);
		min-width: 0;
		scroll-snap-align: start;
	}

	body.nil-front .nil-notes.is-slider.is-ready .nil-notes__viewport {
		overflow: hidden;
		scroll-snap-type: none;
	}

	body.nil-front .nil-notes.is-slider.is-ready .nil-journal {
		transition: transform 0.55s ease;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nil-zone img,
	body.nil-front .nil-notes.is-slider.is-ready .nil-journal {
		transition: none;
	}
}
