/* ==========================================================================
   Home v2 — editorial layout (loaded on the front page only)
   ========================================================================== */
.mh {
	--ink: #13221f;
	--ink-2: #44514e;
	--cream: #f7f3ec;
	--coral: #f25c4f;
	--coral-d: #d9473b;
	--green: #015446;
	--green-2: #046b58;
	font-family: "Vazirmatn", Tahoma, sans-serif;
	color: var(--ink);
}

/* neutralise Elementor container spacing inside our sections; we space things ourselves */
.elementor .mh, .elementor .mh .e-con {
	--padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0;
	--gap: 0px; --row-gap: 0px; --column-gap: 0px;
	--margin-top: 0; --margin-bottom: 0;
}
.elementor .mh .elementor-widget:not(:last-child) { margin-bottom: 0; }
.mh .elementor-widget-container { padding: 0; }
.mh p { margin: 0; }
.mh a { text-decoration: none; }

.elementor .mh { padding: 96px 24px; position: relative; }
.mh .mh-in { max-width: 1200px; margin-inline: auto; width: 100%; }

/* headings */
.mh .mh-h .elementor-heading-title { font-family: inherit; color: inherit; font-weight: 900; line-height: 1.35; }
.mh h2.elementor-heading-title { font-size: clamp(1.75rem, 3.3vw, 2.6rem); }
.mh .mh-p, .mh .mh-p p { font-size: 1.05rem; line-height: 2; color: var(--ink-2); }
.mh-mark { position: relative; white-space: nowrap; color: var(--green-2); isolation: isolate; display: inline-block; }
.mh-mark::after {
	content: ""; position: absolute; inset-inline: -4px; bottom: -.18em; height: .42em; z-index: -1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C 40 4, 80 4, 110 10 S 170 18, 198 6' fill='none' stroke='%23f25c4f' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
	opacity: .85;
}
.mh .mh-head { margin-bottom: 40px; max-width: 640px; gap: 10px; --gap: 10px; }
.mh .mh-head-row { max-width: none; flex-direction: row !important; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.mh .mh-more a { color: var(--green-2); font-weight: 700; font-size: 1rem; border-bottom: 2px solid rgba(242, 92, 79, .5); padding-bottom: 2px; }
.mh .mh-more .elementor-heading-title { font-size: 1rem; }

/* buttons */
.mh .mh-btn .elementor-button {
	font-family: inherit; font-weight: 800; font-size: 1rem; line-height: 1.4;
	padding: 16px 28px !important; border-radius: 14px !important; border: 0 !important;
	transition: transform .2s, box-shadow .2s, background .2s;
}
.mh .mh-btn-coral .elementor-button { background: var(--coral) !important; color: #fff !important; box-shadow: 0 10px 0 -4px var(--coral-d), 0 18px 30px -12px rgba(242, 92, 79, .6); }
.mh .mh-btn-coral .elementor-button:hover { transform: translateY(-2px); background: #f46a5e !important; }
.mh .mh-btn-dark .elementor-button { background: var(--ink) !important; color: #fff !important; }
.mh .mh-btn-dark .elementor-button:hover { background: var(--green) !important; }
.mh .mh-btn-outline .elementor-button { background: transparent !important; color: var(--green) !important; box-shadow: inset 0 0 0 2px var(--green); }
.mh .mh-btn-outline .elementor-button:hover { background: var(--green) !important; color: #fff !important; }
.mh .mh-btn-link .elementor-button { background: transparent !important; color: var(--ink) !important; padding-inline: 6px !important; box-shadow: none; text-decoration: underline; text-decoration-color: rgba(242, 92, 79, .6); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.mh .mh-btn-link .elementor-button:hover { color: var(--coral-d) !important; }
.mh .mh-actions { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 14px 18px; --gap: 14px 18px; }

/* ---------- 1. hero ---------- */
.elementor .mh-hero { background: var(--cream); padding-top: 64px; padding-bottom: 40px; overflow: hidden; }
.mh-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(1, 84, 70, .09) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.mh .mh-hero-grid { display: grid !important; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; position: relative; }
.mh .mh-hero-copy { gap: 22px; --gap: 22px; }
.mh .mh-hero-title .elementor-heading-title { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.3; }
.mh .mh-lead p { font-size: 1.15rem; line-height: 2.05; max-width: 560px; color: var(--ink-2); }
.mh .mh-note p { font-size: .85rem; color: #7a847f; }
.mh .mh-hero-art { align-items: center; }

.mh-visual { position: relative; width: 320px; max-width: 100%; margin: 0 auto; padding: 20px 0 30px; }
.mh-blob { position: absolute; width: 420px; height: 420px; inset-inline-start: 50%; top: 50%; transform: translate(50%, -50%); border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%; background: radial-gradient(circle at 30% 30%, rgba(242, 92, 79, .35), transparent 60%), radial-gradient(circle at 70% 70%, rgba(4, 107, 88, .3), transparent 60%); filter: blur(8px); animation: mh-morph 14s ease-in-out infinite; }
[dir=rtl] .mh-blob { transform: translate(50%, -50%); }
@keyframes mh-morph { 50% { border-radius: 58% 42% 40% 60% / 44% 58% 42% 56%; } }
.mh-phone { position: relative; width: 300px; aspect-ratio: 9 / 18.5; margin: 0 auto; background: #0e1614; border-radius: 46px; padding: 11px; box-shadow: 0 50px 80px -30px rgba(1, 40, 33, .55), inset 0 0 0 2px #2a3532; transform: rotate(-4deg); }
.mh-phone-notch { position: absolute; top: 18px; inset-inline-start: 50%; transform: translateX(50%); width: 90px; height: 24px; background: #0e1614; border-radius: 20px; z-index: 3; }
.mh-phone-screen { height: 100%; border-radius: 36px; overflow: hidden; background: linear-gradient(180deg, #fff8f2, #f7efe6); position: relative; }
.mh-phone-bar { display: flex; justify-content: space-between; padding: 14px 24px 6px; font-size: .62rem; font-weight: 700; color: #6b625a; }
.mh-phone .mch-gcard { box-shadow: none; border-radius: 0; background: transparent; max-width: none; }
.mh-phone .mch-gcard-art { aspect-ratio: 400 / 230; border-radius: 0 0 26px 26px; }
.mh-phone .mch-gcard-body { padding: 16px 18px 18px; }
.mh-phone .mch-gcard h2 { font-size: 1.6rem; margin: 6px 0; }
.mh-phone .mch-gcard-occ { font-size: .66rem; }
.mh-phone .mch-gcard-msg { font-size: .8rem; line-height: 1.95; }
.mh-phone .mch-gcard-from { font-size: .8rem; margin-bottom: 12px; }
.mh-phone .mch-gcard-deed { font-size: .72rem; padding: 10px 12px; line-height: 1.8; }
.mh-phone .mch-gcard-deed > span { font-size: 1.2rem; }
.mh-chip { position: absolute; z-index: 4; background: #fff; border-radius: 14px; padding: 10px 14px; font-size: .8rem; box-shadow: 0 14px 30px -10px rgba(19, 34, 31, .3); white-space: nowrap; animation: mh-float 6s ease-in-out infinite; }
.mh-chip b { color: var(--green-2); }
.mh-chip-a { top: 22%; inset-inline-end: -70px; }
.mh-chip-b { bottom: 14%; inset-inline-start: -60px; animation-delay: -3s; display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.mh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(242, 92, 79, .2); }
@keyframes mh-float { 50% { transform: translateY(-8px); } }

.mh-trust { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid rgba(19, 34, 31, .12); }
.mh-trust-item { padding: 22px 18px 6px; display: flex; flex-direction: column; gap: 2px; border-inline-start: 1px solid rgba(19, 34, 31, .08); }
.mh-trust-item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.mh-trust-item b { font-size: 1.05rem; font-weight: 900; color: var(--ink); }
.mh-trust-item.is-num b { font-size: 1.7rem; color: var(--green); }
.mh-trust-item span { font-size: .85rem; color: #6f7a76; }

/* ---------- 2. bento ---------- */
.elementor .mh-ways { background: #fff; }
.mh .mh-bento { display: grid !important; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(220px, auto); gap: 18px; }
.mh .mh-tile { position: relative; overflow: hidden; border-radius: 26px; padding: 28px 28px 24px !important; gap: 8px; --gap: 8px; color: var(--ink); justify-content: flex-start; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; isolation: isolate; }
.mh .mh-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -22px rgba(19, 34, 31, .35); }
.mh .mh-tile .mh-tile-k .elementor-heading-title { font-size: .78rem; font-weight: 700; opacity: .7; }
.mh .mh-tile .mh-tile-t .elementor-heading-title { font-size: 1.45rem; font-weight: 900; }
.mh .mh-tile .mh-tile-d p { font-size: .95rem; line-height: 1.95; color: inherit; opacity: .8; }
.mh .mh-tile .mh-tile-cta { margin-top: auto; padding-top: 10px; }
.mh .mh-tile .mh-tile-cta .elementor-heading-title { font-size: .95rem; font-weight: 800; }
.mh .mh-tile .mh-tile-cta span { display: inline-block; transition: transform .25s; }
.mh .mh-tile:hover .mh-tile-cta span { transform: translateX(-6px); }
.mh .mh-tile-big { grid-row: span 2; background: var(--green); color: #fff; padding: 36px !important; }
.mh .mh-tile-big::after { content: ""; position: absolute; width: 300px; height: 300px; inset-inline-start: -70px; bottom: -80px; background: url("../img/logo-icon-white.png") center/contain no-repeat; opacity: .1; z-index: -1; transform: rotate(-12deg); }
.mh .mh-tile-big .mh-tile-t .elementor-heading-title { font-size: 2.2rem; }
.mh .mh-tile-big .mh-tile-d p { font-size: 1.05rem; max-width: 360px; }
.mh .mh-tile-big .mh-tile-cta .elementor-heading-title { display: inline-block; background: var(--coral); color: #fff; padding: 12px 20px; border-radius: 12px; }
.mh .mh-tile-plan { background: #fde9e5; }
.mh .mh-tile-plan .mh-tile-cta .elementor-heading-title { color: var(--coral-d); }
.mh .mh-tile-cases { background: #fff; box-shadow: inset 0 0 0 1.5px #e9e3d8; }
.mh .mh-tile-cases .mh-tile-cta .elementor-heading-title, .mh .mh-tile-now .mh-tile-cta .elementor-heading-title { color: var(--green-2); }
.mh .mh-tile-now { background: #e9f2ee; }
.mh .mh-tile-occ { background: var(--cream); }

/* ---------- 3. gift (dark) ---------- */
.elementor .mh-gift { background: #0f2a25; color: #fff; overflow: hidden; }
.mh-gift::before { content: ""; position: absolute; width: 700px; height: 700px; inset-inline-end: -260px; top: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 92, 79, .22), transparent 65%); }
.mh .mh-gift-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.mh .mh-gift-copy { gap: 26px; --gap: 26px; }
.mh .mh-gift h2.elementor-heading-title { color: #fff; }
.mh-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 4px; }
.mh-steps li { counter-increment: s; position: relative; padding: 14px 0 14px; padding-inline-start: 52px; color: rgba(255, 255, 255, .72); line-height: 1.9; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .98rem; }
.mh-steps li:last-child { border-bottom: 0; }
.mh-steps li b { color: #fff; display: block; font-size: 1.02rem; }
.mh-steps li::before { content: counter(s, persian); position: absolute; inset-inline-start: 0; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: var(--coral); box-shadow: inset 0 0 0 1.5px rgba(242, 92, 79, .6); }
.mh-fan { position: relative; height: 470px; }
.mh-fan-card { position: absolute; width: 270px; top: 50%; inset-inline-start: 50%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.mh-fan-card .mch-gcard { border-radius: 20px; box-shadow: 0 40px 60px -25px rgba(0, 0, 0, .6); }
.mh-fan-card .mch-gcard-body { padding: 16px 18px 18px; }
.mh-fan-card .mch-gcard h2 { font-size: 1.35rem; margin: 6px 0; }
.mh-fan-card .mch-gcard-occ { font-size: .65rem; }
.mh-fan-card .mch-gcard-msg { font-size: .78rem; line-height: 1.9; }
.mh-fan-card .mch-gcard-from { font-size: .78rem; margin-bottom: 10px; }
.mh-fan-card .mch-gcard-deed { font-size: .68rem; padding: 8px 10px; }
.mh-fan-card .mch-gcard-deed > span { font-size: 1rem; }
.mh-fan-1 { transform: translate(85%, -52%) rotate(9deg); z-index: 1; }
.mh-fan-2 { transform: translate(15%, -46%) rotate(-8deg); z-index: 2; }
.mh-fan-3 { transform: translate(50%, -50%) rotate(-1deg); z-index: 3; }
.mh-fan:hover .mh-fan-1 { transform: translate(100%, -54%) rotate(13deg); }
.mh-fan:hover .mh-fan-2 { transform: translate(0%, -44%) rotate(-12deg); }

/* ---------- 4. cases ---------- */
.elementor .mh-cases { background: #fff; padding-top: 40px; }
.mh .mh-occ-row { margin-top: 26px; }

/* ---------- 5. map ---------- */
.elementor .mh-map { background: var(--cream); }
.mh-map .mch-map { box-shadow: 0 30px 60px -40px rgba(19, 34, 31, .35); border-radius: 26px; }

/* ---------- 6. ledger ---------- */
.elementor .mh-ledger { background: #fff; }
.mh .mh-ledger-grid { display: grid !important; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.mh .mh-ledger-copy { gap: 22px; --gap: 22px; position: sticky; top: 110px; }
.mh .mh-ledger-copy h2.elementor-heading-title { font-size: clamp(2rem, 4vw, 3.1rem); }
.mh-ledger .mch-impacts { grid-template-columns: 1fr; }
.mh-ledger .mch-impact-empty { text-align: start; padding: 34px; border-radius: 26px; background: var(--cream); border: 0; }
.mh-ledger .mch-impact-empty p { font-size: 1.05rem; line-height: 2; margin-bottom: 16px; }

/* ---------- 7. closing ---------- */
.elementor .mh-close { background: #fff; padding-top: 0; }
.mh .mh-close-grid { display: grid !important; grid-template-columns: 1.4fr auto; align-items: center; gap: 30px; background: #fde9e5; border-radius: 32px; padding: 48px 52px !important; position: relative; overflow: hidden; }
.mh .mh-close-grid::after { content: ""; position: absolute; width: 220px; height: 220px; inset-inline-end: -50px; bottom: -70px; background: url("../img/logo-icon-192.png") center/contain no-repeat; opacity: .12; transform: rotate(14deg); }
.mh .mh-close-copy { gap: 12px; --gap: 12px; }
.mh .mh-close h2.elementor-heading-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.mh .mh-hero-grid, .mh .mh-gift-grid, .mh .mh-ledger-grid { grid-template-columns: 1fr; }
	.mh .mh-hero-art { order: 2; }
	.mh .mh-bento { grid-template-columns: 1fr 1fr; }
	.mh .mh-tile-big { grid-column: span 2; grid-row: auto; }
	.mh .mh-ledger-copy { position: static; }
	.mh-trust { grid-template-columns: 1fr 1fr; }
	.mh-trust-item:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
	.mh .mh-close-grid { grid-template-columns: 1fr; }
	.mh-fan { height: 440px; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
	.elementor .mh { padding: 64px 18px; }
	.elementor .mh-hero { padding-top: 36px; }
	.mh .mh-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.mh .mh-tile-big { grid-column: auto; }
	.mh .mh-tile-big .mh-tile-t .elementor-heading-title { font-size: 1.8rem; }
	.mh .mh-close-grid { padding: 32px 24px !important; }
	.mh-chip-a { inset-inline-end: -14px; top: 10%; }
	.mh-chip-b { inset-inline-start: -10px; }
	.mh-phone { width: 270px; }
	.mh-fan { height: 400px; }
	.mh-fan-card { width: 220px; }
	.mh-fan-1 { transform: translate(75%, -52%) rotate(8deg); }
	.mh-fan-2 { transform: translate(25%, -46%) rotate(-7deg); }
	.mh .mh-actions .elementor-widget-button { width: 100%; }
	.mh .mh-btn-coral .elementor-button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.mh-blob, .mh-chip { animation: none; }
}
