
/* BIOMAS SECTION */

.notch.bio-notch {
	background: var(--color-text-primary);
	top: -1px;

	& .notch-left,
	& .notch-right {
		background: var(--color-sand);
	}

	& .notch-center svg path {
		fill: var(--color-sand);
	}
}

.biomas {
	& .content {
		background: var(--color-sand);
	}

	& .grid {
		padding: var(--spacing-section-top) var(--spacing-wrapper) var(--spacing-gap-large-vertical) var(--spacing-wrapper);
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: repeat(3, auto);
		gap: var(--spacing-gap-y-small) var(--spacing-gap-large);

		@media (max-width: 1500px) {
			grid-template-columns: repeat(3, 1fr);
		}

		@media (max-width: 1024px) {
			grid-template-columns: repeat(2, 1fr);
		}

		@media (max-width: 768px) {
			grid-template-columns: 1fr;
			display: flex;
			flex-direction: column;
		}
	}

	& .logo-badge span {
		color: var(--color-orange);
		border-color: var(--color-orange);

		&.badge-text {
			color: var(--color-sand);
			background-color: var(--color-orange);
			border-color: var(--color-orange);
		}
	}

	& .h2.marked,
	& h3 mark {
		color: var(--color-orange);
		background: transparent;
	}

	& h3 {
		color: var(--color-title-primary);
		font-size: clamp(18px, 1.4vw, 27.28px);
		font-style: normal;
		font-weight: 400;
		line-height: 0.6;
		display: flex;
		align-content: center;
		align-items: center;
		height: 75px;
		margin: 0;
		padding: 1.25% var(--spacing-wrapper);
		text-transform: uppercase;

		@media (max-width: 1500px) {
			padding: 14px 80px;
		}

		@media (max-width: 1100px) {
			padding: 14px var(--spacing-wrapper);
		}

		@media (max-width: 768px) {
			justify-content: center;
			padding: 0 var(--spacing-wrapper) var(--section-padding-y-sm) var(--spacing-wrapper);
		}
	}

	& .hide-smaller {
		@media (max-width: 1024px) {
			display: block;
		}
	}

	& .mobile-title {
		@media (max-width: 1024px) {
			display: none;
		}

		@media (max-width: 768px) {
			order: 2;
		}
	}
}

.biomas1 {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--gap-fixed);

	@media (max-width: 1500px) {
		grid-column: span 1;
		grid-row-start: 1;
	}

	@media (max-width: 1024px) {
		grid-row: 1;
		grid-column: span 1;
	}

	@media (max-width: 768px) {
		order: 1;
		grid-column: span 1;
		width: 50%;
	}
}

.biomas2 {
	grid-column: span 3 / span 3;
	text-align: center;
	padding-right: 16%;

	@media (max-width: 1500px) {
		grid-column: span 2;
		grid-row-start: 1;
		padding-right: 0;
		text-align: left;
	}

	@media (max-width: 1024px) {
		grid-row: 2;
		grid-column: span 2;
	}

	@media (max-width: 768px) {
		order: 3;
	}
}

.biomas3 {
	grid-column: span 2 / span 2;
	grid-row-start: 2;

	@media (max-width: 1500px) {
		grid-column: span 2;
		grid-row-start: 2;
	}

	@media (max-width: 1024px) {
		grid-row: 3;
		grid-column: span 2;
		text-align: right;
	}

	@media (max-width: 768px) {
		order: 4;
	}
}

.biomas4 {
	grid-column: span 2 / span 2;
	grid-column-start: 3;
	grid-row-start: 2;
	text-align: right;

	@media (max-width: 1500px) {
		grid-column: span 1;
		grid-row-start: 2;
	}

	@media (max-width: 1024px) {
		grid-row: 4;
		grid-column: span 2;
		text-align: left;
	}

	@media (max-width: 768px) {
		order: 5;
	}
}

.biomas5 {
	grid-column: span 1 / span 1;
	grid-row-start: 3;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;

	& .text-content {
		max-width: 25%;

		@media (max-width: 1024px) {
			max-width: 100%;
		}

		@media (max-width: 768px) {
			max-width: 100%;
		}
	}

	@media (max-width: 1500px) {
		grid-column: span 1;
		grid-row-start: 3;
	}

	@media (max-width: 1024px) {
		grid-row: 6;
		grid-column: span 1;
	}

	@media (max-width: 768px) {
		order: 7;
		grid-column: span 1;
	}
}

