/**
 * Premium eCommerce site footer — scoped to .gd-site-footer
 */

.gd-site-footer {
	--gd-footer-navy: #1F2A3A;
	--gd-footer-navy-deep: #1a2330;
	--gd-footer-primary: #E73F1E;
	--gd-footer-primary-light: #F04B27;
	--gd-footer-primary-active: #B92D14;
	--gd-footer-text: rgba(255, 255, 255, 0.94);
	--gd-footer-text-muted: rgba(255, 255, 255, 0.72);
	--gd-footer-border: rgba(240, 75, 39, 0.16);
	--gd-footer-surface: rgba(255, 255, 255, 0.045);
	--gd-footer-surface-hover: rgba(255, 255, 255, 0.07);
	--gd-footer-terrain-h: clamp(3.5rem, 7vw, 6.5rem);
	--gd-footer-font-xs: 0.9375rem;
	--gd-footer-font-sm: 1.0625rem;
	--gd-footer-font-md: 1.125rem;
	--gd-footer-font-lg: 1.375rem;
	--gd-footer-font-trust: 0.875rem;
	--gd-footer-font-heading-en: 0.9375rem;
	position: relative;
	margin-top: var(--space-2xl);
	color: var(--gd-footer-text);
	background:
		radial-gradient(ellipse 90% 55% at 50% 0%, rgba(var(--gd-primary-rgb), 0.1), transparent 65%),
		linear-gradient(180deg, var(--gd-footer-navy) 0%, var(--gd-footer-navy-deep) 18%, var(--gd-footer-navy) 55%, #1f2a38 100%);
	font-family: var(--font-family-base);
	overflow: visible;
	clip-path: polygon(
		0% calc(var(--gd-footer-terrain-h) * 30 / 96),
		20.833% calc(var(--gd-footer-terrain-h) * 10 / 96),
		41.667% calc(var(--gd-footer-terrain-h) * 32 / 96),
		50% 0,
		62.5% calc(var(--gd-footer-terrain-h) * 28 / 96),
		79.167% calc(var(--gd-footer-terrain-h) * 8 / 96),
		100% calc(var(--gd-footer-terrain-h) * 20 / 96),
		100% 100%,
		0% 100%
	);
}

.gd-site-footer[dir="ltr"] {
	font-family: var(--font-family-en);
}

.gd-site-footer[dir="rtl"] {
	font-family: var(--font-family-ar);
}

/* Primary ridge accent — stroke only, no fill layer */
.gd-site-footer__terrain {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 100%;
	height: var(--gd-footer-terrain-h);
	background: transparent;
	line-height: 0;
	pointer-events: none;
}

.gd-site-footer__terrain-svg {
	display: block;
	width: 100%;
	height: 100%;
	background: transparent;
}

.gd-site-footer__terrain-ridge {
	filter: drop-shadow(0 0 4px rgba(var(--gd-primary-rgb), 0.22));
}

/* Main grid */
.gd-site-footer .container {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding-inline: clamp(1.25rem, 3vw, 4rem);
}

.gd-site-footer__main {
	position: relative;
	z-index: 1;
	padding-block: clamp(2rem, 3.5vw, 4.375rem);
	padding-top: calc(var(--gd-footer-terrain-h) * 32 / 96 + clamp(1rem, 2vw, 1.5rem));
	background: transparent;
}

.gd-site-footer__grid {
	display: grid;
	gap: clamp(1.25rem, 2.5vw, 2rem);
	align-items: start;
}

.gd-site-footer__col {
	min-width: 0;
}

/* Brand column */
.gd-site-footer__col--brand {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.gd-site-footer__logo-link {
	display: inline-flex;
	align-self: flex-start;
	text-decoration: none;
}

.gd-site-footer__logo {
	display: block;
	width: auto;
	max-width: clamp(18rem, 22vw, 24rem);
	max-height: clamp(5rem, 6.5vw, 6.5rem);
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.gd-site-footer__site-name {
	margin: 0;
	font-size: var(--gd-footer-font-lg);
	font-weight: var(--font-weight-bold);
}

.gd-site-footer__site-name a {
	color: var(--gd-footer-text);
	text-decoration: none;
}

.gd-site-footer__tagline {
	margin: 0;
	font-size: var(--gd-footer-font-sm);
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-tight);
	color: var(--gd-footer-primary-light);
}

.gd-site-footer__description {
	margin: 0;
	font-size: var(--gd-footer-font-sm);
	line-height: 1.65;
	color: var(--gd-footer-text-muted);
}

.gd-site-footer__description p {
	margin: 0;
}

/* Trust badges */
.gd-site-footer__trust-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.25rem 0 0;
	padding: 0;
	list-style: none;
}

.gd-site-footer__trust-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.75rem;
	font-size: var(--gd-footer-font-trust);
	font-weight: var(--font-weight-medium);
	line-height: 1.2;
	color: var(--gd-footer-text-muted);
	background: var(--gd-footer-surface);
	border: 1px solid var(--gd-footer-border);
	border-radius: var(--radius-full);
	white-space: nowrap;
}

