/**
 * Boombeen custom homepage — warm earth palette, RTL.
 */

.boombeen-home {
	--bb-primary: #15803d;
	--bb-primary-dark: #166534;
	--bb-accent: #a16207;
	--bb-bg-page: #f9f9f9;
	--bb-surface: #ffffff;
	--bb-text: #14532d;
	--bb-body: #334155;
	--bb-border: #e8dfd0;
	--bb-radius-lg: 30px;
	--bb-radius-md: 12px;
	--bb-max-width: 1410px;
	--bb-max-text: 42rem;
	--bb-section-pad: clamp(3rem, 6vw, 5rem);
	--bb-gutter: clamp(1rem, 3vw, 2rem);

	width: 100%;
	max-width: none;
	overflow-x: clip;
	direction: rtl;
	text-align: right;
	background: var(--bb-bg-page);
	color: var(--bb-body);
	font-family: "Farhang2FaNum", Tahoma, sans-serif;
	line-height: 1.65;
}

.boombeen-home *,
.boombeen-home *::before,
.boombeen-home *::after {
	box-sizing: border-box;
}

/* Layout — full-width sections, content capped at 1410px */
.bb-container {
	width: 100%;
	max-width: var(--bb-max-width);
	margin-inline: auto;
	padding-inline: var(--bb-gutter);
}

.bb-container--narrow {
	width: 100%;
	max-width: min(900px, var(--bb-max-width));
	margin-inline: auto;
	padding-inline: var(--bb-gutter);
	text-align: right;
}

.bb-container--narrow .bb-title--section {
	text-align: right;
}

.bb-section {
	width: 100%;
	padding-block: var(--bb-section-pad);
	background: var(--bb-bg-page);
}

.bb-section--warm,
.bb-section--muted,
.bb-section--white,
.bb-section--primary {
	background: var(--bb-bg-page);
	color: inherit;
}

/* Typography */
.bb-eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--bb-accent);
	letter-spacing: 0.02em;
}

.bb-title {
	margin: 0 0 1rem;
	color: var(--bb-text);
	line-height: 1.35;
	font-weight: 700;
}

.bb-title--hero {
	font-size: clamp(1.75rem, 4vw, 2.625rem);
	text-align: center;
}

.bb-title--section {
	font-size: clamp(1.375rem, 3vw, 2rem);
	text-align: center;
}

.bb-title--cta {
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	color: #fff;
}

.bb-lead {
	margin: 0 0 1.5rem;
	max-width: var(--bb-max-text);
	font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
	line-height: 1.7;
}

.bb-section--primary .bb-lead,
.bb-cta__text {
	color: rgba(255, 255, 255, 0.92);
}

/* Buttons & links */
.bb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.bb-btn--primary {
	background: var(--bb-primary);
	color: #fff;
}

.bb-btn--primary:hover {
	background: var(--bb-primary-dark);
	color: #fff;
	transform: translateY(-1px);
}

.bb-btn--light {
	background: #fff;
	color: var(--bb-primary);
}

.bb-btn--light:hover {
	background: #f3f3f3;
	color: var(--bb-primary-dark);
}

.bb-link {
	color: var(--bb-primary);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.bb-link:hover {
	border-bottom-color: var(--bb-primary);
}

/* Images */
.bb-img {
	max-width: 100%;
	height: auto;
	display: block;
}

.bb-img--blend {
	mix-blend-mode: multiply;
	filter: contrast(1.05) saturate(1.03);
}

.bb-section--white .bb-product__media .bb-img,
.bb-product__media .bb-img {
	mix-blend-mode: multiply;
	filter: contrast(1.05) saturate(1.03);
}

/* Hero */
.bb-hero__card {
	display: grid;
	gap: 2rem;
	padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 3vw, 2rem);
	background: var(--bb-surface);
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius-lg);
	margin-top: 0;
}

.bb-hero__copy {
	text-align: center;
}

.bb-hero__copy .bb-lead {
	margin-inline: auto;
}

.bb-hero__gallery {
	display: grid;
	gap: 1rem;
	justify-items: center;
}

.bb-hero__main .bb-img {
	max-width: min(420px, 100%);
	margin-inline: auto;
}

.bb-hero__thumbs {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.bb-hero__thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: none;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.bb-hero__thumb.is-active {
	border-color: var(--bb-primary);
}

.bb-hero__thumb .bb-img {
	max-width: 74px;
	width: auto;
	mix-blend-mode: multiply;
}

/* Stats */
.bb-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	text-align: center;
}

.bb-stat__value {
	margin: 0 0 0.25rem;
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 700;
	color: var(--bb-accent);
	line-height: 1.1;
}

.bb-stat__label {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	color: var(--bb-text);
}

.bb-stat__detail {
	margin: 0;
	font-size: 0.9375rem;
	max-width: 20rem;
	margin-inline: auto;
}

/* Cards */
.bb-trust__grid,
.bb-impact__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin-top: 2rem;
}

.bb-impact__grid {
	grid-template-columns: repeat(2, 1fr);
}

