/* Sprint Renewables — Custom Styles */

/* Fonts */
@font-face {
	font-family: "Satoshi";
	src: url("../fonts/Satoshi-Variable.ttf") format("truetype");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Satoshi";
	src: url("../fonts/Satoshi-VariableItalic.ttf") format("truetype");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

/* Variables */
:root {
	--dark-blue: #163a66;
	--orange: #ff9623;
	--light-blue: #f0f6f9;
	--blue: #3b96cb;
	--octopus-purple: #452dc8;
	--octopus-pink: #ff48d8;
	--white: #ffffff;
	--font-body: "Satoshi", sans-serif;
	--font-logo: "Caudex", serif;
	--section-gap: 2rem;
	--col-gap: 2rem;
}

@media screen and (min-width: 961px) {
	:root {
		--section-gap: 7.5rem;
		--col-gap: 7.4375rem;
	}
}

/* Base */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	font-family: var(--font-body);
	background: var(--light-blue);
	color: var(--dark-blue);
	margin: 0;
}

h1, h2, h3, h4, h5, h6, p, ul {
	margin-top: 0;
	margin-bottom: 0;
}

img {
	max-width: 100%;
	height: auto;
}

/* Skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 0.5rem 1rem;
	background: var(--dark-blue);
	color: var(--white);
}

.skip-link:focus {
	left: 0;
}

/* ===================== */
/* Typography             */
/* ===================== */
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	color: var(--dark-blue);
}

h1 {
	font-size: 2.75rem;
	line-height: 1.15;

	@media screen and (min-width: 961px) {
		font-size: 5.5rem;
		line-height: 1.2;
	}
}

/* H2 — Figma: 64px / 72px leading */
h2 {
	font-size: 2rem;
	line-height: 1.15;

	@media screen and (min-width: 961px) {
		font-size: 4rem;
		line-height: 1.125;
	}
}

/* H3 — Figma: 48px / 52px leading */
h3 {
	font-size: 1.75rem;
	line-height: 1.2;

	@media screen and (min-width: 961px) {
		font-size: 3rem;
		line-height: 1.083;
	}
}

/* H4 — Figma: 28px / 100% leading */
h4 {
	font-size: 1.25rem;
	line-height: 1;

	@media screen and (min-width: 961px) {
		font-size: 1.75rem;
	}
}

/* P — Figma: 24px bold / auto leading */
.lead {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.5;

	@media screen and (min-width: 961px) {
		font-size: 1.5rem;
	}
}

/* P Small — Figma: 16px medium / 20px leading */
.text-small {
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.25;
}

/* ===================== */
/* Buttons               */
/* ===================== */
.btn-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.75rem 0.75rem 0.75rem 1.5rem;
	font-family: var(--font-body);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	border: none;
	border-radius: 2.5rem;
	cursor: pointer;
	white-space: nowrap;
	transition: background ease 0.5s;

	@media screen and (min-width: 961px) {
		font-size: 1.25rem;
	}
}

.btn-cta-orange {
	background: var(--orange);
	color: var(--white);
}

.btn-cta-orange:hover {
	background: #e6871f;
	color: var(--white);
}

.btn-cta-light {
	background: var(--light-blue);
	color: var(--dark-blue);
}

.btn-cta-light:hover {
	background: #dce8ee;
	color: var(--dark-blue);
}

.btn-cta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
}

.icon-arrow-right {
	display: inline-block;
	width: 0.75rem;
	height: 0.75rem;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

/* ===================== */
/* Nav                   */
/* ===================== */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	padding: 0.75rem 1rem;
	transition: transform 0.3s ease;

	@media screen and (min-width: 961px) {
		padding: 1.4375rem 1rem;
	}
}

.site-header .nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 90rem;
	margin: 0 auto;
	padding: 0.75rem 1.5rem;
	background: var(--white);
	border-radius: 0.5rem;
}

.nav-brand {
	display: flex;
	align-items: center;
	text-decoration: none;
	gap: 0;
}

.nav-brand-icon {
	width: auto;
	height: 2.5rem;
}

.nav-brand-text {
	font-family: var(--font-logo);
	font-size: 1.29rem;
	line-height: 1;
	color: var(--blue);
}

