/* =====================================================================
 * Faragiri — Footer redesign.
 * Enqueued site-wide by mu-plugin faragiri-footer.php.
 * Premium dark / glass / gradient aesthetic, RTL, mirrors the .fab tokens
 * from about.css but self-contained (no dependency). Tasteful motion,
 * fully reduced-motion safe. Scoped under #colophon / .fgri-footer.
 * ===================================================================== */

/* ---- force the footer to render on ALL screens -----------------------
 * The theme hides .desktop-footer below 1200px and the .handheld-footer
 * is empty, so small screens had no footer. We reclaim #colophon for all
 * widths and drop the empty handheld bar. */
#colophon.site-footer.desktop-footer { display: block !important; }
.site-footer.handheld-footer { display: none !important; }

/* ---- shell ---------------------------------------------------------- */
#colophon.site__footer--v4 {
	--fg-grad: linear-gradient(90deg, #8D65E9 0%, #5391E4 47%, #6BCD94 100%);
	--fg-accent: #24baef;
	--fg-ink: #eef1f7;
	--fg-muted: #9aa3b8;
	--fg-surface: rgba(31, 38, 56, .55);
	--fg-surface-2: rgba(22, 27, 39, .55);
	--fg-line: rgba(124, 138, 170, .16);
	--fg-radius: 18px;

	position: relative;
	overflow: hidden;
	margin-top: clamp(2.5rem, 6vw, 5rem);
	padding: 0;
	font-size: 15px;
	line-height: 1.85;
	color: var(--fg-ink);
	background:
		radial-gradient(120% 130% at 88% -10%, rgba(141, 101, 233, .16), transparent 55%),
		radial-gradient(110% 120% at 8% 0%, rgba(36, 186, 239, .12), transparent 50%),
		linear-gradient(180deg, #0c1018 0%, #090c13 60%, #07090f 100%);
	border-top: 1px solid var(--fg-line);
	direction: rtl;
	text-align: right;
}
/* glowing gradient hairline riding the top edge */
#colophon.site__footer--v4::before {
	content: "";
	position: absolute;
	inset-block-start: -1px;
	inset-inline: 0;
	height: 2px;
	background: var(--fg-grad);
	opacity: .9;
	box-shadow: 0 0 22px rgba(83, 145, 228, .5);
}
#colophon.site__footer--v4 .container { position: relative; z-index: 2; }

