/* ==========================================================================
   AD Footer — Frontend Styles
   Scoped entirely under .ad-footer-wrapper so it never leaks into / clashes
   with the active theme's own styles.
   ========================================================================== */

.ad-footer-wrapper {
	--adf-bg: #0f172a;
	--adf-text: #cbd5e1;
	--adf-heading: #ffffff;
	--adf-link: #cbd5e1;
	--adf-link-hover: #38bdf8;
	--adf-accent: #38bdf8;
	--adf-bottom-bg: #0b1220;
	--adf-bottom-text: #94a3b8;

	background: var(--adf-bg);
	color: var(--adf-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	box-sizing: border-box;
	position: relative;
}

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

.ad-footer-wrapper::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--adf-accent), transparent 70%);
}

.ad-footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.ad-footer-top {
	padding: 64px 0 40px;
}

.ad-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
}

.ad-footer-col {
	min-width: 0;
}

.ad-footer-heading {
	color: var(--adf-heading);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: .3px;
	margin: 0 0 20px;
	position: relative;
	padding-bottom: 12px;
}

.ad-footer-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 3px;
	border-radius: 2px;
	background: var(--adf-accent);
}

/* Column 1: About */
.ad-footer-logo {
	--adf-logo-bg: #ffffff;
	display: inline-block;
	margin-bottom: 20px;
	line-height: 0;
}

.ad-footer-logo img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* "Card" style: rounded panel behind the logo so PNG logos with a
   white/transparent background sit cleanly on a dark footer instead
   of looking like a stray square. */
.ad-footer-logo.has-bg {
	background: var(--adf-logo-bg);
	border-radius: 12px;
	padding: 14px 18px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.ad-footer-brand {
	padding-bottom: 12px;
}

.ad-footer-desc {
	font-size: 14px;
	color: var(--adf-text);
	margin: 0 0 22px;
	opacity: .9;
	max-width: 34ch;
}

.ad-footer-social {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.ad-footer-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: var(--adf-text);
	transition: transform .18s ease, background .18s ease, color .18s ease;
}

.ad-footer-social-link svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.ad-footer-social-link:hover {
	background: var(--adf-accent);
	color: #08131f;
	transform: translateY(-3px);
}

/* Columns 2 & 3: link lists */
.ad-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ad-footer-links li {
	margin-bottom: 12px;
}

.ad-footer-links a,
.ad-footer-links span {
	color: var(--adf-link);
	text-decoration: none;
	font-size: 14.5px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color .15s ease, transform .15s ease;
}

.ad-footer-link-arrow {
	color: var(--adf-accent);
	font-weight: 700;
	transition: transform .15s ease;
}

.ad-footer-links a:hover {
	color: var(--adf-link-hover);
	transform: translateX(3px);
}

.ad-footer-links a:hover .ad-footer-link-arrow {
	transform: translateX(2px);
}

/* Column 4: contact + map */
.ad-footer-contact-list {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.ad-footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 14px;
}

.ad-footer-contact-icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(56, 189, 248, 0.15);
	color: var(--adf-accent);
	margin-top: 1px;
}

.ad-footer-contact-icon svg {
	width: 12px;
	height: 12px;
}

.ad-footer-contact-item a {
	color: var(--adf-text);
	text-decoration: none;
	word-break: break-word;
}

.ad-footer-contact-item a:hover {
	color: var(--adf-link-hover);
}

.ad-footer-map {
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	line-height: 0;
}

.ad-footer-map iframe {
	display: block;
	filter: grayscale(15%) contrast(1.05);
}

/* Bottom bar */
.ad-footer-bottom {
	background: var(--adf-bottom-bg);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-footer-bottom-inner {
	padding: 18px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.ad-footer-copyright,
.ad-footer-credit {
	margin: 0;
	font-size: 13px;
	color: var(--adf-bottom-text);
}

.ad-footer-credit a {
	color: var(--adf-bottom-text);
	text-decoration: none;
	border-bottom: 1px dotted currentColor;
}

.ad-footer-credit a:hover {
	color: var(--adf-link-hover);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
	.ad-footer-grid {
		grid-template-columns: 1fr 1fr;
		row-gap: 44px;
	}
}

@media (max-width: 600px) {
	.ad-footer-top {
		padding: 44px 0 28px;
	}
	.ad-footer-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	.ad-footer-bottom-inner {
		flex-direction: column;
		text-align: center;
	}
}