.nav-links {
	display: none;
	align-items: center;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;

	@media screen and (min-width: 961px) {
		display: flex;
	}
}

.nav-links a {
	font-size: 1rem;
	font-weight: 500;
	color: var(--blue);
	text-decoration: none;
	transition: color ease 0.3s;
}

.nav-links a:hover {
	color: var(--dark-blue);
}

.menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;

	@media screen and (min-width: 961px) {
		display: none;
	}
}

.menu-toggle span {
	display: block;
	position: relative;
	width: 1.5rem;
	height: 2px;
	background: var(--dark-blue);
	transition: background 0.3s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--dark-blue);
	transition: transform 0.3s ease;
}

.menu-toggle span::before {
	top: -0.5rem;
}

.menu-toggle span::after {
	top: 0.5rem;
}

.nav-mobile {
	display: none;
	padding: 1rem 1.5rem;
	background: var(--white);
	border-radius: 0 0 0.5rem 0.5rem;
	margin-top: -0.5rem;
	margin-left: 1rem;
	margin-right: 1rem;

	@media screen and (min-width: 961px) {
		display: none !important;
	}
}

.nav-mobile.open {
	display: block;
}

.nav-mobile ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-mobile a {
	display: block;
	padding: 0.75rem 0;
	font-size: 1.125rem;
	font-weight: 500;
	color: var(--blue);
	text-decoration: none;
	border-bottom: 1px solid var(--light-blue);
}

.header-scroll-hide {
	transform: translateY(-100%);
}

.header-scroll-show {
	transform: translateY(0);
}

/* ===================== */
/* Hero / Banner         */
/* ===================== */
/* Figma: pt 160px, pb 80px, inner 1440px with px 16px */
.hero {
	position: relative;
	overflow: hidden;
	padding: 7rem 0 3rem;
	background: var(--dark-blue);

	@media screen and (min-width: 961px) {
		padding: 10rem 0 5rem;
	}
}

.hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero .container {
	position: relative;
	z-index: 2;
}

/* Figma: hero inner is flex row, gap between content and form = space-between at 1440px
   Content = 855px (~59%), Form = 448px (~31%), remaining is natural gap (~10%) */
.hero-row {
	display: flex;
	flex-direction: column;
	gap: 2rem;

	@media screen and (min-width: 961px) {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		gap: 2rem;
	}
}

/* Figma: 855 / 1408 (1440 - 32px padding) = ~60.7% */
.hero-content-col {
	@media screen and (min-width: 961px) {
		flex: 0 0 59%;
		max-width: 59%;
	}
}

/* Figma: 448 / 1408 = ~31.8% */
.hero-form-col {
	@media screen and (min-width: 961px) {
		flex: 0 0 31%;
		max-width: 31%;
	}
}