.biomas6 {
	grid-column: span 3 / span 3;
	grid-column-start: 2;
	grid-row-start: 3;
	text-align: right;

	@media (max-width: 1500px) {
		grid-column: span 2;
		grid-row-start: 3;
	}

	@media (max-width: 1024px) {
		grid-row: 5;
		grid-column: span 2;
	}

	@media (max-width: 768px) {
		order: 6;
	}
}

.biomas-sticky-content {
	width: 100%;
	position: sticky;
	z-index: 2;
	background: var(--color-sand);
	top: -1px;

	&::before,
	&::after {
		content: '';
		position: absolute;
		top: 100%;
		z-index: 2;
		background-image: url('../../../images/dent.svg');
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		background-attachment: scroll;
		width: 2vw;
		height: 2vw;
	}

	&::before {
		left: 0;
	}

	&::after {
		right: 0;
		transform: scaleX(-1);
		transform-origin: center center;
	}

	@media (max-width: 1100px) {
		position: relative;
	}
}

.biome-count {
	margin-left: 10px;
	background-color: var(--color-orange);
	color: var(--color-sand);
	font-weight: 500;
	padding: 4px 10px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1;
	vertical-align: bottom;
}

.biomas-slider {
	display: flex;
	flex-direction: column;
	gap: 30px;
	width: 100%;
	padding: var(--spacing-section-top) 0;
	margin-top: 1%;
	border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
	background: var(--color-text-primary);
	overflow: hidden;

	& .swiper {
		width: 100%;
		overflow: visible;
		cursor: grab;
	}

	& .swiper-wrapper {
		transition-timing-function: linear;
	}

	& .swiper-slide {
		width: var(--bioma-card-width);
		height: auto;
		aspect-ratio: 616 / 360;

		@media (max-width: 500px) {
			aspect-ratio: 1 / 1;
		}
	}
}

.bioma-card {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--color-gray);
	justify-content: space-between;
	align-items: stretch;
	border-radius: var(--border-radius-md) 0 var(--border-radius-md) 0;

	&.logo-card {
		background: var(--color-orange);

		& .card-bg-gradient-top,
		& .card-bg-gradient-bottom {
			display: none;
		}

		& .bioma-header h4,
		& .bioma-body p {
			color: var(--color-text-primary);
		}

		& .bioma-header h4::before {
			background-image: url('../../../images/circle.svg');
		}
	}

	& .card-background {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		border-radius: var(--border-radius-md) 0 var(--border-radius-md) 0;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	&:hover .card-logo {
		opacity: 1;
	}

	& .bioma-header h4::before {
		content: '';
		display: inline-block;
		width: 0;
		height: auto;
		margin-right: 0;
		aspect-ratio: 1 / 1;
		background-image: url('../../../images/circle-orange.svg');
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
		transition: width 0.15s ease-out, opacity 0.15s ease-out, margin-right 0.15s ease-out;
		opacity: 0;
		overflow: hidden;
		flex-shrink: 0;
	}

	&:hover .bioma-header h4::before {
		width: clamp(24px, 1.82vw, 32px);
		opacity: 1;
		margin-right: clamp(5px, 0.6vw, 8px);
	}

	& .bioma-header h4::after {
		content: '';
		display: inline-block;
		width: clamp(24px, 1.82vw, 32px);
		height: auto;
		aspect-ratio: 1 / 1;
		margin-left: clamp(5px, 0.6vw, 8px);
		background-image: url('../../../images/circle.svg');
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
		transition: width 0.15s ease-out, opacity 0.15s ease-out, margin-left 0.15s ease-out;
		opacity: 1;
		overflow: hidden;
		flex-shrink: 0;
	}

	&:hover .bioma-header h4::after {
		width: 0;
		opacity: 0;
		margin-left: 0;
	}

	& .social-icons {
		padding-left: clamp(15px, 1.15vw, 22px);
		gap: clamp(5px, 0.42vw, 8px);
		opacity: 0;
		transform: translateY(20px);
		transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
	}

	&:hover .social-icons {
		opacity: 1;
		transform: translateY(0);
	}

	&:hover .bioma-description {
		opacity: 1;
		transform: translateY(0);
	}

	@media (max-width: 768px) {
		& .bioma-header h4::after,
		&:hover .bioma-header h4::before {
			width: var(--font-size-text-lg);
		}

		& .social-icons {
			padding-left: 0;
			gap: 4px;
		}

		& .bioma-description {
			opacity: 1;
			transform: translateY(0);
			display: none;
		}

		& .social-icons,
		&:hover .social-icons {
			opacity: 1;
			transform: translateY(-2px);
		}
	}
}

