/**
 * BoltPress Child: site footer (brand and contact, link columns, legal row).
 * Markup: custom-footer.php. Data: inc/footer.php.
 *
 * Every rule is scoped under .bpf so the theme's element rules (a, a:hover,
 * h2, p, ul) cannot leak in. Breakpoints: phones up to 767px stack the brand
 * over a two-column link grid; 768px puts the four link columns in one row;
 * 1024px moves the brand into its own column beside them.
 *
 * @package BoltPress_Child
 * @since 1.5.0
 */

/* ============ Local tokens ============ */
.bpf {
	--y: var(--boltpress-colors-accent);
	--o: var(--boltpress-colors-accent-gradient-end);
	--green: var(--boltpress-colors-success);
	--t1: #fff;
	--t2: rgba(255,255,255,.76);
	--t3: rgba(255,255,255,.54);
	--line: rgba(255,255,255,.08);
	--line2: rgba(255,255,255,.14);
	--fh: var(--boltpress-typography-font-family-heading);
	--fb: var(--boltpress-typography-font-family-body);
	--mono: ui-monospace,"SFMono-Regular","SF Mono",Menlo,Consolas,monospace;
	--out: cubic-bezier(.16,1,.3,1);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--boltpress-colors-dark-bg);
	color: var(--t2);
	font-family: var(--fb);
	font-size: 15px;
	line-height: 1.6;
}

/* Gradient hairline along the top edge, with a faint glow under it */
.bpf::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,220,0,.5) 30%, rgba(255,149,0,.5) 70%, transparent);
}

.bpf::after {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	z-index: -1;
	height: 260px;
	background: radial-gradient(60% 100% at 50% 0, rgba(255,220,0,.06), transparent 70%);
	pointer-events: none;
}

.bpf a {
	color: inherit;
	text-decoration: none;
}

.bpf :focus-visible {
	outline: 2px solid var(--y);
	outline-offset: 2px;
	border-radius: var(--boltpress-border-radius-sm);
}

.bpf .bpf-ic {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

/* ============ Layout ============ */
.bpf .bpf-wrap {
	max-width: var(--boltpress-spacing-container);
	margin: 0 auto;
	padding: 56px var(--boltpress-spacing-lg) max(20px, env(safe-area-inset-bottom));
}

.bpf .bpf-top {
	display: grid;
	gap: 44px;
}

.bpf .bpf-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 20px;
}

/* Phones: Fixes and Care plans run full width with their links in two columns; Tools and Company share a row */
.bpf .bpf-col--fixes,
.bpf .bpf-col--care {
	grid-column: 1 / -1;
}

.bpf .bpf-col--fixes .bpf-list,
.bpf .bpf-col--care .bpf-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 20px;
}

/* ============ Brand and contact ============ */
.bpf .bpf-logo {
	display: inline-flex;
	align-items: center;
	gap: .34em;
	padding: 6px 4px;
	margin-left: -4px;
	border-radius: var(--boltpress-border-radius-md);
	font-family: var(--fh);
	font-weight: 700;
	font-size: 23px;
	line-height: 1;
	letter-spacing: -.01em;
	color: var(--t1);
}

.bpf .bpf-logo__mark {
	display: inline-grid;
	place-items: center;
	width: 1.22em;
	height: 1.22em;
	background: var(--y);
	box-shadow: .12em -.12em 0 rgba(255,220,0,.42);
	transition: transform .45s var(--out), box-shadow .45s var(--out);
}

.bpf .bpf-logo__mark svg {
	width: .8em;
	height: .8em;
	fill: #111;
}

.bpf .bpf-logo:hover .bpf-logo__mark {
	transform: translate(1px,-1px);
	box-shadow: .2em -.2em 0 rgba(255,220,0,.3);
}

.bpf .custom-logo-link {
	display: inline-block;
}

.bpf .custom-logo {
	display: block;
	width: auto;
	height: 36px;
}

.bpf .bpf-tag {
	max-width: 36ch;
	margin: 16px 0 0;
	color: var(--t2);
	font-size: 15px;
	line-height: 1.65;
}

.bpf .bpf-contact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin-top: 24px;
}

.bpf .bpf-mail {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 100%;
	padding: 11px 18px 11px 11px;
	border: 1px solid var(--line2);
	border-radius: var(--boltpress-border-radius-lg);
	background: rgba(255,255,255,.025);
	color: var(--t1);
	transition: border-color .2s ease, background-color .2s ease;
}

.bpf .bpf-mail:hover {
	border-color: rgba(255,220,0,.45);
	background: rgba(255,220,0,.05);
	color: var(--t1);
}

