/**
 * Academia Fenix footer widget.
 * The layout mirrors the approved desktop proposal and collapses cleanly on
 * tablet and mobile without requiring Elementor Pro.
 */

.afef-footer,
.afef-footer * {
	box-sizing: border-box;
}

.afef-footer {
	--afef-accent: #d9a53a;
	--afef-blue: #158bcb;
	--afef-text: #ffffff;
	--afef-muted: #b9c7da;
	--afef-divider: rgba(157, 185, 219, 0.28);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	padding: 52px 44px 30px;
	background-color: #021a36;
	color: var(--afef-text);
	font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/*
 * Full-bleed mode escapes a constrained Elementor/theme container while the
 * inner shell keeps the editable responsive padding. JavaScript supplies the
 * exact document width so browser scrollbars never create horizontal drift;
 * 100vw remains as a safe no-JavaScript fallback.
 */
.afef-footer.afef-full-bleed {
	width: var(--afef-viewport-width, 100vw);
	max-width: none;
	margin-right: calc((100% - var(--afef-viewport-width, 100vw)) / 2);
	margin-left: calc((100% - var(--afef-viewport-width, 100vw)) / 2);
}

.afef-footer::before {
	position: absolute;
	z-index: -1;
	top: -36%;
	left: 8%;
	width: 84%;
	height: 86%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(14, 74, 135, 0.22) 0%, rgba(2, 26, 54, 0) 70%);
	content: "";
	pointer-events: none;
}