/* Figma: content items have gap: 32px */
.hero-content {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.hero h1 {
	color: var(--white);
}

.hero .lead {
	color: var(--white);
	max-width: 44.75rem;
}

.hero-badge {
	width: 10rem;
	height: auto;
}

/* Hero form card — Figma: p 32px, gap between title group and fields = 48px */
.hero-form-card {
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 2rem;
	border-radius: 1rem;
}

/* Figma: title group has gap 12px between tag and heading */
.hero-form-tag {
	display: inline-block;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	background: var(--dark-blue);
	color: var(--white);
	border-radius: 0.25rem;
}

.hero-form-card h2 {
	margin-top: 0.75rem;
	color: var(--white);
	font-size: 1.5rem;
	line-height: 1.2;

	@media screen and (min-width: 961px) {
		font-size: 1.75rem;
	}
}

/* Figma: 48px gap between title group and form fields */
.hero-form {
	margin-top: 3rem;
}

/* Figma: form fields have gap 24px */
.hero-form .form-group {
	margin-bottom: 1.5rem;
}

.hero-form label {
	position: absolute;
	left: -9999px;
}

/* Figma: px 24, py 16, border white, rounded 5, text 20px */
.hero-form input {
	display: block;
	width: 100%;
	padding: 1rem 1.5rem;
	font-family: var(--font-body);
	font-size: 1.125rem;
	font-weight: 400;
	color: var(--white);
	background: transparent;
	border: 1px solid var(--white);
	border-radius: 0.3125rem;
	outline: none;
	transition: border-color ease 0.5s;

	@media screen and (min-width: 961px) {
		font-size: 1.25rem;
	}
}

.hero-form input::placeholder {
	color: rgba(255, 255, 255, 0.8);
}

.hero-form input:focus {
	border-color: var(--orange);
}

/* ===================== */
/* Stats                 */
/* ===================== */
/* Figma: absolutely positioned overlapping banner and health check.
   Stats sit at ~858px from top, which overlaps both sections.
   Cards have gap 32px, padding 32px each, equal width. */
.stats-section {
	position: relative;
	z-index: 3;
	margin-top: -2rem;
	padding-bottom: 2rem;

	@media screen and (min-width: 961px) {
		margin-top: -4rem;
		padding-bottom: 0;
	}
}

/* Figma: gap between cards = 32px */
.stats-row {
	display: flex;
	flex-direction: column;
	gap: 1rem;

	@media screen and (min-width: 961px) {
		flex-direction: row;
		gap: 2rem;
	}
}

.stat-card {
	padding: 2rem;
	background: var(--white);
	border-radius: 1rem;
	flex: 1;
}

/* Figma: 88px / 88px leading */
.stat-card-number {
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1;

	@media screen and (min-width: 961px) {
		font-size: 5.5rem;
	}
}

/* Figma: 28px bold */
.stat-card-label {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;

	@media screen and (min-width: 961px) {
		font-size: 1.75rem;
	}
}

/* ===================== */
/* Health Check          */
/* ===================== */
/* Figma: pt 240px (accounts for stats overlap), pb 120px */
.health-check {
	padding: 4rem 0;

	@media screen and (min-width: 961px) {
		padding: 15rem 0 7.5rem;
	}
}

/* Figma: bg purple, p 48px, gap 32px, rounded 16 */
.health-check-inner {
	padding: 2rem;
	background: var(--octopus-purple);
	border-radius: 1rem;

	@media screen and (min-width: 961px) {
		padding: 3rem;
	}
}

.health-check-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;

	@media screen and (min-width: 961px) {
		flex-direction: row;
		gap: 2rem;
	}
}

.health-check h2,
.health-check .lead,
.health-check ul {
	color: var(--light-blue);
}

.health-check h2 {
	font-size: 1.75rem;
	line-height: 1.2;

	@media screen and (min-width: 961px) {
		font-size: 3rem;
		line-height: 1.083;
	}
}

.health-check .lead {
	margin-top: 1rem;
}

.health-check ul {
	padding-left: 2.25rem;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.75;
	margin-top: 1rem;

	@media screen and (min-width: 961px) {
		font-size: 1.5rem;
	}
}

.health-check li {
	margin-bottom: 0;
}

/* Donut — Figma: 316px circle, 39.5px border, pink stroke */
.donut {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 12rem;
	height: 12rem;
	flex-shrink: 0;

	@media screen and (min-width: 961px) {
		width: 19.75rem;
		height: 19.75rem;
	}
}

.donut svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.donut-track {
	fill: none;
	stroke: rgba(255, 255, 255, 0.15);
}

.donut-fill {
	fill: none;
	stroke: var(--octopus-pink);
	stroke-linecap: round;
	stroke-dasharray: 0 502;
	transition: stroke-dasharray 1.5s ease-out;
}

.donut.animated .donut-fill {
	stroke-dasharray: 502 502;
}

/* Figma: 63.2px text */
.donut-label {
	position: relative;
	z-index: 2;
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--light-blue);

	@media screen and (min-width: 961px) {
		font-size: 3.95rem;
	}
}

/* ===================== */
/* Content sections      */
/* (About, Cosy, Tenant) */
/* ===================== */
/* Figma: these sections use flex row with gap 119px between image and text columns.
   Content col = 721px (~51%), Image = 568px (~40%), gap = 119px (~8.5%).
   Total = 1408px (container - 32px padding). */
.content-section {
	padding: var(--section-gap) 0;
}

.content-section-dark {
	background: var(--dark-blue);
}

