/*
 * Footer (Main.dc.html desktop, HomeMobile.dc.html phone): forest band, logo on a white tile, tagline in Caveat,
 * Instagram, Shop / Help / Get in touch, payment pills, legal links. Bottom padding leaves room for the WhatsApp button.
 */

body .dolphin-footer > *,
body .dolphin-footer__inner > *,
body .dolphin-footer__bottom > * {
	margin-block: 0;
}

body .dolphin-footer {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--cream);
}

body .dolphin-footer a {
	color: var(--wp--preset--color--cream);
}

body .dolphin-footer a:hover {
	color: var(--wp--preset--color--white);
}

body .dolphin-footer__inner {
	box-sizing: border-box;
	max-width: var(--dolphin-container);
	margin-inline: auto;
	padding: 32px var(--dolphin-gutter) 88px;
}

/* Phones: logo + tagline, then Shop | Help, Get in touch, Instagram (HomeMobile.dc.html order). */
body .dolphin-footer__top {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 12px;
}

body .dolphin-footer__brand {
	display: contents;
}

body .dolphin-footer__logo,
body .dolphin-footer__tagline,
body .dolphin-footer__social,
body .dolphin-footer__col--touch {
	grid-column: 1 / -1;
}

body .dolphin-footer__logo {
	order: 1;
	justify-self: start;
	display: inline-flex;
	padding: 8px;
	border-radius: 16px;
	background: var(--wp--preset--color--white);
}

body .dolphin-footer__logo img {
	display: block;
	width: auto;
	height: 56px;
}

body .dolphin-footer__logo:focus-visible {
	outline-offset: 3px;
}

/* Block text with an inline heart, so the heart stays at the end of the last line when the Arabic tagline wraps. */
body .dolphin-footer__tagline {
	order: 2;
	display: block;
	margin: -8px 0 4px;
	color: var(--wp--preset--color--peach);
	font-family: var(--wp--preset--font-family--script);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

html[lang^="ar"] .dolphin-footer__tagline {
	font-family: var(--dolphin-font-ar);
	font-size: 22px;
	line-height: 1.4;
}

body .dolphin-footer__tagline .dolphin-icon {
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-inline-start: 6px;
	vertical-align: -0.1em;
}

body .dolphin-footer__col {
	order: 3;
}

body .dolphin-footer__col--touch {
	order: 4;
}

body .dolphin-footer__social {
	order: 5;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}

body .dolphin-footer__social-link {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 247, 237, 0.35);
	border-radius: var(--dolphin-radius-pill);
}

body .dolphin-footer__social-link:hover {
	border-color: var(--wp--preset--color--cream);
	background: rgba(255, 247, 237, 0.1);
}

body .dolphin-footer__handle {
	font-size: 14px;
	direction: ltr;
}

body .dolphin-footer__col h2 {
	margin: 0 0 4px;
	color: var(--wp--preset--color--cream);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

body .dolphin-footer__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body .dolphin-footer__col li {
	margin: 0;
}

body .dolphin-footer__col a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-size: 14px;
	line-height: 1.5;
	text-decoration: none;
}

body .dolphin-footer__col a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Bottom row: payment methods and legal links. */
body .dolphin-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 20px;
}

body .dolphin-footer__pay {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body .dolphin-footer__pay li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 12px;
	border: 1px solid rgba(255, 247, 237, 0.35);
	border-radius: var(--dolphin-radius-pill);
	font-size: 12px;
	line-height: 1.4;
}

body .dolphin-footer__legal {
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 247, 237, 0.2);
	font-size: 12px;
	line-height: 1.6;
}

body .dolphin-footer__legal a {
	display: inline-block;
	min-width: 44px;
	padding-block: 14px;
	margin-block: -14px;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/*
 * Tablet and desktop: brand column + three link columns, then one bottom row.
 */
@media (min-width: 782px) {
	body .dolphin-footer__inner {
		padding: 64px var(--dolphin-gutter) 112px;
	}

	body .dolphin-footer__top {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 40px;
	}

	body .dolphin-footer__brand {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

	body .dolphin-footer__logo,
	body .dolphin-footer__tagline,
	body .dolphin-footer__social,
	body .dolphin-footer__col,
	body .dolphin-footer__col--touch {
		grid-column: auto;
		order: 0;
	}

	body .dolphin-footer__logo img {
		height: 64px;
	}

	body .dolphin-footer__tagline {
		margin: 16px 0 0;
		font-size: 28px;
		line-height: 1.1;
	}

	html[lang^="ar"] .dolphin-footer__tagline {
		font-size: 22px;
		line-height: 1.4;
	}

	body .dolphin-footer__tagline .dolphin-icon {
		width: 22px;
		height: 22px;
		margin-inline-start: 8px;
	}

	body .dolphin-footer__social {
		margin-top: 20px;
	}

	body .dolphin-footer__handle {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	body .dolphin-footer__col h2 {
		margin: 0 0 16px;
		font-size: 16px;
	}

	body .dolphin-footer__col a {
		gap: 8px;
		font-size: 15px;
	}

	body .dolphin-footer__bottom {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 16px 24px;
		margin-top: 48px;
		padding-top: 28px;
		border-top: 1px solid rgba(255, 247, 237, 0.2);
	}

	body .dolphin-footer__legal {
		padding-top: 0;
		border-top: 0;
	}
}