.bpf .bpf-mail__tile {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	flex: none;
	border-radius: var(--boltpress-border-radius-md);
	background: rgba(255,220,0,.12);
	color: var(--y);
}

.bpf .bpf-mail__txt {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bpf .bpf-mail__k {
	color: var(--t3);
	font-size: 13px;
	line-height: 1.4;
}

.bpf .bpf-mail__v {
	color: var(--t1);
	font-family: var(--fh);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.bpf .bpf-audit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--boltpress-border-radius-md);
	color: var(--t2);
	font-size: 14px;
	font-weight: 600;
	transition: color .2s ease, border-color .2s ease;
}

.bpf .bpf-audit .bpf-ic {
	width: 16px;
	height: 16px;
	color: var(--t3);
}

.bpf .bpf-audit:hover {
	border-color: var(--line2);
	color: var(--t1);
}

.bpf .bpf-ver {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 2px;
	padding-left: 10px;
	border-left: 1px solid var(--line2);
	color: var(--t3);
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 400;
}

.bpf .bpf-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 3px rgba(72,187,120,.18);
}

/* ============ Link columns ============ */
.bpf .bpf-h {
	margin: 0 0 8px;
	color: var(--t1);
	font-family: var(--fh);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.bpf .bpf-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bpf .bpf-list li {
	margin: 0;
}

/* 44px rows on touch screens (WCAG 2.5.5); tighter rows with a fine pointer below */
.bpf .bpf-list a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 4px 0;
	color: var(--t2);
	font-size: 15px;
	line-height: 1.35;
	transition: color .15s ease;
}

.bpf .bpf-list a:hover {
	color: var(--y);
}

.bpf .bpf-list a[aria-current="page"] {
	color: var(--t1);
	font-weight: 600;
}

.bpf .bpf-list a[aria-current="page"]::before {
	content: "";
	position: absolute;
	left: -12px;
	top: 50%;
	width: 5px;
	height: 5px;
	margin-top: -2.5px;
	border-radius: 50%;
	background: var(--y);
}

.bpf .bpf-more a {
	color: var(--y);
	font-weight: 600;
}

.bpf .bpf-more a:hover {
	color: var(--t1);
}

.bpf .bpf-more__go {
	width: 16px;
	height: 16px;
	transition: transform .3s var(--out);
}

.bpf .bpf-more a:hover .bpf-more__go {
	transform: translateX(3px);
}

/* ============ Bottom row ============ */
.bpf .bpf-bottom {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin-top: 48px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.bpf .bpf-copy {
	margin: 0;
	color: var(--t3);
	font-size: 13px;
}

.bpf .bpf-legal ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bpf .bpf-legal li {
	margin: 0;
}

.bpf .bpf-legal a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--t3);
	font-size: 13px;
	transition: color .15s ease;
}

.bpf .bpf-legal a:hover,
.bpf .bpf-legal a[aria-current="page"] {
	color: var(--t1);
}

/* ============ Tablet: four link columns in one row ============ */
@media (min-width: 768px) {
	.bpf .bpf-wrap {
		padding-top: 64px;
	}

	.bpf .bpf-brand {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto 1fr;
		justify-items: start;
		column-gap: 40px;
	}

	.bpf .bpf-contact {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: start;
		margin-top: 0;
	}

	.bpf .bpf-nav {
		grid-template-columns: 1.3fr 1.15fr 1fr .85fr;
		gap: 24px;
		padding-top: 32px;
		border-top: 1px solid var(--line);
	}

	.bpf .bpf-col--fixes,
	.bpf .bpf-col--care {
		grid-column: auto;
	}

	.bpf .bpf-col--fixes .bpf-list,
	.bpf .bpf-col--care .bpf-list {
		display: block;
	}

	.bpf .bpf-bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		margin-top: 56px;
	}
}

/* ============ Desktop: brand column beside the links ============ */
@media (min-width: 1024px) {
	.bpf .bpf-wrap {
		padding-top: 80px;
	}

	.bpf .bpf-top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr);
		gap: 64px;
	}

	.bpf .bpf-brand {
		display: block;
	}

	.bpf .bpf-contact {
		margin-top: 28px;
	}

	.bpf .bpf-nav {
		gap: 32px;
		padding-top: 6px;
		border-top: 0;
	}

	.bpf .bpf-h {
		margin-bottom: 12px;
	}
}

@media (min-width: 1024px) and (pointer: fine) {
	.bpf .bpf-list a {
		min-height: 34px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bpf *,
	.bpf *::before,
	.bpf *::after {
		transition: none !important;
	}
}
