/**
 * rd-herobanner — Isolated Hero Banner Block (Variant B)
 * All class names are prefixed with "rd-" to prevent conflicts with existing theme styles.
 */

/* ── Hero Banner ── */
.rd-herobanner {
	--rd-brand-green: #9cc329;
	--rd-brand-green-light: #afd738;
	--rd-brand-dark: #1f2933;
	--rd-brand-white: #ffffff;

	min-height: 650px;
	display: grid;
	grid-template-columns: 1fr 320px;
	grid-template-rows: 1fr;
	position: relative;
}

@media screen and (max-width: 1160px) {
	.rd-herobanner {
		min-height: 520px;
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 768px) {
	.rd-herobanner {
		min-height: auto;
		grid-template-columns: 1fr;
	}
}

/* Background image */
.rd-herobanner__image {
	grid-column: 1 / -1;
	grid-row: 1;
	position: absolute;
	inset: 0;
	z-index: 0;
}

.rd-herobanner__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rd-herobanner__image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		rgba(31, 41, 51, 0.6) 0%,
		rgba(31, 41, 51, 0.15) 50%,
		rgba(255, 255, 255, 0.2) 100%
	);
	z-index: 1;
}

.rd-herobanner__image::after {
	display: none;
}

@media screen and (max-width: 768px) {
	.rd-herobanner__image::before {
		background: linear-gradient(
			180deg,
			rgba(31, 41, 51, 0.5) 0%,
			rgba(31, 41, 51, 0.15) 50%,
			rgba(255, 255, 255, 0.5) 100%
		);
	}
}

/* Inner grid — inherits column setup from parent */
.rd-herobanner__inner {
	position: relative;
	z-index: 10;
	grid-column: 1 / -1;
	grid-row: 1;
	display: grid;
	grid-template-columns: inherit;
	grid-template-rows: 1fr;
	align-items: stretch;
}

@media screen and (max-width: 1160px) {
	.rd-herobanner__inner {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
	}
}

@media screen and (max-width: 768px) {
	.rd-herobanner__inner {
		grid-column: 1;
		grid-row: 1;
	}
}

/* Hero text block */
.rd-herobanner__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 80px 5% 80px 8%;
}

@media screen and (max-width: 1160px) {
	.rd-herobanner__text {
		grid-column: 1;
		padding: 50px 5% 20px;
	}
}

@media screen and (max-width: 768px) {
	.rd-herobanner__text {
		padding: 40px 20px 20px;
	}
}

.rd-herobanner__roofline {
	margin-bottom: clamp(0.9375rem, calc(0.4125rem + 1.8666666667vw), 1.8125rem);
}

.rd-herobanner__title {
	max-width: 65%;
}

@media (max-width: 768px) {
	.rd-herobanner__title {
		max-width: 100%;
	}
}

.rd-herobanner__title h1 {
	font-family: "Inter", Arial, sans-serif;
	font-size: clamp(1.25rem, calc(0.6rem + 2.2vw), 2.75rem);
	font-weight: normal;
	line-height: 1.2;
	margin-bottom: 0;
	max-width: 100%;
	display: flex;
	flex-wrap: wrap;
	row-gap: 0.15em;
	color: var(--rd-brand-green-light);
	
    text-shadow: 2px 2px 8px rgba(48, 48, 47, 0.45);

}

.rd-herobanner__title h1 b,
.rd-herobanner__title h1 strong {
	display: block;
	font-weight: bold;
	color: var(--rd-brand-green-light);
	margin-top: 0.15em;
    text-shadow: 2px 2px 8px rgba(48, 48, 47, 0.45);

}

.rd-herobanner__title + .rd-herobanner__buttons {
	margin-top: 28px;
}

.rd-herobanner__subtext p {
	margin-bottom: clamp(0.9375rem, calc(0rem + 3.3333333333vw), 2.5rem);
}

.rd-herobanner__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

@media screen and (max-width: 768px) {
	.rd-herobanner__buttons {
		gap: 10px;
	}
}

/* ── Sidebar column ── */
.rd-herobanner__sidebar {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 40px 8% 40px 24px;
	height: 100%;
}

@media screen and (max-width: 1160px) {
	.rd-herobanner__sidebar {
		grid-column: 1;
		grid-row: 2;
		padding: 20px 5% 20px 5%;
		height: auto;
	}
}

@media screen and (max-width: 768px) {
	.rd-herobanner__sidebar {
		padding: 16px 20px;
	}
}

/* ── Floating Contact Card ── */
.rd-floating-card {
	background: #fff;
	border-radius: 4px;
	border-left: 4px solid #9cc329;
	box-shadow: 0 8px 40px rgba(31, 41, 51, 0.12);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media screen and (max-width: 768px) {
	.rd-floating-card {
		padding: 16px;
		gap: 12px;
		max-width: 400px;
	}
}

@media screen and (max-width: 1160px) {
	.rd-floating-card {
		max-width: 400px;
	}
}

.rd-floating-card__contact {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rd-floating-card__contact a {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 0.95rem;
	font-weight: 500;
	color: #1f2933;
	text-decoration: none;
	transition: color 0.2s;
}

.rd-floating-card__contact a::before {
	content: "";
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231f2933'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C9.6 21 3 14.4 3 6c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.rd-floating-card__contact a.phone::before {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231f2933'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C9.6 21 3 14.4 3 6c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.rd-floating-card__contact a.mail::before {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231f2933'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.rd-floating-card__contact a.phone:hover::before {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239cc329'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C9.6 21 3 14.4 3 6c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.rd-floating-card__contact a.mail:hover::before {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239cc329'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Certification logos */
.rd-floating-card__certs {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
	padding-top: 12px;
	border-top: 1px solid #eee;
}

.rd-floating-card__certs img {
	max-width: 90px;
	height: auto;
	display: block;
}

@media screen and (max-width: 768px) {
	.rd-floating-card__certs img {
		max-width: 70px;
	}
}

/* ── Subpage variant ── */
.rd-herobanner--subpage {
	min-height: 720px;
}

@media screen and (max-width: 1160px) {
	.rd-herobanner--subpage {
		min-height: 500px;
	}
}

@media screen and (max-width: 768px) {
	.rd-herobanner--subpage {
		min-height: auto;
	}
}
