/* =========================================================
   Footer v2 — clean, flat, seamless white layout
   ========================================================= */

.footer {
	--ft-green: #3f9a44;
	--ft-green-dark: #2d7a31;
	--ft-green-deep: #1f5c28;
	--ft-text: #1a2332;
	--ft-muted: #64748b;
	--ft-line: rgba(63, 154, 68, 0.12);
	background: #ffffff;
	color: var(--ft-text);
}

.footer__wrap {
	width: 100%;
}

/* ── Newsletter band ── */

.footer__newsletter {
	padding: clamp(2rem, 4vw, 3rem) var(--rbz-gutter);
	background: #ffffff;
}

.footer__newsletter-inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: center;
	gap: clamp(1.25rem, 3vw, 2rem);
	width: 100%;
	max-width: var(--rbz-container);
	margin: 0 auto;
	padding: clamp(1.5rem, 3vw, 2rem);
	border-radius: 24px;
	background: linear-gradient(135deg, var(--ft-green-deep) 0%, var(--ft-green-dark) 50%, var(--ft-green) 100%);
	color: #ffffff;
	overflow: hidden;
}

.footer__newsletter-deco {
	position: absolute;
	inset-inline-end: 1rem;
	bottom: 0;
	width: clamp(4rem, 8vw, 6.5rem);
	height: auto;
	opacity: 0.85;
	pointer-events: none;
}

.footer__newsletter-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin-bottom: 0.625rem;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	font-size: 0.75rem;
	font-weight: 700;
}

.footer__newsletter-badge .rbz-icon {
	color: #ffe9b8;
	font-size: 0.875rem;
}

.footer__newsletter-title {
	margin: 0;
	font-size: clamp(1.125rem, 2.4vw, 1.625rem);
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: -0.02em;
}

.footer__newsletter-form {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.5rem;
}

.footer__newsletter-field {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 12rem;
	min-width: 0;
}

.footer__newsletter-field .rbz-icon {
	position: absolute;
	inset-inline-start: 1rem;
	color: rgba(255, 255, 255, 0.65);
	font-size: 1rem;
	pointer-events: none;
}

.footer__newsletter-input {
	width: 100%;
	height: 2.875rem;
	padding-inline: 2.75rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	font-family: inherit;
	font-size: 0.875rem;
	outline: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.footer__newsletter-input::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.footer__newsletter-input:focus {
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.14);
}

.footer__newsletter-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	height: 2.875rem;
	padding: 0 1.25rem;
	border: none;
	border-radius: 999px;
	background: #ffffff;
	color: var(--ft-green-dark);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

.footer__newsletter-btn:hover {
	transform: translateY(-1px);
	background: #f4faf5;
}

.footer__newsletter-done {
	display: none;
	flex-basis: 100%;
	align-items: center;
	gap: 0.375rem;
	margin: 0;
	color: #d9ffd9;
	font-size: 0.8125rem;
	font-weight: 700;
}

.footer__newsletter-form.is-sent .footer__newsletter-done {
	display: flex;
}

.footer__newsletter-form.is-sent .footer__newsletter-field,
.footer__newsletter-form.is-sent .footer__newsletter-btn {
	display: none;
}

/* ── Main body ── */

.footer__body {
	position: relative;
	padding: clamp(2rem, 4vw, 3rem) var(--rbz-gutter);
	background: #ffffff;
}

.footer--has-bg .footer__body::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--footer-bg-image);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.06;
	pointer-events: none;
}

.footer__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--rbz-container);
	margin: 0 auto;
}

.footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.75fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: start;
	padding-bottom: clamp(1.5rem, 3vw, 2rem);
	border-bottom: 1px solid var(--ft-line);
}

/* Brand */

.footer__brand-link {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin-bottom: 1rem;
	color: inherit;
	text-decoration: none;
}

.footer__brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 16px;
	background: linear-gradient(145deg, var(--ft-green-dark), var(--ft-green));
	color: #ffffff;
	font-size: 1.375rem;
}

