/* Branding projects page. The project frames come from portfolio.css */

/* Scroll reveal. The fade sits on a wrapper so it doesn't clash with the cards' hover lift */
.br-item {
	display: flex;
	min-width: 0;
}

.br-item > * {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
}

.br-reveal {
	display: flex;
	flex-direction: column;
}

.br-reveal > .br-logo,
.br-reveal > .br-service {
	flex: 1 1 auto;
}

/* Logos */
.br-logos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin-top: 70px;
}

.br-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 230px;
	padding: 40px;
	border-radius: 6px;
	background: #fff;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.br-logo:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.br-logo img {
	display: block;
	width: auto;
	max-width: 240px;
	max-height: 110px;
}

/* Featured brand */
.br-intro {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.br-intro .small-title-oswald {
	display: inline-block;
}

.br-intro .large-title {
	display: block;
	margin-top: 10px;
}

.br-text {
	margin: 24px 0 0;
	font-size: 16px;
	line-height: 1.8;
}

.br-text--dark {
	color: #4b5558;
}

.br-showcase {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin-top: 60px;
}

.br-showcase figure {
	display: flex;
	flex-direction: column;
	margin: 0;
	min-width: 0;
}

/* Equal card heights, because the phone card has no browser bar */
.br-showcase .pf-card {
	flex: 1 1 auto;
}

.br-showcase figcaption {
	margin-top: 14px;
	color: #1b2a2f;
	font-family: 'Oswald', sans-serif;
	font-size: 17px;
	letter-spacing: 0.5px;
	text-align: center;
}

/* Deliverables */
.br-services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin-top: 70px;
}

.br-service {
	padding: 34px 30px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	background: #111517;
	transition: border-color 0.35s ease, transform 0.35s ease;
}

.br-service:hover {
	border-color: #ef0d33;
	transform: translateY(-5px);
}

.br-service i {
	color: #ef0d33;
	font-size: 26px;
}

/* The sliding bar must match the card, not the section behind it */
.br-service .overlay-anim-box2:before {
	background: #111517;
}

.br-service h3 {
	display: table;
	margin: 18px 0 0;
	color: #fff;
	font-family: 'Oswald', sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.35;
}

.br-service p {
	display: block;
	margin: 10px 0 0;
	color: #9aa5a9;
	font-size: 14px;
	line-height: 1.75;
}

/* Process */
.br-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	margin: 70px 0 0;
	padding: 0;
	list-style: none;
}

.br-step {
	display: block;
	padding-top: 20px;
	border-top: 2px solid #ef0d33;
}

.br-step-number {
	color: #ef0d33;
	font-family: 'Oswald', sans-serif;
	font-size: 30px;
	line-height: 1.2;
}

.br-steps h3 {
	display: table;
	margin: 10px 0 0;
	color: #1b2a2f;
	font-family: 'Oswald', sans-serif;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.35;
}

.br-steps p {
	display: block;
	margin: 10px 0 0;
	color: #4b5558;
	font-size: 14px;
	line-height: 1.75;
}

@media (prefers-reduced-motion: reduce) {
	.br-logo,
	.br-service {
		transition: none;
	}

	.br-logo:hover,
	.br-service:hover {
		transform: none;
	}
}

@media only screen and (max-width: 999px) {
	.br-showcase {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.br-services,
	.br-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 767px) {
	.br-logos {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-top: 50px;
	}

	.br-logo {
		height: 170px;
	}

	.br-showcase,
	.br-services,
	.br-steps {
		grid-template-columns: minmax(0, 1fr);
	}

	.br-services,
	.br-steps {
		margin-top: 50px;
	}
}
