/*==================================================
EVER THEME
Footer
Version 2.0.0
==================================================*/

/* FOOTER
==================================================*/

.ever-footer {
	position: relative;

	margin-top: var(--space-10);

	overflow: hidden;

	color: var(--color-text);
	background: var(--color-secondary);
}

/* DECORATION
==================================================*/

.ever-footer::before {
	content: "";

	position: absolute;
	top: -220px;
	right: -160px;

	width: 480px;
	height: 480px;

	border: 1px solid var(--color-primary-light);
	border-radius: 50%;

	opacity: 0.5;
}

.ever-footer::after {
	content: "";

	position: absolute;
	bottom: -280px;
	left: -220px;

	width: 520px;
	height: 520px;

	background: var(--color-primary-light);

	border-radius: 50%;

	opacity: 0.12;
}

/* INNER
==================================================*/

.ever-footer__inner {
	position: relative;
	z-index: 2;

	width: min(var(--container), calc(100% - 80px));
	margin-inline: auto;
}

/* MAIN
==================================================*/

.ever-footer__main {
	display: grid;
	grid-template-columns:
		minmax(280px, 1.4fr)
		repeat(3, minmax(150px, 0.7fr));
	gap: var(--space-8);

	padding-block: var(--space-9);
}

/* BRAND
==================================================*/

.ever-footer__brand {
	max-width: 420px;
}

.ever-footer__logo {
	display: inline-flex;

	margin-bottom: var(--space-5);

	color: var(--color-primary-dark);
	text-decoration: none;
}

.ever-footer__logo img {
	display: block;

	width: auto;
	max-width: 210px;
	height: auto;
	max-height: 100px;
}

.ever-footer__site-name {
	font-family: var(--font-heading);
	font-size: 34px;
	line-height: 1;

	color: var(--color-primary-dark);
}

.ever-footer__description {
	max-width: 390px;

	margin: 0;

	font-size: 16px;
	line-height: var(--lh-relaxed);

	color: var(--color-text-light);
}

/* COLUMNS
==================================================*/

.ever-footer__column {
	min-width: 0;
}

.ever-footer__title {
	margin: 0 0 var(--space-5);

	font-family: var(--font-body);
	font-size: 12px;
	font-weight: var(--fw-medium);
	line-height: 1.3;

	letter-spacing: 0.16em;
	text-transform: uppercase;

	color: var(--color-primary-dark);
}

/* MENU
==================================================*/

.ever-footer__menu {
	margin: 0;
	padding: 0;

	list-style: none;
}

.ever-footer__menu li + li {
	margin-top: var(--space-3);
}

.ever-footer__menu a {
	position: relative;

	display: inline-flex;

	font-size: 15px;
	line-height: 1.5;

	color: var(--color-text-light);
	text-decoration: none;

	transition:
		color var(--transition-fast),
		transform var(--transition-fast);
}

.ever-footer__menu a:hover {
	color: var(--color-primary);

	transform: translateX(4px);
}

/* CONTACT
==================================================*/

.ever-footer__contact {
	margin: 0;
	padding: 0;

	list-style: none;
}

.ever-footer__contact li + li {
	margin-top: var(--space-3);
}

.ever-footer__contact a,
.ever-footer__contact span {
	font-size: 15px;
	line-height: 1.6;

	color: var(--color-text-light);
	text-decoration: none;
}

.ever-footer__contact a {
	transition: color var(--transition-fast);
}

.ever-footer__contact a:hover {
	color: var(--color-primary);
}

/* SOCIAL
==================================================*/

.ever-footer__social {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-3);

	margin-top: var(--space-6);
}

.ever-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 46px;
	height: 46px;

	color: var(--color-primary-dark);
	background: rgba(255, 255, 255, 0.55);

	border: 1px solid var(--color-border);
	border-radius: var(--radius-round);

	text-decoration: none;

	transition:
		color var(--transition),
		background var(--transition),
		border-color var(--transition),
		transform var(--transition);
}

.ever-footer__social-link:hover {
	color: var(--color-surface);
	background: var(--color-primary);

	border-color: var(--color-primary);

	transform: translateY(-3px);
}

.ever-footer__social-link svg {
	width: 19px;
	height: 19px;

	fill: currentColor;
}

/* NEWSLETTER
==================================================*/

.ever-footer__newsletter {
	margin-top: var(--space-6);
}

.ever-footer__newsletter-text {
	margin-bottom: var(--space-4);

	font-size: 14px;
	line-height: var(--lh-normal);

	color: var(--color-text-light);
}

