/*
 * Homepage refinements after full-page staging review.
 * Keeps the primary section sequence 01–08 unambiguous and replaces the
 * generic Astra footer on the modern homepage with a JL Boggio footer.
 */

/* One numbering system only: section numbers 01–08 remain in section eyebrows. */
.jlb-home-authority__number,
.jlb-solution-card__number,
.jlb-home-medical__capabilities span,
.jlb-home-why__number,
.jlb-home-project-card__content > span,
.jlb-home-client-group__number,
.jlb-home-medical__media-label span:first-child {
	display: none !important;
}

/* Remove the empty first column previously reserved for 01/02/03 in section 02. */
.jlb-home-authority__disciplines li {
	grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr) !important;
}

.jlb-home-medical__media-label {
	justify-content: flex-end;
}

/* The modern homepage owns its footer. Astra still loads normally elsewhere. */
.jlb-home-modern-template .site-footer {
	display: none;
}

.jlb-home-footer {
	background: #07111d;
	color: #ffffff;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.jlb-home-footer__inner {
	width: min(100% - 3rem, 1280px);
	margin-inline: auto;
	padding-block: clamp(3.5rem, 6vw, 5.5rem) 1.75rem;
}

.jlb-home-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.7fr) minmax(220px, 0.95fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: start;
}

.jlb-home-footer__brand {
	max-width: 44rem;
}

.jlb-home-footer__brand strong {
	display: block;
	font-size: clamp(1.4rem, 2vw, 2rem);
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.jlb-home-footer__brand p {
	max-width: 54ch;
	margin: 1rem 0 0;
	font-size: 0.95rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.66);
}

.jlb-home-footer h2 {
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.52);
}

.jlb-home-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jlb-home-footer li + li {
	margin-top: 0.6rem;
}

.jlb-home-footer a {
	color: rgba(255, 255, 255, 0.86);
	text-decoration: none;
}

.jlb-home-footer a:hover,
.jlb-home-footer a:focus-visible {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.jlb-home-footer a:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

.jlb-home-footer__contact li,
.jlb-home-footer__nav li {
	font-size: 0.92rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.68);
}

.jlb-home-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.78rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.48);
}

.jlb-home-footer__bottom span:last-child {
	text-align: right;
}

@media (max-width: 980px) {
	.jlb-home-footer__grid {
		grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr);
	}

	.jlb-home-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 680px) {
	.jlb-home-authority__disciplines li {
		grid-template-columns: 1fr !important;
		gap: 0.55rem !important;
	}

	.jlb-home-footer__inner {
		width: 100%;
		padding-inline: 1rem;
		box-sizing: border-box;
	}

	.jlb-home-footer__grid {
		grid-template-columns: 1fr;
		gap: 2.2rem;
	}

	.jlb-home-footer__brand {
		grid-column: auto;
	}

	.jlb-home-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.5rem;
	}

	.jlb-home-footer__bottom span:last-child {
		text-align: left;
	}
}

/* Keep proof lists readable on small screens without making the homepage longer than needed. */
@media (max-width: 680px) {
	.jlb-home-client-group li {
		font-size: 0.98rem;
	}
}