.content-section-row {
	display: flex;
	flex-direction: column;
	gap: 2rem;

	@media screen and (min-width: 961px) {
		flex-direction: row;
		align-items: center;
		gap: var(--col-gap);
	}
}

/* Reverse: image right, text left (About, Tenant Power) */
.content-section-row-reverse {
	@media screen and (min-width: 961px) {
		flex-direction: row-reverse;
	}
}

/* Figma: image col = 568/1408 = ~40% */
.content-section-image {
	overflow: hidden;
	border-radius: 1rem;
	order: -1;

	@media screen and (min-width: 961px) {
		flex: 0 0 40%;
		max-width: 40%;
		order: 0;
	}
}

.content-section-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 568 / 672;
	object-fit: cover;
}

.content-section-image-short img {
	aspect-ratio: 568 / 472;
}

/* Figma: text col = 721/1408 = ~51% — flex-grow handles the rest */
.content-section-text {
	display: flex;
	flex-direction: column;
	gap: 2rem;

	@media screen and (min-width: 961px) {
		flex: 1;
	}
}

.content-section-text .section-badge {
	width: 8rem;
	height: auto;

	@media screen and (min-width: 961px) {
		width: 11.75rem;
	}
}

.content-section-text .lead {
	max-width: 44.75rem;
}

/* Dark section text colours */
.content-section-dark h2,
.content-section-dark .lead {
	color: var(--light-blue);
}

/* Cosy steps */
.cosy-steps {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.cosy-step-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-top: 1rem;

	@media screen and (min-width: 961px) {
		font-size: 1.5rem;
	}
}

.cosy-step-title:first-child {
	margin-top: 0;
}

/* Figma: 16px medium / 20px leading */
.cosy-step-text {
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25;

	@media screen and (min-width: 961px) {
		font-size: 1rem;
	}
}

/* ===================== */
/* Boiler Upgrade Scheme */
/* ===================== */
/* Figma: py 120px, centered text, gap 32px between elements */
.bus-section {
	padding: var(--section-gap) 0;
	text-align: center;
}

.bus-section-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;

	@media screen and (min-width: 961px) {
		gap: 2rem;
	}
}

.bus-section h2 {
	font-size: 1.75rem;
	line-height: 1.2;

	@media screen and (min-width: 961px) {
		font-size: 3rem;
		line-height: 1.083;
	}
}

.bus-section .lead {
	max-width: 44.75rem;
}

/* ===================== */
/* Accreditations        */
/* ===================== */
.accreditations {
	padding-bottom: 2rem;

	@media screen and (min-width: 961px) {
		padding-bottom: 0;
	}
}

/* Figma: px 32, py 48, gap 32, rounded 16 */
.accred-card {
	padding: 2rem;
	background: var(--white);
	border-radius: 1rem;

	@media screen and (min-width: 961px) {
		padding: 3rem 2rem;
	}
}

.accred-card h2 {
	font-size: 1.75rem;
	line-height: 1.2;
	text-align: center;
	margin-bottom: 2rem;

	@media screen and (min-width: 961px) {
		font-size: 3rem;
		line-height: 1.083;
	}
}

/* Figma: logos in a row, gap 32px, centred */
.accred-logos {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;

	@media screen and (min-width: 961px) {
		display: flex;
	}
}

.accred-logos img,
.accred-logos svg {
	height: 4rem;
	width: auto;
	max-width: 10rem;
	object-fit: contain;
}

.accred-slider {
	@media screen and (min-width: 961px) {
		display: none !important;
	}
}

.accred-slider .splide__slide {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 5rem;
}

.accred-slider .splide__slide img,
.accred-slider .splide__slide svg {
	height: 4rem;
	width: auto;
	max-width: 10rem;
	object-fit: contain;
}

/* ===================== */
/* Testimonials          */
/* ===================== */
.testimonials {
	padding: var(--section-gap) 0;
}

.testimonials-header {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 2rem;

	@media screen and (min-width: 961px) {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}
}

.testimonials-header h2 {
	font-size: 1.75rem;
	line-height: 1.2;

	@media screen and (min-width: 961px) {
		font-size: 3rem;
		line-height: 1.083;
		max-width: 28rem;
	}
}