.gd-site-footer__trust-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	color: var(--gd-footer-primary);
}

.gd-site-footer__trust-icon svg {
	display: block;
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
}

.gd-site-footer__trust-label {
	line-height: 1.2;
}

/* Headings */
.gd-site-footer__heading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding-bottom: 0.65rem;
	font-size: var(--gd-footer-font-sm);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	color: var(--gd-footer-text);
	border-bottom: 1px solid var(--gd-footer-border);
}

.gd-site-footer[dir="ltr"] .gd-site-footer__heading {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: var(--gd-footer-font-heading-en);
}

.gd-site-footer__heading-dot {
	display: inline-block;
	flex-shrink: 0;
	width: 0.45rem;
	height: 0.45rem;
	background: linear-gradient(135deg, var(--gd-footer-primary), var(--gd-footer-primary-light));
	border-radius: var(--radius-full);
	box-shadow: 0 0 8px rgba(var(--gd-primary-rgb), 0.55);
}

/* Contact */
.gd-site-footer__contact-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 0.875rem;
	list-style: none;
	background: var(--gd-footer-surface);
	border: 1px solid var(--gd-footer-border);
	border-radius: var(--radius-lg);
}

.gd-site-footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: var(--gd-footer-font-sm);
	line-height: 1.55;
}

.gd-site-footer__contact-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin-top: 0.05rem;
	color: var(--gd-footer-primary);
	background: rgba(var(--gd-primary-rgb), 0.12);
	border-radius: var(--radius-md);
}

.gd-site-footer__contact-value {
	color: var(--gd-footer-text-muted);
}

.gd-site-footer__contact-link {
	color: var(--gd-footer-text-muted);
	text-decoration: none;
	word-break: break-word;
	transition: color var(--transition-fast);
}

.gd-site-footer__contact-link:hover,
.gd-site-footer__contact-link:focus-visible {
	color: var(--gd-footer-primary-light);
	outline: none;
}

/* Navigation menus */
.gd-site-footer__menu {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gd-site-footer__menu a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding-block: 0.35rem;
	color: var(--gd-footer-text-muted);
	font-size: var(--gd-footer-font-sm);
	font-weight: var(--font-weight-medium);
	text-decoration: none;
	transition: color var(--transition-fast), transform var(--transition-fast);
}

.gd-site-footer__menu a::before {
	content: "";
	display: inline-block;
	flex-shrink: 0;
	width: 0.3rem;
	height: 0.3rem;
	background: var(--gd-footer-primary-active);
	border-radius: var(--radius-full);
	opacity: 0.5;
	transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gd-site-footer__menu a:hover,
.gd-site-footer__menu a:focus-visible {
	color: var(--gd-footer-primary-light);
	transform: translateX(2px);
	outline: none;
}

.gd-site-footer[dir="rtl"] .gd-site-footer__menu a:hover,
.gd-site-footer[dir="rtl"] .gd-site-footer__menu a:focus-visible {
	transform: translateX(-2px);
}

.gd-site-footer__menu a:hover::before,
.gd-site-footer__menu a:focus-visible::before {
	background: var(--gd-footer-primary);
	box-shadow: 0 0 6px rgba(var(--gd-primary-rgb), 0.5);
	opacity: 1;
}

.gd-site-footer__menu .current-menu-item > a,
.gd-site-footer__menu .current-menu-ancestor > a {
	color: var(--gd-footer-primary-light);
	font-weight: var(--font-weight-semibold);
}

/* Social block */
.gd-site-footer__social-block {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--gd-footer-border);
}

.gd-site-footer__social-title {
	margin: 0 0 0.65rem;
	font-size: var(--gd-footer-font-xs);
	font-weight: var(--font-weight-semibold);
	color: var(--gd-footer-text-muted);
}

.gd-site-footer[dir="ltr"] .gd-site-footer__social-title {
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.gd-site-footer__social-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gd-site-footer__social-item {
	flex-shrink: 0;
}

.gd-site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	color: var(--gd-footer-text-muted);
	text-decoration: none;
	background: transparent;
	border: 1px solid var(--gd-footer-border);
	border-radius: var(--radius-md);
	transition:
		color var(--transition-fast),
		background-color var(--transition-fast),
		border-color var(--transition-fast),
		box-shadow var(--transition-fast),
		transform var(--transition-fast);
}

.gd-site-footer__social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.gd-site-footer__social-icon svg {
	display: block;
	width: 1.125rem;
	height: 1.125rem;
}

