/* =========================================================================
   Main menu bar: menu + action group (search button, collaboration button)
   and the full-screen search. Markup: main.tpl  Behaviour: js/site-ui.js
   ========================================================================= */

.mainmeu-area .rp-navbar {
	--nav-h: 66px;
	--red: #fb4848;
	--red-2: #c62f2f;
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 16px;
	direction: rtl;
	min-height: var(--nav-h);
}
.mainmeu-area .rp-navbar .main-menu {
	flex: 1 1 auto;
	min-width: 0;
	float: none !important;
	display: flex;
	align-items: center;
}
.mainmeu-area .rp-navbar .main-menu .navbar-collapse { flex: 1 1 auto; }
@media (min-width: 768px) {
	/* RTL: the menu starts from the right edge, actions sit on the left */
	.mainmeu-area .rp-navbar .main-menu .navigation { float: right; direction: ltr; }   /* original item order: home on the far right */
}

/* ---- action group */
.rp-nav-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	direction: rtl;
}
.rp-nav-search {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 17px;
	cursor: pointer;
	transition: background-color .3s, border-color .3s, transform .3s;
}
.rp-nav-search:hover,
.rp-nav-search[aria-expanded="true"] { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.28); }
.rp-nav-search:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.rp-nav-cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding: 0 20px;
	border-radius: 14px;
	background: linear-gradient(120deg, var(--red) 0%, var(--red-2) 100%);
	color: #fff !important;
	font-family: 'IranSansMedium', 'IranSans', sans-serif;
	font-size: 14.5px;
	white-space: nowrap;
	text-decoration: none !important;
	box-shadow: 0 10px 24px -10px rgba(251, 72, 72, 0.75);
	overflow: hidden;
	transition: transform .3s, box-shadow .3s;
}
.rp-nav-cta::after {            /* light sweep on hover */
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 40%;
	right: -60%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-20deg);
	transition: right .6s ease;
}
.rp-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(251, 72, 72, 0.9); }
.rp-nav-cta:hover::after { right: 120%; }
.rp-nav-cta i { font-size: 18px; }
.rp-nav-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* sticky bar (smart-menu.css): keep the actions, slightly smaller */
.mainmeu-area.stricky-fixed .rp-nav-search,
.mainmeu-area.stricky-fixed .rp-nav-cta { height: 42px; }
.mainmeu-area.stricky-fixed .rp-nav-search { width: 42px; }

/* ---- tablet: keep everything on one row - icon-only CTA, tighter menu */
@media (min-width: 768px) and (max-width: 991px) {
	.mainmeu-area .rp-navbar { gap: 8px; }
	.rp-nav-cta { padding: 0; width: 46px; justify-content: center; }
	.rp-nav-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.rp-nav-actions { gap: 8px; }
	.mainmeu-area .rp-navbar .main-menu .navigation li a { padding: 13px 9px; font-size: 12.5px; }
	.mainmeu-area .rp-navbar .main-menu .navigation > li.dropdown > a { padding-left: 25px; }
}

/* ---- mobile: one row - hamburger on the right, actions on the left */
@media (max-width: 767px) {
	.mainmeu-area .rp-navbar { --nav-h: 50px; display: block; min-height: 0; }
	.mainmeu-area .rp-navbar .main-menu { display: block; }
	.rp-nav-actions {
		position: absolute;
		top: 0;
		left: 0;
		height: 50px;
		gap: 8px;
		z-index: 13;
	}
	.rp-nav-search { width: 42px; height: 42px; border-radius: 12px; font-size: 16px; }
	.rp-nav-cta { height: 42px; padding: 0 14px; gap: 8px; border-radius: 12px; font-size: 13px; }
	.rp-nav-cta i { font-size: 16px; }
	/* the old Bootstrap collapse is replaced by the drawer (#rp-drawer) on phones */
	.mainmeu-area .main-menu .navbar-collapse { display: none !important; }
	/* breathing room above and below the buttons */
	.mainmeu-area { padding: 7px 0 11px; }
	/* fixed bar over dark sections: a soft edge so it doesn't merge with the page */
	.mainmeu-area.stricky.stricky-fixed { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.75); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
	/* the open menu sits under the bar, full width */
	.main-menu .collapse.in { margin-top: 8px; }
}
@media (max-width: 359px) {
	.rp-nav-cta span { display: none; }        /* very small phones: icon only */
	.rp-nav-cta { padding: 0 12px; }
}

