/* =========================================================================
   Ruqi Footer — matches the Ruqi header tokens (--rq-*)
   ========================================================================= */
.rq-footer {
	--f-700: var(--rq-700, #3E1E68); --f-600: var(--rq-600, #5D2F77); --f-accent: var(--rq-accent, #E45A92);
	--f-soft: var(--rq-soft, #FFACAC); --f-tint: var(--rq-tint, #F7F2FB); --f-line: var(--rq-line, #ECE6F1);
	font-family: "Tajawal", system-ui, sans-serif; color: #fff; margin-top: 64px; position: relative;
}
.rq-footer *, .rq-footer *::before, .rq-footer *::after { box-sizing: border-box; }
.rq-footer ul { list-style: none; margin: 0; padding: 0; }
.rq-footer li { margin: 0; padding: 0; }
.rq-footer a { text-decoration: none; color: inherit; }
.rq-footer h2.rq-footer__title { color: #fff !important; }
.rq-fcontainer { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: 24px; }

/* ---------- trust strip (floats over the top edge) */
.rq-footer__trust { position: relative; z-index: 2; margin-bottom: -46px; }
.rq-footer__trust-grid {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
	background: #fff; color: var(--f-700); border-radius: 22px; padding: 6px;
	box-shadow: 0 24px 50px -24px rgba(38, 14, 66, .45), 0 0 0 1px var(--f-line);
	max-width: 1312px; padding-inline: 6px;
}
.rq-trust { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; transition: background-color .2s; }
.rq-trust + .rq-trust { border-inline-start: 1px solid var(--f-line); }
a.rq-trust:hover { background: var(--f-tint); }
.rq-trust__ico {
	flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
	background: linear-gradient(135deg, #F3EAF8, #FCE9F1); color: var(--f-600);
}
.rq-trust__ico .rq-ico, .rq-trust__ico svg { width: 22px; height: 22px; }
.rq-trust strong { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.rq-trust small { display: block; margin-top: 3px; font-size: 12.5px; color: #6B6275; line-height: 1.45; }

/* ---------- main */
.rq-footer__main {
	position: relative; overflow: hidden; padding: 96px 0 44px;
	background:
		radial-gradient(70% 120% at 100% 0%, rgba(228, 90, 146, .22), transparent 55%),
		radial-gradient(60% 120% at 0% 100%, rgba(122, 71, 150, .55), transparent 60%),
		linear-gradient(180deg, #3E1E68, #2B1249);
}
.rq-footer__main::before { /* soft brand ring */
	content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
	inset-inline-end: -140px; bottom: -220px; border: 46px solid rgba(255, 255, 255, .04); pointer-events: none;
}
.rq-footer__grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.2fr; gap: 40px; }

.rq-footer__logo { display: inline-flex; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.rq-footer__logo img { width: auto; height: 64px; max-width: none; display: block; }
.rq-footer__about { margin: 18px 0 18px; max-width: 34ch; font-size: 14.5px; line-height: 1.9; color: rgba(255, 255, 255, .78); }
.rq-footer__academy {
	display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
	font-size: 13.5px; font-weight: 700; color: #FFD0E0 !important;
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 172, 172, .3); transition: all .2s;
}
.rq-footer__academy:hover { background: var(--f-accent); border-color: var(--f-accent); color: #fff !important; }

.rq-footer__title { position: relative; margin: 6px 0 18px !important; padding-bottom: 12px; font-size: 16px !important; font-weight: 800 !important; letter-spacing: 0; }
.rq-footer__title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--f-accent), var(--f-soft)); }
.rq-footer__col ul { display: grid; gap: 11px; }
.rq-footer__col ul a { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .78); transition: color .2s, transform .2s; }
.rq-footer__col ul a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background-color .2s; }
.rq-footer__col ul a:hover { color: #fff; transform: translateX(-3px); }
html:not([dir="rtl"]) .rq-footer__col ul a:hover { transform: translateX(3px); }
.rq-footer__col ul a:hover::before { background: var(--f-accent); }

.rq-footer__hint { margin: 0 0 16px; font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, .7); }
/* ---------- socials: icon-only, white discs; each network's colour on hover */
.rq-footer .rq-footer__socials { display: flex; flex-wrap: wrap; gap: 12px; }
.rq-footer .rq-fsocial {
	--net: linear-gradient(135deg, #E45A92, #7A4796);
	position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; isolation: isolate;
	background: #fff; color: #5D2F77; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55), inset 0 0 0 3px rgba(255, 208, 224, .55);
	transition: transform .3s var(--rq-ease, ease), color .25s, box-shadow .3s;
}
.rq-footer .rq-fsocial::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--net); transform: scale(0); border-radius: 50%; transition: transform .35s var(--rq-ease, ease); }
.rq-footer .rq-fsocial .rq-ico { width: 22px; height: 22px; transition: transform .3s var(--rq-ease, ease); }
.rq-footer .rq-fsocial--whatsapp { --net: linear-gradient(135deg, #25D366, #128C4A); }
.rq-footer .rq-fsocial--instagram { --net: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.rq-footer .rq-fsocial--facebook { --net: linear-gradient(135deg, #3B8BFF, #1460D6); }
.rq-footer .rq-fsocial--telegram { --net: linear-gradient(135deg, #37AEE2, #1E96C8); }
.rq-footer .rq-fsocial:hover, .rq-footer .rq-fsocial:focus-visible { color: #fff; transform: translateY(-4px); box-shadow: 0 16px 28px -12px rgba(0, 0, 0, .6); }
.rq-footer .rq-fsocial:hover::before, .rq-footer .rq-fsocial:focus-visible::before { transform: scale(1); }
.rq-footer .rq-fsocial:hover .rq-ico { transform: scale(1.1) rotate(-6deg); }
.rq-footer .rq-fsocial:focus-visible { outline: 2px solid #FFD0E0; outline-offset: 3px; }

/* ---------- bottom bar */
.rq-footer__bottom { background: #23103C; border-top: 1px solid rgba(255, 255, 255, .08); }
.rq-footer__bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-block: 18px; }
.rq-footer__copy { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .6); }
.rq-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rq-footer__legal a { font-size: 13px; color: rgba(255, 255, 255, .7); transition: color .2s; }
.rq-footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.rq-footer__pay { display: flex; align-items: center; gap: 6px; }
.rq-paychip {
	display: inline-grid; place-items: center; height: 28px; min-width: 44px; padding: 0 8px; border-radius: 7px;
	background: #fff; color: #1A1F71; font: italic 900 12.5px/1 Arial, sans-serif; letter-spacing: .5px;
}
.rq-paychip--text { font: 700 11.5px/1 "Tajawal", sans-serif; font-style: normal; color: var(--f-700); letter-spacing: 0; }

/* hide any leftover XStore/Elementor footer wrappers we no longer use */
body.ruqi-header-on .et-footers-wrapper:empty { display: none; }

/* ---------- responsive */
@media (max-width: 1100px) {
	.rq-footer__trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rq-trust:nth-child(3) { border-inline-start: 0; }
	.rq-trust:nth-child(n+3) { border-top: 1px solid var(--f-line); }
	.rq-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
	.rq-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.rq-fcontainer { padding-inline: 14px; }
	.rq-footer { margin-top: 48px; }
	.rq-footer__trust { margin-bottom: -36px; }
	.rq-footer__trust-grid { grid-template-columns: 1fr 1fr; border-radius: 18px; padding: 4px; width: calc(100% - 28px); }
	.rq-trust { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
	.rq-trust__ico { width: 38px; height: 38px; border-radius: 12px; }
	.rq-trust strong { font-size: 13px; }
	.rq-trust small { font-size: 11.5px; }
	.rq-footer__main { padding: 72px 0 32px; }
	.rq-footer__grid { gap: 30px 18px; }
	.rq-footer__contact { grid-column: 1 / -1; }
	.rq-footer__logo img { height: 52px; }
	.rq-footer__bottom-row { flex-direction: column; align-items: center; text-align: center; padding-bottom: 20px; }
	.rq-footer__legal { justify-content: center; }
	/* clear XStore's fixed mobile bottom bar */
	body:has(.et-mobile-panel-wrapper) .rq-footer__bottom { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

