/**
 * Custom Footer Styles
 * Beautiful footer with modern design, adapted from React component
 *
 * @package Woodmart_Child
 * @version 1.0.0
 */

/* ============================================
   ARMENIAN FONT FOR FOOTER
   ============================================ */
.custom-footer,
.custom-footer * {
	font-family: 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ============================================
   FOOTER CONTAINER
   ============================================ */
.custom-footer,
.site-footer,
.footer-container,
.footer-wrapper {
	position: relative;
	background: #f7f9fa !important;
	color: #333333 !important;
	margin: 0;
	padding: 0;
	overflow: hidden;
	z-index: 1;
	border-top: 1px solid #eaeaea !important;
}

.custom-footer-gradient {
	display: none;
}

.custom-footer-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 56px 24px 32px;
	position: relative;
	z-index: 1;
}

.custom-footer-content {
	position: relative;
	z-index: 2;
}

/* ============================================
   FOOTER GRID
   ============================================ */
.custom-footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 48px 32px;
	margin-bottom: 32px;
}

@media (min-width: 768px) {
	.custom-footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.custom-footer-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 64px 32px;
	}
}

/* ============================================
   BRAND SECTION
   ============================================ */
.custom-footer-brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.custom-footer-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.custom-footer-icon {
	font-size: 32px;
	color: #233E2A !important;
	font-weight: 700;
	line-height: 1;
}

.custom-footer-name {
	font-size: 28px;
	font-weight: 700;
	color: #111111 !important;
	line-height: 1.2;
}

.custom-footer-description {
	font-size: 14px;
	line-height: 1.6;
	color: #555555 !important;
	margin: 0;
}

/* ============================================
   FOOTER SECTIONS
   ============================================ */
.custom-footer-section {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.custom-footer-title {
	font-size: 18px;
	font-weight: 600;
	color: #111111 !important;
	margin: 0 0 16px 0;
	line-height: 1.4;
}

/* ============================================
   FOOTER MENU
   ============================================ */
.custom-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.custom-footer-menu li {
	margin: 0;
	padding: 0;
	position: relative;
}

.custom-footer-menu a {
	color: #555555 !important;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.5;
	transition: color 0.25s ease, transform 0.25s ease;
	display: inline-flex;
	align-items: center;
	position: relative;
	padding-bottom: 2px;
}

.custom-footer-menu a:hover {
	color: #233E2A !important;
	transform: translateY(-1px);
}

.custom-footer-menu a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	background: #233E2A;
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.custom-footer-menu a:hover::after {
	transform: scaleX(1);
}

.custom-footer-pulse {
	/* Removed per request (no dot indicator). Keep class hidden in case old markup remains. */
	display: none !important;
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.5;
		transform: scale(1.2);
	}
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.custom-footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.custom-footer-contact-item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.custom-footer-contact-item svg {
	flex-shrink: 0;
	color: #233E2A !important;
}

.custom-footer-contact-item a,
.custom-footer-contact-item span {
	color: #555555 !important;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.5;
	transition: color 0.25s ease, transform 0.25s ease;
}

.custom-footer-contact-item a:hover {
	color: #233E2A !important;
	transform: translateY(-1px);
}

.custom-footer-contact-item a {
	position: relative;
	display: inline-flex;
	padding-bottom: 2px;
}

.custom-footer-contact-item a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	background: #233E2A;
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.custom-footer-contact-item a:hover::after {
	transform: scaleX(1);
}

/* ============================================
   FOOTER SEPARATOR
   ============================================ */
.custom-footer-separator {
	border: none;
	border-top: 1px solid #eaeaea;
	margin: 32px 0;
	padding: 0;
}

/* ============================================
   FOOTER BOTTOM
   ============================================ */
.custom-footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
}

@media (min-width: 768px) {
	.custom-footer-bottom {
		flex-direction: row;
	}
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.custom-footer-social {
	display: flex;
	gap: 24px;
	align-items: center;
}

.custom-footer-social-link {
	color: #666666 !important;
	text-decoration: none;
	transition: color 0.3s ease, transform 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
}

.custom-footer-social-link:hover {
	color: #233E2A !important;
	transform: translateY(-2px);
}

.custom-footer-social-link svg {
	width: 20px;
	height: 20px;
}

/* ============================================
   COPYRIGHT
   ============================================ */
.custom-footer-copyright {
	font-size: 14px;
	color: #666666 !important;
	text-align: center;
	line-height: 1.5;
}

@media (min-width: 768px) {
	.custom-footer-copyright {
		text-align: left;
	}
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 767px) {
	.custom-footer-container {
		padding: 40px 16px 24px;
	}

	.custom-footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.custom-footer-logo {
		flex-wrap: wrap;
	}

	.custom-footer-name {
		font-size: 24px;
	}

	.custom-footer-bottom {
		text-align: center;
	}

	.custom-footer-social {
		justify-content: center;
	}
}

/* ============================================
/* Animated Text Removed */


/* ============================================
   FOOTER BOTTOM WHITE SECTION
   ============================================ */
.custom-footer-bottom-white {
	background: #ffffff;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	padding: 20px 0;
	margin-top: 0;
}

.custom-footer-bottom-white-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.custom-footer-bottom-links {
	display: flex;
	gap: 24px;
	align-items: center;
	flex-wrap: wrap;
}

.custom-footer-bottom-link {
	color: #333333;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.25s ease, transform 0.25s ease;
	font-family: 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	position: relative;
	display: inline-flex;
	padding-bottom: 2px;
}

.custom-footer-bottom-link:hover {
	color: #233E2A;
	transform: translateY(-1px);
}

.custom-footer-bottom-link::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	background: #233E2A;
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.custom-footer-bottom-link:hover::after {
	transform: scaleX(1);
}

/* Payment Icons */
.custom-footer-payment-icons {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

.custom-payment-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 34px;
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	padding: 6px 8px;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.custom-payment-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 70, 47, 0.15);
    border-color: rgba(40, 70, 47, 0.3);
}

