/* AzAd site footer — light theme */

.azad-footer {
	--azad-ft-ink: #16233d;
	--azad-ft-muted: #5b6a85;
	--azad-ft-line: #e3ecf7;
	--azad-ft-chip: #eef4fc;
	--azad-ft-brand: #1569ae;
	--azad-ft-brand-dark: #0e2f63;
	--azad-ft-accent: #1a8fd1;
	box-sizing: border-box;
	position: relative;
	margin: 0;
	padding: 0;
	background: linear-gradient(180deg, #f7fafe 0%, #eef4fb 100%);
	color: var(--azad-ft-ink);
	font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	border-top: 1px solid var(--azad-ft-line);
}

/* Accent hairline picked from the AzAd logo gradient. */
.azad-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, #7ac143 0%, #00a8a0 22%, #1a8fd1 44%, #7b2f8f 62%, #e3197f 80%, #f5c518 100%);
}

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

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

.azad-footer__inner {
	width: min(1300px, calc(100% - 48px));
	margin: 0 auto;
}

.azad-footer__main {
	padding: 52px 0 40px;
}

/* One calm white panel holds every column, instead of ragged floating cards. */
.azad-footer__grid {
	display: grid;
	grid-template-columns: minmax(220px, 1.55fr) 2.1fr 1.35fr 1.5fr;
	gap: 0;
	align-items: stretch;
	padding: 38px 34px 34px;
	border: 1px solid var(--azad-ft-line);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(15, 42, 86, 0.06);
}

.azad-footer__brand,
.azad-footer__col {
	min-width: 0;
	padding: 0 24px;
}

.azad-footer__brand {
	padding-left: 0;
}

.azad-footer__col {
	border-left: 1px solid var(--azad-ft-line);
}

.azad-footer__col:last-child {
	padding-right: 0;
}

/* Brand ---------------------------------------------------------------- */

.azad-footer__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 92px;
	height: 92px;
	margin: 0 0 18px;
	padding: 6px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 6px 20px rgba(15, 42, 86, 0.1);
}

.azad-footer__logo img {
	display: block;
	width: 100%;
	height: 100%;
}

/* `html body` prefixes below out-rank the legacy elementor-kit / navfix
   rules that still target bare h2, p, li and a inside the page. */
html body .azad-footer .azad-footer__blurb {
	margin: 0 0 22px;
	color: var(--azad-ft-muted);
	font-size: 13.5px;
	line-height: 1.75;
}

/* Fixed six-up grid: the buttons shrink rather than wrapping to a ragged row. */
.azad-footer__social {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 6px;
	max-width: 238px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.azad-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--azad-ft-line);
	border-radius: 11px;
	background: var(--azad-ft-chip);
	color: var(--azad-ft-brand-dark);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.azad-footer__social a:hover,
.azad-footer__social a:focus-visible {
	background: var(--azad-ft-brand);
	border-color: var(--azad-ft-brand);
	color: #fff;
	transform: translateY(-2px);
}

.azad-footer__social svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

/* Columns -------------------------------------------------------------- */

html body .azad-footer .azad-footer__col-title {
	margin: 0 0 18px;
	padding: 0 0 12px;
	position: relative;
	color: var(--azad-ft-brand-dark);
	font-family: "Sora", "Segoe UI", system-ui, sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.azad-footer .azad-footer__col-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background: var(--azad-ft-accent);
}

.azad-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Column-major so the 12 products read top-to-bottom, not zig-zag. */
.azad-footer__list--split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(6, auto);
	grid-auto-flow: column;
	column-gap: 12px;
}

html body .azad-footer .azad-footer__list li {
	margin: 0;
	padding: 0;
	line-height: 1.35;
}

html body .azad-footer .azad-footer__list li + li {
	margin-top: 4px;
}

html body .azad-footer .azad-footer__list--split li + li {
	margin-top: 0;
}

html body .azad-footer .azad-footer__list a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 6px 5px 5px;
	margin-inline: -5px;
	color: var(--azad-ft-muted);
	font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	border-radius: 12px;
	transition: color 0.15s ease, background 0.15s ease;
}