.gd-site-footer__social-link:hover,
.gd-site-footer__social-link:focus-visible {
	background: var(--gd-footer-surface-hover);
	border-color: currentColor;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
	transform: translateY(-2px);
	outline: none;
}

/* Footer social icons — platform brand colors (match header utility bar) */
.gd-site-footer__social-link--x,
.gd-site-footer__social-link--x:hover,
.gd-site-footer__social-link--x:focus-visible {
	color: #ffffff;
}

.gd-site-footer__social-link--tiktok,
.gd-site-footer__social-link--tiktok:hover,
.gd-site-footer__social-link--tiktok:focus-visible {
	color: #ffffff;
}

.gd-site-footer__social-link--youtube,
.gd-site-footer__social-link--youtube:hover,
.gd-site-footer__social-link--youtube:focus-visible {
	color: #ff0000;
}

.gd-site-footer__social-link--facebook,
.gd-site-footer__social-link--facebook:hover,
.gd-site-footer__social-link--facebook:focus-visible {
	color: #1877f2;
}

/* Partners strip */
.gd-site-footer__partners {
	border-top: 1px solid var(--gd-footer-border);
	background: rgba(0, 0, 0, 0.15);
}

.gd-site-footer__partners-inner {
	display: grid;
	gap: 1rem;
	padding-block: 1.25rem;
}

.gd-site-footer__partner-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
	padding: 0.875rem 1rem;
	background: var(--gd-footer-surface);
	border: 1px solid var(--gd-footer-border);
	border-radius: var(--radius-lg);
}

.gd-site-footer__partner-label {
	margin: 0;
	font-size: var(--gd-footer-font-xs);
	font-weight: var(--font-weight-semibold);
	color: var(--gd-footer-primary-light);
}

.gd-site-footer[dir="ltr"] .gd-site-footer__partner-label {
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.gd-site-footer__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gd-site-footer__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 4rem;
	height: 2rem;
	padding-inline: 0.625rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-sm);
}

.gd-site-footer__badge img {
	display: block;
	width: auto;
	max-width: 4.25rem;
	max-height: 1.375rem;
	height: auto;
	object-fit: contain;
	filter: brightness(1.08);
}

/* Bottom bar */
.gd-site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.2);
}

.gd-site-footer__bottom-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding-block: 1rem 1.25rem;
	text-align: center;
}

.gd-site-footer__bottom-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gd-site-footer__bottom-menu a {
	color: var(--gd-footer-text-muted);
	font-size: var(--gd-footer-font-xs);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.gd-site-footer__bottom-menu a:hover,
.gd-site-footer__bottom-menu a:focus-visible {
	color: var(--gd-footer-primary-light);
	outline: none;
}

.gd-site-footer__copyright {
	margin: 0;
	font-size: var(--gd-footer-font-xs);
	line-height: var(--line-height-base);
	color: var(--gd-footer-text-muted);
}

/* Mobile: center wrapped social icons when space is tight */
@media (max-width: 39.999rem) {
	.gd-site-footer__social-list {
		justify-content: center;
	}
}

/* Tablet: 2 columns */
@media (min-width: 40rem) {
	.gd-site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

	.gd-site-footer__partners-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Desktop: 4 balanced columns */
@media (min-width: 64rem) {
	.gd-site-footer__grid {
		grid-template-columns: minmax(14rem, 1.4fr) minmax(11rem, 1fr) minmax(9rem, 0.82fr) minmax(9rem, 0.82fr);
		gap: 1.5rem 2rem;
	}

	.gd-site-footer__col--brand {
		grid-column: auto;
		padding-inline-end: 1rem;
		border-inline-end: 1px solid var(--gd-footer-border);
	}

	.gd-site-footer__social-list {
		flex-wrap: nowrap;
		gap: 0.35rem;
	}

	.gd-site-footer__social-link {
		width: 2rem;
		height: 2rem;
	}

	.gd-site-footer__bottom-inner {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		text-align: start;
	}

	.gd-site-footer__copyright {
		margin-inline-start: auto;
		text-align: end;
	}
}

@media (min-width: 75rem) {
	.gd-site-footer__grid {
		grid-template-columns: minmax(16rem, 1.5fr) minmax(12rem, 1.05fr) minmax(10rem, 0.85fr) minmax(10rem, 0.85fr);
		gap: 1.75rem 2.25rem;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.gd-site-footer__menu a,
	.gd-site-footer__social-link,
	.gd-site-footer__contact-link,
	.gd-site-footer__bottom-menu a {
		transition: color var(--transition-fast);
	}

	.gd-site-footer__menu a:hover,
	.gd-site-footer__menu a:focus-visible,
	.gd-site-footer__social-link:hover,
	.gd-site-footer__social-link:focus-visible {
		transform: none;
	}
}
