/**
 * Custom header & footer styles for Energy Everywhere.
 * Colors and fonts are taken from the homepage design (projekt/projekt.png).
 */

:root {
	--ee-green: #5CC62D;
	--ee-green-light: #8CEC62;
	--ee-blue-tint: #B3E1FB82;
	--ee-blue: #B3E1FB;
	--ee-navy: #073A7A;
	--ee-shadow: #00000029;
	--ee-black: #000000;
	--ee-grey-light: #EBEBEB;
	--ee-grey: #707070;
	--ee-white: #FFFFFF;
	--ee-font-body: 'Inter', Arial, sans-serif;
	--ee-font-display: 'Protest Revolution', cursive;
}

/* Header
-------------------------------------------------- */
.ee-site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background-color: var(--ee-white);
	font-family: var(--ee-font-body);
	transition: box-shadow .2s ease;
}

.ee-site-header.is-scrolled {
	box-shadow: 0 4px 10px var(--ee-shadow);
}

.ee-site-header__inner {
	max-width: 1660px;
	margin-inline: auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.ee-site-header__logo-link {
	display: inline-flex;
	flex-shrink: 0;
}

.ee-site-header__logo,
.ee-site-header__logo-link .custom-logo {
	display: block;
	height: 40px;
	width: auto;
}

.ee-site-header__nav {
	display: flex;
	align-items: center;
	gap: 18px;
}

.ee-site-header__home-icon {
	display: inline-flex;
	color: var(--ee-navy);
}

.ee-nav-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 18px;
}

.ee-nav-menu li {
	position: relative;
	padding-inline-end: 18px;
}

.ee-nav-menu li:not(:last-child)::after {
	content: '|';
	position: absolute;
	right: 0;
	color: var(--ee-grey);
}

.ee-nav-menu a {
	color: var(--ee-black);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.ee-nav-menu a:hover,
.ee-nav-menu a:focus-visible {
	color: var(--ee-green);
}

.ee-site-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.ee-site-header__toggle span {
	display: block;
	height: 2px;
	background-color: var(--ee-navy);
	border-radius: 1px;
}

.ee-site-header__mobile-nav {
	display: none;
}

@media (max-width: 880px) {
	.ee-site-header__nav {
		display: none;
	}

	.ee-site-header__toggle {
		display: flex;
	}

	.ee-site-header__mobile-nav {
		display: block;
		max-height: 0;
		overflow: hidden;
		background-color: var(--ee-white);
		transition: max-height .25s ease;
	}

	.ee-site-header.is-open .ee-site-header__mobile-nav {
		max-height: 400px;
	}

	.ee-site-header__mobile-nav .ee-nav-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 8px 24px 20px;
	}

	.ee-site-header__mobile-nav .ee-nav-menu li {
		width: 100%;
		padding: 10px 0;
		padding-inline-end: 0;
		border-bottom: 1px solid var(--ee-grey-light);
	}

	.ee-site-header__mobile-nav .ee-nav-menu li::after {
		content: none;
	}
}

/* Footer
-------------------------------------------------- */
.ee-site-footer {
	background-color: var(--ee-grey-light);
	font-family: var(--ee-font-body);
	padding: 40px 24px;
}

.ee-site-footer__inner {
	max-width: 1660px;
	margin-inline: auto;
}

.ee-site-footer__brand {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.ee-site-footer__logo {
	width: 125px;
	height: 125px;
	margin-right: 68px;
	flex-shrink: 0;
}

.ee-site-footer__brand-text {
	margin: 0;
	color: var(--ee-black);
	font-size: 15px;
}

.ee-site-footer__brand-text strong {
	color: var(--ee-black);
}

.ee-site-footer__divider {
	height: 1px;
	background-color: var(--ee-grey);
	opacity: .3;
	margin: 28px 0;
}

.ee-site-footer__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
}

.ee-site-footer__columns {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	flex: 1 1 auto;
	padding-left: 193px;
}

.ee-site-footer__column {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 160px;
}

.ee-site-footer__label {
	font-weight: 700;
	color: var(--ee-black);
	font-size: 14px;
}

.ee-site-footer__value,
.ee-site-footer__value a {
	color: var(--ee-black);
	font-size: 14px;
	text-decoration: none;
}

.ee-site-footer__value a:hover {
	text-decoration: underline;
}

.ee-site-footer__socials {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.ee-site-footer__social img {
	display: block;
	width: 40px;
	height: 40px;
}

@media (max-width: 700px) {
	.ee-site-footer__row {
		flex-direction: column;
	}

	.ee-site-footer__columns {
		padding-left: 0;
	}

	.ee-site-footer__socials {
		order: -1;
	}
}
