/* 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 {
	margin: 0;
	font-family: var(--font-body);
	background: var(--light-blue);
	color: var(--dark-blue);
}

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

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

.skip-link {
	position: absolute;
	top: 0;
	left: -9999px;
	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;
}

h2 {
	font-size: 2rem;
	line-height: 1.15;
}

h3 {
	font-size: 1.75rem;
	line-height: 1.2;
}

h4 {
	font-size: 1.25rem;
	line-height: 1;
}

.lead {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.5;
}

.text-small {
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.25;
}

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

	h2 {
		font-size: 4rem;
		line-height: 1.125;
	}

	h3 {
		font-size: 3rem;
		line-height: 1.083;
	}

	h4 {
		font-size: 1.75rem;
	}

	.lead {
		font-size: 1.5rem;
	}
}


/* ============================================================
   Buttons
   ============================================================ */

/* Add shape/layout to Grilla's .btn (which only sets user-select: none) */
.btn {
	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;
	white-space: nowrap;
	text-decoration: none;
	border: none;
	border-radius: 2.5rem;
	cursor: pointer;
	transition: background ease 0.5s;
}

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

.btn-cta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2.75rem;
	background: #163A66;
}

/* Light blue variant for dark-background sections */
.btn-cta-light {
	background: var(--light-blue);
	color: var(--dark-blue) !important;
}

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


/* ============================================================
   Header & 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) {
	.site-header {
		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;
	gap: 0;
	text-decoration: none;
}

.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: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.nav-links li {
	display: flex;
}

.nav-links a {
	display: flex;
	align-items: center;
	padding: 0.5rem 1.25rem;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--blue);
	transition: color ease 0.3s;
	border-radius: 2rem;
}

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

/* Override Grilla's body.menu-open scroll lock — we use a simple dropdown, not a full-screen overlay */
body.menu-open {
	overflow: auto !important;
	position: static !important;
}

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

/* Neutralise any Grilla pseudo-element burger that might apply */
.nav-toggle::before,
.nav-toggle::after {
	display: none !important;
	content: none !important;
}

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

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

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

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

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

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

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

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

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

.nav-mobile li {
	display: block;
	margin: 0;
}

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

.nav-mobile a:active {
	color: var(--dark-blue);
}

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

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


/* ============================================================
   Hero
   ============================================================ */

.hero {
	position: relative;
	overflow: hidden;
	padding: 10rem 0 7rem;
	background: var(--dark-blue);
}

@media screen and (min-width: 961px) {
	.hero {
		padding: 12rem 0 9rem;
	}
}

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

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

.hero-content {
	align-items: flex-start;
	gap: 2rem;
}

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

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

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

.hero-form-card {
	padding: 2rem;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.4);
	border-radius: 1rem;
}

.hero-form-tag {
	display: inline-block;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	background: var(--dark-blue);
	border-radius: 0.25rem;
	color: var(--white);
}

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

@media screen and (min-width: 961px) {
	.hero-form-card h2 {
		font-size: 1.75rem;
	}
}

.hero-form {
	margin-top: 3rem;
}

.hero-form .form-group {
	margin-bottom: 1.5rem;
}

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

.hero-form input {
	display: block;
	width: 100%;
	padding: 1rem 1.5rem;
	font-family: var(--font-body);
	font-size: 1.125rem;
	font-weight: 400;
	background: transparent;
	border: 1px solid var(--white);
	border-radius: 0.3125rem;
	outline: none;
	color: var(--white);
	transition: border-color ease 0.5s;
}

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

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

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

/* Error state on form group */
.form-group--error input {
	border-color: #e53935;
	background: rgba(229, 57, 53, 0.08);
}

.form-group--error::after {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.8125rem;
	color: #ffcdd2;
	content: "This field is required.";
}

.form-group--error:has(input[type="email"])::after {
	content: "Please enter a valid email address.";
}

/* Success / error status message */
.form-status {
	display: none;
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
}

.form-status--success {
	display: block;
	background: rgba(46, 213, 115, 0.15);
	color: #2ed573;
	border: 1px solid rgba(46, 213, 115, 0.3);
}

.form-status--error {
	display: block;
	background: rgba(229, 57, 53, 0.15);
	color: #ffcdd2;
	border: 1px solid rgba(229, 57, 53, 0.3);
}