.footer__logo {
	display: block;
	width: 62%;
	height: 62%;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.footer__brand-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.footer__brand-name {
	color: var(--ft-text);
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.35;
}

.footer__brand-tagline {
	color: var(--ft-green-dark);
	font-size: 0.8125rem;
	font-weight: 700;
}

.footer__desc {
	max-width: 34ch;
	margin: 0 0 1.125rem;
	color: var(--ft-muted);
	font-size: 0.875rem;
	line-height: 1.85;
}

.footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.375rem;
	height: 2.375rem;
	border: 1px solid var(--ft-line);
	border-radius: 50%;
	background: #ffffff;
	color: var(--ft-green-dark);
	font-size: 1rem;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer__social-link:hover {
	background: var(--ft-green);
	border-color: var(--ft-green);
	color: #ffffff;
}

/* Link columns */

.footer__nav {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

.footer__col {
	min-width: 0;
}

.footer__col-title {
	margin: 0 0 0.875rem;
	color: var(--ft-text);
	font-size: 0.875rem;
	font-weight: 800;
	line-height: 1.45;
}

.footer__col-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer__col-list li + li {
	margin-top: 0.5rem;
}

.footer__link {
	display: inline-block;
	color: var(--ft-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.footer__link:hover {
	color: var(--ft-green-dark);
	transform: translateX(-2px);
}

[dir="ltr"] .footer__link:hover {
	transform: translateX(2px);
}

/* Contact */

.footer__contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.footer__contact-item + .footer__contact-item {
	margin-top: 0.875rem;
}

.footer__contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.125rem;
	height: 2.125rem;
	border-radius: 50%;
	background: rgba(63, 154, 68, 0.08);
	color: var(--ft-green-dark);
	font-size: 0.9375rem;
}

.footer__contact-body {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
	font-size: 0.8125rem;
	line-height: 1.55;
}

.footer__contact-label {
	color: var(--ft-muted);
	font-weight: 600;
}

.footer__contact-body a,
.footer__contact-body span {
	color: var(--ft-text);
	font-weight: 700;
	text-decoration: none;
	word-break: break-word;
}

.footer__contact-body a:hover {
	color: var(--ft-green-dark);
}

/* Trust badges */

.footer__trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.footer__trust-title {
	display: inline-flex;
	align-items: center;
	gap: 0.4375rem;
	margin: 0;
	color: var(--ft-text);
	font-size: 0.875rem;
	font-weight: 800;
}

.footer__trust-title .rbz-icon {
	color: var(--ft-green);
}

.footer__trust-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}

.footer__trust-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	min-width: 5.5rem;
	min-height: 3.5rem;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--ft-line);
	border-radius: 14px;
	background: #ffffff;
	color: var(--ft-muted);
	font-size: 0.6875rem;
	font-weight: 700;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.footer__trust-item:hover {
	border-color: rgba(63, 154, 68, 0.28);
	color: var(--ft-green-dark);
}

.footer__trust-item img {
	display: block;
	max-width: 4.5rem;
	max-height: 2.75rem;
	object-fit: contain;
}

.footer__trust-item--placeholder .rbz-icon {
	color: var(--ft-green);
	font-size: 1.125rem;
}

/* Bottom bar */

.footer__bar {
	background: linear-gradient(90deg, var(--ft-green-deep), var(--ft-green-dark));
	color: #ffffff;
}

.footer__bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	width: 100%;
	max-width: var(--rbz-container);
	margin: 0 auto;
	padding: 0.875rem var(--rbz-gutter);
}

.footer__copy {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.8125rem;
	font-weight: 600;
}

.footer__top {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.4375rem 0.875rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.footer__top:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.35);
}

.footer__top .rbz-icon {
	font-size: 0.8125rem;
}

/* Scroll reveal */

.footer--scroll [data-footer-reveal]:not(.is-revealed) {
	opacity: 0;
	transform: translateY(14px);
}