.bb-card {
	padding: 1.5rem;
	background: var(--bb-surface);
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius-md);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bb-section--muted .bb-card {
	background: var(--bb-surface);
}

.bb-section--warm .bb-card--compact {
	background: var(--bb-surface);
}

.bb-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(20, 83, 45, 0.08);
}

.bb-card__icon {
	display: block;
	margin-bottom: 0.75rem;
	color: var(--bb-accent);
	font-size: 0.875rem;
}

.bb-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
	color: var(--bb-text);
}

.bb-card__text {
	margin: 0;
	font-size: 0.9375rem;
}

/* List */
.bb-list {
	margin: 0 0 1.5rem;
	padding: 0 1.25rem 0 0;
	list-style: disc;
}

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

/* Craft */
.bb-craft__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 2rem;
}

.bb-craft__media .bb-img {
	max-width: 700px;
	width: 100%;
	margin-inline: auto;
	border-radius: var(--bb-radius-md);
}

.bb-craft__title {
	margin: 1rem 0 0.5rem;
	font-size: 1.0625rem;
	color: var(--bb-text);
}

.bb-craft__text {
	margin: 0;
	font-size: 0.9375rem;
}

/* Timeline — signature vertical line */
.bb-timeline__list {
	position: relative;
	margin: 2rem 0 0;
	padding: 0 2rem 0 0;
	list-style: none;
}

.bb-timeline__list::before {
	content: "";
	position: absolute;
	top: 0.5rem;
	bottom: 0.5rem;
	right: 0.35rem;
	width: 2px;
	background: linear-gradient(to bottom, var(--bb-border), var(--bb-primary));
	border-radius: 2px;
}

.bb-timeline__item {
	position: relative;
	padding-bottom: 2rem;
}

.bb-timeline__item:last-child {
	padding-bottom: 0;
}

.bb-timeline__item::before {
	content: "";
	position: absolute;
	right: -2rem;
	top: 0.45rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--bb-primary);
	border: 2px solid var(--bb-surface);
	box-shadow: 0 0 0 2px var(--bb-border);
}

.bb-timeline__title {
	margin: 0 0 0.35rem;
	font-size: 1.0625rem;
	color: var(--bb-text);
}

.bb-timeline__text {
	margin: 0;
	font-size: 0.9375rem;
}

/* Kolporgan */
.bb-kolporgan__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: center;
}

.bb-kolporgan__copy {
	text-align: right;
}

.bb-kolporgan__copy .bb-title--section {
	text-align: right;
}

.bb-kolporgan__closing {
	margin: 0 0 1rem;
	font-weight: 600;
	color: var(--bb-text);
}

.bb-kolporgan__media .bb-img {
	max-width: 700px;
	width: 100%;
	margin-inline: auto;
	border-radius: var(--bb-radius-md);
}

/* Product */
.bb-product__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 2.5rem;
	align-items: center;
}

.bb-product__media,
.bb-product__copy {
	min-width: 0;
}

.bb-product__media {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.bb-product__media img,
.bb-product__media .bb-img {
	width: 100% !important;
	max-width: min(100%, 700px) !important;
	height: auto !important;
}

.bb-product__copy .bb-lead {
	max-width: 100%;
}

.bb-product__copy .bb-btn {
	width: fit-content;
	max-width: 100%;
}

.bb-product__price {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--bb-accent);
}

.bb-product__price .amount,
.bb-product__price ins {
	text-decoration: none;
}

/* Steps */
.bb-steps__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin-top: 2rem;
}

.bb-step {
	padding: 1.25rem;
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius-md);
}

.bb-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin-bottom: 0.75rem;
	border-radius: 50%;
	background: var(--bb-surface);
	border: 1px solid var(--bb-border);
	color: var(--bb-primary);
	font-weight: 700;
	font-size: 0.875rem;
}

.bb-step__title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	color: var(--bb-text);
}

.bb-step__text {
	margin: 0;
	font-size: 0.9375rem;
}

.bb-steps__footer {
	margin-top: 1.5rem;
	text-align: center;
}

/* FAQ */
.bb-faq__list {
	margin-top: 1.5rem;
	display: grid;
	gap: 0.75rem;
}

.bb-faq__item {
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius-md);
	background: var(--bb-surface);
	overflow: hidden;
}

.bb-faq__question {
	padding: 1rem 1.25rem;
	cursor: pointer;
	font-weight: 600;
	color: var(--bb-text);
	list-style: none;
}

.bb-faq__question::-webkit-details-marker {
	display: none;
}

.bb-faq__question::after {
	content: "+";
	float: left;
	font-weight: 700;
	color: var(--bb-primary);
}

.bb-faq__item[open] .bb-faq__question::after {
	content: "−";
}

.bb-faq__answer {
	padding: 0 1.25rem 1rem;
}

.bb-faq__answer p {
	margin: 0;
	font-size: 0.9375rem;
}

/* Gallery */
.bb-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 2rem;
}

.bb-gallery__item {
	margin: 0;
	overflow: hidden;
	border-radius: var(--bb-radius-md);
	border: 1px solid var(--bb-border);
}