/* Honeypot — invisible to real users */
.form-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* Disabled submit state */
.btn[disabled] {
	opacity: 0.65;
	cursor: not-allowed;
}


/* ============================================================
   Stats
   ============================================================ */

.stats-section {
	position: relative;
	z-index: 3;
	margin-top: -2rem;
	padding-bottom: 2rem;
}

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

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

.stat-card-number {
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1;
}

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

.stat-card-label {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
}

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


/* ============================================================
   Health Check
   ============================================================ */

.health-check {
	padding: 4rem 0;
}

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

.health-check-inner {
	padding: 2rem;
	background: var(--octopus-purple);
	border-radius: 1rem;
}

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

.health-check-row {
	align-items: center;
	gap: 2rem;
}

@media screen and (min-width: 961px) {
	.health-check-row {
		flex-direction: row;
	}
}

.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) {
	.health-check h2 {
		font-size: 3rem;
		line-height: 1.083;
	}
}

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

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

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

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

.donut {
	position: relative;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 12rem;
	height: 12rem;
}

@media screen and (min-width: 961px) {
	.donut {
		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;
}

.donut-label {
	position: relative;
	z-index: 2;
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--light-blue);
}

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


/* ============================================================
   Content Sections
   ============================================================ */

.content-section {
	padding: var(--section-gap) 0;
}

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

.content-section-image {
	overflow: hidden;
	border-radius: 1rem;
}

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

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

.content-section-text {
	align-items: flex-start;
	gap: 2rem;
}

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

@media screen and (min-width: 961px) {
	.content-section-text .section-badge {
		width: 11.75rem;
	}
}

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

.content-section-dark h2,
.content-section-dark .lead {
	color: var(--light-blue);
}

.cosy-steps {
	gap: 0;
}

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

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

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

.cosy-step-text {
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25;
}

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


/* ============================================================
   Boiler Upgrade Scheme
   ============================================================ */

.bus-section {
	padding: var(--section-gap) 0;
	text-align: center;
}

.bus-section-inner {
	align-items: center;
	gap: 1rem;
}

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

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

@media screen and (min-width: 961px) {
	.bus-section h2 {
		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) {
	.accreditations {
		padding-bottom: 0;
	}
}

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

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

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

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

.accred-logos {
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem;
}

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

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

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


/* ============================================================
   Testimonials
   ============================================================ */

.testimonials {
	padding: var(--section-gap) 0;
}

.testimonials-header {
	gap: 1rem;
	margin-bottom: 2rem;
}

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

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

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

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

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

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

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

.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 {
	opacity: 0.6;
	font-size: 1rem;
	font-weight: 500;
	color: var(--dark-blue);
}


/* ============================================================
   Footer CTA
   ============================================================ */

.footer-cta {
	padding: var(--section-gap) 0;
	text-align: center;
	background: var(--dark-blue);
}

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

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

.footer-cta-group {
	align-items: center;
	gap: 2rem;
}

.footer-contact-links {
	align-items: center;
	gap: 1rem;
	margin-top: 2rem;
}

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

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

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

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

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


/* ============================================================
   Footer Bar
   ============================================================ */

.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 {
	align-items: center;
	gap: 1rem;
}

@media screen and (min-width: 961px) {
	.footer-bar-inner {
		flex-direction: row;
		justify-content: space-between;
	}
}

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

.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 {
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

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

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


/* ============================================================
   Hero load animations
   ============================================================ */

.hero-anim-content {
	opacity: 0;
	transform: translateY(1.5rem);
	animation: heroFadeUp 0.8s ease forwards 0.2s;
}

.hero-anim-form {
	opacity: 0;
	transform: translateY(1.5rem);
	animation: heroFadeUp 0.8s ease forwards 0.5s;
}

@keyframes heroFadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}




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

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


/* ============================================================
   Footer bar link
   ============================================================ */

.footer-copyright a {
	color: var(--light-blue);
	text-decoration: underline;
}

.footer-copyright a:hover {
	opacity: 0.75;
}


/* ============================================================
   Splide overrides
   ============================================================ */

.splide__arrow {
	opacity: 1;
	background: var(--dark-blue);
}

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

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


/* ============================================================
   Grilla overrides
   ============================================================ */

/* Header background — must be transparent so white nav pill shows through */
.site-header {
	background-color: transparent !important;
}

/* Remove body padding-top Grilla.js injects — hero fills from viewport top */
body {
	padding-top: 0 !important;
}
