/*
 * ESellBox site -- the base: type, section tones, buttons, header and footer shells, motion.
 *
 * Rules (docs/design-system.md):
 * - Logical properties only (inline/block, start/end): the site is right-to-left.
 * - No letter-spacing anywhere -- Persian letters join, and spacing digits scatters a number. No
 *   tabular-nums either.
 * - The esb-* classes are set in Elementor (Advanced -> CSS classes) on a container or widget; anything
 *   set in Elementor's own panel (colour, spacing, type) wins over them.
 *
 * The page's tone: mostly white and mist, one tinted band per page at most, and the night tone for the
 * single moment that should feel weighty. Colour belongs to the product's parts (a hue per module), not
 * to decoration.
 */

/* ---------------------------------------------------------------- base */

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-block-start: calc(var(--esb-header-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

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

body {
	margin: 0;
	letter-spacing: 0;
	background-color: var(--esb-white);
	color: var(--esb-ink-2);
	font-family: var(--esb-font);
	font-size: var(--esb-text-body);
	line-height: var(--esb-leading-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	color: var(--esb-ink);
	font-family: var(--esb-font);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0;
	text-wrap: balance;
}

/*
 * No letter-spacing in Persian, anywhere. Elementor's typography control has «letter spacing»; if someone
 * fills it, Elementor's more specific selector wins over this -- leave that control empty.
 */
.elementor-widget :is(h1, h2, h3, h4, h5, h6, p, span, a, li, strong, b),
.elementor-heading-title,
.elementor-button {
	letter-spacing: 0;
}

p {
	margin-block: 0 1em;
	text-wrap: pretty;
}

p:last-child {
	margin-block-end: 0;
}

a {
	color: var(--esb-green);
	text-underline-offset: 0.32em;
	text-decoration-thickness: 1px;
}

img,
svg,
video {
	max-inline-size: 100%;
	block-size: auto;
}

:focus-visible {
	outline: 2px solid var(--esb-green);
	outline-offset: 3px;
	border-radius: 6px;
}

.esb-on-night :focus-visible,
.esb-site-footer .esb-footer-night :focus-visible {
	outline-color: var(--esb-green-glow);
}

/*
 * Selected text stays readable everywhere. -webkit-text-fill-color too: the gradient word of a headline
 * (esb-accent) is painted with a transparent fill, and without it the selected text disappeared.
 */
::selection {
	background-color: #cdeee1;
	color: var(--esb-ink);
	-webkit-text-fill-color: var(--esb-ink);
	text-shadow: none;
}

.esb-on-night ::selection {
	background-color: #2f9d80;
	color: #fff;
	-webkit-text-fill-color: #fff;
}

.screen-reader-text,
.esb-sr-only {
	position: absolute !important;
	inline-size: 1px;
	block-size: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Latin inside Persian (a product name, 18K, A4) in the system face, so FaNum does not draw its digits Persian. */
.esb-latin {
	font-family: var(--esb-font-latin);
	unicode-bidi: isolate;
}

.esb-skip-link.esb-skip-link {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-start: 8px;
	z-index: 1000;
	padding: 10px 18px;
	border-radius: var(--esb-radius-pill);
	background: var(--esb-ink);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-160%);
	transition: transform var(--esb-fast) var(--esb-ease);
}

.esb-skip-link:focus {
	transform: none;
}

.esb-site-main:focus {
	outline: none;
}

/* The highlighted word of a headline: the brand green running into the inbox blue. */
.esb-accent {
	background-image: linear-gradient(270deg, var(--esb-green) 10%, var(--esb-green-bright) 52%, var(--esb-inbox) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	/* A Persian line box is taller than its glyphs; without this the tail of «ر» or «ی» falls outside the gradient. */
	padding-block: 0.1em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.esb-on-night .esb-accent {
	background-image: linear-gradient(270deg, var(--esb-green-glow) 10%, #8fc4ff 100%);
}

.esb-mark-word {
	color: var(--esb-green);
}

/* ---------------------------------------------------------------- sections and their tones */

/*
 * esb-section on the outer container of every section: the standard vertical rhythm.
 *   --tight     a shorter section
 *   --follow    a section of the same tone straight after another (no double gap)
 *   --flush-top no top padding (when the previous section's visual reaches into this one)
 * The background comes from Elementor (Style -> Background), always from the global colours.
 */
.e-con.esb-section {
	--padding-top: var(--esb-section);
	--padding-bottom: var(--esb-section);
	--padding-left: var(--esb-gutter);
	--padding-right: var(--esb-gutter);
	position: relative;
}

.e-con.esb-section--tight {
	--padding-top: calc(var(--esb-section) * 0.6);
	--padding-bottom: calc(var(--esb-section) * 0.6);
}

.e-con.esb-section--follow {
	--padding-top: 0px;
}

.e-con.esb-section--flush-top {
	--padding-top: 0px;
}

.e-con.esb-section--wide {
	--container-max-width: var(--esb-container-wide);
}

/* A dark section: its text, links, icons and selection turn light by themselves. */
.esb-on-night {
	color: var(--esb-on-night-2);
}

.esb-on-night :is(h1, h2, h3, h4) ,
.esb-on-night .elementor-heading-title {
	color: var(--esb-on-night);
}

.esb-on-night a:not(.elementor-button):not(.esb-btn) {
	color: var(--esb-green-glow);
}

/*
 * The night tone's light: one soft green bloom and a cooler one, clipped to the section. Only opacity
 * moves, so it costs nothing to paint.
 */
.esb-night-glow {
	isolation: isolate;
	overflow: hidden;
}

.esb-night-glow::before,
.esb-night-glow::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
}

.esb-night-glow::before {
	inset-block-start: -18%;
	inset-inline-start: -8%;
	inline-size: 52%;
	aspect-ratio: 1;
	background: radial-gradient(circle, rgb(47 157 128 / 0.42), transparent 64%);
}

.esb-night-glow::after {
	inset-block-end: -30%;
	inset-inline-end: -10%;
	inline-size: 46%;
	aspect-ratio: 1;
	background: radial-gradient(circle, rgb(37 99 214 / 0.3), transparent 64%);
}

/*
 * A light section's soft light: white behind the content, faint green and blue in the corners. No lines,
 * no pattern -- depth comes from light.
 */
.esb-halo {
	isolation: isolate;
	overflow: hidden;
}

.esb-halo::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		radial-gradient(44% 52% at 92% 6%, rgb(14 110 88 / 0.1), transparent 70%),
		radial-gradient(40% 46% at 6% 0%, rgb(37 99 214 / 0.08), transparent 70%),
		radial-gradient(60% 40% at 50% 100%, rgb(240 165 49 / 0.06), transparent 70%);
	pointer-events: none;
}

/* ---------------------------------------------------------------- section head */

.e-con.esb-section-head {
	--width: min(100%, 46rem);
	--gap: 14px;
	--row-gap: 14px;
}

.e-con.esb-section-head--center {
	--width: min(100%, 50rem);
	margin-inline: auto;
	align-items: center;
	text-align: center;
}

.esb-section-head--center .esb-lead {
	margin-inline: auto;
}

/* The split head: eyebrow and title at the start, the lead at the end, aligned to the title's foot. */
.e-con.esb-section-head--split {
	--width: 100%;
	--flex-direction: row;
	--flex-wrap: wrap;
	--justify-content: space-between;
	--align-items: flex-end;
	--gap: 20px clamp(32px, 6vw, 96px);
	--row-gap: 20px;
	--column-gap: clamp(32px, 6vw, 96px);
}

.e-con.esb-section-head--split > .e-con:first-child {
	--width: min(100%, 42rem);
}

/* Elementor gives every widget in a container max-width: 100% (.elementor.elementor .e-con>.elementor-widget). */
.elementor .e-con.esb-section-head--split > .elementor-widget:last-child {
	flex: 0 1 27rem;
	max-inline-size: 27rem;
	padding-block-end: 0.4rem;
}

@media (max-width: 1024px) {
	.elementor .e-con.esb-section-head--split > .elementor-widget:last-child {
		flex-basis: 100%;
		max-inline-size: 40rem;
	}
}

.e-con.esb-section h2.elementor-heading-title {
	line-height: var(--esb-leading-h2);
}

/*
 * The eyebrow: a small cube -- the brand's box in its three tones -- before a short label. It is the
 * site's recurring sign, the way the box is the product's.
 */
.esb-eyebrow .elementor-heading-title,
.esb-eyebrow-text {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--esb-green);
	font-size: var(--esb-text-small);
	font-weight: 600;
	line-height: 1.6;
}

.esb-eyebrow .elementor-heading-title::before,
.esb-eyebrow-text::before {
	content: "";
	flex: none;
	inline-size: 16px;
	block-size: 16px;
	background: currentColor;
	-webkit-mask: var(--esb-cube-mask) center / contain no-repeat;
	mask: var(--esb-cube-mask) center / contain no-repeat;
}

:root {
	/* The brand cube (packages/ui Brand.tsx) as a mask: three faces at three opacities. */
	--esb-cube-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6 20.1 7.3 12 12 3.9 7.3Z' fill-opacity='.45'/%3E%3Cpath d='M3.4 8.2 11.4 12.8V21.9L3.4 17.3Z' fill-opacity='.75'/%3E%3Cpath d='M12.6 12.8 20.6 8.2V17.3L12.6 21.9Z'/%3E%3C/svg%3E");
}

.esb-on-night .esb-eyebrow .elementor-heading-title {
	color: var(--esb-green-glow);
}

/* A pill-shaped eyebrow, for the first section of a page. */
.esb-eyebrow--chip .elementor-heading-title {
	padding: 5px 14px 5px 12px;
	border: 1px solid rgb(14 110 88 / 0.18);
	border-radius: var(--esb-radius-pill);
	background: rgb(255 255 255 / 0.7);
	box-shadow: var(--esb-shadow-xs);
	backdrop-filter: blur(6px);
}

.esb-lead,
.esb-lead p {
	color: var(--esb-ink-2);
	font-size: var(--esb-text-lead);
	line-height: 1.95;
}

.esb-on-night .esb-lead,
.esb-on-night .esb-lead p {
	color: var(--esb-on-night-2);
}

.esb-measure {
	max-inline-size: var(--esb-measure);
}

.esb-muted,
.esb-muted p {
	color: var(--esb-ink-3);
	font-size: var(--esb-text-small);
}

/* ---------------------------------------------------------------- buttons */

/*
 * Buttons are Elementor's own Button widget; these classes (on the widget, Advanced -> CSS classes) pick
 * its kind:
 *   esb-btn-primary   green pill -- the one main action of a section
 *   esb-btn-dark      ink pill -- the main action where green is already everywhere
 *   esb-btn-light     white pill on the night tone
 *   esb-btn-ghost     outline pill (on night, a light outline)
 *   esb-btn-link      a text link with an arrow
 *   esb-btn-arrow     an arrow that slides on hover (beside any of the above)
 *   esb-btn-sm / esb-btn-lg   size
 * Elementor's «Site settings -> Buttons» is deliberately empty (it landed on every <button> of the page).
 * Our own markup uses the same look through .esb-btn and .esb-btn--*.
 */
.elementor-widget-button .elementor-button,
.esb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-block-size: 46px;
	padding: 10px 22px;
	border: 1px solid transparent;
	border-radius: var(--esb-radius-pill);
	background-color: var(--esb-green);
	color: #fff;
	font-family: var(--esb-font);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color var(--esb-fast) var(--esb-ease),
		border-color var(--esb-fast) var(--esb-ease),
		color var(--esb-fast) var(--esb-ease),
		box-shadow var(--esb-mid) var(--esb-ease),
		transform var(--esb-mid) var(--esb-ease);
}

.elementor-widget-button .elementor-button:hover,
.elementor-widget-button .elementor-button:focus-visible,
.esb-btn:hover,
.esb-btn:focus-visible {
	color: #fff;
	transform: translateY(-1px);
}

.elementor-widget-button .elementor-button:active,
.esb-btn:active {
	transform: none;
}

.esb-btn-primary .elementor-button,
.esb-btn.esb-btn--primary {
	background-color: var(--esb-green);
	color: #fff;
	box-shadow: 0 1px 1px rgb(10 79 64 / 0.3), 0 6px 16px -6px rgb(14 110 88 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.14);
}

.esb-btn-primary .elementor-button:hover,
.esb-btn-primary .elementor-button:focus-visible,
.esb-btn.esb-btn--primary:hover,
.esb-btn.esb-btn--primary:focus-visible {
	background-color: var(--esb-green-deep);
	color: #fff;
	box-shadow: 0 1px 1px rgb(10 79 64 / 0.3), 0 10px 22px -8px rgb(14 110 88 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.14);
}

.esb-btn-dark .elementor-button,
.esb-btn.esb-btn--dark {
	background-color: var(--esb-ink);
	color: #fff;
	box-shadow: 0 6px 16px -8px rgb(15 26 42 / 0.6);
}

.esb-btn-dark .elementor-button:hover,
.esb-btn-dark .elementor-button:focus-visible,
.esb-btn.esb-btn--dark:hover,
.esb-btn.esb-btn--dark:focus-visible {
	background-color: #1d2a3f;
	color: #fff;
}

.esb-btn-light .elementor-button,
.esb-btn.esb-btn--light {
	background-color: #fff;
	color: var(--esb-ink);
	box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.5);
}

.esb-btn-light .elementor-button:hover,
.esb-btn-light .elementor-button:focus-visible,
.esb-btn.esb-btn--light:hover,
.esb-btn.esb-btn--light:focus-visible {
	background-color: var(--esb-green-soft);
	color: var(--esb-green-deep);
}

.esb-btn-ghost .elementor-button,
.esb-btn.esb-btn--ghost {
	border-color: var(--esb-line-2);
	background-color: rgb(255 255 255 / 0.72);
	color: var(--esb-ink);
	box-shadow: var(--esb-shadow-xs);
}

.esb-btn-ghost .elementor-button:hover,
.esb-btn-ghost .elementor-button:focus-visible,
.esb-btn.esb-btn--ghost:hover,
.esb-btn.esb-btn--ghost:focus-visible {
	border-color: var(--esb-green);
	background-color: #fff;
	color: var(--esb-green-deep);
}

.esb-on-night .esb-btn-ghost .elementor-button,
.esb-on-night .esb-btn.esb-btn--ghost {
	border-color: rgb(255 255 255 / 0.24);
	background-color: rgb(255 255 255 / 0.04);
	color: var(--esb-on-night);
	box-shadow: none;
}

.esb-on-night .esb-btn-ghost .elementor-button:hover,
.esb-on-night .esb-btn-ghost .elementor-button:focus-visible,
.esb-on-night .esb-btn.esb-btn--ghost:hover,
.esb-on-night .esb-btn.esb-btn--ghost:focus-visible {
	border-color: var(--esb-green-glow);
	background-color: rgb(255 255 255 / 0.08);
	color: #fff;
}

.esb-btn-link .elementor-button,
.esb-btn.esb-btn--link {
	min-block-size: 0;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--esb-green);
	box-shadow: none;
}

