/* =========================================================================
   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, .main-menu .collapsing { 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 */
.rp-footer-logo { display: inline-block; color: #fff; }
.rp-footer-logo .rp-logo-mark { height: 92px; width: auto; }

/* 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; }
.rp-logo-mark.rp-draw.rp-draw-reset path { transition: none !important; }

/* ---- 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; }
.rp-logo-mark.rp-draw.is-inked.is-morph-reset path { stroke-dashoffset: 1; stroke-opacity: 1; transition: none !important; }
.rp-logo-mark.rp-draw.is-inked.is-morph path {
	stroke: var(--pen);
	stroke-width: 22;
	stroke-opacity: 1;
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .35, 1) calc(var(--i) * 45ms), fill-opacity .8s ease;
}

/* ---- 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; }
