/**
 * Footer Publik — Styling
 *
 * Struktur 3 kolom: Info+Kontak | Menu | Grup Perusahaan
 * Desain mengacu pada salikbookstore.com dengan penyesuaian
 * CSS variables Lisanul Arab.
 *
 * @package Lisanularab
 * @since 1.0.0
 */

/* =====================================================
   WRAPPER UTAMA
   ===================================================== */

.la-footer {
	background-color: #fff;
	border-top: 1px solid var(--color-border);
	font-family: var(--font-regular);
	position: relative;
	z-index: 1;
}

/* =====================================================
   FOOTER TOP — GRID 3 KOLOM
   ===================================================== */

.la-footer__top {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr 1.2fr;
	gap: 48px;
	padding: 56px 48px 48px;
	max-width: 1180px;
	margin: 0 auto;
}

/* =====================================================
   KOLOM 1 — LOGO + KONTAK
   ===================================================== */

.la-footer__logo-link {
	display: inline-block;
	margin-bottom: 20px;
	margin-left: -3px;
}

.la-footer__logo-img {
	height: 80px;
	width: auto;
	max-width: 270px;
	display: block;
}

.la-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.la-footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: var(--font-size-eyebrow);
	color: var(--color-text);
	line-height: var(--line-height-relaxed);
}

.la-footer__contact-icon {
	flex-shrink: 0;
	width: 25px;
	height: 25px;
	border-radius: 7px;
	background-color: #111827;
	display: flex;
	align-items: center;
	justify-content: center;
}

.la-footer__contact-icon svg {
	width: 14px;
	height: 14px;
	stroke: #ffffff;
}

.la-footer__contact-item span {
	max-width: 280px;
}

.la-footer__col--info {
    margin-top: -20px; /* sesuaikan nilainya */
}

/* =====================================================
   KOLOM 2 — MENU
   ===================================================== */

.la-footer__col--menu {
	margin-top: 5px;
}

.la-footer__col-title {
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-medium);
	color: var(--color-text);
	margin-bottom: 16px;
}

.la-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.la-footer__links a {
	font-size: var(--font-size-eyebrow);
	color: var(--color-text);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.la-footer__links a:hover {
	color: var(--color-primary);
}

/* =====================================================
   KOLOM 3 — GRUP PERUSAHAAN
   ===================================================== */

.la-footer__col--brands {
	margin-top: 5px;
}

.la-footer__brand-pt {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-bottom: 12px;
	margin-top: -10px;
	margin-left: 0;
}

.la-footer__brand-pt-img {
	width: 80%;
	height: auto;
	display: block;
}

.la-footer__brand-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 20px;
	margin-left: 0;
}

.la-footer__brand-item {
	line-height: 0;
}

.la-footer__brand-item-img {
	width: 80px;
	height: auto;
	display: block;
}

/* =====================================================
   FOOTER BOTTOM — COPYRIGHT + SOSMED
   ===================================================== */

.la-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 48px;
	border-top: 1px solid var(--color-border);
	max-width: 1180px;
	margin: 0 auto;
	flex-wrap: wrap;
	gap: 12px;
}

.la-footer__copy {
	font-size: var(--font-size-eyebrow);
	color: var(--color-text);
}

/* Sosial Media */
.la-footer__socmed {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-right: 10px;
}

.la-footer__sm-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.la-footer__sm-icon:hover {
	color: var(--color-text);
}

.la-footer__sm-icon svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

/* =====================================================
   RESPONSIVE — TABLET (≤ 768px)
   ===================================================== */

@media (max-width: 768px) {

	.la-footer__top {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 40px 20px 32px;
	}

	.la-footer__col--menu {
		margin-top: 0;
	}

	.la-footer__col--brands {
		margin-top: 0;
	}

	.la-footer__col-title {
		margin-left: 0;
	}

	.la-footer__logo-img {
		height: 56px;
	}

	.la-footer__brand-pt {
		margin-left: 0;
		justify-content: flex-start;
	}

	.la-footer__brand-pt-img {
		width: 55%;
	}

	.la-footer__brand-row {
		margin-left: 0;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 24px;
	}

	.la-footer__brand-item-img {
    height: 58px;
    width: auto;
    object-fit: contain;
	}

	.la-footer__bottom {
		padding: 16px 20px;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.la-footer__socmed {
		margin-right: 0;
	}
}

/* =====================================================
   RESPONSIVE — MOBILE (≤ 480px)
   ===================================================== */

@media (max-width: 480px) {

	.la-footer__brand-row {
		gap: 15px;
	}

	.la-footer__brand-pt-img {
		width: 55%;
	}

	.la-footer__brand-item-img {
		width: 60px;
	}
}

/* Checkout — paksa ukuran logo sama */
.woocommerce-checkout .la-footer__logo-img {
	height: 80px !important;
	width: auto !important;
}

@media (max-width: 768px) {
	.woocommerce-checkout .la-footer__logo-img {
		height: 56px !important;
		width: auto !important;
	}
}