/**
 * BANNER STYLES
 */

.banner {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.banner--center {
	text-align: center;
}

.banner .bm-row {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 44px 25px 47px;
}

.banner__content {
	max-width: 100%;
	z-index: 0;
}

.banner__title {
	font-size: 50px;
	font-family: var(--font-alt);
	text-transform: uppercase;
	color: var(--cis-avocado);
	font-weight: 700;
	line-height: 0.9;
	margin: 20px 0 70px;
	position: relative;
}

.banner__text {
	font-size: 30px;
	line-height: 1.1;
	max-width: 752px;
	margin: 0 auto;
}

.banner__text p {
	margin-bottom: 1em;
}

.banner__title-text {
	display: inline;
}

@media screen and (min-width: 550px) {
	.banner__content {
		max-width: 82%;
	}

	.banner .bm-row {
		padding: 44px 32px 47px;
	}

	.banner__title-text {
		position: relative;
	}

	.banner__title {
		position: static;
		font-size: 70px;
	}
}

@media screen and (min-width: 800px) {
	.banner .bm-row {
		padding: 54px 90px 52px;
	}

	.banner__content {
		max-width: 800px;
	}

	.banner__text {
		font-size: 32px;
	}

	.banner__text p {
		margin-bottom: 1.4em;
	}

	.banner__title {
		margin-bottom: 41px;
	}
}

@media screen and (min-width: 1000px) {
	.banner__title {
		font-size: 85px;
	}
}

@media screen and (min-width: 1200px) {
	.banner__content {
		max-width: 1240px;
	}

	.banner__title {
		font-size: 130px;
	}
}

/* FRUIT ICONS */

.banner__title-text:first-of-type::before,
.banner__title-text:first-of-type::after,
.banner__title-text:last-of-type::after {
	content: '';
	position: absolute;
	background-color: var(--cis-carrot);
	z-index: -1;
}

/* Fruit icon before first line */
.banner__title-text:first-of-type::before {
	mask: url('../images/fruit/strawberry.svg') center / contain no-repeat;
	-webkit-mask: url('../images/fruit/strawberry.svg') center / contain no-repeat;
	width: 72px;
	height: 91px;
	top: -13px;
	left: -2px;
}

/* Fruit icon after first line */
.banner__title-text:first-of-type::after {
	mask: url('../images/fruit/banana.svg') center / contain no-repeat;
	-webkit-mask: url('../images/fruit/banana.svg') center / contain no-repeat;
	width: 88px;
	height: 101px;
	top: -16px;
	right: -6px;
}

/* Fruit icon after last line, if more than one line */
.banner__title-text:last-of-type:not(:only-of-type)::after {
	mask: url('../images/fruit/pear.svg') center / contain no-repeat;
	-webkit-mask: url('../images/fruit/pear.svg') center / contain no-repeat;
	width: 55px;
	height: 86px;
	bottom: -51px;
	right: 45px;
	transform: rotate(27deg);
}

@media screen and (min-width: 550px) {
	/* Fruit icon before first line */
	.banner__title-text:first-of-type::before {
		width: 78px;
		height: 99px;
		top: 5px;
		left: -73px;
	}

	/* Fruit icon after first line */
	.banner__title-text:first-of-type::after {
		width: 107px;
		height: 107px;
		top: 0px;
		right: -77px;
	}

	/* Fruit icon after last line, if more than one line */
	.banner__title-text:last-of-type:not(:only-of-type)::after {
		width: 120px;
		height: 120px;
		bottom: -35px;
		right: -85px;
	}
}

@media screen and (min-width: 800px) {
	/* Fruit icon before first line */
	.banner__title-text:first-of-type::before {
		width: 78px;
		height: 99px;
		top: 5px;
		left: -73px;
	}

	/* Fruit icon after first line */
	.banner__title-text:first-of-type::after {
		width: 107px;
		height: 103px;
		top: 0px;
		right: -77px;
	}

	/* Fruit icon after last line, if more than one line */
	.banner__title-text:last-of-type:not(:only-of-type)::after {
		width: 120px;
		height: 120px;
		bottom: -35px;
		right: -85px;
	}
}

@media screen and (min-width: 1000px) {
	/* Fruit icon before first line */
	.banner__title-text:first-of-type::before {
		width: 93px;
		height: 118px;
		top: 6px;
		left: -82px;
	}

	/* Fruit icon after first line */
	.banner__title-text:first-of-type::after {
		width: 115px;
		height: 115px;
		top: 8px;
		right: -83px;
	}

	/* Fruit icon after last line, if more than one line */
	.banner__title-text:last-of-type:not(:only-of-type)::after {
		width: 91px;
		height: 142px;
		bottom: -44px;
		right: -75px;
	}
}

@media screen and (min-width: 1200px) {
	/* Fruit icon before first line */
	.banner__title-text:first-of-type::before {
		width: 144px;
		height: 182px;
		top: -11px;
		left: -129px;
	}

	/* Fruit icon after first line */
	.banner__title-text:first-of-type::after {
		width: 160px;
		height: 184px;
		top: -6px;
		right: -133px;
	}

	/* Fruit icon after last line, if more than one line */
	.banner__title-text:last-of-type:not(:only-of-type)::after {
		width: 134px;
		height: 209px;
		bottom: -65px;
		right: -109px;
	}
}

@media screen and (min-width: 1395px) {
	/* Fruit icon after last line, if more than one line */
	.banner__title-text:last-of-type:not(:only-of-type)::after {
		right: -96px;
	}
}
