/* ==========================================================================
   Amine Phone — footer
   Turns the theme's centred stack (logo → menu → social) into
   brand column + link columns + contact column.
   Colours come from the theme's Customizer footer settings
   (--footer-bg, --footer-text, --footer-link).
   ========================================================================== */

.site-footer {
	--aph-footer-line: color-mix(in srgb, var(--footer-text, #333) 12%, transparent);
}

.site-footer .footer-stack {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) 4fr;
	grid-template-areas:
		"logo menu"
		"social menu";
	align-items: start;
	gap: 22px 56px;
	max-width: 1388px;
	margin-inline: auto;
	padding: 64px 20px 48px !important;
	text-align: start;
}

.site-footer .footer-logo {
	grid-area: logo;
	display: block;
}

.site-footer .footer-social {
	grid-area: social;
	justify-content: flex-start;
}

.site-footer .footer-menu {
	grid-area: menu;
	display: grid;
	grid-template-columns: 3fr 1.3fr;
	gap: 40px;
}

/* Top-level items are column titles, their sub-menus the links. */
.site-footer .footer-nav-menu {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: 32px 40px;
	justify-content: stretch;
}

.site-footer .footer-nav-menu > li > a,
.aph-footer-contact__title {
	display: block;
	margin: 0 0 16px;
	color: var(--footer-text, #333);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .02em;
}

.site-footer .footer-nav-menu .sub-menu {
	display: grid;
	gap: 11px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .footer-menu .sub-menu a,
.aph-footer-contact a {
	color: var(--footer-link, #555);
	font-size: 14px;
	text-decoration: none;
	transition: color .2s, padding-inline-start .25s;
}

.site-footer .footer-menu .sub-menu a:hover,
.aph-footer-contact a:hover {
	color: var(--primary-color, #f15502);
	opacity: 1;
	padding-inline-start: 4px;
}

.aph-footer-contact__about {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.6;
}

.aph-footer-contact__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-size: 14px;
	list-style: none;
}

.site-footer .footer-bottom {
	border-top: 1px solid var(--aph-footer-line);
}

.site-footer .footer-bottom__inner {
	max-width: 1388px;
	margin-inline: auto;
}

.aph-footer-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.aph-footer-badges span {
	padding: 5px 12px;
	border: 1px solid var(--aph-footer-line);
	border-radius: 999px;
	font-size: 12px;
	white-space: nowrap;
}

/* Store details block used on the legal pages. */
.aph-store-details {
	padding: 18px 22px;
	border-radius: var(--theme-radius, 14px);
	background: #f6f6f8;
	list-style: none;
}

.aph-store-details li + li {
	margin-top: 6px;
}

@media (max-width: 1024px) {
	.site-footer .footer-stack {
		grid-template-columns: 1fr;
		grid-template-areas:
			"logo"
			"menu"
			"social";
	}
}

@media (max-width: 768px) {
	.site-footer .footer-stack {
		padding: 48px 20px 36px !important;
		gap: 28px;
	}

	.site-footer .footer-logo {
		justify-content: flex-start;
	}

	.site-footer .footer-menu {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.site-footer .footer-nav-menu {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}

	.site-footer .footer-bottom__inner {
		align-items: flex-start;
		text-align: start;
	}
}