.esb-btn-link .elementor-button:hover,
.esb-btn-link .elementor-button:focus-visible,
.esb-btn.esb-btn--link:hover,
.esb-btn.esb-btn--link:focus-visible {
	background: none;
	color: var(--esb-green-deep);
	transform: none;
}

.esb-on-night .esb-btn-link .elementor-button,
.esb-on-night .esb-btn.esb-btn--link {
	color: var(--esb-green-glow);
}

/* The arrow: «next» points left in right-to-left. */
.esb-btn-arrow .elementor-button-text::after,
.esb-btn-link .elementor-button-text::after,
.esb-btn--arrow::after {
	content: "";
	display: inline-block;
	inline-size: 16px;
	block-size: 16px;
	margin-inline-start: 8px;
	vertical-align: -3px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5m6-6-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5m6-6-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform var(--esb-mid) var(--esb-ease);
}

.esb-btn-arrow .elementor-button:hover .elementor-button-text::after,
.esb-btn-link .elementor-button:hover .elementor-button-text::after,
.esb-btn--arrow:hover::after {
	transform: translateX(-4px);
}

.esb-btn-sm .elementor-button,
.esb-btn--sm {
	min-block-size: 40px;
	padding: 7px 16px;
	font-size: 0.875rem;
}

.esb-btn-lg .elementor-button,
.esb-btn--lg {
	min-block-size: 52px;
	padding: 12px 28px;
	font-size: 1rem;
}