.ever-footer__newsletter-form {
	position: relative;

	display: flex;
	align-items: center;
}

.ever-footer__newsletter-form input[type="email"] {
	width: 100%;
	min-height: 52px;

	padding:
		13px
		58px
		13px
		18px;

	font-family: var(--font-body);
	font-size: 14px;

	color: var(--color-text);
	background: rgba(255, 255, 255, 0.65);

	border: 1px solid var(--color-border);
	border-radius: var(--radius-round);
}

.ever-footer__newsletter-form input[type="email"]:focus {
	outline: none;

	border-color: var(--color-primary);

	box-shadow:
		0 0 0 3px rgba(141, 119, 182, 0.12);
}

.ever-footer__newsletter-form button {
	position: absolute;
	top: 50%;
	right: 5px;

	width: 42px;
	height: 42px;
	min-height: 0;
	padding: 0;

	border-radius: var(--radius-round);

	transform: translateY(-50%);
}

.ever-footer__newsletter-form button:hover {
	transform:
		translateY(-50%)
		scale(1.03);
}

/* BOTTOM
==================================================*/

.ever-footer__bottom {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-5);

	padding-block: var(--space-5);

	border-top: 1px solid var(--color-border);
}

/* COPYRIGHT
==================================================*/

.ever-footer__copyright {
	margin: 0;

	font-size: 13px;

	color: var(--color-text-light);
}

/* LEGAL MENU
==================================================*/

.ever-footer__legal {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-4);

	margin: 0;
	padding: 0;

	list-style: none;
}

.ever-footer__legal a {
	font-size: 13px;

	color: var(--color-text-light);
	text-decoration: none;

	transition: color var(--transition-fast);
}

.ever-footer__legal a:hover {
	color: var(--color-primary);
}

/* BACK TO TOP
==================================================*/

.ever-back-to-top {
	position: fixed;
	right: var(--space-5);
	bottom: var(--space-5);
	z-index: var(--z-fixed);

	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 50px;
	height: 50px;

	padding: 0;

	color: var(--color-surface);
	background: var(--color-primary);

	border: 1px solid var(--color-primary);
	border-radius: var(--radius-round);

	box-shadow: var(--shadow-sm);

	opacity: 0;
	visibility: hidden;

	transform: translateY(15px);

	cursor: pointer;

	transition:
		opacity var(--transition),
		visibility var(--transition),
		transform var(--transition),
		background var(--transition);
}

.ever-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;

	transform: translateY(0);
}

.ever-back-to-top:hover {
	background: var(--color-primary-dark);

	transform: translateY(-3px);
}

.ever-back-to-top svg {
	width: 18px;
	height: 18px;

	fill: currentColor;
}

/* FOOTER WITHOUT TOP MARGIN
==================================================*/

body.ever-no-footer-margin .ever-footer,
.ever-footer--flush {
	margin-top: 0;
}

/* RESPONSIVE
==================================================*/

@media (max-width: 1100px) {

	.ever-footer__main {
		grid-template-columns:
			minmax(260px, 1.2fr)
			repeat(2, minmax(160px, 0.8fr));
	}

	.ever-footer__column:last-child {
		grid-column: 2 / -1;
	}

}

/* TABLET
==================================================*/

@media (max-width: 768px) {

	.ever-footer {
		margin-top: var(--space-9);
	}

	.ever-footer__inner {
		width: calc(100% - 40px);
	}

	.ever-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-7) var(--space-5);

		padding-block: var(--space-8);
	}

	.ever-footer__brand {
		grid-column: 1 / -1;

		max-width: 520px;
	}

	.ever-footer__column:last-child {
		grid-column: auto;
	}

	.ever-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}

}

/* MOBILE
==================================================*/

@media (max-width: 480px) {

	.ever-footer__inner {
		width: calc(100% - 32px);
	}

	.ever-footer__main {
		grid-template-columns: 1fr;
		gap: var(--space-7);

		padding-block: var(--space-7);
	}

	.ever-footer__brand,
	.ever-footer__column:last-child {
		grid-column: auto;
	}

	.ever-footer__logo img {
		max-width: 180px;
	}

	.ever-footer__site-name {
		font-size: 30px;
	}

	.ever-footer__bottom {
		padding-block: var(--space-5);
	}

	.ever-footer__legal {
		align-items: flex-start;
		flex-direction: column;
		gap: var(--space-2);
	}

	.ever-back-to-top {
		right: var(--space-4);
		bottom: var(--space-4);

		width: 46px;
		height: 46px;
	}

}
