/* Inner page banner, shared by Produtos and by the inner pages still to be built. */

.page-banner {
	position: relative;
	min-height: 684px;
	/* The bottom curve is a huge ellipse that has to be clipped by the banner. */
	overflow: hidden;
	background-color: var(--color-surface-brand);
	/*
	 * In the Figma frame the menu and the banner both start at y=0, so the banner is
	 * pulled up under the sticky header instead of stacking below it.
	 */
	margin-block-start: calc(var(--header-height) * -1);
}

/* Same 3761x2461 white ellipse and same technique as .hero::after, same file. */
.page-banner::after {
	position: absolute;
	bottom: -1px;
	left: 50%;
	width: 260%;
	height: 94px;
	background-image: url('../img/banner-hero-bottom-curve.svg');
	background-repeat: no-repeat;
	background-position: top center;
	/*
	 * The ellipse is 260% wide, so at the screen edge the curve has dropped 1/26 of its
	 * height. With "100% auto" that height grows with the width (1.70 x), and above about
	 * 1440 the drop is deeper than the box: the curve was cut at the bottom and left a flat
	 * stretch before the corner. Capping the height keeps the drop at about 93px, so the
	 * curve always ends at the corner; up to ~1425px 170vw is the same height as before
	 * (change banner-curve-wide-screens).
	 */
	background-size: 100% min(170vw, 2420px);
	transform: translateX(-50%);
	content: '';
}

/* 142 + 394 + 148 = the 684px of the node. */
.page-banner__inner {
	position: relative;
	z-index: 1;
	padding-block: 142px 148px;
}

/*
 * The breadcrumb and the content block share top: 142 in the node, and the text column
 * is centred against the 394px of the photo, so the breadcrumb fills the empty corner
 * above the text instead of pushing it down.
 */
.page-banner__breadcrumb {
	position: absolute;
	top: 142px;
	left: var(--container-gutter);
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	padding-block: 10px;
	color: var(--color-link-on-brand);
	font-size: var(--font-p3);
	font-weight: 500;
	/* 41 tall in 361:28935: 10 + 20.8 + 10. */
	line-height: 1.3;
}

.page-banner__breadcrumb-icon {
	flex: none;
	width: 10px;
	height: 10px;
	transform: rotate(180deg);
}

.page-banner__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-6);
	min-height: 394px;
}

.page-banner__text {
	display: flex;
	flex: 0 1 515px;
	flex-direction: column;
	gap: var(--space-5);
}

.page-banner__heading {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.page-banner__title {
	color: var(--color-text-on-brand);
}

.page-banner__description {
	/* Light Gray in the final state of 673:24437; Gray 20 is only its start state (desktop-fidelity G3). */
	color: var(--color-light-gray);
	font-size: var(--font-p1);
	line-height: 1.4;
}

/* The CTA is inline-flex, so without this it stretches to the column width. */
.page-banner__text > .cta {
	align-self: flex-start;
}

.page-banner__media {
	/* Context of the clip over the photo (media-motion.css). */
	position: relative;
	flex: none;
	width: 598px;
	height: 394px;
	border-radius: var(--radius-card);
	overflow: hidden;
}

.page-banner__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 1279px) {
	.page-banner {
		min-height: 0;
	}

	.page-banner__media {
		flex: 0 1 46%;
		width: auto;
		height: 360px;
	}
}

@media (max-width: 1023px) {
	.page-banner__inner {
		padding-block: 128px 132px;
	}

	.page-banner__media {
		height: 300px;
	}
}

@media (max-width: 767px) {
	.page-banner::after {
		height: 60px;
	}

	.page-banner__inner {
		padding-block: 104px 96px;
	}

	/* Stacked, there is no empty corner left for the breadcrumb to sit in. */
	.page-banner__breadcrumb {
		position: static;
		margin-block-end: var(--space-4);
	}

	.page-banner__content {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
	}

	.page-banner__text {
		flex: none;
	}

	.page-banner__media {
		flex: none;
		width: 100%;
		height: 220px;
	}
}