/* Labels stay on one line; the columns are sized to fit the longest of them. */
html body .azad-footer .azad-footer__list a > span {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

html body .azad-footer .azad-footer__list a:hover,
html body .azad-footer .azad-footer__list a:focus-visible {
	color: var(--azad-ft-brand-dark);
	background: var(--azad-ft-chip);
}

/* Fixed chip keeps every glyph optically identical regardless of its path. */
.azad-footer__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 8px;
	background: var(--azad-ft-chip);
	color: var(--azad-ft-brand);
	transition: background 0.15s ease, color 0.15s ease;
}

.azad-footer__ico svg {
	display: block;
	width: 15px;
	height: 15px;
}

.azad-footer__list a:hover .azad-footer__ico,
.azad-footer__list a:focus-visible .azad-footer__ico {
	background: var(--azad-ft-brand);
	color: #fff;
}

/* Disclaimer + bottom bar ---------------------------------------------- */

.azad-footer__disclaimer {
	padding: 14px 0;
	border-top: 1px solid var(--azad-ft-line);
	color: var(--azad-ft-muted);
	font-size: 12.5px;
	line-height: 1.6;
	text-align: center;
}

html body .azad-footer .azad-footer__disclaimer p {
	margin: 0;
	line-height: 1.6;
}

.azad-footer__disclaimer strong {
	color: var(--azad-ft-brand-dark);
	font-family: "Sora", system-ui, sans-serif;
	font-weight: 600;
}

.azad-footer__bottom {
	padding: 18px 0 22px;
	border-top: 1px solid var(--azad-ft-line);
}

html body .azad-footer .azad-footer__copy {
	margin: 0;
	color: var(--azad-ft-muted);
	font-family: "Sora", "Segoe UI", system-ui, sans-serif;
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0.02em;
	text-align: center;
}

/* Responsive ----------------------------------------------------------- */

/* Grid children are: 1 brand, 2 products, 3 company, 4 legal. */

@media (max-width: 1180px) {
	.azad-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 0;
		padding: 32px 28px 28px;
	}

	.azad-footer__brand,
	.azad-footer__col:nth-child(2) {
		grid-column: 1 / -1;
		padding: 0 0 26px;
		margin-bottom: 26px;
		border-left: 0;
		border-bottom: 1px solid var(--azad-ft-line);
	}

	/* Products runs full width here, so spread it over four sub-columns. */
	.azad-footer__col:nth-child(2) .azad-footer__list--split {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-rows: repeat(3, auto);
	}

	.azad-footer__col:nth-child(3) {
		padding: 0 22px 0 0;
		border-left: 0;
	}

	.azad-footer__col:nth-child(4) {
		padding: 0 0 0 22px;
	}
}

@media (max-width: 860px) {
	.azad-footer__col:nth-child(2) .azad-footer__list--split {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: repeat(4, auto);
	}
}

@media (max-width: 720px) {
	.azad-footer__inner {
		width: min(1300px, calc(100% - 32px));
	}

	.azad-footer__main {
		padding: 36px 0 26px;
	}

	.azad-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		padding: 26px 20px 22px;
		border-radius: 18px;
	}

	.azad-footer__brand,
	.azad-footer__col:nth-child(2) {
		padding: 0 0 22px;
		margin-bottom: 22px;
	}

	.azad-footer__col:nth-child(2) .azad-footer__list--split {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(6, auto);
	}

	.azad-footer__col:nth-child(3),
	.azad-footer__col:nth-child(4) {
		padding: 0 0 22px;
		margin-bottom: 22px;
		border-left: 0;
		border-bottom: 1px solid var(--azad-ft-line);
	}

	.azad-footer__col:nth-child(4) {
		padding-bottom: 0;
		margin-bottom: 0;
		border-bottom: 0;
	}
}

@media (max-width: 420px) {
	.azad-footer__col:nth-child(2) .azad-footer__list--split {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		grid-auto-flow: row;
	}

	html body .azad-footer .azad-footer__list--split li + li {
		margin-top: 4px;
	}

	.azad-footer__logo {
		width: 78px;
		height: 78px;
	}
}