.footer--scroll [data-footer-reveal].is-revealed {
	animation: footer-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.footer--scroll [data-footer-reveal][data-delay="1"].is-revealed { animation-delay: 0.06s; }
.footer--scroll [data-footer-reveal][data-delay="2"].is-revealed { animation-delay: 0.12s; }
.footer--scroll [data-footer-reveal][data-delay="3"].is-revealed { animation-delay: 0.18s; }
.footer--scroll [data-footer-reveal][data-delay="4"].is-revealed { animation-delay: 0.24s; }

.footer--scroll .is-instant {
	animation: none !important;
	opacity: 1 !important;
	transform: none !important;
}

@keyframes footer-in {
	to {
		opacity: 1;
		transform: none;
	}
}

/* Responsive */

@media (max-width: 1023px) {
	.footer__newsletter {
		padding-block: clamp(1.5rem, 4vw, 2.5rem);
	}

	.footer__newsletter-inner {
		grid-template-columns: 1fr;
		gap: clamp(1rem, 3vw, 1.5rem);
		text-align: center;
		border-radius: 20px;
	}

	.footer__newsletter-copy {
		max-width: 36ch;
		margin-inline: auto;
	}

	.footer__newsletter-deco {
		width: clamp(3.5rem, 12vw, 5rem);
		opacity: 0.4;
	}

	.footer__newsletter-form {
		justify-content: center;
	}

	.footer__body {
		padding-block: clamp(1.75rem, 4vw, 2.5rem);
	}

	.footer__grid {
		grid-template-columns: 1fr;
		gap: clamp(1.75rem, 4vw, 2.25rem);
	}

	.footer__brand,
	.footer__nav,
	.footer__contact {
		grid-column: 1 / -1;
	}

	.footer__brand {
		text-align: center;
	}

	.footer__brand-link {
		justify-content: center;
	}

	.footer__desc {
		max-width: 42ch;
		margin-inline: auto;
	}

	.footer__social {
		justify-content: center;
	}

	.footer__nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.875rem;
	}

	.footer__col {
		padding: 1rem 1.125rem;
		border: 1px solid var(--ft-line);
		border-radius: 16px;
		background: rgba(63, 154, 68, 0.04);
	}

	.footer__col:nth-child(3):last-child {
		grid-column: 1 / -1;
	}

	.footer__col-title {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		margin-bottom: 0.75rem;
		padding-bottom: 0.625rem;
		border-bottom: 1px solid var(--ft-line);
	}

	.footer__col-title::before {
		content: "";
		flex-shrink: 0;
		width: 0.25rem;
		height: 1em;
		border-radius: 999px;
		background: linear-gradient(180deg, var(--ft-green), var(--ft-green-dark));
	}

	.footer__col-list li + li {
		margin-top: 0;
	}

	.footer__link {
		display: flex;
		align-items: center;
		min-height: 2.5rem;
		padding-inline: 0.375rem;
		margin-inline: -0.375rem;
		border-radius: 10px;
	}

	.footer__contact {
		padding: 1rem 1.125rem;
		border: 1px solid var(--ft-line);
		border-radius: 16px;
		background: rgba(63, 154, 68, 0.04);
	}

	.footer__contact .footer__col-title {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		margin-bottom: 0.875rem;
		padding-bottom: 0.625rem;
		border-bottom: 1px solid var(--ft-line);
	}

	.footer__contact .footer__col-title::before {
		content: "";
		flex-shrink: 0;
		width: 0.25rem;
		height: 1em;
		border-radius: 999px;
		background: linear-gradient(180deg, var(--ft-green), var(--ft-green-dark));
	}

	.footer__trust {
		flex-direction: column;
		align-items: stretch;
		gap: 0.875rem;
	}

	.footer__trust-list {
		justify-content: center;
	}
}

@media (max-width: 720px) {
	.footer__newsletter-form {
		flex-direction: column;
		align-items: stretch;
	}

	.footer__newsletter-field {
		flex-basis: 100%;
	}

	.footer__newsletter-btn {
		width: 100%;
		min-height: 2.875rem;
	}

	.footer__nav {
		gap: 0.75rem;
	}

	.footer__trust-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.footer__trust-item {
		width: 100%;
		min-height: 3.25rem;
	}

	.footer__bar-inner {
		flex-direction: column;
		text-align: center;
	}

	.footer__top {
		width: 100%;
		max-width: 20rem;
		justify-content: center;
		min-height: 2.75rem;
	}
}

