/*!
 * Zardis Toolkit — front-page «درباره مجموعه زردیس» layout
 *
 * The section is Elementor markup owned by the client: a three-column row where
 * column 1 holds the logo + «درباره مجموعه زردیس» title, column 2 the brand
 * copy, and column 3 is empty. Out of the box the copy is centred inside a
 * one-third column, so it reads as a narrow centred ribbon with a dead band
 * beside it. This sheet turns that row into a proper editorial block:
 *
 *   [ brand rail ]  [ wide copy column, aligned right ]  [ gap ]
 *
 * Nothing here restyles a `.wd-*` class outside `.zardis-home-about`.
 */

.zardis-home-about {
	--zha-ink: #241a08;
	--zha-ink-soft: rgba(36, 26, 8, .82);
	--zha-line: rgba(36, 26, 8, .18);
	--zha-card: rgba(255, 255, 255, .30);
	--zha-card-line: rgba(255, 255, 255, .55);
	--zha-gold: #c9a247;
	--zha-navy: #001944;
	--zha-gap: clamp(24px, 3vw, 48px);
	position: relative;
	overflow: hidden;
	/* The brown headline colour the theme paints on this band is unreadable on
	   hover/active; pin the whole block to a high-contrast ink instead. */
	color: var(--zha-ink);
}

/* Give the block breathing room and keep it inside the container at 360px. */
.zardis-home-about > .elementor-container {
	align-items: stretch;
	gap: var(--zha-gap);
}

/*
 * Columns. The empty third column is hidden outright and the copy column takes
 * the space it wasted, so the text runs in a comfortable measure instead of a
 * narrow centred strip.
 *
 * Selectors use the `elementor-element-<id>` class Elementor always prints, so
 * no `:has()` support is required.
 */
.zardis-home-about .elementor-top-column {
	min-inline-size: 0;
}

.zardis-home-about .elementor-element-91dc42f {
	/*
	 * This column is empty (its `.elementor-widget-wrap` has no children), so it
	 * only wastes a third of the row. Hidden by its Elementor id, which is
	 * stable, rather than with `:has()` — that keeps the rule working in older
	 * browsers. If the client ever adds a widget to this column, delete this rule.
	 */
	display: none;
}

.zardis-home-about .elementor-element-a8d0855 {
	flex: 1 1 auto;
	inline-size: auto;
	max-inline-size: none;
}

.zardis-home-about .elementor-element-740c2e1 {
	flex: 0 0 clamp(200px, 22%, 280px);
	inline-size: auto;
	align-self: start;
	position: sticky;
	top: 96px;
}

/* ---------- brand rail ---------- */

.zardis-home-about [data-id="b6f9b3c"] img {
	inline-size: clamp(72px, 9vw, 104px);
	block-size: auto;
	margin-inline: 0;
	display: block;
}

.zardis-home-about [data-id="b6f9b3c"] .elementor-widget-container {
	text-align: start;
}

.zardis-home-about [data-id="42e0b30"] {
	margin-block-start: 10px;
}

.zardis-home-about [data-id="42e0b30"] .title-wrapper,
.zardis-home-about [data-id="42e0b30"] .liner-continer {
	text-align: start;
}

.zardis-home-about .woodmart-title-container {
	margin: 0;
	color: var(--zha-navy);
	font-size: clamp(17px, 1.5vw, 20px);
	font-weight: 800;
	line-height: 1.5;
}

/* A gold rule under the brand name closes the rail off from the copy. */
.zardis-home-about [data-id="42e0b30"] .liner-continer {
	padding-block-end: 12px;
	border-block-end: 2px solid rgba(0, 25, 68, .16);
}

/* ---------- copy ---------- */

.zardis-home-about .elementor-widget-text-editor {
	color: var(--zha-ink-soft);
	font-size: 15px;
	line-height: 2;
	text-align: start;
}

.zardis-home-about .elementor-widget-text-editor p {
	margin-block: 0 14px;
	text-align: start;
	color: var(--zha-ink-soft);
	font-size: 15px;
	line-height: 2;
}

.zardis-home-about .elementor-widget-text-editor h2,
.zardis-home-about .elementor-widget-text-editor h3 {
	position: relative;
	margin-block: 26px 12px;
	padding-inline-start: 14px;
	color: var(--zha-navy);
	font-size: clamp(16px, 1.4vw, 19px);
	font-weight: 800;
	line-height: 1.6;
	text-align: start;
}