/* normalize */
.fgri-footer * { box-sizing: border-box; }
.fgri-footer h2, .fgri-footer h3, .fgri-footer p, .fgri-footer ul, .fgri-footer li { margin: 0; }
.fgri-footer ul { list-style: none; padding: 0; }
.fgri-footer a { text-decoration: none; color: inherit; }
.fgri-footer strong { color: #fff; font-weight: 800; }

/* ---- decorative layer (aurora + watermark) -------------------------- */
.fgri-footer__fx {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}
.fgri-footer__aurora {
	position: absolute;
	inset-block-start: -38%;
	inset-inline-start: 50%;
	width: min(900px, 92%);
	aspect-ratio: 1 / 1;
	transform: translateX(50%);
	background:
		radial-gradient(closest-side, rgba(141, 101, 233, .22), transparent 70%),
		radial-gradient(closest-side, rgba(36, 186, 239, .16), transparent 72%);
	filter: blur(46px);
	opacity: .85;
	animation: fgff-drift 18s ease-in-out infinite alternate;
}
@keyframes fgff-drift {
	from { transform: translateX(50%) translateY(0) scale(1); }
	to   { transform: translateX(40%) translateY(26px) scale(1.08); }
}
.fgri-footer__wm {
	position: absolute;
	inset-block-end: -.22em;
	inset-inline-start: -.04em;
	font-size: clamp(5rem, 19vw, 16rem);
	font-weight: 900;
	line-height: .8;
	letter-spacing: -.02em;
	color: #fff;
	opacity: .03;
	white-space: nowrap;
	user-select: none;
}

/* ---- inner rhythm --------------------------------------------------- */
.fgri-footer__inner {
	position: relative;
	z-index: 2;
	padding-block: clamp(2.4rem, 5vw, 3.6rem) clamp(1.4rem, 3vw, 2rem);
}

/* =====================================================================
 * CTA band
 * ===================================================================== */
.fgff-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.4rem;
	padding: clamp(1.4rem, 3.2vw, 2.2rem);
	border: 1px solid var(--fg-line);
	border-radius: clamp(18px, 2.4vw, 26px);
	background:
		linear-gradient(180deg, rgba(38, 46, 68, .5), rgba(18, 22, 34, .5));
	backdrop-filter: blur(8px);
	box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
	position: relative;
	overflow: hidden;
}
.fgff-cta::before {  /* faint corner sheen */
	content: "";
	position: absolute;
	inset-block-start: -60%;
	inset-inline-end: -10%;
	width: 60%;
	height: 200%;
	background: radial-gradient(closest-side, rgba(107, 205, 148, .14), transparent 70%);
	pointer-events: none;
}
.fgff-cta__text { position: relative; z-index: 1; max-width: 46ch; }
.fgff-cta__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-size: .8rem;
	font-weight: 800;
	color: #d7deef;
	padding: .32rem .85rem;
	border: 1px solid var(--fg-line);
	border-radius: 999px;
	background: var(--fg-surface);
	margin-bottom: .85rem;
}
.fgff-cta__eyebrow svg { width: 15px; height: 15px; color: #6BCD94; }
.fgff-cta__title {
	font-size: clamp(1.3rem, 3.2vw, 2rem);
	font-weight: 900;
	line-height: 1.35;
	color: #fff;
	letter-spacing: -.01em;
}
.fgff-cta__sub {
	margin-top: .55rem;
	color: var(--fg-muted);
	font-size: .98rem;
}
.fgff-cta__btn {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	flex-shrink: 0;
	padding: .92rem 1.7rem;
	border-radius: 999px;
	font-weight: 800;
	font-size: 1.02rem;
	color: #0c0f16;
	background: var(--fg-grad);
	background-size: 160% 100%;
	background-position: 0% 50%;
	box-shadow: 0 14px 34px -12px rgba(83, 145, 228, .65);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, background-position .5s ease;
}
.fgff-cta__btn svg { width: 19px; height: 19px; transition: transform .25s ease; }
.fgff-cta__btn::after {  /* shimmer sweep */
	content: "";
	position: absolute;
	inset: 0;
	transform: translateX(-130%);
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
}
.fgff-cta__btn:hover {
	transform: translateY(-3px);
	background-position: 100% 50%;
	box-shadow: 0 20px 42px -12px rgba(83, 145, 228, .8);
}
.fgff-cta__btn:hover svg { transform: translateX(-5px); }   /* RTL: arrow nudges left */
.fgff-cta__btn:hover::after { animation: fgff-sheen .9s ease; }
@keyframes fgff-sheen { to { transform: translateX(130%); } }

/* =====================================================================
 * Stat chips
 * ===================================================================== */
.fgff-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: .8rem;
	margin-top: 1rem;
}
.fgff-stat {
	position: relative;
	padding: 1.05rem 1rem;
	text-align: center;
	border: 1px solid var(--fg-line);
	border-radius: 16px;
	background: var(--fg-surface-2);
	backdrop-filter: blur(6px);
	overflow: hidden;
	transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.fgff-stat::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 18%;
	height: 2px;
	border-radius: 2px;
	background: var(--fg-grad);
	opacity: 0;
	transition: opacity .25s ease;
}
.fgff-stat:hover {
	transform: translateY(-4px);
	border-color: rgba(124, 138, 170, .35);
	background: rgba(31, 38, 56, .7);
}
.fgff-stat:hover::before { opacity: 1; }
.fgff-stat__n {
	display: block;
	font-size: clamp(1.35rem, 3.4vw, 1.9rem);
	font-weight: 900;
	line-height: 1.1;
	background: var(--fg-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.fgff-stat__l {
	display: block;
	margin-top: .3rem;
	font-size: .82rem;
	font-weight: 600;
	color: var(--fg-muted);
}

/* =====================================================================
 * Main — brand + columns
 * ===================================================================== */
.fgff-main {
	display: grid;
	grid-template-columns: 1.7fr 1fr 1fr 1fr;
	gap: clamp(1.6rem, 3.4vw, 3rem);
	margin-top: clamp(2.2rem, 4.6vw, 3.4rem);
	padding-top: clamp(2rem, 4vw, 2.8rem);
	border-top: 1px solid var(--fg-line);
}

/* brand (no logo — leads with the tagline) */
.fgff-brand { max-width: 42ch; }
.fgff-brand__tagline {
	margin-top: 0;
	font-weight: 800;
	color: #e7ecf7;
	font-size: 1.15rem;
}
.fgff-brand__blurb {
	margin-top: .55rem;
	color: var(--fg-muted);
	font-size: .94rem;
	line-height: 2;
}

/* social */
.fgff-social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.fgff-social__a {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	color: #cfd6e6;
	border: 1px solid var(--fg-line);
	background: var(--fg-surface-2);
	transition: transform .25s ease, color .25s ease, border-color .25s ease, background .25s ease;
}
.fgff-social__a svg { width: 21px; height: 21px; position: relative; z-index: 1; }
.fgff-social__a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: var(--fg-grad);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity .25s ease;
}
.fgff-social__a:hover {
	transform: translateY(-4px);
	color: #fff;
	background: rgba(31, 38, 56, .82);
	border-color: transparent;
}
.fgff-social__a:hover::before { opacity: 1; }

/* columns */
.fgff-cols {
	display: contents;   /* the 3 columns become direct grid children of .fgff-main */
}
.fgff-col__h {
	font-size: 1rem;
	font-weight: 800;
	color: #fff;
	margin-bottom: .9rem;
}
.fgff-col__list { display: flex; flex-direction: column; gap: .15rem; }
.fgff-col__list a {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .42rem 0;
	color: var(--fg-muted);
	font-size: .94rem;
	font-weight: 600;
	transition: color .2s ease, transform .2s ease;
}
.fgff-col__dot {
	width: 6px;
	height: 6px;
	flex-shrink: 0;
	border-radius: 50%;
	background: currentColor;
	opacity: .35;
	transition: background .2s ease, opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}
.fgff-col__t { transition: inherit; }
.fgff-col__ext { display: inline-flex; opacity: .55; }
.fgff-col__ext svg { width: 14px; height: 14px; }
.fgff-col__list a:hover {
	color: #fff;
	transform: translateX(-5px);   /* RTL: slides toward the text edge */
}
.fgff-col__list a:hover .fgff-col__dot {
	opacity: 1;
	transform: scale(1.25);
	background: #5391E4;
	box-shadow: 0 0 0 4px rgba(83, 145, 228, .2);
}
.fgff-col__list a:focus-visible {
	outline: 2px solid var(--fg-accent);
	outline-offset: 3px;
	border-radius: 6px;
}

/* =====================================================================
 * Bottom bar
 * ===================================================================== */
.fgff-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp(2rem, 4vw, 2.8rem);
	padding-top: 1.4rem;
	border-top: 1px solid var(--fg-line);
	font-size: .88rem;
	color: var(--fg-muted);
}
.fgff-copy strong { color: #eef1f7; }
.fgff-made { display: inline-flex; align-items: center; gap: .35rem; }
.fgff-heart {
	color: #ff6b8b;
	animation: fgff-beat 1.6s ease-in-out infinite;
	display: inline-block;
}
@keyframes fgff-beat {
	0%, 100% { transform: scale(1); }
	14% { transform: scale(1.25); }
	28% { transform: scale(1); }
	42% { transform: scale(1.18); }
}
.fgff-top {
	margin-inline-start: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	width: 46px;
	height: 46px;
	cursor: pointer;
	border-radius: 14px;
	color: #eaf0fb;
	border: 1px solid var(--fg-line);
	background: var(--fg-surface-2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
	transition: transform .25s ease, color .2s ease, background .25s ease, box-shadow .25s ease;
}
.fgff-top svg { display: block; width: 21px; height: 21px; transition: transform .25s ease; }
.fgff-top:hover {
	transform: translateY(-4px);
	color: #0c0f16;
	background: var(--fg-grad);
	box-shadow: 0 16px 34px -14px rgba(83, 145, 228, .7);
}
.fgff-top:hover svg { transform: translateY(-2px); }
.fgff-top:focus-visible { outline: 2px solid var(--fg-accent); outline-offset: 3px; }

/* =====================================================================
 * Responsive
 * ===================================================================== */
@media (max-width: 991px) {
	.fgff-main { grid-template-columns: 1fr 1fr; }
	.fgff-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 640px) {
	.fgff-stats { grid-template-columns: repeat(2, 1fr); }
	.fgff-cta { flex-direction: column; align-items: flex-start; }
	.fgff-cta__btn { width: 100%; justify-content: center; }
}
@media (max-width: 460px) {
	.fgff-main { grid-template-columns: 1fr; }
	.fgff-bottom { justify-content: center; text-align: center; }
	.fgff-top { margin-inline: auto; }
}

/* =====================================================================
 * Reveal-on-scroll (only active once JS adds .fgff-reveal-ready;
 * JS never adds it under prefers-reduced-motion, so no hiding there)
 * ===================================================================== */
.fgff-reveal-ready .fgff-cta,
.fgff-reveal-ready .fgff-stat,
.fgff-reveal-ready .fgff-brand,
.fgff-reveal-ready .fgff-col,
.fgff-reveal-ready .fgff-bottom {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
	will-change: opacity, transform;
}
.fgff-reveal-ready .is-in {
	opacity: 1 !important;
	transform: none !important;
}

/* =====================================================================
 * Motion / contrast safety
 * ===================================================================== */
@media (prefers-reduced-motion: reduce) {
	.fgri-footer__aurora,
	.fgff-heart { animation: none !important; }
	.fgff-cta__btn::after { display: none; }
	.fgff-cta__btn,
	.fgff-cta__btn svg,
	.fgff-stat,
	.fgff-social__a,
	.fgff-col__list a,
	.fgff-top,
	.fgff-top svg { transition: none !important; }
}