/* A row of buttons. */
.e-con.esb-actions {
	--flex-direction: row;
	--flex-wrap: wrap;
	--gap: 12px;
	--row-gap: 12px;
	--column-gap: 12px;
	--width: 100%;
	--align-items: center;
}

.e-con.esb-actions > .elementor-widget {
	--width: auto;
	flex: none;
}

.e-con.esb-actions--center {
	--justify-content: center;
}

/* The small reassurances under a main action: «۱۴ روز رایگان» · «بی نصب». */
.esb-assure {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--esb-ink-3);
	font-size: var(--esb-text-small);
}

.esb-assure li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.esb-assure .esb-icon {
	inline-size: 17px;
	block-size: 17px;
	color: var(--esb-green);
}

.esb-section-head--center .esb-assure,
.esb-assure--center {
	justify-content: center;
}

.esb-on-night .esb-assure {
	color: var(--esb-on-night-2);
}

.esb-on-night .esb-assure .esb-icon {
	color: var(--esb-green-glow);
}

/* ---------------------------------------------------------------- icons */

.esb-icon {
	inline-size: 22px;
	block-size: 22px;
	flex: none;
}

[dir="rtl"] .esb-icon--mirror {
	transform: scaleX(-1);
}

/* ---------------------------------------------------------------- header */