.afef-shell {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.afef-footer a {
	color: inherit;
	text-decoration: none;
}

.afef-footer a:focus-visible,
.afef-footer button:focus-visible,
.afef-footer input:focus-visible {
	outline: 3px solid rgba(217, 165, 58, 0.58);
	outline-offset: 3px;
}

.afef-footer .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.afef-newsletter {
	display: grid;
	grid-template-columns: minmax(0, 1.16fr) minmax(430px, 0.84fr);
	gap: clamp(36px, 5vw, 88px);
	align-items: center;
	width: 100%;
	padding: 38px 60px;
	border: 1px solid #2a67a4;
	border-radius: 24px;
	background: linear-gradient(110deg, #031f43 0%, #021a36 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 55px rgba(0, 8, 24, 0.2);
}

.afef-newsletter__lead {
	display: flex;
	align-items: center;
	min-width: 0;
}

.afef-newsletter__emblem {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: 112px;
	border: 3px solid var(--afef-accent);
	border-radius: 50%;
	color: var(--afef-text);
	background: radial-gradient(circle at 50% 42%, rgba(21, 139, 203, 0.18), rgba(2, 26, 54, 0.12) 58%);
	box-shadow: 0 0 30px rgba(21, 139, 203, 0.09);
}

.afef-newsletter__emblem::before,
.afef-newsletter__emblem::after {
	position: absolute;
	left: 50%;
	width: 13px;
	height: 13px;
	background: var(--afef-accent);
	content: "";
	clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
	transform: translateX(-50%);
}

.afef-newsletter__emblem::before {
	top: -9px;
}

.afef-newsletter__emblem::after {
	bottom: -9px;
}

.afef-newsletter__emblem i,
.afef-newsletter__emblem svg {
	position: relative;
	z-index: 1;
	width: 38%;
	height: auto;
	font-size: clamp(28px, 2.6vw, 43px);
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.afef-newsletter__divider {
	align-self: stretch;
	width: 1px;
	min-height: 72px;
	margin: 0 clamp(26px, 3vw, 48px);
	background: var(--afef-divider);
}

.afef-newsletter__copy {
	min-width: 0;
}

.afef-newsletter__title {
	margin: 0 0 13px;
	color: var(--afef-text);
	font-size: clamp(22px, 1.62vw, 29px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.afef-newsletter__description {
	margin: 0;
	color: var(--afef-muted);
	font-size: clamp(15px, 1.22vw, 20px);
	font-weight: 400;
	line-height: 1.55;
}

.afef-newsletter__form-wrap,
.afef-newsletter__shortcode {
	width: 100%;
	min-width: 0;
}

.afef-newsletter__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	width: 100%;
	filter: drop-shadow(0 7px 20px rgba(0, 8, 24, 0.14));
}

.afef-newsletter__input,
.afef-newsletter__button {
	min-height: 72px;
	border: 0;
	font: inherit;
}

.afef-newsletter__input {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0 26px;
	border-radius: 10px 0 0 10px;
	background: #ffffff;
	box-shadow: none;
	color: #4a5260;
	font-size: clamp(15px, 1.12vw, 19px);
	line-height: 1;
}

.afef-newsletter__input::placeholder {
	opacity: 1;
	color: #727986;
}

.afef-newsletter__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: clamp(150px, 12vw, 210px);
	margin: 0;
	padding: 0 30px;
	border-radius: 0 10px 10px 0;
	background: var(--afef-accent);
	box-shadow: none;
	color: #ffffff;
	cursor: pointer;
	font-size: clamp(15px, 1.08vw, 18px);
	font-weight: 700;
	line-height: 1;
	transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.afef-newsletter__button:hover,
.afef-newsletter__button:focus {
	background: #e8ba55;
	box-shadow: 0 9px 24px rgba(217, 165, 58, 0.18);
	transform: translateY(-1px);
}

.afef-main {
	display: grid;
	grid-template-columns: minmax(270px, 1.46fr) minmax(170px, 0.95fr) minmax(190px, 1.04fr) minmax(230px, 1.2fr) minmax(170px, 0.82fr);
	column-gap: 42px;
	row-gap: 42px;
	align-items: stretch;
	margin-top: 72px;
}

.afef-column {
	position: relative;
	min-width: 0;
}

.afef-column:not(:first-child) {
	padding-left: clamp(26px, 2.6vw, 48px);
	border-left: 1px solid var(--afef-divider);
}

.afef-brand__logo {
	min-height: 92px;
	margin-bottom: 18px;
}

.afef-brand__logo .custom-logo-link,
.afef-brand__logo .custom-logo-link span {
	display: inline-block;
}

.afef-brand__logo .custom-logo,
.afef-brand__logo img {
	display: block;
	width: 340px;
	max-width: 100%;
	height: auto;
	margin: 0;
	object-fit: contain;
	object-position: left center;
}

.afef-site-name {
	display: inline-block;
	color: var(--afef-text);
	font-size: clamp(28px, 3vw, 48px);
	font-weight: 800;
	letter-spacing: 0.08em;
}

.afef-brand__tagline {
	margin: 0 0 24px;
	color: var(--afef-text);
	font-size: clamp(14px, 1vw, 17px);
	font-weight: 500;
	line-height: 1.55;
}

.afef-brand__description {
	max-width: 390px;
	margin: 0 0 26px;
	color: var(--afef-muted);
	font-size: clamp(14px, 1vw, 17px);
	font-weight: 400;
	line-height: 1.72;
}

.afef-column__title {
	position: relative;
	margin: 8px 0 50px;
	color: var(--afef-accent);
	font-size: clamp(15px, 1.08vw, 18px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.afef-column__title::after {
	position: absolute;
	bottom: -25px;
	left: 0;
	width: 30px;
	height: 3px;
	border-radius: 99px;
	background: var(--afef-accent);
	content: "";
}

.afef-links {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.afef-links li,
.afef-links a,
.afef-links span {
	margin: 0;
	padding: 0;
	font-size: clamp(14px, 1.03vw, 17px);
	line-height: 1.5;
}

.afef-links a {
	position: relative;
	display: inline-block;
	color: var(--afef-text);
	transition: color 180ms ease, transform 180ms ease;
}

.afef-links a:hover,
.afef-links a:focus {
	color: var(--afef-accent);
	transform: translateX(4px);
}

.afef-contact {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.afef-contact__item {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	min-height: 38px;
	color: var(--afef-text);
	font-size: clamp(14px, 1.03vw, 17px);
	line-height: 1.5;
}

.afef-contact__item a {
	min-width: 0;
	overflow-wrap: anywhere;
	transition: color 180ms ease;
}

.afef-contact__item a:hover,
.afef-contact__item a:focus {
	color: var(--afef-accent);
}

.afef-contact__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--afef-accent);
}

.afef-contact__icon i {
	font-size: 25px;
}

.afef-contact__icon svg {
	width: 25px;
	height: 25px;
	fill: currentColor;
}

.afef-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.afef-socials__link {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(185, 199, 218, 0.52);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.015);
	color: var(--afef-text);
	transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

a.afef-socials__link:hover,
a.afef-socials__link:focus {
	border-color: var(--afef-accent);
	background: var(--afef-accent);
	color: #ffffff;
	transform: translateY(-3px);
}

.afef-socials__link i {
	font-size: 18px;
}

.afef-socials__link svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.afef-copyright {
	margin-top: 42px;
	padding-top: 24px;
	border-top: 1px solid var(--afef-divider);
	color: var(--afef-muted);
	font-size: clamp(13px, 0.95vw, 16px);
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
}

.afef-footer.afef-animate.afef-motion-ready .afef-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 620ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.afef-footer.afef-animate.afef-motion-ready .afef-main {
	transition-delay: 90ms;
}

.afef-footer.afef-animate.afef-motion-ready .afef-copyright {
	transition-delay: 160ms;
}

.afef-footer.afef-animate.afef-motion-ready.afef-is-visible .afef-reveal {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 1280px) {
	.afef-newsletter {
		grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
		gap: 38px;
	}

	.afef-main {
		grid-template-columns: minmax(240px, 1.35fr) repeat(2, minmax(150px, 0.95fr)) minmax(200px, 1.1fr) minmax(145px, 0.75fr);
		column-gap: 26px;
	}

	.afef-column:not(:first-child) {
		padding-left: 24px;
	}
}

@media (max-width: 1024px) {
	.afef-footer {
		padding: 36px 28px 26px;
	}

	.afef-newsletter {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 32px 34px;
	}

	.afef-newsletter__form {
		max-width: none;
	}

	.afef-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px;
		margin-top: 52px;
	}

	.afef-column,
	.afef-column:not(:first-child) {
		padding: 0;
		border-left: 0;
	}

	.afef-column {
		padding-right: 20px;
	}

	.afef-column__title {
		margin-top: 0;
	}
}

@media (max-width: 767px) {
	.afef-footer {
		padding: 24px 18px 22px;
	}

	.afef-newsletter {
		gap: 26px;
		padding: 26px 22px;
		border-radius: 18px;
	}

	.afef-newsletter__lead {
		flex-direction: column;
		align-items: flex-start;
	}

	.afef-newsletter__emblem {
		width: 76px;
		height: 76px;
		margin-bottom: 24px;
	}

	.afef-newsletter__divider {
	display: none;
	}

	.afef-newsletter__title {
		margin-bottom: 10px;
		font-size: 22px;
	}

	.afef-newsletter__form {
		grid-template-columns: 1fr;
		gap: 10px;
		filter: none;
	}

	.afef-newsletter__input,
	.afef-newsletter__button {
		width: 100%;
		min-height: 58px;
		border-radius: 9px;
	}

	.afef-newsletter__button {
		min-width: 0;
	}

	.afef-main {
		grid-template-columns: 1fr;
		gap: 34px;
		margin-top: 40px;
	}

	.afef-column,
	.afef-column:not(:first-child) {
		padding: 0 0 34px;
		border: 0;
		border-bottom: 1px solid var(--afef-divider);
	}

	.afef-column:last-child {
		padding-bottom: 0;
		border-bottom: 0;
	}

	.afef-brand__logo {
		min-height: 0;
	}

	.afef-brand__logo .custom-logo,
	.afef-brand__logo img {
		width: 250px;
	}

	.afef-column__title {
		margin-bottom: 42px;
	}

	.afef-links,
	.afef-contact {
		gap: 16px;
	}

	.afef-copyright {
		margin-top: 34px;
		padding-top: 20px;
	}
}

/*
 * When a column is hidden from Elementor, PHP adds the matching count class.
 * These desktop-only templates make every remaining column consume the freed
 * space. Tablet and mobile continue using their dedicated responsive grids.
 */
@media (min-width: 1025px) {
	.afef-main--columns-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.afef-main--columns-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.afef-main--columns-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.afef-main--columns-1 {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.afef-footer *,
	.afef-footer *::before,
	.afef-footer *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.afef-footer.afef-animate.afef-motion-ready .afef-reveal {
		opacity: 1;
		transform: none;
	}
}
