/* ============================================================
   nir-zvi-marble — Category page (taxonomy nzm_product_cat)
   Reuses .nzm-catalog-* styles from main style.css (1:1 with /catalog/).
   Adds: is-current marker on cards-track, ACF content block at bottom.
   ============================================================ */

:root {
	--nzm-cat-bg-soft: #F9F9F9;
	--nzm-cat-border: #DCDCDC;
	--nzm-cat-muted: #4A4A4A;
}

/* ============================================================
   Hero — ראש עמוד הקטגוריה (לפי spec של הלקוח)
   ============================================================ */
.nzm-cat-hero__breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 17px;
	color: #000;
	margin-bottom: 20px;
}

.nzm-cat-hero__breadcrumb-home {
	display: inline-flex;
	align-items: center;
	color: inherit;
	line-height: 0;
}

.nzm-cat-hero__breadcrumb-home svg {
	width: 12px;
	height: 12px;
	display: block;
}

.nzm-cat-hero__breadcrumb-sep {
	font-weight: 400;
}

.nzm-cat-hero__breadcrumb-current {
	font-weight: 500;
}

.nzm-cat-hero {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: clamp(40px, 5vw, 70px);
}

.nzm-cat-hero__text {
	flex: 1 1 auto;
	max-width: 714px;
	padding-top: 20px;
}

.nzm-cat-hero__title {
	margin: 0 0 16px;
	font-size: clamp(36px, 4vw, 60px);
	font-weight: 400;
	line-height: 1.17;
	color: #000;
}

.nzm-cat-hero__desc {
	margin: 0;
	font-size: clamp(17px, 1.4vw, 21px);
	line-height: 1.33;
	font-weight: 400;
	color: #4A4A4A;
}

.nzm-cat-hero__image {
	flex: 0 0 auto;
	width: 100%;
	max-width: 820px;
	margin-top: -50px;
}

