/**
 * Talianos Footer widget (inc/elementor/class-ts-footer-widget.php).
 * Colours, width and fonts are CSS variables / Elementor typography controls;
 * the values here are the design defaults.
 */

.ts-footer {
	--ts-ft-line: rgba(255, 255, 255, 0.09);
	--ts-ft-fg: #efe8df;
	--ts-ft-muted: #a99b8c;
	--ts-ft-heading: #ffffff;
	--ts-ft-accent: #e3a84c;
	--ts-ft-on-accent: #231206;
	--ts-ft-sale: #e23b3b;

	/* Background, outer padding and width come from the Elementor section. */
	background: transparent;
	color: var(--ts-ft-fg);
	font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

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

.ts-footer li {
	margin: 0;
	padding: 0;
}

.ts-footer a {
	text-decoration: none;
	box-shadow: none;
}

/* Fills the section unless a width is set on the widget. (.ts-footer prefix outranks the list reset.) */
.ts-footer .ts-footer__wrap {
	width: 100%;
	max-width: var(--ts-ft-width, none);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--ts-ft-gutter, 0);
	padding-right: var(--ts-ft-gutter, 0);
}

.ts-footer__icon {
	flex: none;
	width: 19px;
	height: 19px;
	stroke: var(--ts-ft-accent);
}

/* ---------- Main layout (desktop: brand + 3 link cols) ---------- */
.ts-footer__main {
	display: grid;
	grid-template-columns: 1.7fr 3fr;
	gap: 40px;
	padding-top: 52px;
	padding-bottom: 46px;
	align-items: start;
}

.ts-footer__brand {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Real grid box (avoid display:contents — it breaks Elementor editor). */
.ts-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	min-width: 0;
}

.ts-footer__brand-intro {
	min-width: 0;
}

.ts-footer__brand-aside {
	min-width: 0;
}

.ts-footer__brand-mark {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	color: var(--ts-ft-fg);
}

a.ts-footer__brand-mark:hover {
	color: var(--ts-ft-fg);
}

.ts-footer__logo-mark {
	flex: none;
	width: 34px;
	height: 34px;
	fill: none;
	stroke: var(--ts-ft-accent);
	stroke-width: 2.4;
}

.ts-footer__logo-img {
	display: block;
	max-width: 180px;
	max-height: 56px;
	width: auto;
	height: auto;
}

.ts-footer__blurb {
	max-width: 38ch;
	margin: 0 0 20px;
	color: var(--ts-ft-muted);
	font-size: 14.5px;
	line-height: 1.6;
}

.ts-footer .ts-footer__contact {
	display: grid;
	gap: 11px;
	margin-bottom: 20px;
}

.ts-footer__contact li {
	display: flex;
	align-items: center;
	gap: 11px;
	color: var(--ts-ft-fg);
	font-size: 14.5px;
}

.ts-footer__contact .ts-footer__icon {
	width: var(--ts-ft-icon-size, 18px);
	height: var(--ts-ft-icon-size, 18px);
}

/* Icons chosen with the Elementor icon picker (font icons or uploaded SVGs). */
.ts-footer__icon--picked {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	stroke: none;
	color: var(--ts-ft-accent);
	font-size: var(--ts-ft-icon-size, 18px);
	line-height: 1;
}

.ts-footer__icon--picked i {
	font-size: inherit;
	color: inherit;
}

.ts-footer__icon--picked svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.ts-footer__contact-link {
	color: inherit;
}

.ts-footer__contact-link:hover {
	color: var(--ts-ft-accent);
}

.ts-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ts-footer__social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--ts-ft-line);
	border-radius: 50%;
	color: var(--ts-ft-fg);
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ts-footer__social a:hover,
.ts-footer__social a:focus-visible {
	background: var(--ts-ft-accent);
	border-color: var(--ts-ft-accent);
	color: var(--ts-ft-on-accent);
}

.ts-footer__social svg {
	width: 18px;
	height: 18px;
}

.ts-footer__col-title {
	margin: 2px 0 18px;
	padding: 0;
	border: 0;
	color: var(--ts-ft-heading);
	font-family: "Barlow Semi Condensed", sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ts-footer__links {
	display: grid;
	gap: 11px;
}

.ts-footer__links a {
	display: inline-block;
	color: var(--ts-ft-muted);
	font-size: 14.5px;
	line-height: 1.5;
	transition: color 0.16s ease, transform 0.16s ease;
}

.ts-footer__links a:hover {
	color: var(--ts-ft-accent);
	transform: translateX(3px);
}

.ts-footer a:focus-visible {
	outline: 2px solid var(--ts-ft-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

.ts-footer__badge {
	display: inline-block;
	margin-left: 7px;
	padding: 1px 6px;
	border-radius: 4px;
	background: var(--ts-ft-sale);
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.03em;
	vertical-align: middle;
}

/* ---------- Bottom bar ---------- */
.ts-footer__band--bottom {
	border-top: 1px solid var(--ts-ft-line);
}

.ts-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding-top: 22px;
	padding-bottom: 22px;
	text-align: center;
}

.ts-footer__copy {
	color: var(--ts-ft-muted);
	font-size: 13.5px;
	text-align: center;
	width: 100%;
}

.ts-footer__copy strong {
	color: var(--ts-ft-accent);
	font-weight: 600;
}

.ts-footer__copy a {
	color: inherit;
	text-decoration: underline;
}

/* ---------- Tablet (matches sample: brand 50/50, 3 link cols, centered copyright) ---------- */
@media (max-width: 1024px) and (min-width: 561px) {
	.ts-footer__main {
		display: flex;
		flex-direction: column;
		gap: 40px;
		padding-top: 44px;
		padding-bottom: 40px;
	}

	.ts-footer__brand {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 28px 34px;
		align-items: start;
	}

	.ts-footer__brand-intro {
		grid-column: 1;
	}

	.ts-footer__brand-aside {
		grid-column: 2;
		justify-self: stretch;
	}

	.ts-footer__blurb {
		max-width: none;
		margin-bottom: 0;
	}

	.ts-footer .ts-footer__contact {
		margin-bottom: 18px;
	}

	.ts-footer__cols {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		gap: 34px;
		width: 100%;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
	.ts-footer__main {
		display: flex;
		flex-direction: column;
		gap: 34px;
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.ts-footer__brand {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.ts-footer__blurb {
		max-width: none;
	}

	.ts-footer__cols {
		display: grid;
		grid-template-columns: 1fr;
		gap: 34px;
		width: 100%;
	}

	.ts-footer__bottom {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ts-footer * {
		transition: none !important;
	}

	.ts-footer__links a:hover {
		transform: none;
	}
}
