/**
 * Serving Section Block Styles
 * Loaded automatically when the serving-section block is present on the page.
 */

/* ==========================================================================
   SECTION
   ========================================================================== */

.serving-section {
	position: relative;
	z-index: 2;
	margin-top: -174px;
	overflow: visible;
	padding: 312px 0 80px; /* 144px offset diagonal + 68px original */
}

/* El fondo con la diagonal va en el ::before para que la imagen
   pueda sobresalir sin ser recortada por el clip-path */
.serving-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 55% 40%, #b52020 0%, #7a1515 55%, #5c1010 100%);
	clip-path: polygon(0 144px, 100% 0, 100% 100%, 0 100%);
	z-index: -1;
}

/* Inner wrapper: vertical stack */
.serving-section__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* ==========================================================================
   TOP — full-width title + description
   ========================================================================== */

.serving-section__top {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.serving-section__title {
	font-family: var(--font-base);
	font-size: 42px;
	font-weight: 900;
	line-height: 1.045;
	color: var(--color-white);
	margin: 0;
}

.serving-section__description {
	font-family: var(--font-base);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--color-white);
}

.serving-section__description p {
	margin: 0;
	color: var(--color-white);
}

/* ==========================================================================
   COLUMNS ROW — left (benefits + box) | right (image)
   ========================================================================== */

.serving-section__columns {
	display: flex;
	align-items: flex-start;
	gap: 48px;
}

/* ==========================================================================
   LEFT COLUMN
   ========================================================================== */

.serving-section__left {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* ---------- Benefits checklist (2-column grid) ---------- */

.serving-section__benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px 40px;
}

.serving-section__benefit {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-base);
	font-size: 16px;
	font-weight: 300;
	color: var(--color-white);
	line-height: 1.4;
}

.serving-section__benefit-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	stroke: var(--color-white);
}

/* ---------- Content box ---------- */

.serving-section__box {
	background: rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	padding: 24px 44px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.serving-section__box-text {
	font-family: var(--font-base);
	font-size: 16px;
	font-weight: 900;
	line-height: 1.5;
	color: var(--color-white);
	margin: 0;
}

/* Ensure WYSIWYG inner elements inherit the white color */
.serving-section__box-text p,
.serving-section__box-text strong,
.serving-section__box-text em {
	color: var(--color-white);
	margin: 0;
}

.serving-section__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 40px;
	height: 39px;
	border-radius: 4px;
	background-color: var(--color-white);
	color: var(--color-red) !important;
	font-family: var(--font-base);
	font-size: 16px;
	font-weight: 900;
	text-decoration: none !important;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.serving-section__cta:hover {
	opacity: 0.88;
}

/* ==========================================================================
   RIGHT IMAGE COLUMN
   ========================================================================== */

.serving-section__image-wrap {
	flex-shrink: 0;
	width: 574px;
	border-radius: 20px;
	overflow: hidden;
	position: relative;
	z-index: 2;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	/* Starts lower than the left column, bleeds below section */
	margin-top: 0;
	margin-bottom: -210px;
	align-self: flex-start;
}

.serving-section__image {
	display: block;
	width: 100%;
	height: 554px;
	object-fit: cover;
	object-position: center top;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1199px) {
	.serving-section__image-wrap {
		width: 420px;
	}

	.serving-section__image {
		height: 460px;
	}

	.serving-section__title {
		font-size: 36px;
	}
}

@media (max-width: 991px) {
	.serving-section__columns {
		flex-direction: column;
		gap: 40px;
	}

	.serving-section__image-wrap {
		width: 100%;
		margin-bottom: -60px;
	}

	.serving-section__image {
		height: 360px;
	}
}

@media (max-width: 991px) {
	.serving-section {
		margin-top: -120px;
		padding-top: 168px;
	}

	.serving-section::before {
		clip-path: polygon(0 100px, 100% 0, 100% 100%, 0 100%);
	}
}

@media (max-width: 767px) {
	.serving-section {
		margin-top: -120px;
		padding-top: 116px;
		padding-bottom: 60px;
	}

	.serving-section::before {
		clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
	}

	.serving-section__title {
		font-size: 30px;
	}

	.serving-section__benefits {
		grid-template-columns: 1fr;
	}

	.serving-section__box {
		padding: 20px 20px;
	}

	.serving-section__image {
		height: 260px;
	}
}