.nzm-cat-hero__img {
	width: 100%;
	max-width: 820px;
	height: 300px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.nzm-cat-hero--text-only .nzm-cat-hero__text {
	max-width: 100%;
}

@media (max-width: 1024px) {
	.nzm-cat-hero {
		flex-direction: column;
	}
	/* תמונה מתחת לפירורי לחם וכותרת — לפני הטקסט */
	.nzm-cat-hero__image {
		order: -1;
		max-width: 100%;
		margin-top: 0; /* לבטל את ה--50px של הדסקטופ */
	}
	.nzm-cat-hero__img {
		max-width: 100%;
		height: auto;
		aspect-ratio: 820 / 300;
	}
	.nzm-cat-hero__text {
		max-width: 100%;
		padding-top: 0;
		text-align: center;
	}
	.nzm-cat-hero__title {
		font-family: "Ploni DL 1.1 AAA", system-ui, sans-serif;
		font-size: 40px;
		font-weight: 400;
		line-height: 70px;
		color: #000;
		text-align: center;
	}
	.nzm-cat-hero__desc {
		font-family: "Ploni DL 1.1 AAA", system-ui, sans-serif;
		font-size: 18px;
		font-weight: 400;
		line-height: 26px;
		color: #4A4A4A;
		text-align: center;
	}
}

/* ---- Cards-track: סימן border שחור לטרם הנוכחי ---- */
.nzm-catalog-card.is-current {
	border-color: #000;
	border-width: 2px;
	background-color: #fff;
}

.nzm-catalog-card.is-current .nzm-catalog-card__title {
	font-weight: 500;
}

.nzm-catalog-card.is-current:hover {
	transform: none;
	box-shadow: none;
}

/* ---- בלוק תוכן בתחתית — אותו max-width של ה-.nzm-catalog-page-wrapper (1640px) ---- */
.nzm-cat-container {
	width: 100%;
	max-width: 1640px;
	margin-inline: auto;
	padding-inline: 20px;
	box-sizing: border-box;
}

/* ============================================================
   Content block — 4 sections (projects / banner / FAQ / reviews)
   ============================================================ */
.nzm-cat-block {
	padding-block: clamp(40px, 5vw, 70px);
}

.nzm-cat-block__title {
	margin: 0 0 clamp(20px, 2.5vw, 30px);
	font-size: clamp(26px, 2.8vw, 40px);
	font-weight: 400;
	color: var(--nzm-text-black, #111);
	line-height: 1.25;
	text-align: start;
}

.nzm-cat-block__title--center {
	text-align: center;
	margin-block-end: clamp(30px, 4vw, 50px);
}

/* ---- 1. Projects gallery ---- */
.nzm-cat-projects__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(20px, 2.5vw, 30px);
}

.nzm-cat-projects__card {
	margin: 0;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background-color: #D9D9D9;
	aspect-ratio: 788 / 500;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.nzm-cat-projects__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.nzm-cat-projects__card:hover .nzm-cat-projects__img {
	transform: scale(1.03);
}

@media (max-width: 900px) {
	.nzm-cat-projects__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* ---- 2. Content banner ---- */
.nzm-cat-banner__box {
	background-color: var(--nzm-cat-bg-soft);
	border-radius: 10px;
	padding: clamp(25px, 4vw, 50px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.nzm-cat-banner__title {
	margin: 0 0 25px;
	font-size: clamp(22px, 2.4vw, 36px);
	font-weight: 400;
	line-height: 1.4;
	color: var(--nzm-text-black, #111);
}

.nzm-cat-banner__desc-wrap {
	position: relative;
	margin-block-end: 30px;
	max-width: 1200px;
}

.nzm-cat-banner__desc-wrap.is-collapsed {
	max-height: 9.5em;
	overflow: hidden;
}

.nzm-cat-banner__desc-wrap.is-collapsed::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 5em;
	background: linear-gradient(180deg, rgba(249, 249, 249, 0.00) 0%, #F9F9F9 100%);
	pointer-events: none;
}

.nzm-cat-banner__desc {
	font-size: clamp(16px, 1.3vw, 20px);
	line-height: 1.65;
	color: var(--nzm-cat-muted);
	text-align: justify;
}

.nzm-cat-banner__desc p {
	margin: 0 0 1em;
}

.nzm-cat-banner__desc p:last-child {
	margin-bottom: 0;
}

.nzm-cat-banner__subtitle {
	margin: 0 0 35px;
	font-size: clamp(18px, 1.7vw, 26px);
	font-weight: 500;
	color: var(--nzm-text-black, #111);
}

.nzm-cat-banner__cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--nzm-text-black, #111);
	text-decoration: none;
	font-family: inherit;
	font-size: clamp(16px, 1.2vw, 20px);
	font-weight: 500;
	padding: 0 0 5px;
	margin: 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid transparent;
	cursor: pointer;
	transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nzm-cat-banner__cta:hover {
	opacity: 0.85;
	border-bottom-color: currentColor;
}

.nzm-cat-banner__cta-arrow {
	display: inline-flex;
	align-items: center;
	transform: scaleX(-1); /* היפוך החץ ל-RTL */
	transition: transform 0.25s ease;
}

.nzm-cat-banner__cta:hover .nzm-cat-banner__cta-arrow {
	transform: scaleX(-1) translateX(-6px);
}

/* כשהמצב מורחב — סובב את החץ למעלה */
.nzm-cat-banner__cta[aria-expanded="true"] .nzm-cat-banner__cta-arrow {
	transform: scaleX(-1) rotate(-90deg);
}

.nzm-cat-banner__cta[aria-expanded="true"]:hover .nzm-cat-banner__cta-arrow {
	transform: scaleX(-1) rotate(-90deg) translateX(-6px);
}

/* ---- 3. FAQ ---- */
.nzm-cat-faq__list {
	max-width: 1100px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
}

.nzm-cat-faq__item {
	border-bottom: 1px solid var(--nzm-cat-border);
	padding-block: 15px;
}

.nzm-cat-faq__item details {
	width: 100%;
}

.nzm-cat-faq__summary {
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: clamp(17px, 1.5vw, 22px);
	font-weight: 500;
	color: var(--nzm-text-black, #111);
	cursor: pointer;
	padding-block: 10px;
	user-select: none;
}

.nzm-cat-faq__summary::-webkit-details-marker {
	display: none;
}

.nzm-cat-faq__q {
	flex: 1 1 auto;
}

.nzm-cat-faq__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.nzm-cat-faq__item details[open] .nzm-cat-faq__summary .nzm-cat-faq__icon {
	transform: rotate(45deg);
}

.nzm-cat-faq__a {
	padding: 15px 10px 20px;
	font-size: clamp(15px, 1.15vw, 18px);
	line-height: 1.65;
	color: var(--nzm-cat-muted);
	animation: nzm-cat-faq-fade-in 0.4s ease;
}

.nzm-cat-faq__a p {
	margin: 0 0 1em;
}

.nzm-cat-faq__a p:last-child {
	margin-bottom: 0;
}

@keyframes nzm-cat-faq-fade-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---- 4. Reviews (Splide slider) ---- */
.nzm-cat-reviews__slider {
	position: relative;
}

.nzm-cat-reviews__slider .splide__track {
	overflow: hidden;
}

.nzm-cat-reviews__slider .splide__list {
	display: flex;
}

.nzm-cat-reviews__slider .splide__slide {
	box-sizing: border-box;
}

.nzm-cat-reviews__card {
	background-color: var(--nzm-cat-bg-soft);
	border-radius: 6px;
	padding: 34px clamp(20px, 2.2vw, 27px);
	min-height: 454px;
	display: flex;
	flex-direction: column;
}

.nzm-cat-reviews__head {
	display: flex;
	flex-direction: row-reverse; /* G logo first (right), stars after (left) — לפי הפיגמה */
	justify-content: space-between;
	align-items: center;
	margin-block-end: 24px;
}

.nzm-cat-reviews__google {
	display: inline-flex;
	width: 30px;
	height: 30px;
	mix-blend-mode: multiply;
}

.nzm-cat-reviews__google svg {
	width: 100%;
	height: 100%;
	display: block;
}

.nzm-cat-reviews__stars {
	display: inline-flex;
	gap: 6px;
	color: #000; /* כוכבים שחורים לפי הפיגמה */
}

.nzm-cat-reviews__star {
	width: 20px;
	height: 20px;
	display: block;
}

.nzm-cat-reviews__body {
	flex-grow: 1;
	margin: 0 0 24px;
	font-size: clamp(15px, 1.1vw, 19px);
	line-height: 1.55;
	color: #000;
	text-align: start;
	white-space: pre-line;
}

.nzm-cat-reviews__author {
	margin-top: auto;
	font-size: clamp(15px, 1.1vw, 19px);
	font-weight: 700;
	color: #000;
	text-align: start;
}

/* Arrows — circular buttons מקובצים בתחתית-ימין לפי הפיגמה (RTL: flex-start = ימין ויזואלי) */
.nzm-cat-reviews__arrows {
	display: flex;
	justify-content: flex-start;
	gap: 15px;
	margin-top: 40px;
}

.nzm-cat-reviews__slider .splide__arrow {
	position: static;
	transform: none;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: 1px solid #000;
	background: #fff;
	color: #000;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	cursor: pointer;
	opacity: 1;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.nzm-cat-reviews__slider .splide__arrow:hover,
.nzm-cat-reviews__slider .splide__arrow:focus-visible {
	background-color: #000;
	color: #fff;
}

.nzm-cat-reviews__slider .splide__arrow:hover svg path,
.nzm-cat-reviews__slider .splide__arrow:focus-visible svg path {
	stroke: #fff;
}

.nzm-cat-reviews__slider .splide__arrow svg {
	width: 19px;
	height: 19px;
	display: block;
}

.nzm-cat-reviews__slider .splide__arrow[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
}

/* Override Splide RTL auto-flip על SVG של --next — נשמור את הצורה הגולמית של ה-path (<) */
.nzm-cat-reviews__slider .splide__arrow--next svg {
	transform: scaleX(1) !important;
}
