/* ==========================================================================
   Footer and floating buttons
   The footer, the WhatsApp button, the back-to-top button and the cursor glow. HTML: footer.php
   ========================================================================== */

.site-footer {
	position: relative;
	margin-top: clamp(20px, 3vw, 40px);
	padding: clamp(56px, 8vw, 96px) 0 0;
	border-top: 1px solid var(--border);
	background: linear-gradient(180deg, var(--bg) 0%, #050212 100%);
	overflow: hidden;
}
.site-footer__glow { position: absolute; top: -200px; left: 50%; width: 800px; height: 400px; margin-left: -400px; background: radial-gradient(ellipse, rgba(124, 58, 237, .25), transparent 70%); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-about { color: var(--muted); font-size: .95rem; margin: 20px 0 24px; max-width: 360px; }
.footer-title { font-size: 1rem; margin-bottom: 20px; letter-spacing: .02em; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--muted); font-size: .94rem; display: inline-block; transition: color .2s, transform .3s var(--ease); }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-contact li { display: flex; gap: 12px; color: var(--muted); font-size: .94rem; }
.footer-contact .std-icon { color: var(--c-primary-2); margin-top: 4px; }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: #fff; }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social-links a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: #fff; transition: all .3s var(--ease); }
.social-links a:hover { background: var(--grad-btn); border-color: transparent; transform: translateY(-3px); }
/* Official brand colours, always visible. */
.social-links a.social--facebook, .social-links a.social--facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.social-links a.social--instagram, .social-links a.social--instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); border-color: transparent; color: #fff; }
.social-links a.social--linkedin, .social-links a.social--linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.social-links a.social--youtube, .social-links a.social--youtube:hover { background: #ff0000; border-color: #ff0000; color: #fff; }
.social-links a.social--tiktok, .social-links a.social--tiktok:hover { background: #000; border-color: #25f4ee; color: #fff; box-shadow: 2px 2px 0 #fe2c55; }
.social-links a.social--x, .social-links a.social--x:hover { background: #000; border-color: rgba(255, 255, 255, .25); color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding: 24px 0 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: #fff; }
.float-whatsapp {
	position: fixed;
	right: 22px; bottom: 22px;
	z-index: 90;
	width: 58px; height: 58px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: #22c55e;
	color: #fff;
	box-shadow: 0 10px 30px -6px rgba(34, 197, 94, .7);
	transition: transform .3s var(--ease);
}
.float-whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #22c55e; animation: ring 2.4s infinite; }
.float-whatsapp:hover { color: #fff; transform: scale(1.08); }
.back-to-top {
	position: fixed;
	right: 30px; bottom: 92px;
	z-index: 90;
	width: 44px; height: 44px;
	display: grid; place-items: center;
	border-radius: 50%;
	border: 1px solid var(--border-strong);
	background: rgba(16, 10, 44, .85);
	backdrop-filter: blur(10px);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: all .35s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--c-primary); }
.cursor-glow {
	position: fixed;
	top: 0; left: 0;
	width: 500px; height: 500px;
	margin: -250px 0 0 -250px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(124, 58, 237, .12), transparent 60%);
	pointer-events: none;
	z-index: 0;
	opacity: 0;
	transition: opacity .4s;
	will-change: transform;
}
.has-cursor .cursor-glow { opacity: 1; }
.site-footer { padding-top: clamp(28px, 4vw, 44px); border-top: 0; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, #a78bfa, #22d3ee, #f472b6, #f59e0b, transparent); box-shadow: 0 0 20px rgba(167, 139, 250, .7); }
.footer-quick { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: clamp(30px, 4vw, 44px); }
.footer-quick__item {
	--qc: #a78bfa;
	display: flex; align-items: center; gap: 14px;
	padding: 18px 20px;
	border-radius: 20px;
	background: linear-gradient(150deg, color-mix(in srgb, var(--qc) 16%, transparent), rgba(255, 255, 255, .02));
	border: 1px solid color-mix(in srgb, var(--qc) 35%, transparent);
	color: #fff;
	transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.footer-quick__item:hover { color: #fff; transform: translateY(-4px); border-color: var(--qc); box-shadow: 0 20px 40px -22px var(--qc); }
.footer-quick__icon { flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--qc); color: #0b0620; box-shadow: 0 10px 24px -10px var(--qc); }
.footer-quick__item small { display: block; color: color-mix(in srgb, var(--qc) 65%, #fff); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.footer-quick__item strong { display: block; font-family: var(--font-display); font-size: clamp(.8rem, 1.08vw, 1rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-quick__item > span:not(.footer-quick__icon) { min-width: 0; }
.footer-quick__arrow { margin-left: auto; flex-shrink: 0; color: var(--qc); transition: transform .35s var(--ease); }
.footer-quick__item:hover .footer-quick__arrow { transform: translateX(4px) rotate(-45deg); }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.25fr; }
.footer-title { position: relative; padding-bottom: 12px; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; border-radius: 2px; background: var(--grad); }
.footer-open { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 14px; border-radius: 999px; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); color: #a7f3d0; font-size: .8rem; font-weight: 600; }
.footer-open i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
.footer-links--dots li { --lc: #a78bfa; }
.footer-links--dots a { display: inline-flex; align-items: center; gap: 10px; }
.footer-links--dots a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lc); box-shadow: 0 0 8px var(--lc); flex-shrink: 0; }
.footer-links--dots a:hover { color: var(--lc); }
.footer-links--arrows a { display: inline-flex; align-items: center; gap: 0; }
.footer-links--arrows .std-icon { width: 0; opacity: 0; color: var(--c-glow); transition: width .3s var(--ease), opacity .3s, margin .3s; }
.footer-links--arrows a:hover { transform: none; }
.footer-links--arrows a:hover .std-icon { width: 14px; opacity: 1; margin-right: 8px; }
.footer-map {
	position: relative;
	display: flex; align-items: center; gap: 12px;
	margin-bottom: 18px;
	padding: 16px;
	border-radius: 18px;
	overflow: hidden;
	color: #fff;
	background:
		linear-gradient(rgba(12, 7, 39, .55), rgba(12, 7, 39, .75)),
		repeating-linear-gradient(0deg, rgba(167, 139, 250, .12) 0 1px, transparent 1px 22px),
		repeating-linear-gradient(90deg, rgba(34, 211, 238, .1) 0 1px, transparent 1px 22px),
		radial-gradient(circle at 70% 40%, rgba(124, 58, 237, .45), transparent 60%);
	border: 1px solid var(--border-strong);
	transition: border-color .3s, transform .4s var(--ease);
}
.footer-map:hover { color: #fff; border-color: rgba(167, 139, 250, .6); transform: translateY(-3px); }
.footer-map__pin { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); background: var(--grad-btn); box-shadow: 0 0 0 6px rgba(124, 58, 237, .2), 0 10px 24px -8px rgba(147, 51, 234, .9); }
.footer-map__pin .std-icon { transform: rotate(45deg); }
.footer-map strong { display: block; font-size: .92rem; line-height: 1.4; }
.footer-map small { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--c-glow); font-size: .78rem; font-weight: 600; }
.footer-bottom {
	position: relative;
	margin: 36px 0 24px;
	padding: 14px 16px 14px 14px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: linear-gradient(90deg, rgba(124, 58, 237, .1), rgba(255, 255, 255, .025) 40%, rgba(34, 211, 238, .06));
	backdrop-filter: blur(10px);
}
.footer-bottom::before { content: ""; position: absolute; left: 6%; right: 6%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, #a78bfa, #22d3ee, #f472b6, transparent); box-shadow: 0 0 14px rgba(167, 139, 250, .8); }
.footer-copy { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .86rem; }
.footer-copy__logo .brand__logo { width: 30px; height: 30px; box-shadow: 0 0 0 2px rgba(167, 139, 250, .35); }
.footer-copy strong { font-weight: 700; }
.footer-bottom .footer-legal { gap: 6px; }
.footer-bottom .footer-legal a { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .84rem; color: var(--muted); border: 1px solid transparent; transition: color .25s, background .25s, border-color .25s; }
.footer-bottom .footer-legal a:hover { color: #fff; background: rgba(167, 139, 250, .14); border-color: rgba(167, 139, 250, .4); }
.footer-copy__sep { margin: 0 10px; color: rgba(167, 139, 250, .55); font-weight: 300; }
/* Designer credit: glowing name with a small LinkedIn badge */
.footer-credit { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; text-decoration: none; }
.footer-credit strong { background: linear-gradient(90deg, #7cc4ff, #a78bfa, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.footer-credit__in { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #0a66c2; color: #fff; box-shadow: 0 4px 12px -4px #0a66c2; transition: transform .4s var(--ease); }
.footer-credit:hover strong { text-decoration: underline; text-decoration-color: #7cc4ff; text-underline-offset: 3px; }
.footer-credit:hover .footer-credit__in { transform: rotate(-12deg) scale(1.15); }

@media (max-width: 900px) {
	.footer-bottom { flex-direction: column; text-align: center; gap: 12px; padding: 18px 14px; }
	.footer-copy { flex-direction: column; gap: 8px; }
	.footer-bottom .footer-legal { justify-content: center; }
}


@media (max-width: 1024px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1200px) {
	.footer-quick { grid-template-columns: 1fr; }
	.footer-quick__item strong { font-size: .88rem; overflow-wrap: normal; }
}

@media (max-width: 680px) {
	.footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.footer-bottom { flex-direction: column; text-align: center; }
	.back-to-top { right: 28px; bottom: 90px; }
	.float-whatsapp { right: 18px; bottom: 18px; width: 54px; height: 54px; }
}

@media (hover: none) {
	.cursor-glow { display: none; }
}