/*
 * The header floats: a white pill held off the window's edge, on blur. It slides away while reading
 * downward and returns on the way up (site.js sets data-hidden), and grows a shadow once the page has
 * moved (data-scrolled).
 */
.esb-site-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 100;
	padding: 12px var(--esb-gutter) 0;
	transition: transform var(--esb-mid) var(--esb-ease);
	pointer-events: none;
}

.esb-site-header > * {
	pointer-events: auto;
}

.esb-site-header[data-hidden="true"] {
	transform: translateY(calc(-100% - 8px));
}

.esb-site-header:focus-within {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.esb-site-header {
		transition: none;
	}
}

.admin-bar .esb-site-header {
	inset-block-start: var(--wp-admin--admin-bar--height, 32px);
}

.esb-site-header .e-con.esb-header-bar {
	--container-max-width: var(--esb-container-wide);
	--padding-top: 0px;
	--padding-bottom: 0px;
	--padding-left: 10px;
	--padding-right: 18px;
	--min-height: 60px;
	--flex-direction: row;
	--align-items: center;
	--justify-content: space-between;
	--gap: 16px;
	--column-gap: 16px;
	max-inline-size: var(--esb-container-wide);
	margin-inline: auto;
	border: 1px solid rgb(228 232 239 / 0.9);
	border-radius: var(--esb-radius-pill);
	background-color: rgb(255 255 255 / 0.82);
	box-shadow: 0 1px 2px rgb(15 26 42 / 0.04);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	transition: box-shadow var(--esb-mid) var(--esb-ease), background-color var(--esb-mid) var(--esb-ease);
}

