/**
 * Site Footer — mirrors the storefront <Footer />.
 *
 * Dark secondary surface: trust strip, four-column body
 * (brand/contact, categories, service, newsletter) and a legal bottom bar.
 *
 * @package SecuDepo
 */

.as-footer {
	background: var(--as-secondary);
	color: var(--as-white);
}

/* ==========================================
   1. TRUST STRIP
   ========================================== */
.as-footer-trust {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.as-footer-trust__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	padding: 24px 0;
}

.as-footer-trust__item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.as-footer-trust__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 50%;
	background: rgba(203, 114, 70, 0.2);
	color: var(--as-primary);
}

.as-footer-trust__text {
	min-width: 0;
	line-height: 1.35;
}

.as-footer-trust__text strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--as-white);
}

.as-footer-trust__text small {
	display: block;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   2. MAIN COLUMNS
   ========================================== */
.as-footer-main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	padding: 56px 0;
}

.as-footer-logo {
	display: inline-flex;
	align-items: flex-end;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--as-white);
	text-decoration: none;
}

.as-footer-logo img {
	display: block;
	width: auto;
	height: 44px;
	max-width: 180px;
	object-fit: contain;
}

.as-footer-logo__accent {
	color: var(--as-primary);
}

.as-footer-tagline {
	margin: 4px 0 0;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: rgba(255, 255, 255, 0.4);
}

.as-footer-about {
	margin: 16px 0 0;
	font-size: 14px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.6);
}

.as-footer-contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 24px;
}

.as-footer-contact__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.as-footer-contact__icon {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-top: 2px;
	flex-shrink: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--as-primary);
}

.as-footer-contact__item a,
.as-footer-contact__item strong {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--as-white);
	text-decoration: none;
	transition: color 150ms ease;
}

.as-footer-contact__item a:hover {
	color: var(--as-primary);
}

.as-footer-contact__item small {
	display: block;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.4);
}

.as-footer-social {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
}

.as-footer-social a {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.6);
	transition: background 180ms ease, color 180ms ease;
}

.as-footer-social a:hover {
	background: var(--as-primary);
	color: var(--as-white);
}

/* ── Link columns ── */
.as-footer-col__title {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: rgba(255, 255, 255, 0.5);
}

.as-footer-links {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.as-footer-links a {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: color 150ms ease;
}

.as-footer-links a::before {
	content: "";
	width: 4px;
	height: 4px;
	flex-shrink: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
}

.as-footer-links li:first-child a::before {
	background: rgba(203, 114, 70, 0.5);
}

.as-footer-links a:hover {
	color: var(--as-primary);
}

/* ── Newsletter ── */
.as-footer-newsletter__intro {
	margin: 20px 0 0;
	font-size: 14px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.6);
}

.as-footer-newsletter {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}

.as-footer-newsletter input {
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--as-radius-control);
	background: rgba(255, 255, 255, 0.08);
	color: var(--as-white);
	font-family: inherit;
	font-size: 14px;
}

.as-footer-newsletter input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.as-footer-newsletter input:focus {
	outline: none;
	border-color: var(--as-primary);
	background: rgba(255, 255, 255, 0.12);
}

.as-footer-newsletter button {
	flex-shrink: 0;
	height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--as-radius-control);
	background: var(--as-primary);
	color: var(--as-white);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 150ms ease;
}

.as-footer-newsletter button:hover {
	background: var(--as-primary-dark);
}

.as-footer-newsletter__notice {
	margin: 10px 0 0;
	font-size: 12px;
}

.as-footer-newsletter__notice--success {
	color: #7ee2a8;
}

.as-footer-newsletter__notice--error {
	color: #ffb3b3;
}

/* ── Payments ── */
.as-footer-payments {
	margin-top: 32px;
}

.as-footer-payments__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.as-footer-payment-tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	color: var(--as-white);
}

.as-footer-payment-tag--cod {
	background: #059669;
}

.as-footer-payment-tag--mpesa {
	background: #16a34a;
}

.as-footer-payment-tag--bank {
	background: #1d4ed8;
}

.as-footer-secure {
	margin-top: 24px;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
}

.as-footer-secure p {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.6);
}

.as-footer-secure p + p {
	margin-top: 4px;
	font-size: 12px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   3. BOTTOM BAR
   ========================================== */
.as-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.as-footer-bottom__inner {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.4);
}

.as-footer-bottom__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
}

.as-footer-bottom__links a {
	color: rgba(255, 255, 255, 0.4);
	text-decoration: none;
	transition: color 150ms ease;
}

.as-footer-bottom__links a:hover {
	color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   4. RESPONSIVE
   ========================================== */
@media (min-width: 640px) {
	.as-footer-trust__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.as-footer-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.as-footer-main {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 32px;
		padding: 56px 0;
	}

	.as-footer-bottom__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}
