/*
Theme Name: Nargy Solar
Description: Block theme for the Nargy Solar website.
Version: 0.4.8
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: nargy-solar
*/

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

html {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

body {
	margin: 0;
	overflow-x: hidden;
}

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

a {
	color: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

button {
	font: inherit;
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

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

.wp-element-button,
.wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.wp-element-button:hover,
.wp-element-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

.wp-element-button:active,
.wp-block-button__link:active {
	border-color: #000;
	background: #000;
	color: var(--wp--preset--color--base);
	transform: translateY(1px);
}

.nargy-header {
	position: sticky;
	top: 0;
	z-index: 30;
	min-height: 78px;
	border-bottom: 1px solid transparent;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.nargy-header__inner,
.nargy-footer__inner {
	width: min(1110px, calc(100% - 30px));
	max-width: 1110px;
	margin-inline: auto;
}

.nargy-header__inner {
	min-height: 78px;
	gap: 20px;
}

.nargy-header__brand {
	min-width: 0;
	flex: 0 1 auto;
	gap: 12px;
}

.nargy-header__brand .wp-block-site-logo {
	flex: 0 0 auto;
}

.nargy-header__brand .custom-logo {
	width: 110px;
	max-height: 86px;
	object-fit: contain;
	object-position: left center;
}

.nargy-header__brand .wp-block-site-logo + .wp-block-site-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.nargy-header__title,
.nargy-footer__title {
	margin: 0;
}

.nargy-header__title a,
.nargy-footer__title a {
	text-decoration: none;
}

.nargy-nav {
	min-width: 0;
	flex: 1;
	justify-content: flex-end;
}

.nargy-nav .wp-block-navigation__container {
	gap: clamp(3px, 0.8vw, 13px);
}

.nargy-nav .wp-block-navigation-item__content {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	padding: 8px 7px;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(12px, 0.9vw, 16px);
	text-decoration: none;
	white-space: nowrap;
}

.nargy-nav .wp-block-navigation-item__content:hover,
.nargy-nav .wp-block-navigation-item__content:focus-visible {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--accent);
}

.nargy-nav .wp-block-navigation-item__content:active {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

.nargy-nav-link--temporarily-hidden {
	display: none !important;
}

.nargy-nav .nargy-nav__cta > .wp-block-navigation-item__content {
	min-height: 47px;
	padding-inline: 20px;
	border-radius: 999px;
	background: var(--wp--preset--color--brand-solar);
	color: #000;
}

.nargy-nav .nargy-nav__cta > .wp-block-navigation-item__content:hover,
.nargy-nav .nargy-nav__cta > .wp-block-navigation-item__content:focus-visible {
	background: #000;
	color: var(--wp--preset--color--base);
}

.home-main {
	margin-block-start: 0;
}

.home-hero {
	position: relative;
	min-height: 455px;
	display: grid;
	place-items: center;
	overflow: hidden;
	isolation: isolate;
	background: #000;
	color: var(--wp--preset--color--base);
	text-align: center;
}

.home-hero::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(0 0 0 / 17%);
	content: "";
}

.home-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
}

.home-hero .home-hero__media img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.home-hero__content {
	position: relative;
	width: min(1110px, calc(100% - clamp(36px, 13vw, 260px)));
	margin-inline: auto;
	padding-block: 48px;
}

.home-hero__heading {
	margin: 0;
	color: var(--wp--preset--color--base);
	font-size: clamp(42px, 4vw, 68px);
	line-height: 1;
}

.home-hero__second-line {
	display: block;
	font-size: clamp(16px, 4vw, 54px);
	white-space: nowrap;
}

.home-introduction {
	width: min(918px, calc(100% - 32px));
	margin-inline: auto;
	padding-block: clamp(22px, 4vw, 40px);
	text-align: center;
}

.home-introduction > * {
	margin-block-start: 0;
}

.home-introduction__heading {
	margin-bottom: 22px;
	font-size: clamp(30px, 2.5vw, 44px);
}

.home-introduction__copy {
	max-width: 760px;
	margin: 0 auto;
	color: var(--wp--preset--color--muted);
}

.home-solutions {
	padding-block: clamp(56px, 6vw, 76px);
	background: var(--wp--preset--color--surface);
}

.home-solutions > * {
	margin-block-start: 0;
}

.home-solutions__heading {
	margin-bottom: 22px;
	font-size: clamp(30px, 2.5vw, 44px);
}

.home-solutions__copy {
	max-width: 760px;
	margin: 0 auto;
	color: var(--wp--preset--color--muted);
}

.home-solutions__grid {
	width: min(1110px, calc(100% - 32px));
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: clamp(24px, 4vw, 48px);
	margin: clamp(48px, 6vw, 76px) auto 0;
}

.home-solutions .home-solution-card {
	height: 100%;
	min-height: clamp(420px, 46vw, 520px);
	margin-block-start: 0;
	overflow: hidden;
	border-radius: 20px;
	isolation: isolate;
}

.home-solution-card > .wp-block-cover__inner-container {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
}

.home-solution-card .wp-block-cover__image-background,
.home-solution-card .wp-block-cover__background {
	transition: transform 0.35s ease, opacity 0.2s ease;
}

.home-solution-card:hover .wp-block-cover__image-background,
.home-solution-card:focus-within .wp-block-cover__image-background {
	transform: scale(1.035);
}

.home-solution-card:hover .wp-block-cover__background,
.home-solution-card:focus-within .wp-block-cover__background {
	opacity: 0.52;
}

.home-solution-card__content {
	width: min(82%, 420px);
	margin-inline: auto;
	color: var(--wp--preset--color--base);
}

.home-solution-card__heading {
	margin-bottom: 16px;
	color: inherit;
	font-size: clamp(28px, 2.4vw, 42px);
}

.home-solution-card__copy {
	margin: 0;
	color: inherit;
}

.home-about {
	width: min(918px, calc(100% - 32px));
	margin-inline: auto;
	padding-block: clamp(48px, 6vw, 72px);
	text-align: center;
}

.home-about > * {
	margin-block-start: 0;
}

.home-about__heading {
	margin-bottom: 22px;
	font-size: clamp(30px, 2.5vw, 44px);
}

.home-about__copy {
	max-width: 720px;
	margin: 0 auto;
	color: var(--wp--preset--color--muted);
}

.home-about__copy + .home-about__copy {
	margin-top: 18px;
}

.home-benefits {
	padding-block: clamp(48px, 6vw, 72px);
	overflow: hidden;
	background: var(--wp--preset--color--surface);
}

.home-benefits > *,
.home-benefits__row > *,
.home-benefit > * {
	margin-block-start: 0;
}

.home-benefits__heading {
	margin-bottom: 0;
	font-size: clamp(30px, 2.5vw, 44px);
}

.home-benefits__row {
	width: min(1110px, calc(100% - 32px));
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	align-items: stretch;
	justify-items: center;
	gap: clamp(24px, 4vw, 48px);
	margin: clamp(48px, 6vw, 70px) auto 0;
}

.home-benefit {
	width: 100%;
	max-width: 320px;
	min-width: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.home-benefit__media {
	width: clamp(150px, 16vw, 230px);
	height: clamp(150px, 16vw, 230px);
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	margin: 0 auto 22px;
}

.home-benefit .home-benefit__media img {
	width: clamp(150px, 16vw, 230px);
	height: clamp(150px, 16vw, 230px);
	object-fit: contain;
}

.home-benefit__heading {
	max-width: 260px;
	min-height: 2.4em;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
	font-size: 20px;
	line-height: 1.2;
}

.home-benefit__copy {
	max-width: 320px;
	margin: 0 auto;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

.home-system {
	padding-block: clamp(56px, 7vw, 86px);
	text-align: center;
}

.home-system > * {
	margin-block-start: 0;
}

.home-system__heading {
	margin-bottom: 0;
	font-size: clamp(30px, 2.5vw, 44px);
}

.home-system .home-system__diagram {
	width: min(1024px, calc(100% - 32px));
	margin: clamp(36px, 6vw, 60px) auto 0;
}

.home-system__diagram img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.home-system__diagram figcaption {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.home-brands {
	padding-block: clamp(62px, 8vw, 92px);
	background: var(--wp--preset--color--surface);
	text-align: center;
}

.home-brands > *,
.home-brands__grid > *,
.home-brands__item > * {
	margin-block-start: 0;
}

.home-brands__heading {
	margin-bottom: 22px;
	font-size: clamp(30px, 2.5vw, 44px);
}

.home-brands__copy {
	max-width: 760px;
	margin: 0 auto;
	color: var(--wp--preset--color--muted);
}

.home-brands .home-brands__grid {
	--home-brands-gap: clamp(14px, 2.5vw, 28px);
	width: min(1020px, calc(100% - 32px));
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--home-brands-gap);
	margin: clamp(48px, 6vw, 70px) auto 0;
	padding: clamp(18px, 3vw, 32px);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 17px;
	background: #fff;
	list-style: none;
}

.home-brands__item {
	width: calc((100% - (3 * var(--home-brands-gap))) / 4);
	max-width: 220px;
	min-width: 0;
	height: clamp(120px, 14vw, 170px);
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0;
}

.home-brands__item .home-brand {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	margin: 0;
}

.home-brand img {
	width: auto;
	height: auto;
	max-width: var(--home-brand-max-width, 100%);
	max-height: var(--home-brand-max-height, 100%);
	object-fit: contain;
	transform: translate(var(--home-brand-shift-x, 0), var(--home-brand-shift-y, 0));
}

.home-brand--huawei {
	--home-brand-max-height: 70%;
}

.home-brand--jinko {
	--home-brand-max-width: 80%;
	--home-brand-shift-x: 1.1%;
	--home-brand-shift-y: 6.3%;
}

.home-brand--victron {
	--home-brand-max-width: 84%;
	--home-brand-shift-x: 2.5%;
	--home-brand-shift-y: -2.4%;
}

.home-brand--longi,
.home-brand--ja-solar {
	--home-brand-max-width: 62%;
	--home-brand-max-height: 50%;
}

.home-brand--solis {
	--home-brand-max-width: 80%;
	--home-brand-shift-x: -1.5%;
}

.home-brand--sunpower {
	--home-brand-max-width: 71%;
}

.home-quote {
	scroll-margin-top: 94px;
	background: var(--wp--preset--color--surface);
}

.nargy-footer {
	padding: 28px 0 24px;
	background: #000;
	color: var(--wp--preset--color--base);
}

.nargy-footer__inner {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	align-items: center;
	gap: 60px;
}

.nargy-footer__brand {
	align-self: center;
}

.nargy-footer__title {
	font-size: 24px;
}

.nargy-footer__tagline {
	margin: 8px 0 0;
	color: #d8d8d8;
}

.nargy-footer__nav .wp-block-navigation__container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px 32px;
}

.nargy-footer__nav .wp-block-navigation-item__content {
	min-height: 30px;
	display: flex;
	align-items: center;
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.nargy-footer__nav .wp-block-navigation-item__content:hover,
.nargy-footer__nav .wp-block-navigation-item__content:focus-visible {
	background: var(--wp--preset--color--base);
	color: #000;
}

.nargy-footer__nav .wp-block-navigation-item__content:active {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

@media (max-width: 1100px) {
	.nargy-header,
	.nargy-header__inner {
		min-height: 70px;
	}

	.nargy-header__brand .custom-logo {
		width: 145px;
	}

	.home-hero {
		min-height: 460px;
	}

	.home-brands__item {
		width: calc((100% - (2 * var(--home-brands-gap))) / 3);
	}

	.nargy-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.nargy-nav .wp-block-navigation__responsive-container-open {
		display: flex;
		margin-left: auto;
		color: var(--wp--preset--color--accent);
	}

	.nargy-nav .wp-block-navigation__responsive-container.is-menu-open {
		padding: 24px;
		background: var(--wp--preset--color--base);
		color: var(--wp--preset--color--contrast);
	}

	.nargy-nav .is-menu-open .wp-block-navigation__responsive-container-content,
	.nargy-nav .is-menu-open .wp-block-navigation__container {
		width: 100%;
		align-items: stretch;
		gap: 0;
	}

	.nargy-nav .is-menu-open .wp-block-navigation-item__content {
		width: 100%;
		min-height: 48px;
		border-bottom: 1px solid var(--wp--preset--color--border);
		font-size: 16px;
	}

	.nargy-nav .is-menu-open .nargy-nav__cta > .wp-block-navigation-item__content {
		width: auto;
		margin-top: 12px;
		border-bottom: 0;
	}
}

@media (min-width: 1101px) {
	.nargy-nav .wp-block-navigation__responsive-container-open {
		display: none;
	}

	.nargy-nav .wp-block-navigation__responsive-container {
		display: block;
		position: relative;
		width: 100%;
		z-index: auto;
		background: inherit;
	}
}

@media (max-width: 700px) {
	body {
		font-size: 15px;
	}

	.nargy-header__inner,
	.nargy-footer__inner {
		width: calc(100% - 32px);
	}

	.home-hero {
		min-height: 380px;
	}

	.home-hero__content {
		width: calc(100% - 40px);
	}

	.home-hero__heading {
		font-size: 35px;
	}

	.home-solutions__grid {
		grid-template-columns: 1fr;
	}

	.home-solutions .home-solution-card {
		min-height: 420px;
	}

	.home-benefits__row {
		display: flex;
		align-items: stretch;
		gap: 14px;
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		scroll-snap-type: x mandatory;
		padding-bottom: 10px;
	}

	.home-benefit {
		max-width: none;
		height: auto;
		flex: 0 0 calc(50% - 7px);
		scroll-snap-align: start;
	}

	.home-brands__item {
		width: calc((100% - var(--home-brands-gap)) / 2);
		height: clamp(110px, 28vw, 160px);
	}

	.nargy-footer__inner {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.nargy-footer__nav .wp-block-navigation__container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px 20px;
	}
}

@media (max-width: 430px) {
	.home-hero {
		min-height: 350px;
	}

	.home-hero__heading {
		font-size: 31px;
	}

	.home-benefit {
		flex-basis: 78%;
	}

	.home-brands .home-brands__grid {
		padding-inline: 14px;
	}

	.home-brands__item {
		width: 100%;
		max-width: 240px;
		height: 130px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
