/* Monteli Elementor – content widgets (posts, portfolio, team, testimonials). */

/* ---------- Posts ---------- */
.m-post { display: flex; flex-direction: column; }
.m-post__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--m-bg-alt, #f8fafc); }
.m-post__thumb img, .m-post__placeholder { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.m-post__placeholder { background: linear-gradient(135deg, rgba(var(--m-primary-rgb, 79, 70, 229), .3), rgba(var(--m-primary-rgb, 79, 70, 229), .05)); }
.m-post:hover .m-post__thumb img { transform: scale(1.06); }
.m-post__body { display: flex; flex-direction: column; flex: 1; gap: .45em; padding: 20px 22px 22px; }
.m-post__cat {
	align-self: flex-start; padding: .2em .8em; font-size: .78em; font-weight: 700; line-height: 1.7;
	color: var(--m-primary, #4f46e5); background: rgba(var(--m-primary-rgb, 79, 70, 229), .1); border-radius: 999px; text-decoration: none !important;
}
.m-post__title { margin: 0; font-size: 1.12rem; line-height: 1.5; }
.m-post__title a { color: var(--m-heading, #0f172a); text-decoration: none !important; }
.m-post__title a { transition: color .25s; }
.m-post__title a:hover, .m-post:hover .m-post__title a, .m-post:focus-within .m-post__title a { color: var(--m-primary, #4f46e5); }
.m-post__meta { display: flex; flex-wrap: wrap; gap: .3em 1em; font-size: .85em; opacity: .7; }
.m-post__excerpt { margin: 0; font-size: .95em; opacity: .9; }
.m-post__more { margin-block-start: auto; padding-block-start: .5em; font-weight: 700; text-decoration: none !important; }

.m-posts--overlay .m-post { position: relative; min-height: 320px; color: #fff; border: 0; }
.m-posts--overlay .m-post__thumb { position: absolute; inset: 0; aspect-ratio: auto !important; }
.m-posts--overlay .m-post__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 6, 23, .9), rgba(2, 6, 23, .1) 65%); }
.m-posts--overlay .m-post__body { position: relative; justify-content: flex-end; pointer-events: none; }
.m-posts--overlay .m-post__body a { pointer-events: auto; }
.m-posts--overlay .m-post__title a { color: #fff; }
.m-posts--overlay .m-post__meta { opacity: .85; }
.m-posts--overlay .m-post__cat { color: #fff; background: var(--m-primary, #4f46e5); }

.m-posts--list .m-post { flex-direction: row; align-items: stretch; }
.m-posts--list .m-post__thumb { flex: 0 0 38%; aspect-ratio: auto !important; }
@media (max-width: 767px) {
	.m-posts--list .m-post { flex-direction: column; }
	.m-posts--list .m-post__thumb { aspect-ratio: 16 / 10 !important; }
}

/* ---------- Portfolio ---------- */
.m-portfolio__filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block-end: 28px; }
.m-portfolio__filter-btn {
	padding: .5em 1.2em; font: inherit; font-size: .92em; font-weight: 600; line-height: 1.5; cursor: pointer;
	color: var(--m-text, #334155); background: var(--m-bg-alt, #f8fafc); border: 1px solid var(--m-border, rgba(15, 23, 42, .1)); border-radius: 999px;
	transition: color .2s, background-color .2s, border-color .2s;
}
.m-portfolio__filter-btn:hover { color: var(--m-primary, #4f46e5); border-color: var(--m-primary, #4f46e5); }
.m-portfolio__filter-btn.is-active { color: #fff; background: var(--m-primary, #4f46e5); border-color: var(--m-primary, #4f46e5); }
.m-portfolio__filter-btn:focus-visible { outline: 2px solid var(--m-primary, #4f46e5); outline-offset: 2px; }
.m-portfolio .m-grid__item[hidden] { display: none; }
.m-portfolio .m-grid__item.is-entering { animation: m-portfolio-in .4s cubic-bezier(.2, .7, .2, 1); }
@keyframes m-portfolio-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

.m-portfolio__item { display: flex; flex-direction: column; }
.m-portfolio__thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--m-bg-alt, #f8fafc); text-decoration: none !important; }
.m-portfolio__thumb img, .m-portfolio__placeholder { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.m-portfolio__placeholder { background: linear-gradient(135deg, rgba(var(--m-primary-rgb, 79, 70, 229), .3), rgba(var(--m-primary-rgb, 79, 70, 229), .05)); }
.m-portfolio__item:hover .m-portfolio__thumb img, .m-portfolio__item:focus-within .m-portfolio__thumb img { transform: scale(1.06); }
.m-portfolio__title { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.m-portfolio__cats { display: block; font-size: .82em; font-weight: 600; color: var(--m-primary, #4f46e5); }

/* Text over image (shown on hover / focus, always on touch). */
.m-portfolio--overlay .m-portfolio__overlay {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .3em; padding: 22px;
	color: #fff; background: linear-gradient(to top, rgba(2, 6, 23, .85), transparent 80%);
	opacity: 0; transition: opacity .35s;
}
.m-portfolio--overlay .m-portfolio__overlay > * { transform: translateY(12px); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.m-portfolio--overlay .m-portfolio__title { color: #fff; }
.m-portfolio--overlay .m-portfolio__cats { color: rgba(255, 255, 255, .85); }
.m-portfolio--overlay .m-portfolio__item:hover .m-portfolio__overlay,
.m-portfolio--overlay .m-portfolio__thumb:focus-visible .m-portfolio__overlay { opacity: 1; }
.m-portfolio--overlay .m-portfolio__item:hover .m-portfolio__overlay > *,
.m-portfolio--overlay .m-portfolio__thumb:focus-visible .m-portfolio__overlay > * { transform: none; }
@media (hover: none) {
	.m-portfolio--overlay .m-portfolio__overlay { opacity: 1; }
	.m-portfolio--overlay .m-portfolio__overlay > * { transform: none; }
}

/* Text below image. */
.m-portfolio__body { display: flex; flex-direction: column; gap: .3em; padding: 16px 20px 20px; }
.m-portfolio__title a { color: var(--m-heading, #0f172a); text-decoration: none !important; }
.m-portfolio__title a:hover { color: var(--m-primary, #4f46e5); }

/* ---------- Team ---------- */
.m-team__item { display: flex; flex-direction: column; padding: 14px; }
.m-team__photo {
	position: relative; width: 100%; aspect-ratio: 4 / 5; margin-inline: auto; overflow: hidden;
	background: var(--m-bg-alt, #f8fafc); border-radius: calc(var(--m-radius, 12px) * .8);
}
.m-team--square .m-team__photo { border-radius: 0; }
.m-team--circle .m-team__photo { width: 70%; aspect-ratio: 1 / 1 !important; border-radius: 50% !important; margin-block-start: 10px; }
.m-team__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.m-team__item:hover .m-team__photo img { transform: scale(1.05); }
.m-team__placeholder {
	display: grid; place-items: center; width: 100%; height: 100%; font-size: 3rem; font-weight: 800;
	color: var(--m-primary, #4f46e5); background: linear-gradient(135deg, rgba(var(--m-primary-rgb, 79, 70, 229), .22), rgba(var(--m-primary-rgb, 79, 70, 229), .05));
}
.m-team__social {
	position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; align-content: flex-end; gap: 8px; padding: 16px;
	background: linear-gradient(to top, rgba(2, 6, 23, .7), transparent 70%); opacity: 0; transition: opacity .35s;
}
.m-team--circle .m-team__social { align-items: center; align-content: center; background: rgba(2, 6, 23, .45); }
.m-team__social a {
	display: grid; place-items: center; width: 38px; height: 38px; color: var(--m-heading, #0f172a); background: #fff; border-radius: 50%;
	text-decoration: none !important; transform: translateY(10px); transition: transform .35s cubic-bezier(.2, .7, .2, 1), color .2s, background-color .2s;
}
.m-team__social a:nth-child(2) { transition-delay: .04s; }
.m-team__social a:nth-child(3) { transition-delay: .08s; }
.m-team__social a:nth-child(4) { transition-delay: .12s; }
.m-team__social a:hover { color: #fff; background: var(--m-primary, #4f46e5); }
.m-team__social a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.m-team__social svg { width: 18px; height: 18px; }
.m-team__item:hover .m-team__social, .m-team__social:focus-within { opacity: 1; }
.m-team__item:hover .m-team__social a, .m-team__social:focus-within a { transform: none; }
@media (hover: none) {
	.m-team__social { opacity: 1; }
	.m-team__social a { transform: none; }
	.m-team--circle .m-team__social { align-items: flex-end; align-content: flex-end; background: linear-gradient(to top, rgba(2, 6, 23, .55), transparent 60%); }
}
.m-team__body { display: flex; flex-direction: column; gap: .25em; padding: 16px 6px 6px; text-align: center; }
.m-team__name { margin: 0; font-size: 1.08rem; line-height: 1.5; color: var(--m-heading, #0f172a); }
.m-team__role { font-size: .88em; font-weight: 600; color: var(--m-primary, #4f46e5); }
.m-team__bio { margin: .35em 0 0; font-size: .92em; opacity: .85; }

/* ---------- Testimonials ---------- */
.m-testimonial { position: relative; display: flex; flex-direction: column; height: 100%; margin: 0; }
.m-testimonial--card { gap: 14px; padding: 28px; }
.m-testimonial__quote { display: block; flex: none; width: 40px; height: 40px; color: rgba(var(--m-primary-rgb, 79, 70, 229), .25); }
[dir="rtl"] .m-testimonial__quote { transform: scaleX(-1); }
.m-testimonial__stars { display: inline-flex; align-self: flex-start; gap: 2px; font-size: 16px; }
.m-testimonial__stars span { display: inline-flex; color: var(--m-border, #cbd5e1); }
.m-testimonial__stars .is-on { color: #f59e0b; }
.m-testimonial__stars svg { width: 1em; height: 1em; }
.m-testimonial__text { flex: 1; margin: 0; padding: 0; font-size: 1em; font-style: normal; line-height: 1.85; color: var(--m-text, #334155); border: 0; background: none; quotes: none; }
.m-testimonial__text::before, .m-testimonial__text::after { content: none; }
.m-testimonial__text p { margin: 0 0 .6em; }
.m-testimonial__text p:last-child { margin-block-end: 0; }
.m-testimonial__author { display: flex; align-items: center; gap: 12px; margin: 0; }
.m-testimonial__avatar {
	display: grid; flex: none; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 50%;
	font-size: 1.25rem; font-weight: 800; line-height: 1; color: #fff; background: var(--m-primary, #4f46e5);
}
.m-testimonial__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-testimonial__who { display: flex; flex-direction: column; min-width: 0; }
.m-testimonial__name { font-style: normal; font-weight: 700; color: var(--m-heading, #0f172a); }
.m-testimonial__role { font-size: .86em; opacity: .7; }

/* Bubble: quote in a speech bubble, author below. */
.m-testimonial--bubble { gap: 22px; padding-block-end: 4px; }
.m-testimonial__bubble {
	position: relative; display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 26px 28px;
	background-color: var(--m-bg, #fff); border: 1px solid var(--m-border, rgba(15, 23, 42, .1)); border-radius: var(--m-radius, 12px);
	box-shadow: 0 14px 34px -22px rgba(15, 23, 42, .35);
}
.m-testimonial__bubble::after {
	content: ""; position: absolute; inset-block-end: -9px; inset-inline-start: 34px; width: 18px; height: 18px;
	background: inherit; border: inherit; border-top: 0; border-left: 0; border-radius: 0 0 4px 0; box-shadow: none; transform: rotate(45deg);
}
.m-testimonial--bubble .m-testimonial__author { padding-inline-start: 20px; }

/* Posts widget as archive loop (Theme builder) */
.m-posts__pagination { margin-block-start: 32px; }
.m-posts-none { padding: 40px 20px; text-align: center; background: var(--m-bg-alt, #f8fafc); border-radius: var(--m-radius, 16px); }

/* ---------- Project cards ---------- */
.m-pc { --m-pc-r: 24px; --m-pc-ph: rgba(var(--m-primary-rgb, 7, 85, 217), .06); --m-pc-stripe: rgba(var(--m-primary-rgb, 7, 85, 217), .11); display: flex; flex-direction: column; height: 100%; padding: 10px; background: var(--m-bg, #fff); border-radius: var(--m-pc-r); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, background-color .35s, border-color .35s; }
.m-pc__media { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--m-pc-r, 24px); isolation: isolate; }
.m-pc__media img, .m-pc__ph { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .5s; }
.m-pc__media::after { content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; transition: opacity .35s; }
.m-pc:hover .m-pc__media::after { opacity: 1; }
.m-pc__ph { position: relative; background: repeating-linear-gradient(135deg, var(--m-pc-stripe) 0 14px, var(--m-pc-ph) 14px 28px); }
.m-pc__ph-label { position: absolute; inset-inline: 0; inset-block-end: 14px; margin-inline: auto; width: max-content; padding: .2rem .7rem; border-radius: 99px; background: var(--m-bg, #fff); color: var(--m-text, #64748b); font-size: .75rem; }
.m-pc-shape-arch .m-pc__media { border-radius: 999px 999px 0 0; }
.m-pc-shape-square .m-pc__media { border-radius: 0; }
.m-pc-shape-leaf .m-pc__media { border-radius: 45% 0; }
.m-pc-shape-circle .m-pc__media { aspect-ratio: 1 / 1; border-radius: 50%; }
.m-pc-shape-pill .m-pc__media { border-radius: 999px; }
.m-pc__body { display: flex; flex-direction: column; gap: .45rem; flex: 1 1 auto; padding: 1rem .9rem .7rem; }
.m-pc__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .82rem; }
.m-pc__cat { color: var(--m-text, #475569); }
.m-pc__year { color: var(--m-text, #64748b); opacity: .75; }
.m-pc-catbadge-yes .m-pc__cat { padding: .15rem .65rem; border-radius: 99px; background: rgba(var(--m-primary-rgb, 7, 85, 217), .08); color: var(--m-primary, #0755d9); }
.m-pc__media .m-pc__meta { position: absolute; z-index: 2; inset-inline: 12px; inset-block-start: 12px; }
.m-pc__media .m-pc__meta > span { padding: .15rem .65rem; border-radius: 99px; background: var(--m-bg, #fff); opacity: 1; }
.m-pc__title { margin: 0; color: var(--m-heading, #0f172a); font-size: 1.1rem; font-weight: 700; line-height: 1.6; transition: color .3s; }
.m-pc__title a { color: inherit; text-decoration: none; }
.m-pc__sub { margin: 0; color: var(--m-text, #64748b); font-size: .88rem; }
.m-pc-hover-lift .m-pc:hover { transform: translateY(-6px); }
.m-pc-hover-grow .m-pc:hover { transform: scale(1.03); }
.m-pc-img-zoom .m-pc:hover .m-pc__media img, .m-pc-img-zoom .m-pc:hover .m-pc__ph { transform: scale(1.07); }
.m-pc-img-grayscale .m-pc__media img { filter: grayscale(1); }
.m-pc-img-grayscale .m-pc:hover .m-pc__media img { filter: none; }
@media (prefers-reduced-motion: reduce) {
	.m-pc, .m-pc__media img, .m-pc__ph { transition: none; }
	.m-pc:hover, .m-pc:hover .m-pc__media img { transform: none !important; }
}

/* Project cards – title & button */
.m-pc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-block-end: 2.5rem; }
.m-pc-head__main { flex: 1 1 16rem; min-width: 0; }
.m-pc-head__title { margin: 0; color: var(--m-heading, #0f172a); font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 800; line-height: 1.4; }
.m-pc-head__hl { color: var(--m-primary, #0755d9); }
.m-pc-head__text { margin: .6rem 0 0; color: var(--m-text, #64748b); line-height: 1.9; }
.m-pc-head__btn { display: inline-flex; align-items: center; gap: .5rem; flex: none; padding: .8rem 1.6rem; border: 0 solid transparent; border-radius: 99px; background: var(--m-bg, #fff); color: var(--m-heading, #0f172a); font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: color .25s, background-color .25s, border-color .25s, box-shadow .25s; }
.m-pc-head__btn:hover { background: var(--m-primary, #0755d9); color: #fff; }
.m-pc-head__btn-icon { display: inline-flex; }
.m-pc-head__btn-icon svg, .m-pc-head__btn-icon i { width: 18px; height: 18px; font-size: 18px; }
html:not([dir="rtl"]) .m-pc-head__btn-icon { transform: scaleX(-1); }
.m-pc-btn-outline .m-pc-head__btn { background: transparent; border-width: 1.5px; border-color: currentColor; }
.m-pc-btn-outline .m-pc-head__btn:hover { border-color: var(--m-primary, #0755d9); }
.m-pc-btn-link .m-pc-head__btn { padding: 0; background: none; color: var(--m-primary, #0755d9); }
.m-pc-btn-link .m-pc-head__btn:hover { background: none; color: var(--m-primary, #0755d9); }
.m-pc-head-stack .m-pc-head, .m-pc-head-center .m-pc-head { flex-direction: column; align-items: flex-start; }
.m-pc-head-stack .m-pc-head__main, .m-pc-head-center .m-pc-head__main { flex: none; max-width: 100%; }
.m-pc-head-center .m-pc-head { align-items: center; text-align: center; }
.m-pc-head--foot { justify-content: center; margin: 2.5rem 0 0; }
@media (max-width: 767px) {
	.m-pc-head-mstack-yes .m-pc-head { flex-direction: column; align-items: flex-start; }
	.m-pc-head-mstack-yes .m-pc-head__main { flex: none; max-width: 100%; }
	.m-pc-head { margin-block-end: 1.75rem; }
}

/* ---------- Testimonial slider ---------- */
.m-qs { --m-qs-width: 820px; --m-qs-gap: 2.75rem; --m-qs-avatar: 48px; --m-qs-arrow: 46px; --m-qs-arrow-icon: 20px; --m-qs-dot: rgba(15, 23, 42, .16); --m-qs-dot-on: var(--m-primary, #0755d9); --m-qs-dot-size: 6px; --m-qs-dot-on-w: 24px; --m-qs-dot-gap: 6px; --m-qs-nav-gap: 2.5rem; --m-qs-justify: center; --m-qs-align: center; --m-qs-speed: 600ms; text-align: var(--m-qs-align); }
html[data-theme="dark"] .m-qs { --m-qs-dot: rgba(255, 255, 255, .22); }
.m-qs__stage { display: flex; align-items: center; gap: 1.5rem; }
.m-qs__track { display: grid; flex: 1 1 auto; min-width: 0; }
.m-qs__slide { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: var(--m-qs-justify); gap: var(--m-qs-gap); visibility: hidden; opacity: 0; transition: opacity var(--m-qs-speed) ease, transform var(--m-qs-speed) cubic-bezier(.2, .7, .2, 1), visibility 0s linear var(--m-qs-speed); }
.m-qs__slide.is-active { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.m-qs--slide .m-qs__slide:not(.is-active) { transform: translateX(calc(var(--m-qs-dir, 1) * 8%)); }
.m-qs--up .m-qs__slide:not(.is-active) { transform: translateY(24px); }
.m-qs__mark { order: -2; display: inline-flex; color: rgba(var(--m-primary-rgb, 7, 85, 217), .25); }
.m-qs__mark svg, .m-qs__mark i { width: var(--m-qs-mark, 48px); height: var(--m-qs-mark, 48px); font-size: var(--m-qs-mark, 48px); }
.m-qs .m-qs__text { max-width: var(--m-qs-width); margin: 0; padding: 0; border: 0; background: none; color: var(--m-heading, #0f172a); font-size: clamp(1.2rem, .95rem + 1vw, 1.75rem); font-style: normal; font-weight: 500; line-height: 2.1; quotes: none; }
.m-qs .m-qs__text::before, .m-qs .m-qs__text::after { content: none; }
.m-qs-author-at-above .m-qs__author { order: -1; }
.m-qs__author { display: flex; align-items: center; gap: .85rem; text-align: start; }
.m-qs-author-column .m-qs__author { flex-direction: column; text-align: center; gap: .6rem; }
.m-qs__avatar { display: block; flex: none; width: var(--m-qs-avatar); height: var(--m-qs-avatar); overflow: hidden; border-radius: 50%; }
.m-qs__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-qs__avatar--ph { --m-qs-stripe: rgba(var(--m-primary-rgb, 7, 85, 217), .13); background: repeating-linear-gradient(135deg, var(--m-qs-stripe) 0 6px, rgba(var(--m-primary-rgb, 7, 85, 217), .05) 6px 12px); }
.m-qs__who { display: flex; flex-direction: column; gap: .2rem; }
.m-qs__name { color: var(--m-heading, #0f172a); font-size: .98rem; font-style: normal; font-weight: 700; }
.m-qs__role { color: var(--m-text, #64748b); font-size: .85rem; }
.m-qs__stars { --m-qs-star: #f5a524; display: inline-block; direction: ltr; color: var(--m-qs-star); font-size: .9rem; letter-spacing: 2px; line-height: 1; }
.m-qs__stars span { background: linear-gradient(90deg, var(--m-qs-star) var(--m-qs-rate, 100%), rgba(148, 163, 184, .35) var(--m-qs-rate, 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-qs__nav { display: flex; align-items: center; justify-content: var(--m-qs-justify); gap: 1.4rem; margin-block-start: var(--m-qs-nav-gap); }
.m-qs__arrow { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--m-qs-arrow); height: var(--m-qs-arrow); padding: 0; border: 1px solid var(--m-border, #e5e7eb); border-radius: 50%; background: var(--m-bg, #fff); color: var(--m-heading, #0f172a); cursor: pointer; transition: color .25s, background-color .25s, border-color .25s, box-shadow .25s; }
.m-qs__arrow svg, .m-qs__arrow i { width: var(--m-qs-arrow-icon); height: var(--m-qs-arrow-icon); font-size: var(--m-qs-arrow-icon); }
.m-qs__arrow:hover { border-color: var(--m-primary, #0755d9); background: var(--m-primary, #0755d9); color: #fff; }
.m-qs__arrow:focus-visible, .m-qs__dot:focus-visible { outline: 2px solid var(--m-primary, #0755d9); outline-offset: 3px; }
.m-qs__arrow[disabled] { opacity: .4; pointer-events: none; }
html:not([dir="rtl"]) .m-qs__arrow svg { transform: scaleX(-1); }
.m-qs__dots { display: flex; align-items: center; gap: var(--m-qs-dot-gap); }
.m-qs__dot { width: var(--m-qs-dot-size); height: var(--m-qs-dot-size); padding: 0; border: 0; border-radius: 99px; background: var(--m-qs-dot); cursor: pointer; transition: width .35s, background-color .35s; }
.m-qs__dot.is-active { background: var(--m-qs-dot-on); }
.m-qs-dots-pill .m-qs__dot.is-active { width: var(--m-qs-dot-on-w); }
.m-qs-dots-line .m-qs__dot { width: 18px; height: 3px; }
.m-qs-dots-line .m-qs__dot.is-active { width: var(--m-qs-dot-on-w); }
.m-qs__count { display: none; color: var(--m-text, #64748b); font-size: .95rem; }
.m-qs__count b { color: var(--m-heading, #0f172a); }
.m-qs-dots-number .m-qs__dot { display: none; }
.m-qs-dots-number .m-qs__count { display: inline; }
@media (max-width: 767px) {
	.m-qs { --m-qs-arrow: 40px; --m-qs-gap: 2rem; }
	.m-qs__stage { gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
	.m-qs__slide { transition-duration: 1ms !important; transform: none !important; }
}
.m-pc-meta-together .m-pc__meta { justify-content: flex-start; gap: .75rem; }
.m-pc-phl-start .m-pc__ph-label { margin-inline: 14px auto; }
.m-pc-phl-end .m-pc__ph-label { margin-inline: auto 14px; }
.elementor-widget-monteli-post-slider .m-pc { border: 1px solid var(--m-border, #e5e7eb); }
.elementor-widget-monteli-post-slider .m-pc__body { gap: .7rem; padding: 1.1rem 1rem .9rem; }
.elementor-widget-monteli-post-slider .m-pc__title { font-size: 1.12rem; line-height: 1.9; }

/* ==========================================================================
   Section heading (monteli-section-head) – kicker + title, «همه …» link or carousel arrows
   ========================================================================== */
.m-sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.m-sh__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.m-sh__kicker { color: #8a8890; font-size: 13px; line-height: 1.6; }
.m-sh__title { margin: 0; color: var(--m-heading, #16161a); font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; line-height: 1.5; }
.m-sh__link {
	display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 8px 12px; color: var(--m-heading, #16161a); font-size: 14px; font-weight: 600;
	text-decoration: none; border: 1px solid transparent; border-radius: 10px; transition: background-color .2s, gap .3s, color .2s;
}
.m-sh__link:hover { gap: 10px; color: var(--m-heading, #16161a); background: #ecebe6; }
.m-sh__link svg { width: 18px; height: 18px; }
html:not([dir="rtl"]) .m-sh__link svg { transform: scaleX(-1); }
.m-sh__arrows { display: flex; flex: none; gap: 8px; }
.m-sh__arrow {
	display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: var(--m-heading, #16161a); background: var(--m-bg, #fff);
	border: 1px solid #e3e0da; border-radius: 12px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.m-sh__arrow:hover { color: #fff; background: #16161a; border-color: #16161a; }
.m-sh__arrow:active { transform: scale(.92); }
.m-sh__arrow svg { width: 18px; height: 18px; }
[dir="rtl"] .m-sh__prev svg { transform: scaleX(-1); }
html:not([dir="rtl"]) .m-sh__next svg { transform: scaleX(-1); }
html[data-theme="dark"] .m-sh__arrow { border-color: rgba(255, 255, 255, .14); }
html[data-theme="dark"] .m-sh__link:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 767px) {
	.m-sh-stack-yes .m-sh { flex-direction: column; align-items: flex-start; }
	.m-sh__arrow { width: 38px; height: 38px; }
}

/* ==========================================================================
   Customer reviews (monteli-reviews) – Avand «نظرات مشتریان»: summary column + review cards
   ========================================================================== */
.m-rv { --m-rv-cols: 4; --m-rv-gap: 20px; --m-rv-star: #e8a317; display: grid; grid-template-columns: repeat(var(--m-rv-cols), minmax(0, 1fr)); gap: var(--m-rv-gap); }
.m-rv__list { display: contents; }
.m-rv__summary { display: flex; flex-direction: column; gap: 14px; padding-block: 8px; min-width: 0; }
.m-rv__kicker { color: #8a8890; font-size: 13px; }
.m-rv__title { margin: 0; color: var(--m-heading); font-size: clamp(22px, 2vw, 28px); font-weight: 800; line-height: 1.5; }
.m-rv__score { display: flex; align-items: center; gap: 14px; margin-block-start: 8px; }
.m-rv__avg { color: var(--m-heading); font-size: 48px; font-weight: 900; line-height: 1; }
.m-rv__meta { display: flex; flex-direction: column; gap: 6px; }
.m-rv__total { color: #8a8890; font-size: 12px; }
.m-rv__stars { display: inline-flex; gap: 2px; color: rgba(22, 22, 26, .14); }
.m-rv__stars i { display: inline-flex; }
.m-rv__stars .is-on, .m-rv__stars .is-half { color: var(--m-rv-star); }
[dir="rtl"] .m-rv__stars .is-half svg { transform: scaleX(-1); }
.m-rv__card {
	display: flex; flex-direction: column; gap: 16px; min-width: 0; margin: 0; padding: 24px; background: #fff; border-radius: 22px;
	box-shadow: 0 0 0 1px rgba(22, 22, 26, .05); transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s cubic-bezier(.2, .8, .2, 1);
}
.m-rv-lift-yes .m-rv__card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -24px rgba(22, 22, 26, .25), 0 0 0 1px rgba(22, 22, 26, .05); }
.m-rv__top { display: flex; align-items: center; justify-content: space-between; }
.m-rv__q { display: inline-flex; color: #e4e1db; }
.m-rv__q svg { width: 26px; height: 26px; }
.m-rv .m-rv__text { flex: 1; margin: 0; padding: 0; color: #3a3a40; font-size: 14px; font-style: normal; line-height: 2; text-wrap: pretty; background: none; border: 0; border-radius: 0; box-shadow: none; quotes: none; }
.m-rv__text::before, .m-rv__text::after { content: none; }
.m-rv__by { display: flex; align-items: center; gap: 12px; padding-block-start: 14px; border-block-start: 1px solid #f0eee9; }
.m-rv__ava { flex: none; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; }
.m-rv__ava img { width: 100%; height: 100%; object-fit: cover; }
.m-rv__ava.is-letter { color: var(--m-primary); font-weight: 800; background: rgba(var(--m-primary-rgb), .1); }
.m-rv__who { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.m-rv__who b { color: var(--m-heading); font-size: 14px; }
.m-rv__who span { overflow: hidden; color: #8a8890; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.m-rv__ok { flex: none; display: inline-flex; color: #1f9d63; }
.m-rv__none { grid-column: 1 / -1; margin: 0; color: #8a8890; }
html[data-theme="dark"] .m-rv__card { background: var(--m-bg-alt); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
html[data-theme="dark"] .m-rv__text { color: var(--m-text); }
html[data-theme="dark"] .m-rv__by { border-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .m-rv__q { color: rgba(255, 255, 255, .15); }

/* Tablet: the summary takes a full row on top. */
@media (max-width: 1024px) {
	.m-rv.has-summary .m-rv__summary { grid-column: 1 / -1; }
	/* Swipe (tablet + phone): cards in one scrolling row, the next one peeks in. */
	.m-rv-swipe-yes .m-rv { grid-template-columns: minmax(0, 1fr); }
	.m-rv-swipe-yes .m-rv__list {
		--m-rv-edge: var(--m-el-gap, 16px);
		display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 16px; margin-inline: calc(var(--m-rv-edge) * -1); padding: 4px var(--m-rv-edge) 12px;
		overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m-rv-edge); scrollbar-width: none; overscroll-behavior-x: contain;
	}
	.m-rv-swipe-yes .m-rv__list::-webkit-scrollbar { display: none; }
	.m-rv-swipe-yes .m-rv__card { scroll-snap-align: start; }
	.m-rv-swipe-yes .m-rv__card:hover { transform: none; }
}
/* Phone. */
@media (max-width: 767px) {
	.m-rv__summary { gap: 10px; }
	.m-rv__avg { font-size: 40px; }
	.m-rv-swipe-yes .m-rv__list { grid-auto-columns: 84%; gap: 12px; }
	.m-rv-swipe-yes .m-rv__card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .m-rv__card { transition: none; } }

/* ==========================================================================
   Contact cards (monteli-contact-cards) + FAQ (monteli-faq) – Avand contact page (v2.0.56)
   ========================================================================== */
.m-cc2 { --m-cc2-cols: 3; --m-cc2-tile: #16161a; --m-cc2-ic: #fff; display: grid; grid-template-columns: repeat(var(--m-cc2-cols), minmax(0, 1fr)); gap: 20px; }
.m-cc2__card {
	display: flex; align-items: center; gap: 16px; min-width: 0; padding: 24px; color: inherit; text-decoration: none; background: #fff; border-radius: 22px;
	box-shadow: 0 0 0 1px rgba(22, 22, 26, .05); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s cubic-bezier(.2, .8, .2, 1);
}
a.m-cc2__card:hover, .m-cc2__card:hover { color: inherit; transform: translateY(-4px); box-shadow: 0 24px 44px -24px rgba(22, 22, 26, .3), 0 0 0 1px rgba(22, 22, 26, .05); }
.m-cc2__ic { flex: none; display: grid; place-items: center; width: 54px; height: 54px; color: var(--m-cc2-ic); font-size: 22px; background: var(--m-cc2-tile); border-radius: 16px; }
.m-cc2__ic svg { width: 22px; height: 22px; }
.m-cc2__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.m-cc2__label { color: #8a8890; font-size: 12px; }
.m-cc2__value { overflow: hidden; color: var(--m-heading); font-size: 16px; text-overflow: ellipsis; }
[dir="rtl"] .m-cc2__value[dir="ltr"] { text-align: right; }
.m-cc2__note { color: #6b6a70; font-size: 12px; }
html[data-theme="dark"] .m-cc2__card { background: var(--m-bg-alt); }
@media (max-width: 1024px) { .m-cc2 { gap: 12px; } .m-cc2__card { padding: 18px; } }

.m-faq { --m-faq-open: #fff; --m-faq-line: rgba(22, 22, 26, .06); display: flex; flex-direction: column; gap: 10px; }
.m-faq__title { margin: 0 0 4px; color: var(--m-heading); font-size: 17px; }
.m-faq__item { background: transparent; border-radius: 18px; box-shadow: 0 0 0 1px var(--m-faq-line); transition: background-color .3s; }
.m-faq__item[open] { background: var(--m-faq-open); }
.m-faq__q { display: flex; align-items: center; gap: 12px; padding: 18px; color: var(--m-heading); font-size: 14px; font-weight: 700; line-height: 1.8; list-style: none; cursor: pointer; }
.m-faq__q::-webkit-details-marker { display: none; }
.m-faq__q::marker { content: ""; }
.m-faq__q span { flex: 1; }
.m-faq__q:focus-visible { outline: 2px solid var(--m-focus, var(--m-primary)); outline-offset: 3px; border-radius: 18px; }
.m-faq__plus { position: relative; flex: none; width: 18px; height: 18px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.m-faq__plus::before, .m-faq__plus::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%; width: 14px; height: 1.8px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); }
[dir="rtl"] .m-faq__plus::before, [dir="rtl"] .m-faq__plus::after { transform: translate(50%, -50%); }
.m-faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
[dir="rtl"] .m-faq__plus::after { transform: translate(50%, -50%) rotate(90deg); }
.m-faq__item[open] .m-faq__plus { transform: rotate(45deg); }
.m-faq__a { padding: 0 18px 18px; color: #5b5a60; font-size: 13px; line-height: 2.1; animation: m-faq-in .3s ease; }
.m-faq__a > :first-child { margin-block-start: 0; }
.m-faq__a > :last-child { margin-block-end: 0; }
@keyframes m-faq-in { from { transform: translateY(-4px); } to { transform: none; } }
html[data-theme="dark"] .m-faq { --m-faq-open: var(--m-bg-alt); --m-faq-line: rgba(255, 255, 255, .08); }

/* Timeline (monteli-timeline) – Avand «مسیر ما» (v2.0.57) */
.m-tl { --m-tl-cols: 4; --m-tl-line: #16161a; --m-tl-accent: #e5533d; display: grid; grid-template-columns: repeat(var(--m-tl-cols), minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.m-tl__step { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-block-start: 18px; border-block-start: 2px solid var(--m-tl-line); }
.m-tl-last-yes .m-tl__step:last-child { border-color: var(--m-tl-accent); }
.m-tl-last-yes .m-tl__step:last-child .m-tl__year { color: var(--m-tl-accent); }
.m-tl__year { color: var(--m-heading); font-size: 22px; font-weight: 900; }
.m-tl__text { color: #5b5a60; font-size: 14px; line-height: 1.9; }
html[data-theme="dark"] .m-tl { --m-tl-line: rgba(255, 255, 255, .5); }
@media (max-width: 767px) { .m-tl { gap: 18px; } }

/* ---------- Process steps (monteli-steps) ---------- */
.m-st { --m-st-accent: #b08d57; --m-st-tab: #8c877b; --m-st-tab-on: #f4f1ea; --m-st-line: rgba(244, 241, 234, .14); --m-st-panel: #1f1e19; --m-st-panel-line: rgba(244, 241, 234, .06); --m-st-title: #f4f1ea; --m-st-text: #cfcabe; --m-st-radius: 28px; --m-st-n: 5; display: flex; flex-direction: column; gap: 28px; }
.m-st-skin-light .m-st { --m-st-tab: #8c877b; --m-st-tab-on: var(--m-heading, #15140f); --m-st-line: rgba(21, 20, 15, .12); --m-st-panel: #fff; --m-st-panel-line: rgba(21, 20, 15, .07); --m-st-title: var(--m-heading, #15140f); --m-st-text: #5f5b50; }
.m-st__tabs { display: grid; grid-template-columns: repeat(var(--m-st-n), minmax(0, 1fr)); gap: 12px; }
.m-st .m-st__tab { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; padding: 22px 4px 8px; background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--m-st-tab); font: inherit; text-align: start; cursor: pointer; transform: none; transition: color .3s; }
.m-st .m-st__tab::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; height: 2px; background: var(--m-st-line); }
.m-st .m-st__tab::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0; width: 100%; height: 2px; background: var(--m-st-accent); transform: scaleX(0); transform-origin: var(--m-st-origin, right); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
html:not([dir="rtl"]) .m-st { --m-st-origin: left; }
.m-st .m-st__tab:hover { color: var(--m-st-tab-on); background: none; transform: none; box-shadow: none; }
.m-st .m-st__tab.is-on { color: var(--m-st-tab-on); }
.m-st .m-st__tab.is-on::after { transform: scaleX(1); }
.m-st__n { color: var(--m-st-tab); font-size: 13px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.m-st__tab.is-on .m-st__n { color: var(--m-st-accent); }
.m-st__tt { font-size: 19px; font-weight: 700; line-height: 1.5; }
.m-st__panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; align-items: center; padding: clamp(28px, 4vw, 48px); background: var(--m-st-panel); border: 1px solid var(--m-st-panel-line); border-radius: var(--m-st-radius); animation: m-st-in .5s cubic-bezier(.2, .7, .2, 1); }
.m-st__panel[hidden] { display: none; }
@keyframes m-st-in { from { transform: translateY(14px); } to { transform: none; } }
.m-st__lead { display: flex; align-items: center; gap: 28px; }
.m-st__big { color: var(--m-st-accent); font-size: clamp(80px, 10vw, 140px); font-weight: 900; line-height: .9; letter-spacing: -4px; }
.m-st__icon { display: grid; place-items: center; flex: none; width: 72px; height: 72px; border-radius: 22px; background: color-mix(in srgb, var(--m-st-accent) 14%, transparent); color: var(--m-st-accent); }
.m-st__icon svg { width: 30px; height: 30px; }
.m-st__icon i { font-size: 30px; }
.m-st__body { display: flex; flex-direction: column; gap: 14px; }
.m-st__title { margin: 0; color: var(--m-st-title); font-size: 28px; font-weight: 800; }
.m-st__text { margin: 0; color: var(--m-st-text); font-size: 16px; line-height: 2.1; }
.m-st__nav { display: flex; gap: 10px; margin-block-start: 6px; }
.m-st .m-st__btn { display: grid; place-items: center; width: 46px; height: 46px; margin: 0; padding: 0; border-radius: 50%; border: 1px solid var(--m-st-line); background: transparent; color: var(--m-st-title); box-shadow: none; cursor: pointer; transform: none; transition: border-color .3s, color .3s, background-color .3s; }
.m-st .m-st__btn--next { border-color: var(--m-st-accent); background: var(--m-st-accent); color: #15140f; }
.m-st .m-st__btn:hover { border-color: var(--m-st-accent); color: var(--m-st-accent); background: transparent; transform: none; box-shadow: none; }
.m-st .m-st__btn--next:hover { background: color-mix(in srgb, var(--m-st-accent) 82%, #fff); color: #15140f; }
.m-st .m-st__btn:disabled { opacity: .35; cursor: default; pointer-events: none; }
html:not([dir="rtl"]) .m-st__btn svg { transform: scaleX(-1); }
@media (max-width: 1024px) {
	.m-st__tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -4px; padding-inline: 4px; }
	.m-st__tabs::-webkit-scrollbar { display: none; }
	.m-st .m-st__tab { flex: 0 0 auto; min-width: 150px; scroll-snap-align: start; }
}
@media (max-width: 767px) {
	.m-st__tt { font-size: 16px; }
	.m-st__panel { gap: 20px; }
	.m-st__lead { gap: 18px; }
	.m-st__big { font-size: 72px; letter-spacing: -2px; }
	.m-st__icon { width: 56px; height: 56px; border-radius: 16px; }
	.m-st__title { font-size: 22px; }
	.m-st__text { font-size: 15px; }
}

/* FAQ – numbers + "lines" style (business demo «چرا ما»). */
.m-faq__n { flex: none; color: var(--m-faq-accent, #8a6a36); font-size: 13px; font-weight: 500; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.m-faq-skin-lines .m-faq { gap: 0; border-block-start: 1px solid var(--m-faq-rule, rgba(21, 20, 15, .12)); }
.m-faq-skin-lines .m-faq__item { background: transparent; border-radius: 0; box-shadow: none; border-block-end: 1px solid var(--m-faq-rule, rgba(21, 20, 15, .12)); }
.m-faq-skin-lines .m-faq__item[open] { background: transparent; }
.m-faq-skin-lines .m-faq__q { gap: 18px; padding: 24px 0; font-size: clamp(17px, 1.6vw, 22px); transition: color .3s; }
.m-faq-skin-lines .m-faq__q:hover { color: var(--m-faq-accent, #8a6a36); }
.m-faq-skin-lines .m-faq__plus { width: 40px; height: 40px; border-radius: 50%; background: var(--m-faq-btn, #eae5da); color: var(--m-heading, #15140f); transition: transform .4s cubic-bezier(.2, .8, .2, 1), background-color .3s, color .3s; }
.m-faq-skin-lines .m-faq__plus::before, .m-faq-skin-lines .m-faq__plus::after { width: 13px; }
.m-faq-skin-lines .m-faq__item[open] .m-faq__plus { background: var(--m-faq-btn-on, var(--m-heading, #15140f)); color: #fff; }
.m-faq-skin-lines .m-faq__a { padding: 0 0 26px; padding-inline-end: 56px; color: #5f5b50; font-size: 15px; }
.m-faq-skin-lines.m-faq-num-yes .m-faq__a { padding-inline-start: 44px; }
.m-faq-skin-lines .m-faq__q:focus-visible { border-radius: 6px; }
@media (max-width: 767px) {
	.m-faq-skin-lines .m-faq__q { gap: 12px; padding: 18px 0; }
	.m-faq-skin-lines .m-faq__plus { width: 34px; height: 34px; }
	.m-faq-skin-lines .m-faq__a { padding-inline-end: 0; font-size: 14px; }
	.m-faq-skin-lines.m-faq-num-yes .m-faq__a { padding-inline-start: 0; }
}

/* Section heading – underlined link (business demo). The arrow slides, the width never changes. */
.m-sh-link-underline .m-sh__link { gap: 10px; padding: 0 0 6px; border: 0; border-block-end: 1.5px solid var(--m-sh-line, var(--m-primary, #0755d9)); border-radius: 0; background: none; font-size: 15px; font-weight: 700; }
.m-sh-link-underline .m-sh__link:hover { gap: 10px; background: none; }
.m-sh-link-underline .m-sh__link svg { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
[dir="rtl"] .m-sh-link-underline .m-sh__link:hover svg { transform: translateX(-4px); }
html:not([dir="rtl"]) .m-sh-link-underline .m-sh__link:hover svg { transform: scaleX(-1) translateX(-4px); }

/* Project cards – title and info on the photo (business demo «پروژه‌های منتخب»). */
.m-pc-over-yes .m-pc { position: relative; padding: 0; background: transparent; overflow: hidden; }
.m-pc-over-yes .m-pc__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--m-pc-fade, rgba(21, 20, 15, .85)), transparent 55%); pointer-events: none; }
.m-pc-over-yes .m-pc__body { position: absolute; z-index: 2; inset-inline: clamp(18px, 2.2vw, 28px); inset-block-end: clamp(18px, 2.2vw, 28px); padding: 0; pointer-events: none; }
.m-pc-over-yes .m-pc__body a { pointer-events: auto; }
.m-pc-over-yes .m-pc__title, .m-pc-over-yes .m-pc__title a, .m-pc-over-yes .m-pc:hover .m-pc__title { color: #fff; }
.m-pc-over-yes .m-pc__sub, .m-pc-over-yes .m-pc__body .m-pc__meta { color: rgba(255, 255, 255, .78); }

/* Timeline – titles + dots (business demo «داستان شکل‌گیری»). */
.m-tl__title { color: var(--m-heading); font-size: 19px; font-weight: 700; line-height: 1.6; }
.m-tl-dots-yes .m-tl__step { position: relative; padding-block-start: 32px; }
.m-tl-dots-yes .m-tl__step::before { content: ""; position: absolute; inset-block-start: -6.5px; inset-inline-start: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--m-tl-accent, var(--m-primary)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--m-tl-accent, var(--m-primary)) 18%, transparent); }

/* ==========================================================================
   Service rows («ردیف خدمات», .m-svr) – portfolio demo
   ========================================================================== */
.m-svr {
	--m-svr-acc: var(--m-primary);
	--m-svr-line: var(--m-border);
	--m-svr-ink: var(--m-heading);
	--m-svr-mut: var(--m-text);
	--m-svr-hover-ink: #15130f;
	--m-svr-pad: clamp(22px, 2.6vw, 36px);
	border-block-end: 1px solid var(--m-svr-line);
}
.m-svr__row { position: relative; display: block; overflow: hidden; color: var(--m-svr-ink); text-decoration: none; border-block-start: 1px solid var(--m-svr-line); }
.m-svr__fill { position: absolute; inset: 0; background: var(--m-svr-acc); transform: scaleY(0); transform-origin: bottom; transition: transform .55s cubic-bezier(.16, 1, .3, 1); }
.m-svr__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px 40px; align-items: center; padding: var(--m-svr-pad) clamp(4px, 1.4vw, 24px); }
.m-svr__lead { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); min-width: 0; }
.m-svr__num { min-width: 20px; color: var(--m-svr-mut); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; }
.m-svr__shape { flex: none; display: block; width: 36px; height: 36px; background: var(--m-svr-acc); transition: transform .55s cubic-bezier(.16, 1, .3, 1), background .3s; }
.m-svr__shape.is-circle { border-radius: 50%; }
.m-svr__shape.is-square { border-radius: 6px; }
.m-svr__shape.is-arch { border-radius: 999px 999px 4px 4px; }
.m-svr__shape.is-diamond { border-radius: 4px; transform: rotate(45deg) scale(.78); }
.m-svr__shape.is-ring { border-radius: 50%; background: transparent; border: 6px solid var(--m-svr-acc); }
.m-svr__shape.is-quarter { border-radius: 100% 0 0 0; }
.m-svr__shape.is-half { border-radius: 0 0 999px 999px; }
.m-svr__title { margin: 0; color: inherit; font-size: clamp(24px, 2.6vw, 40px); font-weight: 600; line-height: 1.4; transition: transform .55s cubic-bezier(.16, 1, .3, 1); }
.m-svr__text { color: var(--m-svr-mut); font-size: 15px; line-height: 1.9; transition: color .3s; }
.m-svr__end { justify-self: end; display: flex; align-items: center; gap: 16px; }
.m-svr__label { color: var(--m-svr-mut); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; transition: color .3s; }
.m-svr__go { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; }
.m-svr__go .m-icon, .m-svr__go svg { transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
html:not([dir="rtl"]) .m-svr__go svg { transform: scaleX(-1); }
.m-svr__row:hover .m-svr__go svg { transform: translateX(-6px); }
html:not([dir="rtl"]) .m-svr__row:hover .m-svr__go svg { transform: scaleX(-1) translateX(-6px); }
.m-svr__row:hover .m-svr__title { transform: translateX(-14px); }
html:not([dir="rtl"]) .m-svr__row:hover .m-svr__title { transform: translateX(14px); }
.m-svr__row:hover .m-svr__shape { transform: rotate(90deg); }
.m-svr__row:hover .m-svr__shape.is-diamond { transform: rotate(135deg) scale(.78); }
.m-svr-fill-yes .m-svr__row:hover { color: var(--m-svr-hover-ink); }
.m-svr-fill-yes .m-svr__row:hover .m-svr__fill { transform: scaleY(1); }
.m-svr-fill-yes .m-svr__row:hover .m-svr__text, .m-svr-fill-yes .m-svr__row:hover .m-svr__label, .m-svr-fill-yes .m-svr__row:hover .m-svr__num { color: var(--m-svr-hover-ink); }
.m-svr-fill-yes .m-svr__row:hover .m-svr__shape { background: var(--m-svr-hover-ink); }
.m-svr-fill-yes .m-svr__row:hover .m-svr__shape.is-ring { background: transparent; border-color: var(--m-svr-hover-ink); }
.m-svr__row:focus-visible { outline: 2px solid var(--m-svr-acc); outline-offset: -2px; }
@media (max-width: 1024px) {
	.m-svr__in { grid-template-columns: minmax(0, 1fr) auto; }
	.m-svr__text { grid-column: 1 / -1; grid-row: 2; }
	.m-svr__label { display: none; }
}
@media (max-width: 767px) {
	.m-svr__go { width: 40px; height: 40px; }
	.m-svr__shape { width: 28px; height: 28px; }
}

/* ==========================================================================
   Skills («مهارت‌ها», .m-sk) – portfolio demo
   ========================================================================== */
.m-sk {
	--m-sk-acc: var(--m-primary);
	--m-sk-line: rgba(127, 127, 127, .25);
	--m-sk-ink: inherit;
	--m-sk-mut: rgba(127, 127, 127, .9);
	--m-sk-cols: 3;
	color: var(--m-sk-ink);
}
.m-sk__groups { display: grid; grid-template-columns: repeat(var(--m-sk-cols), minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px); }
.m-sk__gh { display: flex; justify-content: space-between; align-items: baseline; margin-block-end: 28px; padding-block-end: 16px; border-block-end: 1px solid var(--m-sk-line); }
.m-sk__gt { margin: 0; color: inherit; font-size: 30px; font-weight: 600; }
.m-sk__gn { color: var(--m-sk-mut); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; }
.m-sk__list { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; list-style: none; }
.m-sk__row { display: flex; justify-content: space-between; margin-block-end: 10px; font-size: 15px; }
.m-sk__v { color: var(--m-sk-mut); }
.m-sk__bar { display: block; height: 3px; overflow: hidden; background: var(--m-sk-line); border-radius: 3px; }
.m-sk__bar i { display: block; width: var(--v, 0%); height: 100%; background: var(--m-sk-acc); border-radius: 3px; transform: scaleX(0); transform-origin: right; transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); }
html:not([dir="rtl"]) .m-sk__bar i { transform-origin: left; }
.m-sk.is-in .m-sk__bar i, .elementor-editor-active .m-sk__bar i { transform: scaleX(1); }
.m-sk__it:nth-child(2) .m-sk__bar i { transition-delay: .1s; }
.m-sk__it:nth-child(3) .m-sk__bar i { transition-delay: .2s; }
.m-sk__it:nth-child(4) .m-sk__bar i { transition-delay: .3s; }
.m-sk__tools { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(56px, 6vw, 96px) 0 0; padding: 0; list-style: none; }
.m-sk__tools li { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border: 1px solid var(--m-sk-line); border-radius: 999px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; transition: background .3s, color .3s, border-color .3s; }
.m-sk__tools li:hover { color: #15130f; background: var(--m-sk-acc); border-color: var(--m-sk-acc); }
@media (prefers-reduced-motion: reduce) { .m-sk__bar i { transform: none; transition: none; } }

/* ==========================================================================
   Row list («فهرست ردیفی», .m-rl) – work history, awards, contact info
   ========================================================================== */
.m-rl {
	--m-rl-acc: var(--m-primary);
	--m-rl-line: var(--m-border);
	--m-rl-ink: var(--m-heading);
	--m-rl-mut: var(--m-text);
	--m-rl-cols: 1;
	--m-rl-pad: 32px;
	display: grid; grid-template-columns: repeat(var(--m-rl-cols), minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; color: var(--m-rl-ink);
}
.m-rl a { color: inherit; text-decoration: none; }
.m-rl a:hover { color: var(--m-rl-acc); }
.m-rl-skin-timeline .m-rl__it { position: relative; padding-block: var(--m-rl-pad); border-block-start: 1px solid var(--m-rl-line); }
.m-rl__line { position: absolute; inset-block-start: -1px; inset-inline: 0; height: 1px; background: var(--m-rl-acc); transform: scaleX(0); transform-origin: right; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
html:not([dir="rtl"]) .m-rl__line { transform-origin: left; }
.m-rl__it:hover .m-rl__line { transform: scaleX(1); }
.m-rl__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.m-rl-skin-timeline .m-rl__title { margin: 0; color: inherit; font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; }
.m-rl__meta { color: var(--m-rl-mut); font-size: 14px; }
.m-rl-skin-timeline .m-rl__sub { display: block; margin-block-start: 6px; color: var(--m-rl-acc); font-size: 19px; }
.m-rl__text { max-width: 56ch; margin: 14px 0 0; color: var(--m-rl-mut); font-size: 15px; line-height: 1.9; }
.m-rl-skin-compact .m-rl__it { display: flex; align-items: baseline; gap: 14px; padding-block: 14px; border-block-end: 1px solid var(--m-rl-line); font-size: 14px; }
.m-rl__mark { color: var(--m-rl-acc); }
.m-rl-skin-compact .m-rl__body { flex: 1; }
.m-rl-skin-compact .m-rl__title { font-weight: 600; }
.m-rl-skin-compact .m-rl__sub { color: var(--m-rl-mut); }
.m-rl-skin-pairs { --m-rl-pad: 14px; gap: 18px 32px; }
.m-rl-skin-pairs .m-rl__it { display: flex; justify-content: space-between; gap: 16px; padding-block-end: var(--m-rl-pad); border-block-end: 1px solid var(--m-rl-line); font-size: 15px; }
.m-rl-skin-pairs .m-rl__title { color: var(--m-rl-mut); }
.m-rl-skin-pairs .m-rl__sub[dir="ltr"] { font-family: "JetBrains Mono", ui-monospace, monospace; }
@media (max-width: 767px) {
	.m-rl-skin-pairs .m-rl__it { flex-wrap: wrap; }
}

/* Section heading – numbered label row (portfolio demo) */
.m-sh__label { display: flex; align-items: center; gap: 14px; margin-block-end: clamp(28px, 3vw, 48px); font-size: 14px; color: var(--m-sh-kicker, var(--m-text)); }
.m-sh__num { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; }
.m-sh__label i { flex: 1; height: 1px; background: currentColor; opacity: .3; }
.m-sh__hl { color: var(--m-primary); }
.m-sh-kick-line .m-sh { align-items: flex-end; }

/* Quote slider – big side photo (portfolio demo): [arch photo | quote + navigation] */
.m-qs-photo-yes .m-qs { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.m-qs__photos { position: relative; display: grid; aspect-ratio: 4 / 5; overflow: hidden; background: var(--m-qs-photo-bg, var(--m-bg-alt)); border-radius: 999px 999px 24px 24px; }
.m-qs__photo { grid-area: 1 / 1; opacity: 0; transition: opacity .7s ease; }
.m-qs__photo.is-active { opacity: 1; }
.m-qs__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-qs__main { min-width: 0; }
@media (max-width: 767px) {
	.m-qs-photo-yes .m-qs { grid-template-columns: 1fr; }
	.m-qs__photos { max-width: 240px; }
}

/* Project cards – filter, staggered grid, mixed shapes, hover summary (portfolio demo) */
.m-pc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: clamp(28px, 3vw, 48px); }
.m-pc-filter__btn {
	display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; color: var(--m-pc-chip, var(--m-heading)); font: inherit; font-size: 14px;
	background: transparent; border: 1px solid var(--m-border); border-radius: 999px; cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.m-pc-filter__btn small { font-size: 11px; opacity: .6; }
.m-pc-filter__btn:hover { border-color: currentColor; transform: none; box-shadow: none; }
.m-pc-filter__btn.is-on { color: var(--m-pc-chip-on-fg, var(--m-bg)); background: var(--m-pc-chip-on, var(--m-heading)); border-color: var(--m-pc-chip-on, var(--m-heading)); }
.m-pcards [data-cat].is-hidden { display: none !important; }
.m-pc-mix-yes .m-pc__media { aspect-ratio: var(--m-pc-mix, 4 / 5) !important; }
@media (min-width: 768px) {
	.m-pc-stagger-yes .m-grid:not(.m-carousel) > :nth-child(even of :not(.is-hidden)) { margin-block-start: clamp(60px, 9vw, 140px); }
}
.m-pc__badge { position: absolute; z-index: 2; inset-block-start: 16px; inset-inline-start: 16px; display: flex; align-items: center; height: 32px; padding: 0 14px; color: #15130f; font-size: 12px; background: rgba(243, 240, 234, .9); border-radius: 999px; }
.m-pc__hover {
	position: absolute; z-index: 2; inset: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 24px; color: #f3f0ea;
	background: linear-gradient(to top, rgba(15, 13, 11, .82), rgba(15, 13, 11, 0) 62%); opacity: 0; transition: opacity .45s ease;
}
.m-pc__sum { max-width: 34ch; font-size: 15px; line-height: 1.8; transform: translateY(18px); transition: transform .55s cubic-bezier(.16, 1, .3, 1); }
.m-pc__go { display: grid; place-items: center; flex: none; width: 54px; height: 54px; color: #15130f; background: var(--m-pc-go, var(--m-primary)); border-radius: 50%; transform: translateY(18px); transition: transform .55s cubic-bezier(.16, 1, .3, 1); }
html:not([dir="rtl"]) .m-pc__go svg { transform: scaleX(-1); }
.m-pc:hover .m-pc__hover { opacity: 1; }
.m-pc:hover .m-pc__sum, .m-pc:hover .m-pc__go { transform: none; }
.m-pc-trow-yes .m-pc__body { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.m-pc-trow-yes .m-pc__meta { display: inline-flex; justify-content: flex-start; gap: 0; margin: 0; }
.m-pc-stagger-yes .m-grid, .m-pc-trow-yes .m-grid { align-items: start; }
.m-pc-stagger-yes .m-pc, .m-pc-trow-yes .m-pc { height: auto; }
.m-pc-trow-yes .m-pc__cat + .m-pc__year::before { content: " · "; white-space: pre; }
@media (hover: none) { .m-pc__hover { opacity: 1; background: linear-gradient(to top, rgba(15, 13, 11, .7), rgba(15, 13, 11, 0) 50%); } .m-pc__sum { display: none; } .m-pc__go { width: 44px; height: 44px; transform: none; } }
/* Staggered project cards = masonry (content.js sets each card's row span + the stagger offset) */
.m-pc-stagger-yes .m-grid.is-masonry { grid-auto-rows: 4px; row-gap: 0; align-items: start; }
.m-pc-stagger-yes .m-grid.is-masonry > * { margin-block-start: 0; }