/* The gold tick that marks each question heading. */
.zardis-home-about .elementor-widget-text-editor h2::before,
.zardis-home-about .elementor-widget-text-editor h3::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block: .35em .35em;
	inline-size: 3px;
	border-radius: 3px;
	background: linear-gradient(180deg, var(--zha-gold) 0%, rgba(201, 162, 71, .35) 100%);
}

.zardis-home-about .elementor-widget-text-editor h2:first-child,
.zardis-home-about .elementor-widget-text-editor h3:first-child {
	margin-block-start: 0;
}

/* ---------- link lists ---------- */

/*
 * The two labels and their lists sit in the copy as plain `p` + `ul` siblings,
 * so `:has(+ ul)` is the only selector that can reach the label alone. It is
 * treated as an enhancement: where `:has()` is unsupported the labels stay
 * ordinary bold paragraphs and nothing breaks.
 */
.zardis-home-about .elementor-widget-text-editor ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 12px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.zardis-home-about .elementor-widget-text-editor li {
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--zha-card-line);
	border-radius: 11px;
	background: var(--zha-card);
	color: var(--zha-ink-soft);
	font-size: 14px;
	line-height: 1.7;
	text-align: start;
	transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.zardis-home-about .elementor-widget-text-editor li:hover {
	border-color: var(--zha-navy);
	background: rgba(255, 255, 255, .55);
	transform: translateY(-1px);
}

/*
 * The whole list item is the link, not just the words: the anchor fills the
 * padded box, so the tappable area is at least 44px tall on a phone.
 */
.zardis-home-about .elementor-widget-text-editor li > a {
	display: flex;
	align-items: center;
	min-block-size: 24px;
	color: var(--zha-navy);
	font-weight: 700;
	text-decoration: none;
}

.zardis-home-about .elementor-widget-text-editor li > a::before {
	content: "";
	flex: 0 0 auto;
	inline-size: 5px;
	block-size: 5px;
	margin-inline-end: 9px;
	border-radius: 50%;
	background: var(--zha-gold);
	box-shadow: 0 0 0 3px rgba(201, 162, 71, .18);
}

.zardis-home-about .elementor-widget-text-editor a:hover,
.zardis-home-about .elementor-widget-text-editor a:focus-visible {
	color: var(--zha-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The «راهنمای بیشتر:» / «منابع:» labels stay full width above their lists. */
.zardis-home-about .elementor-widget-text-editor p:has(+ ul) {
	margin-block-end: 10px;
	color: var(--zha-navy);
	font-weight: 800;
	letter-spacing: .01em;
}/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	/*
	 * Below the desktop breakpoint the rail stops being a column and becomes a
	 * short header above the copy: logo, then the name, both flush to the start
	 * edge. Stacking (rather than side by side) keeps it identical at every
	 * width — the two widgets are full-width and would not fit on one line on a
	 * phone anyway.
	 */
	.zardis-home-about .elementor-element-740c2e1 {
		position: static;
		flex: 0 0 100%;
		inline-size: 100%;
		max-inline-size: none;
		align-self: stretch;
		margin-block-end: 14px;
	}

	.zardis-home-about .elementor-element-740c2e1 > .elementor-widget-wrap {
		align-items: flex-start;
		justify-content: flex-start;
	}

	.zardis-home-about [data-id="b6f9b3c"] .elementor-widget-container {
		margin-block: 0;
	}

	.zardis-home-about [data-id="b6f9b3c"] img {
		inline-size: 64px;
		margin-inline: 0;
	}

	.zardis-home-about [data-id="42e0b30"] {
		inline-size: 100%;
		margin-block-start: 8px;
	}

	.zardis-home-about [data-id="42e0b30"] .liner-continer {
		padding-block-end: 0;
		border-block-end: 0;
	}

	.zardis-home-about .woodmart-title-container {
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	.zardis-home-about > .elementor-container {
		gap: 14px;
	}

	.zardis-home-about .elementor-widget-text-editor,
	.zardis-home-about .elementor-widget-text-editor p {
		font-size: 14.5px;
		line-height: 1.95;
	}

	.zardis-home-about .elementor-widget-text-editor ul {
		grid-template-columns: minmax(0, 1fr);
		gap: 7px;
	}

	.zardis-home-about .elementor-widget-text-editor h2,
	.zardis-home-about .elementor-widget-text-editor h3 {
		margin-block: 20px 10px;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zardis-home-about .elementor-widget-text-editor li {
		transition: none;
	}

	.zardis-home-about .elementor-widget-text-editor li:hover {
		transform: none;
	}
}
