/*
 * Pitru Theme v2 — shell/footer.css
 *
 * Footer chrome. Every rule is the inline-style from ORG
 * `components/Shell.jsx` Footer (lines 85-172) ported to tokens.
 *
 * Layout grid:
 *   Shell.jsx: gridTemplateColumns '1.4fr 1fr 1fr 1fr 1fr', gap 48
 *   Bottom row: flex row, space-between, top border on column block
 *
 * Ivory-alpha values from Shell.jsx (no direct token for these):
 *   0.12  → color-mix(var(--ivory) 12%, transparent)  — divider lines
 *   0.18  → color-mix(var(--ivory) 18%, transparent)  — social chip border
 *   0.4   → color-mix(var(--ivory) 40%, transparent)  — copyright mono
 *   0.5   → color-mix(var(--ivory) 50%, transparent)  — legal links
 *   0.6   → color-mix(var(--ivory) 60%, transparent)  — blurb, social labels
 *   0.75  → color-mix(var(--ivory) 75%, transparent)  — column links
 */

/* -------------------------------------------------------------------------
 * Outer shell
 * ------------------------------------------------------------------------- */
.pps-shell-footer {
	margin-top: 120px;
	padding-top: 80px;
	padding-bottom: 40px;
	background: var(--ink);
	color: var(--ivory);
	position: relative;
}

/* -------------------------------------------------------------------------
 * Top grid — brand + 4 columns
 * ------------------------------------------------------------------------- */
.pps-shell-footer__top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 60px;
	border-bottom: 1px solid color-mix(in srgb, var(--ivory) 12%, transparent);
}

/* Brand cell --------------------------------------------------------------- */
.pps-shell-footer__brand {
	color: var(--ivory);
}

.pps-shell-footer__logo {
	color: var(--ivory);
}

.pps-shell-footer__blurb {
	margin-top: 20px;
	font-size: 15px;
	line-height: 1.7;
	color: color-mix(in srgb, var(--ivory) 60%, transparent);
	max-width: 280px;
}

.pps-shell-footer__social {
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	gap: 10px;
}

.pps-shell-footer__social-chip {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--ivory) 18%, transparent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-family: var(--font-mono);
	letter-spacing: 0.1em;
	color: color-mix(in srgb, var(--ivory) 60%, transparent);
	text-decoration: none;
	transition: color 0.2s var(--ease-ios), border-color 0.2s var(--ease-ios);
}

.pps-shell-footer__social-chip:hover {
	color: var(--gold);
	border-color: var(--gold);
}

.pps-shell-footer__social-chip[aria-disabled="true"] {
	cursor: default;
	opacity: 0.55;
}

.pps-shell-footer__social-chip[aria-disabled="true"]:hover {
	color: color-mix(in srgb, var(--ivory) 60%, transparent);
	border-color: color-mix(in srgb, var(--ivory) 18%, transparent);
}

/* Column cells ------------------------------------------------------------ */
.pps-shell-footer__col-title {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.18em;
	color: var(--gold-soft);
	text-transform: uppercase;
	margin-bottom: 16px;
}

.pps-shell-footer__col-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pps-shell-footer__col-link {
	font-size: 14px;
	color: color-mix(in srgb, var(--ivory) 75%, transparent);
	text-decoration: none;
	transition: color 0.2s var(--ease-ios);
}

.pps-shell-footer__col-link:hover {
	color: var(--gold);
}

/* -------------------------------------------------------------------------
 * Bottom row — copyright + legal links
 * ------------------------------------------------------------------------- */
.pps-shell-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 32px;
	flex-wrap: wrap;
	gap: 16px;
}

.pps-shell-footer__copy {
	font-family: var(--font-mono);
	font-size: 11px;
	color: color-mix(in srgb, var(--ivory) 40%, transparent);
	letter-spacing: 0.1em;
}

.pps-shell-footer__legal {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 24px;
	font-size: 13px;
}

.pps-shell-footer__legal-link {
	color: color-mix(in srgb, var(--ivory) 50%, transparent);
	text-decoration: none;
	transition: color 0.2s var(--ease-ios);
}

.pps-shell-footer__legal-link:hover {
	color: var(--gold);
}

/* -------------------------------------------------------------------------
 * Responsive — tablet: 2-col grid; mobile: single column.
 * ORG tokens.css aggressively collapses inline-styled grids; since our
 * grid uses a class (not style=), we declare the breakpoints explicitly.
 * ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.pps-shell-footer__top {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}
}

@media (max-width: 720px) {
	.pps-shell-footer {
		margin-top: 80px;
		padding-top: 60px;
	}
	.pps-shell-footer__top {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-bottom: 40px;
	}
	.pps-shell-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
	.pps-shell-footer__legal {
		flex-wrap: wrap;
		gap: 16px;
	}
}