/* =========================================================== search overlay */
.rp-search {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 14vh 20px 20px;
	direction: rtl;
}
.rp-search[hidden] { display: none; }
.rp-search-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 12, 14, 0.78);
	-webkit-backdrop-filter: blur(14px) saturate(130%);
	backdrop-filter: blur(14px) saturate(130%);
	animation: rp-s-fade .3s ease both;
}
.rp-search-panel {
	position: relative;
	width: min(760px, 100%);
	animation: rp-s-rise .45s cubic-bezier(.2, .8, .2, 1) both;
}
.rp-search.is-closing .rp-search-backdrop { animation: rp-s-fade .25s ease reverse both; }
.rp-search.is-closing .rp-search-panel { animation: rp-s-rise .25s ease reverse both; }
@keyframes rp-s-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rp-s-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.rp-search-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.65);
	font-size: 14px;
}
.rp-search-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #c62f2f, #fb4848); }
.rp-search-form {
	position: relative;
	display: flex;
	align-items: center;
	border-bottom: 2px solid rgba(255, 255, 255, 0.18);
	transition: border-color .3s;
}
.rp-search-form:focus-within { border-color: #fb4848; }
.rp-search-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 76px;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: #fff;
	font-family: 'IranSansMedium', 'IranSans', sans-serif;
	font-size: clamp(22px, 3.4vw, 36px);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.rp-search-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.rp-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.rp-search-submit {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(120deg, #fb4848, #c62f2f);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	box-shadow: 0 12px 26px -10px rgba(251, 72, 72, 0.8);
	transition: transform .3s;
}
.rp-search-submit:hover { transform: scale(1.06); }
.rp-search-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.rp-search-tags span { color: rgba(255, 255, 255, 0.5); font-size: 13px; margin-left: 4px; }
.rp-search-tags button {
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	cursor: pointer;
	transition: background-color .25s, border-color .25s;
}
.rp-search-tags button:hover { background: rgba(251, 72, 72, 0.2); border-color: rgba(251, 72, 72, 0.6); }
.rp-search-close {
	position: absolute;
	top: -60px;
	left: 0;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	cursor: pointer;
	transition: background-color .3s, transform .4s;
}
.rp-search-close:hover { background: rgba(251, 72, 72, 0.3); transform: rotate(90deg); }
.rp-search-close span,
.rp-search-close span::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2px;
	margin: -1px 0 0 -9px;
	border-radius: 2px;
	background: #fff;
	transform: rotate(45deg);
}
.rp-search-close span::before { content: ""; transform: rotate(90deg); top: 0; left: 0; margin: 0; }
html.rp-search-open { overflow: hidden; }

@media (max-width: 575px) {
	.rp-search { padding-top: 18vh; }
	.rp-search-input { height: 62px; }
	.rp-search-submit { width: 48px; height: 48px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.rp-search-backdrop, .rp-search-panel { animation: none !important; }
}

/* =========================================================================
   Site header (above the menu): logo + positioning line | phone · address · social
   Markup: modules/header.tpl, logo: modules/logo-mark.tpl (inline SVG)
   Every item is vertically centred on one axis; dividers keep an even rhythm.
   ========================================================================= */
.header-area.rp-header {
	padding: 0;
	background: #fff;
	border-bottom: 1px solid rgba(41, 41, 43, 0.07);
}
.rp-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 96px;
	direction: rtl;
}
.rp-header-inner::before, .rp-header-inner::after { display: none; }   /* bootstrap clearfix off inside flex */

/* ---- brand: logo | divider | positioning line */
.rp-brand {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 0 1 auto;
	min-width: 0;
	color: #fb4848;
	text-decoration: none !important;
}
.rp-logo-mark { display: block; height: 66px; width: auto; flex: 0 0 auto; transition: transform .4s cubic-bezier(.2,.8,.2,1), color .35s ease; }
.rp-brand:hover .rp-logo-mark { color: #29292B; transform: scale(1.04) rotate(-2deg); }
.rp-brand-text {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
	padding-right: 18px;
	border-right: 1px solid rgba(41, 41, 43, 0.12);
	line-height: 1.4;
}
h1.rp-brand-text { margin: 0; font-size: inherit; font-weight: normal; letter-spacing: 0; line-height: 1.4; }
.rp-brand-text strong { font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: 18px; color: #fb4848; white-space: nowrap; }
.rp-brand-text small { font-size: 12.5px; color: #77777d; white-space: nowrap; }
.rp-brand-text small i { font-style: normal; color: #fb4848; margin: 0 7px; font-size: 10px; vertical-align: 1px; }

/* ---- contact + social: same height, same structure, divided evenly */
.rp-header-info { display: flex; align-items: center; flex: 0 0 auto; }
.rp-header-info > * { padding: 0 22px; border-left: 1px solid rgba(41, 41, 43, 0.1); }
.rp-header-info > *:last-child { padding-left: 0; border-left: 0; }
.rp-hinfo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none !important;
}
.rp-hinfo-ico {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: rgba(251, 72, 72, 0.08);
	color: #fb4848;
	font-size: 18px;
	transition: background-color .3s, color .3s;
}
.rp-hinfo:hover .rp-hinfo-ico { background: #fb4848; color: #fff; }
.rp-hinfo-text { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.rp-hinfo-text small { font-size: 12px; line-height: 1.5; color: #8a8a90; }
.rp-hinfo-val { font-family: 'IranSansBold', sans-serif; font-size: 14px; line-height: 1.6; color: #29292B; white-space: nowrap; transition: color .25s; }
.rp-hinfo-val a { color: #29292B !important; text-decoration: none !important; transition: color .25s; unicode-bidi: isolate; }
.rp-hinfo-val a:hover, a.rp-hinfo:hover .rp-hinfo-val { color: #fb4848 !important; }
.rp-hinfo-val .phone-sep { margin: 0 8px; color: #c9c9cd; }

.rp-social { display: flex; align-items: center; gap: 6px; margin: 0; list-style: none; }
.rp-social li { margin: 0; }
.rp-social a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: #f4f4f6;
	color: #29292B !important;
	font-size: 15px;
	text-decoration: none !important;
	transition: background-color .25s, color .25s, transform .25s;
}
.rp-social a:hover { background: #fb4848; color: #fff !important; transform: translateY(-2px); }
.rp-social a i { line-height: 1; }

.rp-call { display: none; }

/* ---- live availability pill (middle of the header) */
.rp-live { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; opacity: 0; transition: opacity .4s; }
.rp-live.is-ready { opacity: 1; }
.rp-live-pill {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 9px 18px 9px 22px;
	border-radius: 999px;
	background: #f6f6f8;
	border: 1px solid rgba(41, 41, 43, 0.06);
	text-decoration: none !important;
	transition: background-color .3s, border-color .3s, transform .3s;
}
.rp-live-pill[hidden] { display: none; }
.rp-live-pill:hover { transform: translateY(-1px); }
.rp-live-text { display: flex; flex-direction: column; line-height: 1.45; }
.rp-live-text b { font-family: 'IranSansBold', sans-serif; font-weight: normal; font-size: 13.5px; color: #292929; }
.rp-live-text small { font-size: 11.5px; color: #85858b; white-space: nowrap; }
.rp-live-dot { position: relative; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; }
.rp-live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: rp-live-pulse 1.8s ease-out infinite; }
.rp-live--open .rp-live-dot { background: #22c55e; }
.rp-live--open:hover { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.25); }
.rp-live--closed .rp-live-dot { background: #f59e0b; }
.rp-live--closed .rp-live-dot::after { animation-duration: 3s; }
.rp-live--closed:hover { background: rgba(251, 72, 72, 0.06); border-color: rgba(251, 72, 72, 0.22); }
@keyframes rp-live-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rp-live-dot::after { animation: none; } }
/* only where there is room for it */
@media (max-width: 1199px) { .rp-live { display: none; } }

/* footer logo: same SVG in white */



/* the old empty spacer + negative margin pair left a 66px gap on tablet/mobile */
.breadcrumb-area:empty { display: none; }
.mainmeu-area { margin-top: 0; }

/* laptop (992-1199) */
@media (max-width: 1199px) {
	.rp-header-info > * { padding: 0 18px; }
}
/* tablet */
@media (max-width: 991px) {
	.rp-header-inner { min-height: 84px; gap: 18px; }
	.rp-logo-mark { height: 56px; }
	.rp-brand { gap: 14px; }
	.rp-brand-text { padding-right: 14px; }
	.rp-brand-text strong { font-size: 15.5px; }
	.rp-brand-more { display: none; }
	.rp-hinfo-text small { display: none; }
	.rp-hinfo--phone .phone-sep, .rp-hinfo--phone .phone-number + .phone-sep + .phone-number { display: none; }
	.rp-header-info > * { padding: 0 14px; }
}
/* mobile: logo + one-tap call button */
@media (max-width: 767px) {
	.rp-header-inner { min-height: 68px; gap: 12px; }
	.rp-header-info { display: none; }
	.rp-logo-mark { height: 44px; }
	.rp-brand { gap: 11px; }
	.rp-brand-text { padding-right: 11px; gap: 2px; }
	.rp-brand-text strong { font-size: 14px; }
	.rp-brand-text small { font-size: 11px; }
	.rp-call {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		gap: 7px;
		height: 40px;
		padding: 0 14px;
		border-radius: 12px;
		background: #fb4848;
		color: #fff !important;
		font-family: 'IranSansMedium', 'IranSans', sans-serif;
		font-size: 13px;
		text-decoration: none !important;
		box-shadow: 0 6px 16px -6px rgba(251, 72, 72, 0.7);
	}
	.rp-call i { font-size: 16px; animation: rp-ring 2.6s ease-in-out infinite; }
}
@media (max-width: 359px) {
	.rp-brand-text small { display: none; }
	.rp-call span { display: none; }
	.rp-call { width: 40px; padding: 0; justify-content: center; }
}
@keyframes rp-ring {
	0%, 70%, 100% { transform: rotate(0); }
	74% { transform: rotate(-14deg); } 78% { transform: rotate(12deg); }
	82% { transform: rotate(-10deg); } 86% { transform: rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) { .rp-call i, .rp-logo-mark { animation: none; transition: none; } }

/* =========================================================================
   Mobile menu: animated menu button + slide-in drawer (from the right, RTL)
   Markup: main.tpl (.rp-burger, #rp-drawer)  Behaviour: js/site-ui.js (initDrawer)
   ========================================================================= */
.main-menu .navbar-header .navbar-toggle.rp-burger {
	position: relative;
	display: none;
	width: 46px;
	height: 42px;
	margin: 4px 0 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	transition: background-color .25s, border-color .25s;
}
.main-menu .navbar-header .navbar-toggle.rp-burger:hover,
.main-menu .navbar-header .navbar-toggle.rp-burger:focus-visible { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.16); outline: none; }
.rp-burger-lines { position: absolute; inset: 0; margin: auto; width: 20px; height: 14px; }
.rp-burger-lines i {
	position: absolute;
	right: 0;
	height: 2px;
	border-radius: 2px;
	background: #fff;
	transition: transform .35s cubic-bezier(.65,0,.35,1), width .35s cubic-bezier(.65,0,.35,1), opacity .2s, top .35s cubic-bezier(.65,0,.35,1);
}
.rp-burger-lines i:nth-child(1) { top: 0; width: 20px; }
.rp-burger-lines i:nth-child(2) { top: 6px; width: 14px; background: #fb4848; }
.rp-burger-lines i:nth-child(3) { top: 12px; width: 9px; }
.rp-burger:hover .rp-burger-lines i { width: 20px; }
.rp-burger.is-active .rp-burger-lines i:nth-child(1) { top: 6px; width: 20px; transform: rotate(45deg); }
.rp-burger.is-active .rp-burger-lines i:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.rp-burger.is-active .rp-burger-lines i:nth-child(3) { top: 6px; width: 20px; transform: rotate(-45deg); }
@media (max-width: 767px) {
	.main-menu .navbar-header .navbar-toggle.rp-burger { display: block; }
}

/* ---- drawer */
.rp-drawer[hidden] { display: none; }
.rp-drawer { position: fixed; inset: 0; z-index: 2100; direction: rtl; }
html.rp-drawer-open, html.rp-drawer-open body { overflow: hidden; }
.rp-drawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 15, 17, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .38s ease;
}
.rp-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(88vw, 400px);
	display: flex;
	flex-direction: column;
	background: #29292B;
	background-image: radial-gradient(120% 60% at 100% 0%, rgba(251, 72, 72, 0.16), transparent 60%);
	box-shadow: -24px 0 60px -20px rgba(0, 0, 0, 0.6);
	transform: translateX(104%);
	transition: transform .42s cubic-bezier(.22,1,.36,1);
	overflow: hidden;
}
.rp-drawer.is-open .rp-drawer-backdrop { opacity: 1; }
.rp-drawer.is-open .rp-drawer-panel { transform: translateX(0); }

.rp-drawer-head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.rp-drawer-brand { color: #fff; display: block; }
.rp-drawer-brand .rp-logo-mark { height: 46px; width: auto; transform: none; }
.rp-drawer-close {
	position: relative;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	transition: background-color .25s, transform .35s cubic-bezier(.22,1,.36,1);
}
.rp-drawer-close:hover { background: #fb4848; transform: rotate(90deg); }
.rp-drawer-close i::before, .rp-drawer-close i::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2px;
	margin: -1px 0 0 -9px;
	border-radius: 2px;
	background: #fff;
	transform: rotate(45deg);
}
.rp-drawer-close i::after { transform: rotate(-45deg); }

/* ---- links */
.rp-drawer-nav { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 10px 0 16px; }
.rp-dnav { list-style: none; margin: 0; padding: 0 20px; }
.rp-dnav-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	opacity: 0;
	transform: translateX(28px);
	transition: opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1);
}
.rp-drawer.is-open .rp-dnav-item { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i, 0) * .045s); }
.rp-dnav-row { display: flex; align-items: center; gap: 8px; }
.rp-dnav-link {
	flex: 1 1 auto;
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 15px 0;
	color: #fff !important;
	text-decoration: none !important;
}
.rp-dnav-num { font-size: 11px; color: rgba(255, 255, 255, 0.35); letter-spacing: .5px; min-width: 16px; transition: color .25s; }
.rp-dnav-label { font-family: 'IranSansBold', sans-serif; font-size: 18px; line-height: 1.4; transition: color .25s, transform .3s cubic-bezier(.22,1,.36,1); }
.rp-dnav-link:hover .rp-dnav-label, .rp-dnav-link:focus-visible .rp-dnav-label { color: #fb4848; transform: translateX(-4px); }
.rp-dnav-item.is-current .rp-dnav-label { color: #fb4848; }
.rp-dnav-item.is-current .rp-dnav-num { color: #fb4848; }
.rp-dnav-toggle {
	position: relative;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.06);
	transition: background-color .25s;
}
.rp-dnav-toggle i::before, .rp-dnav-toggle i::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	margin: -1px 0 0 -6px;
	border-radius: 2px;
	background: #fff;
	transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.rp-dnav-toggle i::after { transform: rotate(90deg); }
.rp-dnav-item.is-open .rp-dnav-toggle { background: #fb4848; }
.rp-dnav-item.is-open .rp-dnav-toggle i::after { transform: rotate(0deg); }

/* submenu: smooth height with the grid 0fr -> 1fr trick */
.rp-dsub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.22,1,.36,1); }
.rp-dsub > ul { min-height: 0; overflow: hidden; list-style: none; margin: 0; padding: 0 30px 0 0; }
.rp-dnav-item.is-open .rp-dsub { grid-template-rows: 1fr; }
.rp-dnav-item.is-open .rp-dsub > ul { padding-bottom: 12px; }
.rp-dsub a {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 0;
	color: rgba(255, 255, 255, 0.72) !important;
	font-size: 14px;
	text-decoration: none !important;
	transition: color .25s;
}
.rp-dsub a:hover { color: #fff !important; }
.rp-dsub-ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(251, 72, 72, 0.12); color: #fb4848; font-size: 14px; flex: 0 0 auto; }
.rp-dsub-dot { width: 6px; height: 6px; border-radius: 50%; background: #fb4848; flex: 0 0 auto; margin: 0 4px; }

/* ---- footer: CTA, call, social, language */
.rp-drawer-foot {
	flex: 0 0 auto;
	display: grid;
	gap: 12px;
	padding: 16px 20px calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	background: rgba(0, 0, 0, 0.14);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1);
}
.rp-drawer.is-open .rp-drawer-foot { opacity: 1; transform: none; transition-delay: .3s; }
.rp-drawer-cta {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 18px;
	border-radius: 14px;
	background: #fb4848;
	color: #fff !important;
	font-family: 'IranSansMedium', 'IranSans', sans-serif;
	font-size: 15px;
	text-decoration: none !important;
	box-shadow: 0 12px 28px -12px rgba(251, 72, 72, 0.8);
	transition: background-color .25s;
}
.rp-drawer-cta:hover { background: #e53d3d; }
.rp-drawer-cta i { font-size: 18px; }
.rp-drawer-cta-arrow { margin-right: auto; font-size: 14px !important; transition: transform .3s; }
.rp-drawer-cta:hover .rp-drawer-cta-arrow { transform: translateX(-4px); }
.rp-drawer-call { display: flex; align-items: center; gap: 12px; color: #fff !important; text-decoration: none !important; }
.rp-drawer-call-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.07); color: #fb4848; font-size: 18px; }
.rp-drawer-call small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.5); }
.rp-drawer-call b { font-family: 'IranSansBold', sans-serif; font-weight: normal; font-size: 15px; }
.rp-drawer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rp-drawer-social { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rp-drawer-social a, .rp-drawer-lang {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff !important;
	font-size: 15px;
	text-decoration: none !important;
	transition: background-color .25s;
}
.rp-drawer-social a:hover, .rp-drawer-lang:hover { background: #fb4848; }
.rp-drawer-lang { width: auto; padding: 0 12px; font-family: 'IranSansBold', 'IranSans', sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; }

@media (prefers-reduced-motion: reduce) {
	.rp-drawer-panel, .rp-drawer-backdrop, .rp-dnav-item, .rp-drawer-foot, .rp-dsub, .rp-burger-lines i { transition: none !important; }
}

/* ---- logo draw-on (header + footer logo). js adds pathLength="1" and --i to the logo paths and toggles:
   .rp-draw (ready) -> .is-drawing (a pen strokes each part in turn) -> .is-inked (fill in the logo colour).
   .rp-draw-reset jumps back to the empty state without animating, so the effect can replay. */
.rp-logo-mark.rp-draw path { fill-opacity: 0; stroke: currentColor; stroke-width: 12; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; stroke-linejoin: round; transition: fill-opacity .8s ease; }
.rp-logo-mark.rp-draw.is-drawing path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.65, 0, .35, 1) calc(var(--i) * 70ms), fill-opacity .8s ease; }
.rp-logo-mark.rp-draw.is-inked path { fill-opacity: 1; stroke-opacity: 0; transition: fill-opacity .8s ease, stroke-opacity 1s ease .3s; }


/* ---- header logo hover morph: no emptying. The filled logo keeps its shape; a pen in the target colour runs
   over every stroke while the fill eases to that colour (red -> #29292B on hover, back to red on leave). */
.rp-brand .rp-logo-mark.rp-draw { --pen: #fb4848; transition: transform .4s cubic-bezier(.2,.8,.2,1), color 1.2s ease .25s; }
.rp-brand:hover .rp-logo-mark.rp-draw { --pen: #29292B; }
.rp-logo-mark.rp-draw.is-inked path { stroke-dashoffset: 0; }



/* ---- header logo = idea 3 (layers built in modules/header.tpl, timing in js/site-ui.js)
   load: pen of light draws each stroke (white -> red, glowing) -> red ink fills -> pen settles to a faint rim.
   hover: a dark fill wipes across from the right with a light sheen; leaving wipes it back to red. Never blank. */
.rp-brand .rp-logo-mark.rp-hl { overflow: visible; }
.rp-hl .rp-hl-pen { stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.rp-hl .rp-hl-pen path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 12px rgba(251, 72, 72, .85)); }
.rp-hl.is-drawn .rp-hl-pen path { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.65, 0, .35, 1) calc(var(--i) * 90ms), opacity .2s linear calc(var(--i) * 90ms); }
.rp-hl .rp-hl-fill { opacity: 0; transition: opacity 1s ease .2s; }
.rp-hl.is-filled .rp-hl-fill { opacity: 1; }
.rp-hl.is-filled .rp-hl-pen path { opacity: 0; transition: opacity 1.2s ease; }
.rp-hl .rp-hl-dark { transform-box: fill-box; transform-origin: 100% 50%; transform: scaleX(0); transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.rp-brand:hover .rp-hl.is-filled .rp-hl-dark { transform: scaleX(1); }
.rp-hl .rp-hl-sheen { transform: translateX(0) skewX(-20deg); }
.rp-brand:hover .rp-hl.is-filled .rp-hl-sheen { animation: rp-hl-sheen 1.1s cubic-bezier(.65, 0, .35, 1); }
@keyframes rp-hl-sheen { from { transform: translateX(0) skewX(-20deg); } to { transform: translateX(1300px) skewX(-20deg); } }
.rp-brand:hover .rp-logo-mark.rp-hl { color: inherit; }

/* =========================================================================
   Language switch (menu + mobile drawer): a capsule with a round flag and the language code.
   Grey at rest; on hover the flag turns colour and "waves" (a small turn + a light sweep), the capsule opens
   and the language's own name slides in, with a thin red border. Flags are inline SVG (no outside request).
   ========================================================================= */
.rp-lang-flag {
	position: relative; flex: 0 0 auto; display: inline-block; width: 22px; height: 22px; border-radius: 50%; overflow: hidden;
	background: #ddd center / cover no-repeat; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .28), 0 4px 10px -4px rgba(0, 0, 0, .6);
	filter: grayscale(1) brightness(1.08) contrast(.9);
	transition: filter .45s ease, box-shadow .35s ease;
}
.rp-lang-flag--gb { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30' preserveAspectRatio='xMidYMid slice'%3E%3CclipPath id='t'%3E%3Cpath d='M30,15h30v15zv15h-30zh-30v-15zv-15h30z'/%3E%3C/clipPath%3E%3Cpath d='M0,0v30h60v-30z' fill='%23012169'/%3E%3Cpath d='M0,0L60,30M60,0L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0L60,30M60,0L0,30' clip-path='url%28%23t%29' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0v30M0,15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0v30M0,15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E"); }
.rp-lang-flag--ir { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M0 0h36v12H0z' fill='%23239F40'/%3E%3Cpath d='M0 12h36v12H0z' fill='%23fff'/%3E%3Cpath d='M0 24h36v12H0z' fill='%23DA0000'/%3E%3Cpath d='M0 11.2h36M0 24.8h36' stroke='%23fff' stroke-width='.9' stroke-dasharray='1.2 1.2'/%3E%3Cg fill='%23DA0000'%3E%3Cpath d='M18 13.6c-1.7 1.3-2.6 2.9-2.6 4.5 0 2 1.2 3.4 2.6 4.3 1.4-.9 2.6-2.3 2.6-4.3 0-1.6-.9-3.2-2.6-4.5zm0 1.6c.9.9 1.3 1.9 1.3 2.9 0 1.2-.6 2.2-1.3 2.9-.7-.7-1.3-1.7-1.3-2.9 0-1 .4-2 1.3-2.9z'/%3E%3Cpath d='M17.6 14.2h.8v8.6h-.8z'/%3E%3C/g%3E%3C/svg%3E"); }
.rp-lang-flag::after {   /* light sweep */
	content: ""; position: absolute; inset: -20%; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%);
	transform: translateX(-120%); opacity: 0;
}
.main-menu .navigation > li.rp-lang-li > a.rp-lang {
	display: inline-flex; align-items: center; gap: 8px; height: 38px; margin: 0 6px; padding: 0 12px 0 7px;
	position: relative; z-index: 1; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: #323232;   /* solid, like the other menu links: the hover line shows above and below, not through it */
	color: rgba(255, 255, 255, .78) !important; font-family: 'IranSansBold', 'IranSans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em;
	line-height: 1; text-transform: none; vertical-align: middle;
	transition: border-color .35s, background-color .35s, color .3s, box-shadow .35s;
}
.main-menu .navigation > li.rp-lang-li > a.rp-lang::before, .main-menu .navigation > li.rp-lang-li > a.rp-lang::after { display: none; }
.main-menu .navigation > li.rp-lang-li { position: relative; }
.rp-lang-name {   /* the language's own name slides down as a small label under the capsule (the menu width never changes) */
	position: absolute; top: calc(100% - 2px); left: 50%; z-index: 5; padding: 6px 12px; border-radius: 999px;
	background: #fb4848; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0; white-space: nowrap;
	box-shadow: 0 10px 22px -10px rgba(251, 72, 72, .8); pointer-events: none;
	opacity: 0; transform: translate(-50%, -6px) scale(.92);
	transition: opacity .3s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.rp-lang-name::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; background: inherit; border-radius: 2px; transform: translateX(-50%) rotate(45deg); }
a.rp-lang:hover, a.rp-lang:focus-visible { border-color: #fb4848 !important; background: #3e2c2c !important; color: #fff !important; box-shadow: 0 10px 22px -12px rgba(251, 72, 72, .7); }
a.rp-lang:hover .rp-lang-flag, a.rp-lang:focus-visible .rp-lang-flag { filter: none; box-shadow: 0 0 0 1.5px #fff, 0 6px 14px -4px rgba(0, 0, 0, .6); animation: rpLangWave .9s cubic-bezier(.22, 1, .36, 1) both; }
a.rp-lang:hover .rp-lang-flag::after, a.rp-lang:focus-visible .rp-lang-flag::after { animation: rpLangShine .9s ease both .1s; }
a.rp-lang:hover .rp-lang-name, a.rp-lang:focus-visible .rp-lang-name { opacity: 1; transform: translate(-50%, 4px) scale(1); }
a.rp-lang:focus-visible { outline: 2px solid #fb4848; outline-offset: 3px; }
@keyframes rpLangWave {
	0% { transform: rotate(0) scale(1); }
	30% { transform: rotate(calc(-14deg * -1)) scale(1.12); }
	55% { transform: rotate(calc(8deg * -1)) scale(1.08); }
	78% { transform: rotate(calc(-3deg * -1)) scale(1.1); }
	100% { transform: rotate(0) scale(1.08); }
}
@keyframes rpLangShine { 0% { transform: translateX(calc(-120% * -1)); opacity: 1; } 100% { transform: translateX(calc(120% * -1)); opacity: 0; } }

/* mobile drawer: same flag + code */
.rp-drawer-lang { display: inline-flex !important; align-items: center; gap: 7px; padding: 0 12px 0 6px !important; }
.rp-drawer-lang .rp-lang-flag { width: 22px; height: 22px; }
.rp-drawer-lang:hover .rp-lang-flag, .rp-drawer-lang:focus-visible .rp-lang-flag { filter: none; }

@media (prefers-reduced-motion: reduce) {
	.rp-lang-name, .rp-lang-flag { transition: opacity .2s; }
	a.rp-lang:hover .rp-lang-flag, a.rp-lang:hover .rp-lang-flag::after { animation: none; }
}

/* =========================================================================
   Home button (first menu item): a small rounded square like the language / theme buttons.
   At the top of the page it shows a home icon; once the menu sticks (logo row scrolled away) the icon turns
   into the 5th Colour logo mark, so the brand stays in view. Grey at rest, colour on hover;
   on the homepage a small red dot marks "you are here". The menu's hover line shows above and below it.
   ========================================================================= */
.main-menu .navigation > li.rp-home-li { position: relative; display: inline-flex; align-items: center; height: 66px; padding: 0; vertical-align: top; }   /* same box as the other items, so its hover line has the same length */
.main-menu .navigation > li.rp-home-li::before { top: 0; bottom: auto; height: 66px; }
.main-menu .navigation > li.rp-home-li > a.rp-home {
	position: relative; z-index: 1; display: inline-grid; place-items: center; width: 40px; height: 40px; margin: 0 6px; padding: 0;
	border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: #323232; color: rgba(255, 255, 255, .6) !important;
	vertical-align: middle; line-height: 1;
	transition: border-color .35s, background-color .35s, color .3s, box-shadow .35s, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.main-menu .navigation > li.rp-home-li > a.rp-home::before, .main-menu .navigation > li.rp-home-li > a.rp-home::after { display: none; }
.rp-home-ico, .rp-home-logo { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity .35s ease, transform .55s cubic-bezier(.22, 1, .36, 1); }
.rp-home-ico { font-size: 16px; }
.rp-home-logo { opacity: 0; transform: scale(.4) rotate(-40deg); }
.rp-home-logo .rp-logo-mark { display: block; width: 24px; height: auto; }
/* menu stuck to the top (logo row gone): the icon becomes the logo mark */
.mainmeu-area.stricky-fixed .rp-home-ico { opacity: 0; transform: scale(.4) rotate(40deg); }
.mainmeu-area.stricky-fixed .rp-home-logo { opacity: 1; transform: none; }
/* hover / focus: colour, a small bounce, red border */
a.rp-home:hover, a.rp-home:focus-visible { border-color: #fb4848 !important; background: #3e2c2c !important; color: #fff !important; box-shadow: 0 10px 22px -12px rgba(251, 72, 72, .7); }
a.rp-home:hover .rp-home-ico { animation: rpHomeHop .6s cubic-bezier(.22, 1, .36, 1) both; }
a.rp-home:hover .rp-home-logo { color: #fb4848; }
.mainmeu-area.stricky-fixed a.rp-home:hover .rp-home-logo { animation: rpHomeHop .6s cubic-bezier(.22, 1, .36, 1) both; }
a.rp-home:focus-visible { outline: 2px solid #fb4848; outline-offset: 3px; }
@keyframes rpHomeHop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-4px) scale(1.12); } 65% { transform: translateY(1px) scale(.96); } 100% { transform: translateY(0) scale(1); } }
/* homepage: "you are here" dot */
li.rp-home-li.is-here > a.rp-home { color: #fff !important; border-color: rgba(255, 255, 255, .22); }
li.rp-home-li.is-here > a.rp-home::after {
	display: block !important; content: ""; position: absolute; top: -3px; inset-inline-end: -3px; width: 9px; height: 9px; border-radius: 50%;
	background: #fb4848; box-shadow: 0 0 0 2px #292929, 0 0 10px rgba(251, 72, 72, .8);
}
@media (prefers-reduced-motion: reduce) {
	.rp-home-ico, .rp-home-logo { transition: opacity .2s; }
	a.rp-home:hover .rp-home-ico, .mainmeu-area.stricky-fixed a.rp-home:hover .rp-home-logo { animation: none; }
}

/* the language switch has no menu hover line (it is a button, not a text link) */
.main-menu .navigation > li.rp-lang-li::before { display: none !important; }

/* desktop dropdowns (Services, Pricing): icon first, every item on one line, the panel as wide as its longest item */
@media (min-width: 992px) {
	.main-menu .navigation > li > ul { width: 340px; }
	.main-menu .navigation > li > ul > li > a { display: flex; align-items: center; gap: 12px; white-space: nowrap; direction: rtl; text-align: right; }   /* the menu bar itself is LTR (item order); items read RTL */
	.main-menu .navigation > li > ul > li > a > .icofont { flex: 0 0 22px; display: inline-grid; place-items: center; font-size: 17px; line-height: 1; }
}

/* home item: the spinning red hover line looks exactly like the other items' line. On the other items the link's
   own box (bar colour, 46px tall, 10px from the top, wider than the line) hides the middle of the line, so only two
   short ends show while it turns. The home button is a small 40px box, so this band (same colour, height and place)
   does that job for it, between the line and the button. */
@media (min-width: 992px) {
	.main-menu .navigation > li.rp-home-li::after {
		content: ""; position: absolute; z-index: 0; top: 10px; left: 50%; width: 70px; height: 46px; margin-left: -35px;
		background: #292929; pointer-events: none;
	}
}

/* =========================================================================
   Menu at in-between widths (it used to wrap onto two rows, 132px tall, from 768 to 1199px):
   - portrait tablets (768-991): the phone bar - menu button + slide-in drawer, actions on one row;
   - small laptops (992-1199): one row - icon-only collaboration button, slightly tighter items.
   ========================================================================= */
@media (min-width: 768px) and (max-width: 991px) {
	.mainmeu-area .rp-navbar { --nav-h: 56px; display: block; min-height: 0; }
	.mainmeu-area .rp-navbar .main-menu { display: block; }
	.mainmeu-area .main-menu .navbar-collapse { display: none !important; }
	.mainmeu-area .main-menu .navbar-header { float: right; margin: 0; }
	.main-menu .navbar-header .navbar-toggle.rp-burger { display: block; }
	.rp-nav-actions { position: absolute; top: 0; left: 0; height: 50px; gap: 8px; z-index: 13; }
	.rp-nav-cta { width: auto; padding: 0 16px; justify-content: flex-start; }
	.rp-nav-cta span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
	.mainmeu-area { padding: 7px 0 11px; }
	.mainmeu-area.stricky.stricky-fixed { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.75); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
}
@media (min-width: 992px) and (max-width: 1199px) {
	.mainmeu-area .rp-navbar { gap: 10px; }
	.rp-nav-actions { gap: 8px; }
	.rp-nav-cta { width: 46px; padding: 0; justify-content: center; }
	.mainmeu-area.stricky-fixed .rp-nav-cta { width: 42px; }
	.rp-nav-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.mainmeu-area .rp-navbar .main-menu .navigation li a { padding-left: 12px; padding-right: 12px; font-size: 13px; }
	.mainmeu-area .rp-navbar .main-menu .navigation > li.dropdown > a { padding-left: 24px; }
}
