/* ==========================================================================
   AM Devices - Footer (1400px container)
   ========================================================================== */

.am-footer {
	--am-ft-bg: #0a1a30;
	--am-ft-bg-deep: #07142a;
	--am-ft-accent: #2a9df4;
	--am-ft-line: rgba(255, 255, 255, 0.1);
	--am-ft-soft: rgba(255, 255, 255, 0.78);

	position: relative;
	background: var(--am-ft-bg);
	color: #fff;
	font-size: 15px;
	line-height: 1.5;
}

.am-footer a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s;
}

.am-footer a:hover {
	color: var(--am-ft-accent);
}

.am-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* --------------------------------------------------------------------------
   Brand logos (Products > Brands thumbnails)
   ----------------------------------------------------------------------- */

.am-brands {
	background:
		radial-gradient(ellipse 60% 90% at 100% 0%, rgba(16, 79, 169, 0.07), transparent 70%),
		linear-gradient(180deg, #f6f9fd, #eef3f9);
	color: var(--am-text);
}

.am-brands__inner {
	display: grid;
	grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr);
	gap: 48px;
	align-items: center;
	padding-block: 56px;
}

.am-brands__eyebrow {
	margin: 0 0 8px;
	color: var(--am-primary);
	font-family: var(--am-font-heading);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.am-brands__title {
	margin: 0 0 14px;
	color: var(--am-heading);
	font-family: var(--am-font-heading);
	font-size: clamp(26px, 2.4vw, 34px);
	font-weight: 700;
	line-height: 1.2;
}

.am-brands__title span {
	color: var(--am-ft-accent);
}

.am-brands__text {
	max-width: 440px;
	margin: 0 0 28px;
	color: var(--am-text-soft);
	font-size: 17px;
}

.am-brands__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 22px;
}

.am-brands__badges li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--am-heading);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}

.am-brands__badges .am-icon {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	color: var(--am-primary);
}

@media (min-width: 1300px) {
	.am-brands__badges {
		flex-wrap: nowrap;
		gap: 0;
	}

	.am-brands__badges li + li {
		margin-left: 16px;
		padding-left: 16px;
		border-left: 1px solid var(--am-border);
	}
}

/* Marquee: two lanes scrolling in opposite directions, paused on hover. */
.am-brands__marquee {
	display: grid;
	gap: 14px;
	min-width: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.am-brands__row {
	overflow: hidden;
	padding-block: 6px;
}

.am-brands__lane {
	display: flex;
	gap: 14px;
	width: max-content;
	animation: am-marquee var(--am-marquee-time, 40s) linear infinite;
}

.am-brands__row--reverse .am-brands__lane {
	animation-direction: reverse;
}

.am-brands__marquee:hover .am-brands__lane {
	animation-play-state: paused;
}

@keyframes am-marquee {
	to {
		transform: translateX(calc(-50% - 7px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.am-brands__row {
		overflow-x: auto;
	}

	.am-brands__lane {
		animation: none;
	}
}

.am-footer .am-brands__card {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 200px;
	height: 115px;
	padding: 14px 20px;
	border: 1px solid rgba(16, 79, 169, 0.08);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(10, 26, 48, 0.05);
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.am-footer .am-brands__card::after {
	content: "";
	position: absolute;
	inset: auto 18px 0;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--am-ft-accent);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.am-footer .am-brands__card:hover {
	border-color: rgba(42, 157, 244, 0.45);
	box-shadow: 0 10px 24px rgba(16, 79, 169, 0.12);
	transform: translateY(-3px);
}

.am-footer .am-brands__card:hover::after {
	transform: scaleX(1);
}

/* Fills the card (small uploads scale up), keeping the logo's proportions. */
.am-brands__logo {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 55px;
	object-fit: cover;
}

@media (max-width: 767px) {
	.am-brands__logo {
		max-height: 54px;
	}
}

/* --------------------------------------------------------------------------
   Main columns
   ----------------------------------------------------------------------- */

.am-footer__main {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 40% 60% at 0% 40%, rgba(42, 157, 244, 0.12), transparent 70%),
		linear-gradient(180deg, var(--am-ft-bg-deep), var(--am-ft-bg));
}

.am-footer__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
	padding-block: 64px 56px;
}

.am-footer__col + .am-footer__col {
	padding-left: 40px;
	border-left: 1px solid var(--am-ft-line);
}

/* Brand column */
.am-footer__logo {
	margin: 0 0 22px;
	line-height: 0;
}

.am-footer__logo .custom-logo {
	width: auto;
	max-height: 70px;
}

.am-footer__text {
	max-width: 400px;
	margin: 0 0 28px;
	color: var(--am-ft-soft);
	font-size: 16px;
	line-height: 1.6;
}

.am-footer__features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 100%;
}

.am-footer__features li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding-inline: 6px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
}
/* 
.am-footer__features li:nth-child(2) {
   margin-inline: 10px;
}

.am-footer__features li + li {
	border-left: 1px solid var(--am-ft-line);
} */

.am-footer__features .am-icon {
	width: 32px;
	height: 32px;
	color: var(--am-ft-accent);
}

/* Column titles */
.am-footer__title {
	position: relative;
	margin: 0 0 28px;
	padding-bottom: 14px;
	color: #fff;
	font-family: var(--am-font-heading);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
}

.am-footer__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 38px;
	height: 3px;
	border-radius: 3px;
	background: var(--am-ft-accent);
}