.custom-payment-icon svg,
.custom-payment-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Entry animation */
@keyframes footerFadeUp {
	0% { opacity: 0; transform: translateY(10px); }
	100% { opacity: 1; transform: translateY(0); }
}

.custom-footer-grid > * {
	opacity: 0;
	transform: translateY(10px);
	animation: footerFadeUp 0.7s ease forwards;
}
.custom-footer-grid > *:nth-child(1) { animation-delay: 0.05s; }
.custom-footer-grid > *:nth-child(2) { animation-delay: 0.12s; }
.custom-footer-grid > *:nth-child(3) { animation-delay: 0.19s; }
.custom-footer-grid > *:nth-child(4) { animation-delay: 0.26s; }

.custom-footer-bottom-white-container {
	animation: footerFadeUp 0.7s ease both;
	animation-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
	.custom-footer-grid > *,
	.custom-footer-bottom-white-container {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
	.custom-footer-menu a,
	.custom-footer-contact-item a,
	.custom-footer-bottom-link,
	.custom-payment-icon {
		transition: none !important;
	}
}

@media (max-width: 767px) {
	.custom-footer-bottom-white-container {
		flex-direction: column;
		align-items: flex-start;
	}

	.custom-footer-bottom-links {
		width: 100%;
	}

	.custom-footer-payment-icons {
		width: 100%;
		justify-content: flex-start;
	}
}

/* ============================================
   HIDE DEFAULT FOOTER
   ============================================ */
body .wd-footer,
body footer:not(.custom-footer) {
	display: none !important;
}

/* Ensure custom footer is visible */
.custom-footer {
	display: block !important;
}

/* ============================================
   LEGAL POPUP STYLES
   ============================================ */
.legal-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.legal-popup-container {
    background: #ffffff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: popupFadeIn 0.3s ease;
}

.legal-popup-header {
    padding: 20px 50px 20px 24px; /* extra right padding for absolute close button */
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px 12px 0 0;
    position: relative; /* for absolute close btn */
}

.legal-popup-title {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: 700;
    font-family: 'Noto Sans Armenian', sans-serif;
    line-height: 1.3;
}

.legal-popup-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

@media (max-width: 500px) {
    .legal-popup-header {
        padding: 16px 45px 16px 20px;
    }
    .legal-popup-title {
        font-size: 18px; /* smaller for mobile to fit long armenian words */
    }
    .legal-popup-close {
        right: 8px;
    }
}

.legal-popup-close:hover {
    background: #f5f5f5;
    color: #333;
}

.legal-popup-body {
    padding: 30px;
    overflow-y: auto;
    color: #444;
    line-height: 1.6;
    font-size: 16px;
    font-family: 'Noto Sans Armenian', sans-serif;
}

.legal-popup-body h1,
.legal-popup-body h2,
.legal-popup-body h3 {
    color: #222;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.legal-popup-body h1:first-child,
.legal-popup-body h2:first-child {
    margin-top: 0;
}

.legal-popup-body p {
    margin-bottom: 1em;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Custom Scrollbar for popup */
.legal-popup-body::-webkit-scrollbar {
    width: 8px;
}
.legal-popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.legal-popup-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.legal-popup-body::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ============================================
   STICKY SOCIAL BAR
   ============================================ */
.custom-sticky-socials {
	position: fixed;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.custom-sticky-socials ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.custom-sticky-socials li {
	margin: 0;
	padding: 0;
}

.custom-sticky-socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	color: #333 !important;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	background-color: #ffffff;
	box-shadow: -4px 4px 15px rgba(0,0,0,0.08);
	border-radius: 12px 0 0 12px;
	overflow: hidden;
}

.custom-sticky-socials a:hover {
	width: 56px;
	color: #ffffff !important;
}

.custom-sticky-socials a svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.custom-sticky-socials a:hover svg {
	transform: scale(1.15);
}

/* Hover Brand Colors */
.custom-sticky-socials .social-fb:hover { background-color: #1877F2; }
.custom-sticky-socials .social-ig:hover { background-color: #E1306C; }
.custom-sticky-socials .social-tg:hover { background-color: #0088cc; }
.custom-sticky-socials .social-wa:hover { background-color: #25D366; }
.custom-sticky-socials .social-vi:hover { background-color: #7360f2; }
.custom-sticky-socials .social-ph:hover { background-color: #007bff; }
.custom-sticky-socials .social-em:hover { background-color: #ea4335; }

/* Mobile styling */
@media (max-width: 767px) {
	.custom-sticky-socials {
		top: 60%;
	}
	.custom-sticky-socials a {
		width: 36px;
		height: 36px;
		border-radius: 6px 0 0 6px;
	}
	.custom-sticky-socials a:hover {
		width: 36px;
	}
	.custom-sticky-socials a svg {
		width: 18px;
		height: 18px;
	}
}
