/**
 * Hello Child — Site footer (loaded site-wide). No JavaScript.
 * Markup: template-parts/pb-footer.php · Content: inc/footer.php
 *
 * Structure:
 *   .pb-footer
 *   └─ .pb-footer__inner            dark rounded card, 3 columns
 *      ├─ .pb-footer__col--about     logo + description
 *      ├─ .pb-footer__col--contact   title, page links, social icons, address
 *      └─ .pb-footer__col--articles  title, links (WP menu "فوتر — برترین مقالات")
 * Colour tokens (--pb-*) come from header.css; every use has a fallback.
 */
.pb-footer{
	--pb-footer-bg:#081D4C;
	max-width:1200px;
	margin:32px auto 24px;
	padding:0 12px;
	box-sizing:border-box;
	font-family:var(--pb-font,"Vazirmatn","vazir",Sans-serif);
}
.pb-footer__inner{
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:10px;
	padding:10px;
	background:var(--pb-footer-bg);
	border-radius:35px;
	color:#FFFFFF;
}
.pb-footer__col{
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:flex-start;
	gap:14px;
	padding:22px 16px;
	border:1px dotted rgba(255,255,255,.55);
	border-radius:20px;
	text-align:center;
}
.pb-footer__col--about{
	justify-content:center;
}

/* logo on a white plate so the colours stay readable on the dark card */
.pb-footer__logo{
	display:block;
	padding:12px 18px;
	border-radius:16px;
	background:#FFFFFF;
	line-height:0;
}
.pb-footer .pb-footer__logo .pb-footer__logo-img{
	display:block;
	height:48px;
	width:auto;
	max-width:100%;
	aspect-ratio:200 / 64;
	object-fit:contain;
}
.pb-footer__text{
	margin:0;
	color:#FFFFFF;
	font-size:15px;
	font-weight:500;
	line-height:2;
	text-align:start;
}

/* column titles with the short white divider underneath */
.pb-footer__title{
	margin:0 0 4px;
	color:#FFFFFF;
	font-family:inherit;
	font-size:24px;
	font-weight:500;
	line-height:1.4;
}
.pb-footer__title::after{
	content:"";
	display:block;
	width:80px;
	height:2px;
	margin:10px auto 0;
	background:#FFFFFF;
	border-radius:2px;
}

/* lists */
.pb-footer__list{
	display:flex;
	flex-direction:column;
	align-items:center;
	gap:10px;
	margin:0;
	padding:0;
	list-style:none;
}
.pb-footer__list a{
	display:inline-flex;
	align-items:center;
	gap:8px;
	color:#FFFFFF;
	font-size:14px;
	font-weight:500;
	line-height:1.8;
	text-decoration:none;
	transition:color .2s ease;
}
.pb-footer__list a:hover,
.pb-footer__list a:focus-visible{
	color:var(--pb-accent,#FFC20E);
}
.pb-footer__list--icons a{
	font-size:16px;
	font-weight:400;
}
.pb-footer__list--static li{
	display:flex;
	align-items:flex-start;
	justify-content:center;
	gap:8px;
	font-size:14px;
	font-weight:500;
	line-height:1.9;
}
.pb-footer__list--static svg{
	flex:0 0 auto;
	margin-top:4px;
}
.pb-footer address{
	font-style:normal;
}

/* social icons */
.pb-footer__social{
	display:flex;
	justify-content:center;
	gap:10px;
	margin:0;
	padding:0;
	list-style:none;
}
.pb-footer__social-link{
	display:grid;
	place-items:center;
	width:38px;
	height:38px;
	border-radius:50%;
	color:#FFFFFF;
	transition:transform .2s ease;
}
.pb-footer__social-link:hover,
.pb-footer__social-link:focus-visible{
	transform:translateY(-2px);
}
.pb-footer__social-link--phone{
	background:var(--pb-accent,#FFC20E);
	color:var(--pb-footer-bg);
}
.pb-footer__social-link--whatsapp{
	background:var(--pb-primary,#2E3192);
}
.pb-footer__social-link--instagram{
	background:var(--pb-secondary,#EC1B23);
}

.pb-footer a:focus-visible{
	outline:2px solid #FFFFFF;
	outline-offset:3px;
	border-radius:6px;
}

/* tablet / mobile: single column */
@media (max-width:900px){
	.pb-footer{
		margin:24px auto 16px;
		padding:0 10px;
	}
	.pb-footer__inner{
		grid-template-columns:1fr;
		border-radius:28px;
	}
	.pb-footer__title{
		font-size:22px;
	}
}

@media (prefers-reduced-motion:reduce){
	.pb-footer *{
		transition:none !important;
	}
}