/* Link lists: chevron sits in the li padding, so the link stays inline and wraps naturally. */
.am-footer__links li {
	position: relative;
	padding-left: 20px;
}

.am-footer__links li + li {
	margin-top: 14px;
}

.am-footer__links li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 7px;
	height: 7px;
	border: solid var(--am-ft-accent);
	border-width: 2px 2px 0 0;
	transform: rotate(45deg);
}

/*
 * Underline drawn as a background on the inline link: it follows the text on
 * every line (multi-line links included) and grows from the left on hover.
 */
.am-footer .am-footer__links a,
.am-footer .am-footer__contact a {
	color: var(--am-ft-soft);
	background: linear-gradient(var(--am-ft-accent), var(--am-ft-accent)) 0 100% / 0 1px no-repeat;
	transition: color 0.25s, background-size 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.am-footer .am-footer__links a:hover,
.am-footer .am-footer__links a:focus-visible,
.am-footer .am-footer__contact a:hover,
.am-footer .am-footer__contact a:focus-visible {
	color: #fff;
	background-size: 100% 1px;
}

/* --------------------------------------------------------------------------
   Contact bar (4 equal columns)
   ----------------------------------------------------------------------- */

.am-footer__contact-bar {
	border-top: 1px solid var(--am-ft-line);
}

.am-footer .am-footer__contact {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding-block: 28px;
}

.am-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-inline: 28px;
	font-size: 14px;
}

.am-footer__contact li:first-child {
	padding-left: 0;
}

.am-footer__contact li + li {
	border-left: 1px solid var(--am-ft-line);
}

.am-footer__contact .am-icon {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin-top: 2px;
	color: var(--am-ft-accent);
}

.am-footer__contact strong {
	display: block;
	margin-bottom: 2px;
	font-family: var(--am-font-heading);
	font-size: 15px;
	font-weight: 600;
}

.am-footer__contact span {
	display: block;
	color: var(--am-ft-soft);
}

/* --------------------------------------------------------------------------
   Bottom bar: copyright + payment methods
   ----------------------------------------------------------------------- */

.am-footer__bottom {
	border-top: 1px solid var(--am-ft-line);
	background: var(--am-ft-bg-deep);
}

.am-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding-block: 18px;
}

.am-footer__copy {
	margin: 0;
	color: var(--am-ft-soft);
	font-size: 14px;
}

.am-footer__payments {
	flex: 0 1 380px;
	padding: 9px 18px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	line-height: 0;
}

.am-footer__payments img {
	display: block;
	width: 100%;
	height: auto;
}

/* Back to top */
.am-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--am-primary);
	color: #fff;
	box-shadow: 0 6px 18px rgba(39, 39, 39, 0.25);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.25s, transform 0.25s, visibility 0s linear 0.25s, background-color 0.2s;
}

.am-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.am-to-top:hover {
	background: var(--am-dark);
}

.am-to-top .am-icon {
	width: 20px;
	height: 20px;
}

/* --------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */

@media (max-width: 1199px) {
	.am-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 44px 32px;
	}

	.am-footer__col--brand {
		grid-column: 1 / -1;
	}

	.am-footer__col + .am-footer__col {
		padding-left: 32px;
	}

	.am-footer__col--brand + .am-footer__col {
		padding-left: 0;
		border-left: 0;
	}

	.am-footer .am-footer__contact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 0;
	}

	.am-footer__contact li:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}
}

@media (max-width: 1099px) {
	.am-brands__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.am-brands__text {
		max-width: 620px;
	}
}

@media (max-width: 767px) {
	.am-brands__inner {
		padding-block: 44px;
	}

	.am-footer .am-brands__card {
		width: 160px;
		height: 88px;
	}

	.am-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-block: 48px 40px;
	}

	.am-footer__col + .am-footer__col,
	.am-footer__col--brand + .am-footer__col {
		padding-left: 0;
		border-left: 0;
	}

	.am-footer__bottom-inner {
		flex-direction: column;
		text-align: center;
	}

	.am-footer__payments {
		flex-basis: auto;
		width: min(100%, 380px);
	}
}

@media (max-width: 575px) {
	.am-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.am-footer .am-footer__contact {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.am-footer__contact li,
	.am-footer__contact li + li {
		padding: 0;
		border: 0;
	}
}
