/* Aadyanex global footer — site-wide */

.adyanex-global-footer {
	--afx-bg: #071525;
	--afx-bg-soft: #0c2238;
	--afx-line: rgba(255, 255, 255, 0.1);
	--afx-text: rgba(255, 255, 255, 0.72);
	--afx-heading: #ffffff;
	--afx-accent: #f5c518;
	--afx-teal: #14b8a6;
	--afx-teal-deep: #0d9488;
	--afx-container: min(1200px, calc(100% - 2.5rem));
	color: var(--afx-text);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0;
	width: 100%;
}

.adyanex-global-footer *,
.adyanex-global-footer *::before,
.adyanex-global-footer *::after {
	box-sizing: border-box;
}

.adyanex-global-footer__container {
	width: var(--afx-container);
	margin-inline: auto;
}

/* CTA band */
.adyanex-global-footer__cta {
	position: relative;
	overflow: hidden;
	padding: clamp(2.5rem, 5vw, 4rem) 0;
	background:
		radial-gradient(ellipse 80% 120% at 0% 0%, rgba(20, 184, 166, 0.35), transparent 55%),
		radial-gradient(ellipse 70% 100% at 100% 100%, rgba(245, 197, 24, 0.18), transparent 50%),
		linear-gradient(135deg, #0b3d4a 0%, #0d5c63 42%, #0f766e 100%);
	color: #fff;
}

.adyanex-global-footer__cta-mesh {
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 28px 28px;
	mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
	pointer-events: none;
}

.adyanex-global-footer__cta-inner {
	position: relative;
	display: grid;
	gap: 1.5rem;
	align-items: center;
}

.adyanex-global-footer__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
}

.adyanex-global-footer__cta-title {
	margin: 0;
	max-width: 16ch;
	font-size: clamp(1.65rem, 3.5vw, 2.35rem);
	line-height: 1.15;
	font-weight: 700;
	color: #fff;
}

.adyanex-global-footer__cta-desc {
	margin: 0.85rem 0 0;
	max-width: 52ch;
	color: rgba(255, 255, 255, 0.86);
}

.adyanex-global-footer__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.adyanex-global-footer__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.35rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.adyanex-global-footer__btn--primary {
	background: var(--afx-accent);
	color: #1a1a1a;
	box-shadow: 0 10px 30px rgba(245, 197, 24, 0.28);
}

.adyanex-global-footer__btn--primary:hover,
.adyanex-global-footer__btn--primary:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(245, 197, 24, 0.38);
	color: #111;
}

.adyanex-global-footer__btn--ghost {
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(6px);
}

.adyanex-global-footer__btn--ghost:hover,
.adyanex-global-footer__btn--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	transform: translateY(-2px);
}

.adyanex-global-footer__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.adyanex-global-footer__badges li {
	padding: 0.4rem 0.8rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(7, 21, 37, 0.22);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.92);
}

/* Main footer */
.adyanex-global-footer__main {
	background:
		radial-gradient(ellipse 90% 60% at 50% 0%, rgba(13, 148, 136, 0.12), transparent 60%),
		linear-gradient(180deg, var(--afx-bg-soft) 0%, var(--afx-bg) 100%);
	padding-top: clamp(2.5rem, 4vw, 3.5rem);
}

.adyanex-global-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

.adyanex-global-footer__logo {
	margin-bottom: 1rem;
}

.adyanex-global-footer__logo img,
.adyanex-global-footer__logo .adyanex-site-logo-img {
	display: block;
	max-height: 58px;
	width: auto;
	height: auto;
}

.adyanex-global-footer__tagline {
	margin: 0 0 1.25rem;
	max-width: 36ch;
	color: var(--afx-text);
}

.adyanex-global-footer__contact-list {
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.85rem;
}

.adyanex-global-footer__contact-list li {
	display: grid;
	gap: 0.2rem;
}

.adyanex-global-footer__contact-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.48);
}