@media (max-width: 480px) {
	.footer__newsletter {
		padding-inline: max(1rem, var(--rbz-gutter));
	}

	.footer__newsletter-inner {
		padding: 1.25rem 1rem;
		border-radius: 18px;
	}

	.footer__newsletter-title {
		font-size: clamp(1rem, 5.5vw, 1.25rem);
	}

	.footer__newsletter-deco {
		display: none;
	}

	.footer__body {
		padding-inline: max(1rem, var(--rbz-gutter));
	}

	.footer__grid {
		gap: 1.5rem;
		padding-bottom: 1.25rem;
	}

	.footer__brand-mark {
		width: 3rem;
		height: 3rem;
		border-radius: 14px;
		font-size: 1.25rem;
	}

	.footer__brand-name {
		font-size: 1rem;
	}

	.footer__desc {
		font-size: 0.8125rem;
		line-height: 1.8;
	}

	.footer__nav {
		grid-template-columns: 1fr;
		gap: 0.625rem;
	}

	.footer__col {
		padding: 0.875rem 1rem;
		border-radius: 14px;
	}

	.footer__col:nth-child(3):last-child {
		grid-column: auto;
	}

	.footer__col-title {
		margin-bottom: 0.625rem;
		padding-bottom: 0.5rem;
		font-size: 0.8125rem;
	}

	.footer__link {
		min-height: 2.625rem;
		font-size: 0.8125rem;
	}

	.footer__contact {
		padding: 0.875rem 1rem;
		border-radius: 14px;
	}

	.footer__contact .footer__col-title {
		margin-bottom: 0.75rem;
		font-size: 0.8125rem;
	}

	.footer__contact-item + .footer__contact-item {
		margin-top: 0.75rem;
	}

	.footer__social-link {
		width: 2.75rem;
		height: 2.75rem;
	}

	.footer__trust-list {
		grid-template-columns: 1fr;
	}

	.footer__bar-inner {
		padding: 0.875rem max(1rem, var(--rbz-gutter));
		gap: 0.625rem;
	}

	.footer__copy {
		font-size: 0.75rem;
		line-height: 1.65;
	}

	.footer__top {
		max-width: none;
	}
}

@media (hover: none) {
	.footer__newsletter-btn:hover {
		transform: none;
	}

	.footer__link:hover {
		transform: none;
	}

	.footer__link:active {
		background: rgba(63, 154, 68, 0.08);
	}

	.footer__social-link:hover,
	.footer__trust-item:hover {
		background: #ffffff;
		border-color: var(--ft-line);
		color: var(--ft-green-dark);
	}

	html.rbz-dark .footer__social-link:hover,
	html.rbz-dark .footer__trust-item:hover {
		background: rgba(255, 255, 255, 0.05);
		border-color: rgba(255, 255, 255, 0.1);
		color: rgba(255, 255, 255, 0.75);
	}
}

@media (prefers-reduced-motion: reduce) {
	.footer--scroll [data-footer-reveal] {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}
}

/* Dark mode */

html.rbz-dark .footer,
html.rbz-dark .footer__newsletter,
html.rbz-dark .footer__body {
	background: transparent;
}

html.rbz-dark .footer__brand-name,
html.rbz-dark .footer__col-title,
html.rbz-dark .footer__trust-title {
	color: rgba(255, 255, 255, 0.92);
}

html.rbz-dark .footer__desc,
html.rbz-dark .footer__link,
html.rbz-dark .footer__contact-label {
	color: rgba(255, 255, 255, 0.58);
}

html.rbz-dark .footer__contact-body a,
html.rbz-dark .footer__contact-body span {
	color: rgba(255, 255, 255, 0.88);
}

html.rbz-dark .footer__social-link,
html.rbz-dark .footer__trust-item {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.75);
}

html.rbz-dark .footer__grid {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.rbz-dark .footer__col,
html.rbz-dark .footer__contact {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.1);
}

html.rbz-dark .footer__col-title,
html.rbz-dark .footer__contact .footer__col-title {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.rbz-dark .footer__link:active {
	background: rgba(63, 154, 68, 0.14);
}

/* A11y */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
