/**
 * Armeria 3S — "Armeria" footer style: tricolore band with the logo, highlights row, newsletter,
 * configurable columns (accordions on phones), dark. Loaded after footer.css (classic parts and the
 * shared bottom bar / back-to-top live there). Only transform/opacity/colour motion; reduced motion honoured.
 */

.a3s-footer--armeria {
	--a3s-fa-bg: #231f20; /* brand charcoal, fixed: does not depend on the Elementor kit */
	--a3s-fa-bg-2: #2f2a2b;
	--a3s-fa-text: #ece9e5; /* 13.5:1 on #231f20 */
	--a3s-fa-muted: #bdb8b3; /* 8:1 */
	--a3s-fa-line: rgba(255, 255, 255, .14);
	--a3s-fa-orange: #e95e1b;
	--a3s-fa-accent: #ffde17;
	--a3s-fa-ease: cubic-bezier(.23, 1, .32, 1);
}

/* ---------- Tricolore band: 3 equal stripes, logo centred on the white one ---------- */
.a3s-flag {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: 100%;
	height: clamp(96px, 11vw, 148px);
}

.a3s-flag--big {
	height: clamp(160px, 18vw, 240px);
}

.a3s-flag--big .a3s-flag__logo {
	max-height: 190px;
}

.a3s-flag--line {
	height: 6px;
}

.a3s-flag__s--g {
	background: #009246;
}

