/* =========================================
   تنسيقات الفوتر (أسفل الصفحة) - Dark Theme
   ========================================= */
.site-footer {
	background-color: var(--primary-teal);
	border-top: none;
	padding-top: 60px;
	color: #ffffff;
	position: relative;
	overflow: hidden;
}
.site-footer::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('../img/tanmiah1.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	opacity: 0.16;
	pointer-events: none;
	z-index: 0;
}
.site-footer > .container {
	position: relative;
	z-index: 1;
}
.site-footer p {
	color: rgba(255, 255, 255, 0.8) !important;
}

/* Exclude license images from invert filter */
.site-footer img:not(.footer-license-img) {
	filter: brightness(0) invert(1);
}
.footer-license-img {
	filter: none !important;
}

.footer-widget-title {
	font-size: 1.4rem;
	color: var(--accent-gold);
	font-weight: 800;
	margin-bottom: 25px;
	position: relative;
	padding-bottom: 10px;
}
.footer-widget-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 40px;
	height: 3px;
	background-color: #ffffff;
	border-radius: 3px;
}

/* License Badge */
.footer-license-badge {
	background-color: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	border-right: 3px solid var(--accent-gold);
	padding: 10px 15px;
	font-size: 14px;
	font-weight: 700;
	border-radius: 4px;
	line-height: 1.5;
}

/* Social Buttons */
.footer-social-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.footer-social-btn {
	width: 38px;
	height: 38px;
	background-color: rgba(255, 255, 255, 0.15);
	color: #ffffff !important;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition-smooth);
	font-size: 16px;
}
.footer-social-btn:hover {
	background-color: var(--accent-gold);
	color: #ffffff !important;
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Links */
.footer-links li {
	margin-bottom: 12px;
}
.footer-links a {
	color: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	transition: var(--transition-smooth);
	text-decoration: none;
}
.footer-links a::before {
	content: "•";
	color: var(--accent-gold);
	font-weight: bold;
	font-size: 16px;
}
.footer-links a:hover {
	color: var(--accent-gold);
	padding-right: 5px;
	text-decoration: none;
}

/* Contact List */
.footer-contact-rich {
	padding: 0;
	margin: 0;
}
.footer-contact-rich li {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 18px;
}
.contact-icon-box {
	width: 38px;
	height: 38px;
	background-color: rgba(255, 255, 255, 0.15);
	color: var(--accent-gold);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	flex-shrink: 0;
}
.contact-text-box {
	display: flex;
	flex-direction: column;
	text-align: right;
}
.contact-text-box strong {
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 2px;
}
.contact-text-box span {
	color: rgba(255, 255, 255, 0.8) !important;
	font-size: 14px;
}

/* Newsletter */
.newsletter-footer-form {
	gap: 5px;
	background-color: rgba(255, 255, 255, 0.1);
	padding: 4px;
	border-radius: 50px;
	border: 1px solid rgba(255, 255, 255, 0.15);
}
.newsletter-input {
	border: none !important;
	box-shadow: none !important;
	border-radius: 50px;
	padding-right: 15px;
	font-size: 14px;
	background: transparent !important;
	color: #ffffff !important;
	text-align: right;
}
.newsletter-input::placeholder {
	color: rgba(255, 255, 255, 0.6) !important;
}
.btn-newsletter-submit {
	background-color: var(--accent-gold);
	color: #ffffff !important;
	border-radius: 50px;
	padding: 8px 22px;
	font-size: 14px;
	font-weight: 700;
	border: none;
	transition: var(--transition-smooth);
}
.btn-newsletter-submit:hover {
	background-color: #ffffff;
	color: var(--primary-teal) !important;
	transform: translateY(-1px);
}

/* Bottom Bar */
.footer-bottom {
	background-color: var(--primary-teal);
	color: rgba(255, 255, 255, 0.8);
	padding: 20px 0;
	margin-top: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 14px;
}
.footer-bottom-flex-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}
@media (max-width: 767px) {
	.footer-bottom-flex-wrap {
		flex-direction: column;
		justify-content: center;
		text-align: center;
		gap: 12px;
	}
}
.footer-bottom-credit {
	color: rgba(255, 255, 255, 0.8);
}
.footer-bottom-credit i {
	animation: pulse 1s infinite;
}

@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

/* Floating WhatsApp Button */
.btn-whatsapp-floating {
	position: fixed;
	bottom: 30px;
	left: 30px;
	width: 55px;
	height: 55px;
	background-color: var(--accent-gold);
	color: white !important;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	transition: var(--transition-smooth);
	text-decoration: none !important;
}
.btn-whatsapp-floating:hover {
	transform: scale(1.1) translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
	background-color: var(--primary-teal-dark);
}

/* Scroll to Top Button (Floating Bottom Right) */
.scroll-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 55px;
	height: 55px;
	line-height: 55px;
	text-align: center;
	background-color: var(--accent-gold) !important;
	color: white !important;
	border-radius: 50%;
	display: none; /* Handled by JS fadeIn/fadeOut */
	font-size: 20px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	transition: var(--transition-smooth);
	text-decoration: none !important;
}
.scroll-to-top:hover {
	transform: scale(1.1) translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
	background-color: var(--primary-teal-dark) !important;
}

/* =========================================
   إصلاحات الجوال (توسيط عناصر الفوتر)
   ========================================= */
@media (max-width: 767px) {
    .site-footer .footer-col-2,
    .site-footer .footer-col-3,
    .site-footer .footer-col-4 {
        text-align: center !important;
    }
    .site-footer .footer-widget-title {
        text-align: center !important;
        margin-top: 20px;
    }
    .site-footer .footer-widget-title::after {
        right: 50% !important;
        transform: translateX(50%) !important;
    }
    .site-footer .footer-links {
        text-align: center !important;
    }
    .site-footer .footer-links a {
        justify-content: center !important;
    }
    .site-footer .footer-contact-rich li {
        justify-content: center !important;
        flex-direction: column !important;
        text-align: center !important;
    }
    .site-footer .contact-text-box {
        text-align: center !important;
        margin-top: 8px;
    }
    .site-footer .footer-social-wrap {
        justify-content: center !important;
    }
}

/* Footer Inline Styles Replacements */
.footer-main-logo {
    max-height: 80px;
}

.footer-license-img {
    filter: none !important;
    max-height: 48px;
    object-fit: contain;
}

.partner-mini-logo {
    max-height: 48px;
    object-fit: contain;
}

.footer-bank-account {
    font-size: 13px;
    font-weight: 600;
}

.footer-map-container {
    height: 140px;
    width: 100%;
}

.footer-map-iframe {
    border: 0;
}