.adyanex-global-footer__contact-list a {
	color: var(--afx-accent);
	font-weight: 600;
	text-decoration: none;
}

.adyanex-global-footer__contact-list a:hover,
.adyanex-global-footer__contact-list a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.adyanex-global-footer__social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.adyanex-global-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid var(--afx-line);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.adyanex-global-footer__social-link svg {
	width: 18px;
	height: 18px;
}

.adyanex-global-footer__social-link:hover,
.adyanex-global-footer__social-link:focus-visible {
	transform: translateY(-2px);
	background: rgba(20, 184, 166, 0.22);
	border-color: rgba(20, 184, 166, 0.55);
	color: #fff;
}

.adyanex-global-footer__col-title {
	margin: 0 0 1rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--afx-heading);
}

.adyanex-global-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.55rem;
}

.adyanex-global-footer__links a {
	color: var(--afx-text);
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
	display: inline-block;
}

.adyanex-global-footer__links a:hover,
.adyanex-global-footer__links a:focus-visible {
	color: #fff;
	transform: translateX(3px);
}

/* Offices */
.adyanex-global-footer__offices-wrap {
	border-top: 1px solid var(--afx-line);
	padding: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(2rem, 3vw, 2.75rem);
}

.adyanex-global-footer__offices-title {
	margin: 0 0 1.25rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--afx-heading);
}

.adyanex-global-footer__offices {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.adyanex-global-footer__office {
	padding: 1.1rem 1.15rem;
	border-radius: 16px;
	border: 1px solid var(--afx-line);
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.adyanex-global-footer__office:hover {
	border-color: rgba(20, 184, 166, 0.45);
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.adyanex-global-footer__office h4 {
	margin: 0 0 0.55rem;
	font-size: 0.95rem;
	color: #fff;
}

.adyanex-global-footer__office p {
	margin: 0 0 0.65rem;
	font-size: 0.84rem;
	line-height: 1.55;
}

.adyanex-global-footer__office a {
	color: var(--afx-accent);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.875rem;
}

.adyanex-global-footer__office a:hover,
.adyanex-global-footer__office a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

/* Bottom bar */
.adyanex-global-footer__bottom {
	border-top: 1px solid var(--afx-line);
	background: var(--afx-bg);
	padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
}

.adyanex-global-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
}

.adyanex-global-footer__bottom p {
	margin: 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.78);
}

.adyanex-global-footer__bottom-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.adyanex-global-footer__bottom-links a {
	color: var(--afx-teal);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}

.adyanex-global-footer__bottom-links a:hover,
.adyanex-global-footer__bottom-links a:focus-visible {
	color: #fff;
}

/* Block theme wrapper */
footer.wp-block-template-part {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
}

footer.wp-block-template-part .wp-block-shortcode,
footer.wp-block-template-part .entry-content {
	margin: 0;
	padding: 0;
	max-width: none;
}

/* Responsive */
@media (min-width: 900px) {
	.adyanex-global-footer__cta-inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"copy actions"
			"badges badges";
	}

	.adyanex-global-footer__cta-copy {
		grid-area: copy;
	}

	.adyanex-global-footer__cta-actions {
		grid-area: actions;
		justify-content: flex-end;
	}

	.adyanex-global-footer__badges {
		grid-area: badges;
	}
}

@media (max-width: 1024px) {
	.adyanex-global-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.adyanex-global-footer__brand {
		grid-column: 1 / -1;
	}

	.adyanex-global-footer__offices {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.adyanex-global-footer {
		--afx-container: min(1200px, calc(100% - 1.25rem));
	}

	.adyanex-global-footer__grid,
	.adyanex-global-footer__offices {
		grid-template-columns: 1fr;
	}

	.adyanex-global-footer__cta-actions {
		width: 100%;
	}

	.adyanex-global-footer__btn {
		flex: 1 1 100%;
	}

	.adyanex-global-footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