.card-logo {
	height: 18%;
	width: auto;
	max-width: 60%;
	max-height: 18%;
	object-fit: contain;
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.card-bg-image {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin: 1px;
}

.card-bg-gradient-top,
.card-bg-gradient-bottom {
	position: absolute;
	left: 0;
	width: 100%;
	background: linear-gradient(180deg, var(--color-black) 0%, rgba(21, 21, 21, 0.00) 100%);
	opacity: 0.5;
	z-index: 2;
}

.card-bg-gradient-top {
	top: 0;
	height: 30%;
}

.card-bg-gradient-bottom {
	bottom: 0;
	height: 50%;
	rotate: 180deg;
}

.card-background {
	& .box-styling {
		position: absolute;
		top: 0;
		right: 0;
		width: 12%;
		height: 10.5%;
		z-index: 3;
		border-radius: 0 0 0 var(--border-radius-md);
		background-color: var(--color-text-primary);

		& div {
			position: relative;
			width: 100%;
			height: 100%;
		}

		& svg {
			position: absolute;
			width: 25px;
			height: 25px;
			transform: rotate(90deg);

			& path {
				fill: var(--color-text-primary);
			}

			&:first-child {
				right: 100%;
				top: 0;
			}

			&:last-child {
				right: 0;
				top: 100%;
			}
		}
	}
}

.bioma-header,
.bioma-body {
	position: relative;
	z-index: 3;
}

.bioma-header {
	& h4 {
		font-size: clamp(20px, 1.56vw, 28px);
		font-style: normal;
		font-weight: 400;
		line-height: clamp(24px, 1.82vw, 32px);
		text-transform: uppercase;
		color: var(--color-sand);
		margin: 0;
		padding: clamp(10px, 0.83vw, 16px) clamp(16px, 1.25vw, 24px);
		display: flex;

		@media (max-width: 768px) {
			font-size: var(--font-size-text-lg);
			line-height: var(--line-height-text-lg);
			letter-spacing: var(--letter-spacing-text-lg);
		}
	}
}

.bioma-body {
	display: flex;
	justify-content: space-between;

	& span {
		font-size: clamp(10px, 0.625vw, 12px);
		font-style: normal;
		font-weight: 500;
		line-height: 90%;
		letter-spacing: clamp(0.08px, 0.006vw, 0.12px);
		text-transform: uppercase;
		color: var(--color-sand);
		opacity: 1;
	}

	& p {
		font-size: clamp(14px, 0.94vw, 18px);
		font-style: normal;
		font-weight: 400;
		line-height: clamp(16px, 1.04vw, 20px);
		letter-spacing: clamp(-0.18px, -0.009vw, 0px);
		color: var(--color-sand);
		text-align: right;
		padding: clamp(10px, 0.83vw, 16px) clamp(16px, 1.25vw, 24px);

		@media (max-width: 1500px) {
			font-size: clamp(14px, 0.8vw, 18px);
		}

		@media (max-width: 1240px) {
			margin: 0;
		}

		@media (max-width: 768px) {
			text-align: left;
			padding: 16px;
		}
	}

	& .left-col {
		@media (max-width: 768px) {
			align-items: start;
			gap: 4px;
			flex-direction: row-reverse;
		}
	}

	@media (max-width: 768px) {
		flex-direction: column-reverse;
		overflow: hidden;
	}
}

.bioma-activity {
	background-color: var(--color-text-primary);
	padding: clamp(5px, 0.42vw, 8px) clamp(16px, 1.25vw, 24px);
	border-radius: 0 var(--border-radius-md) 0 0;
	position: relative;
	white-space: nowrap;
	left: -1px;

	& svg {
		position: absolute;
		width: 25px;
		height: 25px;
		transform: rotate(270deg);

		& path {
			fill: var(--color-text-primary);
		}

		&:first-child {
			left: 1px;
			bottom: 100%;
		}

		&:last-child {
			left: 100%;
			bottom: 0;
		}
	}
}

.bioma-description {
	max-width: none;
	opacity: 0;
	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
	transform: translateY(20px);
	align-self: flex-end;
}

.left-col {
	justify-content: flex-end;
	gap: 18px;
}

.social-link {
	width: 30px;
	height: 30px;
	padding: 0 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.10);
	backdrop-filter: blur(18.75px);
	display: flex;
	align-items: center;
	justify-content: center;

	& img {
		width: 100%;
		height: auto;
		object-fit: contain;
	}

	@media (max-width: 768px) {
		width: 28px;
		height: 28px;
	}
}
