/**
 * rd-why — "Warum Dry-Ice-Tec GmbH?" Section Block
 * Compiled from style.scss
 * Breakpoints: 1200px, 768px, 470px
 */

/* ── Block root + tokens ── */
.rd-why {
	--rd-brand-green: #9cc329;
	--rd-brand-green-light: #afd738;
	--rd-brand-dark: #1f2933;
	--rd-brand-white: #ffffff;
	--rd-brand-gray: #334155;
	--rd-brand-light-bg: #f6f8f9;

	--rd-radius-card: 8px;
	--rd-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.10);
	--rd-shadow-card-hover: 0 8px 28px rgba(0, 0, 0, 0.14);

	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 130px 0;
}

.rd-why::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(20, 30, 40, 0.82) 0%, rgba(20, 30, 40, 0.65) 100%);
	z-index: 0;
}

.rd-why__inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
}

/* ── Grid ── */
.rd-why__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

/* ── Entrance animations ── */
@keyframes rd-why__fadeSlideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.rd-why__left,
.rd-why__right > * {
	opacity: 0;
}

.rd-why__grid.is-visible .rd-why__left {
	animation: rd-why__fadeSlideUp 0.6s ease-out forwards;
}

.rd-why__grid.is-visible .rd-why__right > *:nth-child(1) {
	animation: rd-why__fadeSlideUp 0.6s ease-out 0.1s forwards;
}

.rd-why__grid.is-visible .rd-why__right > *:nth-child(2) {
	animation: rd-why__fadeSlideUp 0.6s ease-out 0.22s forwards;
}

.rd-why__grid.is-visible .rd-why__right > *:nth-child(3) {
	animation: rd-why__fadeSlideUp 0.6s ease-out 0.34s forwards;
}

.rd-why__grid.is-visible .rd-why__right > *:nth-child(4) {
	animation: rd-why__fadeSlideUp 0.6s ease-out 0.46s forwards;
}

.rd-why__grid.is-visible .rd-why__right > *:nth-child(5) {
	animation: rd-why__fadeSlideUp 0.6s ease-out 0.58s forwards;
}

/* ── Left column ── */
.rd-why__left {
	color: var(--rd-brand-white);
}

.rd-why__roofline {
	display: block;
	width: 48px;
	height: 3px;
	background: var(--rd-brand-green);
	margin-bottom: 20px;
}

.rd-why__title {
	font-family: "Inter", Arial, sans-serif;
	font-size: clamp(1.75rem, calc(0.8rem + 3vw), 3rem);
	font-weight: 400;
	line-height: 1.2;
	color: var(--rd-brand-white);
	margin-bottom: 24px;
}

.rd-why__title strong {
	font-weight: 700;
	color: var(--rd-brand-green);
}

.rd-why__text {
	color: rgba(255, 255, 255, 0.82);
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 12px;
}

.rd-why__subtext {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 28px;
}

.rd-why__subtext strong {
	color: var(--rd-brand-white);
}

/* ── CTA ── */
.rd-why__cta {
	margin-top: 0;
}

/* Override hover to use brand-green gradient with white text */
.rd-why__cta .button {
	position: relative;
	overflow: hidden;
	z-index: 1;
	transition: color 0.3s ease;
}

.rd-why__cta .button::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #9cc329 0%, #afd738 100%);
	z-index: -1;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.rd-why__cta .button:hover {
	color: #ffffff !important;
}

.rd-why__cta .button:hover::before {
	opacity: 1;
}

/* ── Right column ── */
.rd-why__right {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ── Review card ── */
.rd-why__card {
	background: var(--rd-brand-white);
	border-radius: var(--rd-radius-card);
	box-shadow: var(--rd-shadow-card);
	border-left: 4px solid var(--rd-brand-green);
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rd-why__card:hover {
	transform: translateY(-3px);
	box-shadow: var(--rd-shadow-card-hover);
}

.rd-why__card-stars {
	display: flex;
	gap: 3px;
}

.rd-why__card-stars svg {
	width: 16px;
	height: 16px;
	fill: #f59e0b;
}

.rd-why__card-quote {
	font-style: italic;
	color: var(--rd-brand-gray);
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0;
}

.rd-why__card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 8px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.rd-why__card-author {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rd-why__card-author-name {
	font-weight: 700;
	color: var(--rd-brand-dark);
	font-size: 0.9rem;
}

.rd-why__card-author-role {
	font-size: 0.8rem;
	color: rgba(51, 65, 85, 0.65);
}

.rd-why__card-badge {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	color: rgba(51, 65, 85, 0.55);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.rd-why__card-badge-icon {
	width: 18px;
	height: 18px;
}

.rd-why__empty {
	color: rgba(255, 255, 255, 0.6);
	font-style: italic;
}

/* ── Responsive: 1200px ── */
@media screen and (max-width: 1200px) {
	.rd-why {
		padding: 100px 0;
	}

	.rd-why__grid {
		gap: 40px;
	}
	.rd-why__inner {
		padding: 0 24px;
	}
}

/* ── Responsive: 768px ── */
@media screen and (max-width: 768px) {
	.rd-why {
		padding: 80px 0;
	}

	.rd-why__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.rd-why__left,
	.rd-why__right > * {
		opacity: 1;
		animation: none;
	}
}

/* ── Responsive: 470px ── */
@media screen and (max-width: 470px) {
	.rd-why {
		padding: 60px 0;
	}

	.rd-why__inner {
		padding: 0 16px;
	}

	.rd-why__card {
		padding: 16px 18px;
	}

	.rd-why__title {
		font-size: clamp(1.5rem, calc(1rem + 2.5vw), 2rem);
	}
	
}
