/*--------------------------------------------------------------
# Creative Footer
# Lightweight, hosting/coupons/templates-themed footer with
# broken-angle topper, trust badges and icon-led links.
# Pure CSS interactivity — no JS, GPU-friendly transforms only.
--------------------------------------------------------------*/

/* Wrapper: layered gradient glow + diagonal cut */
.ht-footer {
	position: relative;
	background:
		radial-gradient(900px 360px at 12% 0%, rgba(212, 175, 55, .10), transparent 60%),
		radial-gradient(700px 300px at 88% 100%, rgba(46, 139, 87, .14), transparent 60%),
		var(--ht-footer-bg, #07241f);
	color: var(--ht-footer-text, #e8efe9);
	padding: 40px 0 16px;
	margin-top: 32px;
	overflow: hidden;
	isolation: isolate;
}

/* Broken-angle SVG topper (purely decorative, very small) */
.ht-footer__topper {
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	width: 100%;
	height: 32px;
	display: block;
	pointer-events: none;
	color: var(--ht-footer-bg, #07241f);
	z-index: -1;
}

/* Faint dotted texture (CSS only, no image request) */
.ht-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 22px 22px;
	pointer-events: none;
	z-index: -1;
}

/* ── Trust strip: feature badges ───────────────────────── */
.ht-footer__strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}
.ht-footer__strip li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .07);
	border-radius: 12px;
	transition: transform .18s ease, background .18s ease, border-color .18s ease;
	will-change: transform;
}
.ht-footer__strip li:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, .07);
	border-color: rgba(212, 175, 55, .35);
}
.ht-footer__strip-icon {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(212, 175, 55, .18), rgba(46, 139, 87, .18));
	color: #f1d27a;
	font-size: 18px;
}
.ht-footer__strip-label {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	min-width: 0;
}
.ht-footer__strip-label strong {
	font-weight: 700;
	font-size: .9rem;
	color: #fff;
	letter-spacing: .2px;
}
.ht-footer__strip-label span {
	font-size: .76rem;
	opacity: .72;
}

/* ── Brand row + tagline ───────────────────────────────── */
.ht-footer__brand {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 0;
	margin-bottom: 4px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ht-footer__brand-name {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 1.05rem;
	color: #fff;
	text-decoration: none;
}
.ht-footer__brand-mark {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #d4af37, #2e8b57);
	color: #07241f;
	font-size: 16px;
}
.ht-footer__tagline {
	font-size: .85rem;
	opacity: .8;
	margin: 0;
	max-width: 540px;
}

/* ── Trust / legal links with leading icons ────────────── */
.ht-trust-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px 2px;
	margin: 10px 0 6px;
	font-size: .85rem;
}
.ht-trust-links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	color: var(--ht-footer-link, #f1d27a);
	text-decoration: none;
	transition: background .18s ease, color .18s ease, transform .18s ease;
	will-change: transform;
}
.ht-trust-links a:hover,
.ht-trust-links a:focus-visible {
	background: rgba(255, 255, 255, .07);
	color: #fff;
	transform: translateY(-1px);
	outline: none;
}
.ht-trust-links a svg {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	opacity: .85;
}
.ht-trust-links__sep {
	display: none; /* replaced by pill spacing */
}

/* ── Copyright ─────────────────────────────────────────── */
.site-footer .site-info,
.ht-footer .site-info {
	font-size: .82rem;
	opacity: .75;
	letter-spacing: .3px;
	text-align: center;
}
.ht-footer .site-info a {
	color: inherit;
	border-bottom: 1px dotted rgba(255, 255, 255, .25);
}
.ht-footer .site-info a:hover {
	color: #fff;
	border-bottom-color: #fff;
}

/* ── Social row override (when inside creative footer) ── */
.ht-footer .gmr-social-icon ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	float: none;
	padding: 0;
	margin: 0 0 6px;
}
.ht-footer .gmr-social-icon ul > li {
	margin: 0;
}
.ht-footer .gmr-social-icon ul > li > a {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .08);
	color: var(--ht-footer-link, #f1d27a);
	transition: transform .18s ease, background .18s ease, color .18s ease;
}
.ht-footer .gmr-social-icon ul > li > a:hover {
	transform: translateY(-2px) rotate(-4deg);
	background: linear-gradient(135deg, rgba(212, 175, 55, .25), rgba(46, 139, 87, .25));
	color: #fff;
}

/* Secondary nav cleanup inside creative footer */
.ht-footer .gmr-secondmenuwrap {
	border-top: none;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 4px 0 0;
	margin: 0;
}

/* ── Creative back-to-top (no extra DOM, restyle existing) ── */
.gmr-ontop {
	width: 44px;
	height: 44px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, #d4af37, #2e8b57);
	color: #07241f !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	opacity: .92;
	bottom: 24px;
	right: 24px;
	font-size: 18px;
	transition: transform .2s ease, opacity .2s ease;
}
.gmr-ontop:hover,
.gmr-ontop:focus {
	transform: translateY(-3px);
	opacity: 1;
	outline: none;
}

/* ── Reduced motion: kill transforms ────────────────── */
@media (prefers-reduced-motion: reduce) {
	.ht-footer * {
		transition: none !important;
		transform: none !important;
	}
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 992px) {
	.ht-footer__strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.ht-footer {
		padding-top: 32px;
	}
	.ht-footer__strip {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.ht-footer__brand {
		flex-direction: column;
		text-align: center;
		gap: 8px;
	}
	.ht-footer__topper {
		height: 22px;
	}
}

/* ── RTL tweaks ─────────────────────────────────────── */
html[dir="rtl"] .ht-footer .gmr-social-icon ul > li > a:hover {
	transform: translateY(-2px) rotate(4deg);
}