.a3s-flag__s--w {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.a3s-flag__s--r {
	background: #ce2b37;
}

.a3s-flag__logo {
	display: block;
	max-width: 88%;
	height: 78%;
	max-height: 115px; /* an uploaded square logo must not blow the band up */
	line-height: 0;
}

.a3s-flag__logo .a3s-flogo__img {
	width: auto;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
}

.a3s-flag__logo:focus-visible {
	outline: 2px solid #231f20;
	outline-offset: 4px;
}

/* ---------- Dark body ---------- */
.a3s-fa {
	background: var(--a3s-fa-bg);
	color: var(--a3s-fa-text);
}

.a3s-fa__inner {
	max-width: var(--a3s-ft-container, 1340px);
	margin: 0 auto;
	padding: clamp(40px, 6vw, 72px) 12px clamp(40px, 5vw, 64px);
}

.a3s-fa a {
	color: inherit;
	text-decoration: none;
	transition: color .15s ease;
}

.a3s-fa a:focus-visible,
.a3s-fa summary:focus-visible {
	outline: 2px solid var(--a3s-fa-accent);
	outline-offset: 3px;
}

@media (hover: hover) {
	.a3s-fa a:hover {
		color: #fff;
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}

.a3s-fa .a3s-footer__title,
.a3s-fa .widget-title {
	margin: 0 0 18px;
	color: #fff;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
}

/* ---------- Highlights row ---------- */
.a3s-fusp {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0 0 40px;
	padding: 0 0 40px;
	border-bottom: 1px solid var(--a3s-fa-line);
	list-style: none;
}

.a3s-fusp__item {
	display: flex;
	align-items: center;
	gap: 14px;
	font-weight: 500;
	line-height: 1.25;
}

.a3s-fusp__item svg {
	flex: none;
	color: var(--a3s-fa-orange);
	stroke-width: 1.5;
}

/* ---------- Newsletter ---------- */
.a3s-fnews {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	align-items: center;
	gap: 28px 56px;
	margin: 0 0 56px;
	padding: clamp(24px, 3.5vw, 40px);
	border-radius: var(--a3s-radius-lg, 4px);
	background: var(--a3s-fa-bg-2);
}

.a3s-fnews__title {
	margin: 0 0 8px;
	color: #fff;
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
	line-height: 1.15;
}

.a3s-fnews__text {
	margin: 0;
	color: var(--a3s-fa-muted);
	max-width: 46ch;
}

/* Marketing plugin form on a dark panel. */
.a3s-fa .a3s-nl {
	max-width: none;
	color: var(--a3s-fa-text);
}

.a3s-fa .a3s-nl__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 12px;
}

.a3s-fa .a3s-nl__fields {
	grid-column: 1;
	grid-row: 1;
}

.a3s-fa .a3s-nl__submit {
	grid-column: 2;
	grid-row: 1;
	align-self: end;
}

.a3s-fa .a3s-nl__lists,
.a3s-fa .a3s-nl__consent,
.a3s-fa .a3s-nl__msg {
	grid-column: 1 / -1;
}

.a3s-fa .a3s-nl__field input {
	border-color: #6d6667;
}

.a3s-fa .a3s-nl__opt,
.a3s-fa .a3s-nl__list-desc {
	color: var(--a3s-fa-muted);
}

/* Lighter form: one list = no group label (kept for screen readers), 48px field + button, tidy consent. */
.a3s-fa .a3s-nl__lists:has(> .a3s-nl__check:only-of-type) > legend {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.a3s-fa .a3s-nl__field input,
.a3s-fa .a3s-nl__submit {
	min-height: 48px;
	border-radius: 4px;
}

.a3s-fa .a3s-nl__consent {
	font-size: .8125rem;
}

.a3s-fa .a3s-nl__list-desc {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.a3s-fa .a3s-nl__req {
	color: #ff9d8a;
}

.a3s-fa .a3s-nl__check input {
	accent-color: var(--a3s-fa-orange);
}

.a3s-fa .a3s-nl__consent a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (hover: hover) {
	.a3s-fa .a3s-nl .a3s-nl__submit:hover {
		background: #fff;
		color: #231f20;
		text-decoration: none;
	}
}

.a3s-fa .a3s-nl__submit {
	background: var(--a3s-fa-orange);
	color: #231f20;
	transition: background-color .15s ease, color .15s ease, transform .16s var(--a3s-fa-ease);
}

.a3s-fa .a3s-nl__submit:active {
	transform: scale(.97);
}

.a3s-fa .a3s-nl__msg.is-ok {
	color: #8fe0a8;
}

.a3s-fa .a3s-nl__msg.is-error {
	color: #ffa3a3;
}

.a3s-fa .a3s-nl input:focus-visible,
.a3s-fa .a3s-nl__submit:focus-visible {
	outline-color: var(--a3s-fa-accent);
}

/* ---------- Columns ---------- */
.a3s-fcols {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

.a3s-fcol {
	flex: 1 1 190px;
	min-width: 0;
}

.a3s-fa .a3s-fcol {
	padding-top: 0; /* footer.css pads the 4th classic column */
}

.a3s-fcol:empty {
	display: none;
}

.a3s-fcol--brand {
	flex: 1.7 1 280px;
}

.a3s-fcol--newsletter {
	flex: 1.7 1 280px;
}

.a3s-fa .a3s-flogo {
	display: inline-block;
	margin-bottom: 22px;
	line-height: 0;
}

.a3s-fa .a3s-flogo img {
	width: auto;
	max-width: 200px;
	height: auto;
	max-height: 110px;
}

.a3s-fabout {
	margin: 0 0 22px;
	color: var(--a3s-fa-muted);
	line-height: 1.65;
	max-width: 42ch;
}

.a3s-fa .a3s-flinks {
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1.5;
}

.a3s-fa .a3s-flinks li + li {
	margin-top: 10px;
}

.a3s-fa .a3s-flinks a {
	color: var(--a3s-fa-muted);
}

@media (hover: hover) {
	.a3s-fa .a3s-flinks a:hover {
		color: #fff;
	}
}

/* Contacts */
.a3s-fa .a3s-contact-list {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.a3s-fa .a3s-contact-list__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 12px;
	padding: 0;
	line-height: 1.55;
}

.a3s-fa .a3s-contact-list__icon {
	display: inline-flex;
	flex: none;
	width: 22px;
	padding-top: 2px;
	color: var(--a3s-fa-orange);
}

.a3s-fa .a3s-contact-list__icon svg {
	width: 20px;
	height: 20px;
}

.a3s-fa .a3s-contact-list__text,
.a3s-fa .a3s-contact-list__text a {
	color: var(--a3s-fa-text);
}

/* Social */
.a3s-fa .a3s-social--footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.a3s-fa .a3s-social--footer a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--a3s-fa-bg-2);
	color: #fff;
	transition: background-color .15s ease, color .15s ease, transform .16s var(--a3s-fa-ease);
}

.a3s-fa .a3s-social--footer a:active {
	transform: scale(.95);
}

@media (hover: hover) {
	.a3s-fa .a3s-social--footer a:hover {
		background: var(--a3s-fa-orange);
		color: #231f20;
		text-decoration: none;
	}
}

.a3s-fa .a3s-social--footer svg {
	width: 22px;
	height: 22px;
}

/* Payment icons / reviews badge inside a column */
.a3s-fa .a3s-payments {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.a3s-fa .a3s-payments img {
	width: 44px;
	height: 28px;
	border-radius: 3px;
	background: #fff;
}

.a3s-fbadge {
	color: var(--a3s-fa-text);
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
	.a3s-fusp {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.a3s-fnews {
		grid-template-columns: 1fr;
	}

	.a3s-fcol,
	.a3s-fcol--brand {
		flex-basis: calc(50% - 20px);
	}
}

/* ---------- Phone: accordions ---------- */
@media (max-width: 767.98px) {
	.a3s-fa__inner {
		padding-right: 16px;
		padding-left: 16px;
	}

	.a3s-fusp {
		gap: 20px 12px;
		margin-bottom: 28px;
		padding-bottom: 28px;
	}

	.a3s-fusp__item {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		font-size: .9375rem;
	}

	.a3s-fa .a3s-nl__form {
		grid-template-columns: 1fr;
	}

	.a3s-fa .a3s-nl__fields,
	.a3s-fa .a3s-nl__submit {
		grid-column: 1;
		grid-row: auto;
	}

	.a3s-fa .a3s-nl__submit {
		align-self: stretch;
	}

	.a3s-fnews {
		margin-bottom: 36px;
	}

	.a3s-fcols {
		display: block;
	}

	.a3s-fcol,
	.a3s-fcol--brand {
		margin: 0;
	}

	.a3s-fcol--brand,
	.a3s-fcol--text,
	.a3s-fcol--newsletter {
		padding-bottom: 28px;
	}

	.a3s-fa .a3s-facc {
		border-top: 1px solid var(--a3s-fa-line);
	}

	.a3s-fcol:last-child .a3s-facc,
	.a3s-fa .a3s-fcol--3 .a3s-facc {
		border-bottom: 0;
	}

	.a3s-fa .a3s-facc__sum {
		min-height: 56px;
		padding: 0 2px;
	}

	.a3s-fa .a3s-facc__sum .a3s-footer__title {
		margin: 0;
		font-size: 1rem;
	}

	.a3s-fa .a3s-facc .a3s-flinks,
	.a3s-fa .a3s-facc .a3s-contact-list {
		padding: 0 2px 20px;
	}

	.a3s-fa .a3s-facc .a3s-flinks li + li {
		margin-top: 0;
	}

	.a3s-fa .a3s-facc .a3s-flinks a {
		display: block;
		padding: 11px 0; /* 44 px touch targets */
	}
}

/* Wide tablet+: accordion summary is a plain heading (footer.css disables pointer events). */
@media (min-width: 768px) {
	.a3s-fa .a3s-facc__body {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.a3s-fa a,
	.a3s-fa .a3s-nl__submit,
	.a3s-fa .a3s-social--footer a {
		transition: color .15s ease, background-color .15s ease;
	}

	.a3s-fa .a3s-nl__submit:active,
	.a3s-fa .a3s-social--footer a:active {
		transform: none;
	}
}

/* Back to top: the default charcoal button would vanish on the dark footer. */
.a3s-to-top {
	background: #e95e1b;
	color: #231f20;
}

@media (hover: hover) {
	.a3s-to-top:hover {
		background: #fff;
		color: #231f20;
	}
}