.esb-site-header[data-scrolled="true"] .e-con.esb-header-bar {
	background-color: rgb(255 255 255 / 0.92);
	box-shadow: var(--esb-shadow-m);
}

.esb-site-header .e-con.esb-header-bar > .e-con-inner {
	--flex-direction: row;
	align-items: center;
}

.e-con.esb-header-actions {
	--width: auto;
	--flex-direction: row;
	--gap: 8px;
	--column-gap: 8px;
	--align-items: center;
	flex: none;
}

.e-con.esb-header-actions > .elementor-widget {
	--width: auto;
}

@media (max-width: 1100px) {
	.esb-header-actions .esb-hide-tablet {
		display: none;
	}
}

@media (max-width: 767px) {
	:root {
		--esb-header-h: 64px;
	}

	.esb-site-header {
		padding-block-start: 8px;
	}

	.esb-site-header .e-con.esb-header-bar {
		--min-height: 54px;
		--padding-left: 6px;
		--padding-right: 12px;
	}

	.esb-header-actions .esb-hide-mobile {
		display: none;
	}
}

/* The plain fallback while no header or footer template is chosen. */
.esb-fallback-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-inline-size: var(--esb-container-wide);
	min-block-size: 60px;
	margin-inline: auto;
	padding-inline: var(--esb-gutter);
}

.esb-fallback-bar a {
	color: inherit;
	font-weight: 700;
	text-decoration: none;
}

/* The first section of a page starts under the floating header, not behind it. */
.esb-site-main > .elementor > .e-con:first-child,
.esb-site-main > .elementor > .elementor-section-wrap > .e-con:first-child {
	margin-block-start: calc(-1 * (var(--esb-header-h) + 12px));
	--padding-top: calc(var(--esb-header-h) + 12px + clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem));
}