.testimonials-tp-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.125rem;
	font-weight: 500;
	color: var(--dark-blue);
	text-decoration: none;
	white-space: nowrap;
	transition: color ease 0.3s;

	@media screen and (min-width: 961px) {
		font-size: 1.25rem;
	}
}

.testimonials-tp-link:hover {
	color: var(--blue);
}

.testimonials-tp-link svg {
	width: 2rem;
	height: 2rem;
}

/* Figma: 3 cards at 448px each, gap 32px, p 32px, rounded 16 */
.testimonials-grid {
	display: none;

	@media screen and (min-width: 961px) {
		display: flex;
		gap: 2rem;
	}
}

.testimonials-grid .testimonial-card-col {
	flex: 1;
}

.testimonial-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 2rem;
	height: 100%;
	background: var(--white);
	border-radius: 1rem;
}

.testimonial-stars img {
	width: 5.5rem;
	height: auto;
}

/* Figma: 16px medium / 20px leading */
.testimonial-text {
	flex-grow: 1;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.25;
}

.testimonial-author {
	font-size: 1rem;
	font-weight: 700;
}

.testimonial-source {
	font-size: 1rem;
	font-weight: 500;
	opacity: 0.6;
}

.testimonials-slider {
	@media screen and (min-width: 961px) {
		display: none !important;
	}
}

/* ===================== */
/* Footer CTA            */
/* ===================== */
/* Figma: pt 120px, gap 64px between CTA group and contact links, pb 120px */
.footer-cta {
	padding: var(--section-gap) 0;
	background: var(--dark-blue);
	text-align: center;
}

.footer-cta h2 {
	color: var(--light-blue);
}

.footer-cta .lead {
	color: var(--light-blue);
	max-width: 44.75rem;
	margin-left: auto;
	margin-right: auto;
}

.footer-cta-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

/* Figma: gap between CTA group and contact links = 64px */
.footer-contact-links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	margin-top: 2rem;

	@media screen and (min-width: 961px) {
		flex-direction: row;
		justify-content: center;
		gap: 2rem;
		margin-top: 4rem;
	}
}

.footer-contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5625rem;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	font-weight: 500;
	color: var(--light-blue);
	text-decoration: none;
	border: 1px solid rgba(240, 246, 249, 0.5);
	border-radius: 0.5rem;
	transition: border-color ease 0.3s;

	@media screen and (min-width: 961px) {
		font-size: 1.25rem;
	}
}

.footer-contact-link:hover {
	border-color: var(--light-blue);
	color: var(--light-blue);
}

.footer-contact-link svg {
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
}

/* ===================== */
/* Footer bar            */
/* ===================== */
/* Figma: inside dark blue footer, bottom area with brand, copyright, links */
.site-footer-bar {
	padding: 2rem 0 2.5rem;
	background: var(--dark-blue);
	border-top: 1px solid rgba(240, 246, 249, 0.15);
}

.footer-bar-inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;

	@media screen and (min-width: 961px) {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

.footer-bar-brand {
	display: flex;
	align-items: center;
	text-decoration: none;
	gap: 0;
}

.footer-bar-brand-icon {
	width: auto;
	height: 2.5rem;
}

.footer-bar-brand-text {
	font-family: var(--font-logo);
	font-size: 1.29rem;
	line-height: 1;
	color: var(--light-blue);
}

.footer-legal-links {
	display: flex;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-legal-links a {
	font-size: 1rem;
	font-weight: 500;
	color: var(--light-blue);
	text-decoration: none;
}

.footer-copyright {
	font-size: 1rem;
	font-weight: 500;
	color: var(--light-blue);
}

/* ===================== */
/* Reduced motion        */
/* ===================== */
@media (prefers-reduced-motion: reduce) {
	.donut-fill {
		transition: none;
	}

	.a-fade,
	.a-btt,
	.a-rtl,
	.a-ltr,
	.a-scale {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* ===================== */
/* Splide overrides      */
/* ===================== */
.splide__arrow {
	background: var(--dark-blue);
	opacity: 1;
}

.splide__arrow svg {
	fill: var(--white);
}

.splide__pagination__page.is-active {
	background: var(--dark-blue);
}