.bb-gallery__item .bb-img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* CTA */
.bb-cta__box {
	padding: clamp(2rem, 4vw, 3rem);
	background: var(--bb-primary);
	color: #fff;
	border-radius: var(--bb-radius-lg);
	text-align: center;
}

.bb-cta__inner {
	text-align: center;
}

.bb-cta__text {
	margin: 0 0 1.5rem;
	max-width: var(--bb-max-text);
	margin-inline: auto;
	color: rgba(255, 255, 255, 0.92);
}

/* Scroll reveal */
.bb-reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.bb-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Responsive */
/* Tablet landscape / small desktop */
@media (max-width: 1199px) {
	.bb-trust__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.bb-trust__grid .bb-card:last-child {
		grid-column: 1 / -1;
		max-width: 50%;
		margin-inline: auto;
		width: 100%;
	}
}

@media (max-width: 991px) {
	.boombeen-home {
		--bb-section-pad: clamp(2.5rem, 5vw, 4rem);
	}

	.bb-trust__grid,
	.bb-craft__grid,
	.bb-stats__grid,
	.bb-steps__grid,
	.bb-kolporgan__grid,
	.bb-product__grid {
		grid-template-columns: 1fr;
	}

	.bb-trust__grid .bb-card:last-child {
		grid-column: auto;
		max-width: none;
	}

	.bb-impact__grid {
		grid-template-columns: 1fr;
	}

	.bb-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.bb-kolporgan__grid,
	.bb-product__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
	}

	.bb-kolporgan__copy {
		order: 1;
	}

	.bb-kolporgan__media {
		order: 2;
	}

	.bb-product__media {
		order: 1;
	}

	.bb-product__copy {
		order: 2;
		text-align: right;
	}
}

/* Tablet portrait */
@media (max-width: 767px) {
	.boombeen-home {
		--bb-gutter: 1rem;
		--bb-section-pad: 2.5rem;
		--bb-radius-lg: 20px;
	}

	.bb-title--hero {
		font-size: clamp(1.5rem, 6vw, 2rem);
	}

	.bb-title--section {
		font-size: clamp(1.25rem, 4.5vw, 1.625rem);
	}

	.bb-hero__card {
		padding: 1.5rem 1rem;
		gap: 1.5rem;
	}

	.bb-hero__copy .bb-lead {
		margin-bottom: 0;
	}

	.bb-stats__grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.bb-stat {
		padding: 1rem;
		background: var(--bb-surface);
		border: 1px solid var(--bb-border);
		border-radius: var(--bb-radius-md);
	}

	.bb-trust__grid,
	.bb-craft__grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.bb-card {
		padding: 1.25rem;
	}

	.bb-card:hover {
		transform: none;
		box-shadow: none;
	}

	.bb-craft__media .bb-img,
	.bb-kolporgan__media .bb-img {
		max-width: 100%;
		width: 100%;
	}

	.bb-product__media .bb-img {
		max-width: 100%;
		width: 100%;
	}

	.bb-product__price {
		font-size: clamp(1rem, 4vw, 1.25rem);
		word-break: break-word;
	}

	.bb-product__copy .bb-btn {
		width: 100%;
		max-width: 320px;
	}

	.bb-timeline__list {
		padding-right: 1.5rem;
	}

	.bb-timeline__item::before {
		right: -1.5rem;
	}

	.bb-steps__grid {
		gap: 1rem;
	}

	.bb-org .bb-btn {
		display: inline-flex;
		width: auto;
		min-width: min(100%, 280px);
	}

	.bb-cta__box {
		padding: 1.75rem 1.25rem;
		border-radius: var(--bb-radius-md);
	}

	.bb-faq__question {
		padding: 0.875rem 1rem;
		font-size: 0.9375rem;
		line-height: 1.5;
	}
}

/* Mobile */
@media (max-width: 575px) {
	.boombeen-home {
		--bb-section-pad: 2rem;
		--bb-gutter: 0.875rem;
	}

	.bb-gallery__grid {
		grid-template-columns: 1fr;
	}

	.bb-impact__grid {
		gap: 0.875rem;
	}

	.bb-hero__main .bb-img {
		max-width: 100%;
	}

	.bb-hero__thumb .bb-img {
		max-width: 64px;
	}

	.bb-list {
		padding-right: 1rem;
	}

	.bb-lead,
	.bb-container--narrow .bb-lead {
		max-width: 100%;
	}
}

@media (max-width: 374px) {
	.boombeen-home {
		--bb-gutter: 0.75rem;
	}

	.bb-title--hero {
		font-size: 1.375rem;
	}

	.bb-stat__value {
		font-size: 1.75rem;
	}
}

/* Full-width homepage inside WoodMart wrapper */
.boombeen-custom-home .boombeen-home {
	margin-inline: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
}

.boombeen-custom-home .wd-content-area.site-content {
	padding-inline: 0;
	max-width: none;
}

@media (prefers-reduced-motion: reduce) {
	.bb-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.bb-btn,
	.bb-card {
		transition: none;
	}
}