/* ---------------------------------------------------------------- footer */

.esb-site-footer {
	position: relative;
	overflow: hidden;
	background-color: var(--esb-mist);
	color: var(--esb-ink-2);
	border-block-start: 1px solid var(--esb-line);
}

.esb-site-footer .e-con.esb-footer {
	--padding-top: clamp(3.5rem, 2.6rem + 3vw, 5rem);
	--padding-bottom: clamp(1.5rem, 0.5rem + 4vw, 4.5rem);
	position: relative;
	--padding-left: var(--esb-gutter);
	--padding-right: var(--esb-gutter);
}

.e-con.esb-footer-top {
	--flex-direction: row;
	--flex-wrap: wrap;
	--justify-content: space-between;
	--width: 100%;
}

.e-con.esb-footer-brand {
	--width: min(100%, 21rem);
	--gap: 18px;
	--row-gap: 18px;
}

.e-con.esb-footer-links {
	--width: auto;
	--flex-direction: row;
	--flex-wrap: wrap;
	--gap: 32px clamp(24px, 2.8vw, 40px);
	--row-gap: 32px;
	--column-gap: clamp(24px, 2.8vw, 40px);
	flex: 1 1 36rem;
	justify-content: flex-end;
}

.e-con.esb-footer-col {
	--width: auto;
	--gap: 14px;
	--row-gap: 14px;
}

/*
 * Where the five columns fit in one row, the room left over goes between them rather than between them and
 * the brand, which stays closest.
 */
@media (min-width: 1200px) {
	.e-con.esb-footer-links {
		justify-content: space-between;
	}
}

/* On a phone the columns line up two by two; from a tablet up each is only as wide as its words. */
@media (max-width: 767px) {
	.e-con.esb-footer-links {
		justify-content: flex-start;
	}

	.e-con.esb-footer-col {
		min-inline-size: 9.5rem;
	}
}

/* The footer's lists sit closer than body text: about 37px from line to line. */
.esb-site-footer .esb-nav--list li,
.esb-site-footer .esb-contact li {
	line-height: 1.8;
}

.esb-site-footer .esb-nav--list .esb-nav__list {
	gap: 8px;
}

.esb-footer-heading .elementor-heading-title {
	color: var(--esb-ink);
	font-size: var(--esb-text-small);
	font-weight: 700;
}

.esb-footer-statement,
.esb-footer-statement p {
	color: var(--esb-ink-2);
	font-size: var(--esb-text-card);
	line-height: 1.95;
}

/* eNamad's seal, alone in the last column, on a small white card a little smaller than eNamad draws it. */
.esb-footer-trust {
	display: inline-flex;
	padding: 8px;
	background-color: #fff;
	border: 1px solid var(--esb-line);
	border-radius: var(--esb-radius-s);
	line-height: 0;
}

/* The seal comes from eNamad's server, so its box is held at the seal's shape (125 × 136) before it arrives. */
.esb-footer-trust img {
	display: block;
	inline-size: 74px;
	block-size: 80px;
	object-fit: contain;
}

.e-con.esb-footer-bottom {
	--flex-direction: row;
	--flex-wrap: wrap;
	--justify-content: space-between;
	--align-items: center;
	--gap: 12px 24px;
	--row-gap: 12px;
	--column-gap: 24px;
	--width: 100%;
	--padding-top: 22px;
	--padding-bottom: 22px;
	margin-block-start: clamp(2.5rem, 2rem + 2vw, 3.5rem);
	border-block-start: 1px solid var(--esb-line);
}

.esb-footer-bottom .elementor-widget-text-editor,
.esb-footer-bottom p {
	color: var(--esb-ink-3);
	font-size: var(--esb-text-tiny);
}

/*
 * The footer's signature: the wordmark, very large and very faint, behind the footer's foot -- the legal
 * line and the end of the link columns -- and cut by the page's bottom edge. Out of the flow, so it adds no
 * height; the footer's content is lifted above it. Decoration only (aria-hidden), drawn in Latin as the
 * brand is.
 */
.esb-site-footer .e-con.esb-footer-top,
.esb-site-footer .e-con.esb-footer-bottom {
	position: relative;
	z-index: 1;
}

.esb-site-footer .elementor-widget.esb-footer-wordmark-wrap {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 0;
	margin: 0;
	pointer-events: none;
}

.esb-footer-wordmark {
	display: block;
	margin-block-end: calc(-0.24 * min(15rem, 18.5vw));
	color: transparent;
	font-family: var(--esb-font-latin);
	font-size: min(15rem, 18.5vw);
	font-weight: 800;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	background-image: linear-gradient(180deg, rgb(14 110 88 / 0.16), rgb(14 110 88 / 0.02) 78%);
	-webkit-background-clip: text;
	background-clip: text;
	user-select: none;
	pointer-events: none;
	direction: ltr;
}

/* ---------------------------------------------------------------- reveal on scroll */

/*
 * site.js puts esb-motion on <html> only when JS runs and the visitor has not asked for less motion, and
 * marks each esb-reveal as it enters the view. Without either, everything is simply visible.
 */
.esb-motion .esb-reveal:not(.is-in),
.esb-motion .esb-reveal-stagger:not(.is-in) > * {
	opacity: 0;
	transform: translateY(18px);
}

.esb-motion .esb-reveal,
.esb-motion .esb-reveal-stagger > * {
	transition:
		opacity var(--esb-slow) var(--esb-ease-out),
		transform var(--esb-slow) var(--esb-ease-out);
}

.esb-motion .esb-reveal-stagger.is-in > *:nth-child(2) { transition-delay: 70ms; }
.esb-motion .esb-reveal-stagger.is-in > *:nth-child(3) { transition-delay: 140ms; }
.esb-motion .esb-reveal-stagger.is-in > *:nth-child(4) { transition-delay: 210ms; }
.esb-motion .esb-reveal-stagger.is-in > *:nth-child(5) { transition-delay: 280ms; }
.esb-motion .esb-reveal-stagger.is-in > *:nth-child(6) { transition-delay: 350ms; }
.esb-motion .esb-reveal-stagger.is-in > *:nth-child(n + 7) { transition-delay: 420ms; }

/* The editor always shows everything, unmoved. */
.elementor-editor-active .esb-reveal,
.elementor-editor-active .esb-reveal-stagger > * {
	opacity: 1 !important;
	transform: none !important;
}

/* ---------------------------------------------------------------- Elementor normalisation */

/* Elementor's default widget spacing is replaced by each container's gap. */
.elementor-widget:not(:last-child) {
	margin-block-end: 0;
}

.elementor-widget-text-editor p:last-child {
	margin-block-end: 0;
}

.elementor-widget-image img {
	display: block;
}

/* A heading made of two lines of thought: the second line in the muted ink. */
.esb-title-soft {
	color: var(--esb-ink-3);
}

/* ---------------------------------------------------------------- fallback page content */

.esb-fallback-content {
	max-inline-size: var(--esb-measure);
	margin-inline: auto;
	padding: var(--esb-section) var(--esb-gutter);
}

/* The header bar never wraps: brand, actions and the menu button stay on one line down to 320px. */
.esb-site-header .e-con.esb-header-bar { --flex-wrap: nowrap; flex-wrap: nowrap; }
@media (max-width: 420px) {
	.esb-site-header .e-con.esb-header-bar { --gap: 6px; --column-gap: 6px; --padding-right: 10px; }
	.esb-site-header .esb-brand__word { font-size: 1.12rem; }
	.esb-site-header .esb-brand__mark .esb-cube { inline-size: 26px; block-size: 26px; }
	.e-con.esb-header-actions { --gap: 2px; --column-gap: 2px; }
	.esb-header-actions .esb-btn-sm .elementor-button { padding-inline: 12px; }
}
@media (max-width: 374px) {
	.esb-site-header .esb-brand { gap: 6px; }
	.esb-site-header .esb-brand__word { font-size: 1.02rem; }
	.esb-site-header .esb-brand__mark .esb-cube { inline-size: 22px; block-size: 22px; }
	.esb-header-actions .esb-btn-sm .elementor-button { padding-inline: 10px; font-size: 0.8125rem; }
}

/* A page head's coloured phrase is short and keeps together, on a phone too («فروش بیشتر» never splits); below 360px a long one may wrap. */
@media (min-width: 360px) {
	.esb-hero-title .esb-accent { white-space: nowrap; }
}

/* The coloured phrase of a heading stays on one line where there is room for it. */
@media (min-width: 720px) {
	h1 .esb-accent { white-space: nowrap; }
}
