/* =========================================================================
   Site footer + inner-page CTA band
   Markup: modules/footer.tpl   Behaviour: js/footer.js, initLive() in js/site-ui.js
   ========================================================================= */
.rp-ft, .rp-ftcta {
	--ft-red: #fb4848;
	--ft-bg: #121214;
	--ft-line: rgba(255, 255, 255, .09);
	--ft-text: rgba(255, 255, 255, .62);
	--ft-ease: cubic-bezier(.22, 1, .36, 1);
	direction: rtl;
	font-family: 'IranSans', sans-serif;
}
.rp-ft button, .rp-ftcta button { font-family: inherit; }

/* ---- inner pages: big call to action right above the footer */
.rp-ftcta { position: relative; z-index: 1; padding: 0 0 0; background: linear-gradient(180deg, transparent 50%, var(--ft-bg) 50%); }
.rp-ftcta-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 44px 48px;
	border-radius: 30px;
	background:
		radial-gradient(600px 300px at 0% 100%, rgba(255, 255, 255, .16), transparent 70%),
		var(--ft-red);
	color: #fff;
	box-shadow: 0 30px 60px -30px rgba(251, 72, 72, .6);
}
.rp-ftcta-eyebrow { margin: 0 0 6px; font-family: 'IranSansMedium', 'IranSans', sans-serif; font-size: 13px; color: rgba(255, 255, 255, .8); }
.rp-ftcta h2 { margin: 0; font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.45; color: #fff; text-wrap: balance; }
.rp-ftcta h2 span { color: #29292B; }
.rp-ftcta-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 10px; }
.rp-ftcta-btn, .rp-ftcta-tel {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 24px;
	border-radius: 14px;
	font-family: 'IranSansMedium', 'IranSans', sans-serif;
	font-size: 15px;
	text-decoration: none !important;
	transition: background-color .25s, color .25s, transform .25s;
}
.rp-ftcta-btn { background: #29292B; color: #fff !important; }
.rp-ftcta-btn i { transition: transform .3s var(--ft-ease); }
.rp-ftcta-btn:hover { background: #000; transform: translateY(-2px); }
.rp-ftcta-btn:hover i { transform: translateX(-4px); }
.rp-ftcta-tel { border: 1px solid rgba(255, 255, 255, .5); color: #fff !important; }
.rp-ftcta-tel:hover { background: #fff; color: var(--ft-red) !important; }

/* ---- footer */
.rp-ft {
	position: relative;
	padding: 72px 0 0;
	background:
		radial-gradient(900px 380px at 100% 0%, rgba(251, 72, 72, .08), transparent 70%),
		var(--ft-bg);
	color: var(--ft-text);
	overflow: hidden;
}
.rp-ftcta + .rp-ft { padding-top: 64px; }
.rp-ft a { text-decoration: none !important; }
.rp-ft a:focus-visible, .rp-ft button:focus-visible { outline: 2px solid var(--ft-red); outline-offset: 3px; border-radius: 6px; }

.rp-ft-top {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, .85fr)) minmax(0, 1.25fr);
	gap: 40px;
	padding-bottom: 48px;
}

/* brand column */
.rp-ft-logo { display: inline-flex; align-items: center; gap: 14px; color: #fff !important; }
.rp-ft-logo .rp-logo-mark { width: 58px; height: auto; color: var(--ft-red); transition: color .3s; }
.rp-ft-logo:hover .rp-logo-mark { color: #fff; }
.rp-ft-logo span { display: flex; flex-direction: column; line-height: 1.5; }
.rp-ft-logo strong { font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; font-size: 17px; color: #fff; }
.rp-ft-logo small { font-family: 'IranSansMedium', 'IranSans', sans-serif; font-size: 12px; color: var(--ft-red); }
.rp-ft-brand > p { margin: 18px 0 20px; font-size: 13.5px; line-height: 2; color: var(--ft-text); }
.rp-ft-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.rp-ft-social li { margin: 0; }
.rp-ft-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--ft-line);
	border-radius: 12px;
	color: rgba(255, 255, 255, .75) !important;
	font-size: 15px;
	transition: background-color .25s, border-color .25s, color .25s, transform .25s;
}
.rp-ft-social a:hover { background: var(--ft-red); border-color: var(--ft-red); color: #fff !important; transform: translateY(-2px); }

/* studio film: compact card (thumbnail with a muted loop + title); click opens the lightbox */
.rp-ft-reel {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 340px;
	padding: 7px 7px 7px 12px;
	border: 1px solid var(--ft-line);
	border-radius: 18px;
	background: rgba(255, 255, 255, .03);
	color: #fff;
	text-align: right;
	cursor: pointer;
	transition: border-color .3s, background-color .3s, transform .35s var(--ft-ease);
}
.rp-ft-reel:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); transform: translateY(-3px); }
.rp-ft-reel-media { position: relative; flex: 0 0 104px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b0b14; }
.rp-ft-reel-media img, .rp-ft-reel-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rp-ft-reel-media video { opacity: 0; transition: opacity .6s; }
.rp-ft-reel.is-live .rp-ft-reel-media video { opacity: 1; }
.rp-ft-reel-play {
	position: absolute;
	left: 8px;
	bottom: 8px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ft-red);
	color: #fff;
	font-size: 10px;
	box-shadow: 0 0 0 4px rgba(251, 72, 72, .25);
	transition: transform .35s var(--ft-ease);
}
.rp-ft-reel:hover .rp-ft-reel-play { transform: scale(1.12); }
.rp-ft-reel-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.6; white-space: nowrap; }
.rp-ft-reel-text b { font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; font-size: 13.5px; }
.rp-ft-reel-text small { font-family: 'IranSansMedium', 'IranSans', sans-serif; font-size: 11.5px; color: rgba(255, 255, 255, .6); }

/* film lightbox */
.rp-film-dialog { width: min(1000px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 18px; background: #000; overflow: visible; }
.rp-film-dialog::backdrop { background: rgba(10, 10, 12, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rp-film-dialog[open] { animation: rp-film-pop .35s var(--ft-ease); }
@keyframes rp-film-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.rp-film-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; }
.rp-film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rp-film-close { position: absolute; top: -52px; left: 0; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 16px; transition: background-color .25s; }
.rp-film-close:hover { background: var(--ft-red); border-color: var(--ft-red); }

/* link columns */
.rp-ft-col h3 {
	margin: 6px 0 18px;
	font-family: 'IranSansBold', 'IranSans', sans-serif;
	font-weight: normal;
	font-size: 15px;
	color: #fff;
}
.rp-ft-col ul { margin: 0; padding: 0; list-style: none; }
.rp-ft-col li { margin: 0 0 11px; }
.rp-ft-col ul a {
	position: relative;
	display: inline-block;
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--ft-text) !important;
	transition: color .25s, transform .3s var(--ft-ease);
}
.rp-ft-col ul a::before { /* small red dash slides in on hover */
	content: "";
	position: absolute;
	top: 50%;
	right: -14px;
	width: 8px;
	height: 2px;
	border-radius: 2px;
	background: var(--ft-red);
	opacity: 0;
	transform: translateX(6px);
	transition: opacity .25s, transform .3s var(--ft-ease);
}
.rp-ft-col ul a:hover { color: #fff !important; transform: translateX(-6px); }
.rp-ft-col ul a:hover::before { opacity: 1; transform: none; }

/* contact column */
.rp-ft-contact address { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; font-style: normal; }
.rp-ft-big { font-family: 'IranSansBlack', 'IranSans', sans-serif; font-size: 24px; line-height: 1.4; color: #fff !important; transition: color .25s; }
.rp-ft-big:hover { color: var(--ft-red) !important; }
.rp-ft-phones { display: flex; flex-wrap: wrap; gap: 4px 0; }
.rp-ft-phones a { font-size: 13.5px; color: var(--ft-text) !important; unicode-bidi: isolate; transition: color .25s; }
.rp-ft-phones a + a { margin-right: 10px; padding-right: 10px; border-right: 1px solid var(--ft-line); }
.rp-ft-phones a:hover, .rp-ft-mail:hover { color: #fff !important; }
.rp-ft-mail { font-size: 13.5px; color: var(--ft-text) !important; transition: color .25s; }
.rp-ft-addr { display: block; margin-top: 8px; font-size: 13px; line-height: 1.85; color: var(--ft-text); }
.rp-ft-addr b { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; font-family: 'IranSansMedium', 'IranSans', sans-serif; font-weight: normal; font-size: 12.5px; color: var(--ft-red); text-align: right; }
.rp-ft-addr b i { font-size: 13px; }
.rp-ft-addr b .fa-map-pins { font-size: 17px; } /* two pins on a dashed route: the far office */
.rp-ft-addr + .rp-ft-addr { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--ft-line); }
.rp-ft-addr[dir="ltr"] { text-align: right; }
.rp-ft-addr--mail .rp-ft-mail { display: inline-block; font-size: 13.5px; }
.rp-ft-hours { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ft-line); font-size: 12.5px; color: var(--ft-text); }
.rp-ft .rp-live--mini { display: block; margin-top: 8px; opacity: 1; }
.rp-ft .rp-live--mini .rp-live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; }
.rp-ft .rp-live--mini .rp-live-pill[hidden] { display: none; }
.rp-ft .rp-live--mini .rp-live-text b { font-family: 'IranSansMedium', 'IranSans', sans-serif; font-size: 12.5px; color: #fff; }

/* bottom bar */
.rp-ft-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 0;
	border-top: 1px solid var(--ft-line);
}
.rp-ft-copy { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.rp-ft-copy a { color: rgba(255, 255, 255, .75) !important; transition: color .25s; }
.rp-ft-copy a:hover { color: #fff !important; }
.rp-ft-top-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 8px 16px;
	border: 1px solid var(--ft-line);
	border-radius: 999px;
	background: none;
	color: rgba(255, 255, 255, .75);
	font-family: 'IranSansMedium', 'IranSans', sans-serif;
	font-size: 12.5px;
	transition: border-color .25s, color .25s;
}
.rp-ft-top-btn i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background-color .25s, transform .35s var(--ft-ease); }
.rp-ft-top-btn:hover { border-color: rgba(255, 255, 255, .3); color: #fff; }
.rp-ft-top-btn:hover i { background: var(--ft-red); transform: translateY(-3px); }

/* ---- certificate badges: original logos on small white cards; grey at rest, each in its own colours on hover */
.rp-certs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rp-cert {
	display: grid;
	place-items: center;
	height: 46px;
	margin: 0;
	padding: 6px 14px;
	border-radius: 12px;
	background: #fff;
	opacity: .5;
	transition: opacity .3s, transform .35s var(--ft-ease), box-shadow .35s;
}
.rp-cert { width: 108px; }
.rp-cert img { display: block; width: auto; height: 32px; filter: grayscale(1); transition: filter .35s; }
.rp-cert img.is-gp { height: 34px; }
.rp-cert img.is-ads { height: 36px; }
.rp-cert img.is-dmi { height: 28px; }
.rp-cert img.is-sud { height: 36px; }
.rp-cert img.is-nord { height: auto; width: 88px; }
.rp-cert:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .6); }
.rp-cert:hover img { filter: none; }

/* ---- brand signature at the very bottom (see idea-3 block below for the drawing) */
.rp-ft-giant { position: relative; height: clamp(130px, 17vw, 250px); overflow: hidden; user-select: none; }

/* ---- back-to-top: compact round button with a scroll-progress ring */
.scroll-to-top.rp-totop {
	right: 18px;
	bottom: 22px;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(27, 27, 29, .82);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 15px;
	line-height: 1;
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
	transition: background-color .25s, transform .3s var(--ft-ease, ease);
}
.rp-totop svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rp-totop circle { fill: none; stroke-width: 3; }
.rp-totop-track { stroke: rgba(255, 255, 255, .14); }
.rp-totop-bar { stroke: #fb4848; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0)); transition: stroke-dashoffset .15s linear; }
.rp-totop i { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .3s; }
.scroll-to-top.rp-totop:hover { background: #fb4848; border: 0; color: #fff; }
.rp-totop:hover i { transform: translateY(-2px); }
.rp-totop:hover .rp-totop-bar { stroke: #fff; }
.rp-totop:focus-visible { outline: 2px solid #fb4848; outline-offset: 3px; }
@media (max-width: 767px) {
	.scroll-to-top.rp-totop { right: 12px; bottom: 14px; width: 38px; height: 38px; font-size: 13px; }
}

/* ---- responsive */
@media (max-width: 1199px) {
	.rp-ft-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 30px; }
	.rp-ft-brand { grid-column: 1 / 3; }
	.rp-ft-contact { grid-column: 3 / 4; grid-row: 1; }
}
@media (max-width: 991px) {
	.rp-ftcta-box { flex-direction: column; align-items: flex-start; padding: 34px 30px; }
	.rp-ft-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rp-ft-brand { grid-column: 1 / -1; }
	.rp-ft-contact { grid-column: auto; grid-row: auto; }
	.rp-ft-bar { flex-wrap: wrap; justify-content: center; text-align: center; }
}
@media (max-width: 767px) {
	.rp-ftcta-box { padding: 28px 22px; border-radius: 22px; }
	.rp-ftcta-actions, .rp-ftcta-btn, .rp-ftcta-tel { width: 100%; justify-content: center; }
	.rp-ft { padding-top: 52px; }
	.rp-ft-top { gap: 30px 20px; padding-bottom: 34px; }
	.rp-ft-contact { grid-column: 1 / -1; }
	.rp-ft-reel { max-width: none; }
	.rp-ft-bar { flex-direction: column; gap: 14px; }
	.rp-certs { justify-content: center; gap: 14px 18px; }
	.rp-cert { width: 92px; height: 42px; padding: 4px 8px; }
	.rp-cert img { transform: scale(.85); }

}
@media (hover: none) {
	.rp-cert { opacity: .85; }
	.rp-cert img { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
	.rp-ft *, .rp-ftcta * { transition: none !important; }
}

/* ---- bottom row alignment (desktop): studio film card and hours / live status share the bottom line */
@media (min-width: 1200px) {
	.rp-ft-brand, .rp-ft-contact { display: flex; flex-direction: column; }
	.rp-ft-reel { margin-top: auto; }
	.rp-ft-hours { margin-top: auto; }
	.rp-ft-contact address { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .rp-film-dialog[open] { animation: none; } }

/* ---- brand signature: the calligraphic logo (img/brand-callig.svg) is drawn by a pen of light, then fills with brand red.
   .is-drawn (js/footer.js) starts it when the logo comes into view; leaving the screen resets it. */
.rp-ft-callig { position: absolute; left: 50%; top: 4px; height: calc(100% - 8px); width: auto; transform: translateX(-50%); overflow: visible; }
.rp-callig-pen path {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	opacity: 0;
	filter: drop-shadow(0 0 6px rgba(251, 72, 72, .8));
}
.rp-callig-fill { opacity: 0; transition: opacity 1s ease .2s; }
.rp-ft-giant.is-drawn .rp-callig-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-ft-giant.is-filled .rp-callig-fill { opacity: 1; }
.rp-ft-giant.is-filled .rp-callig-pen path { opacity: .35; transition: opacity 1.2s ease; }
/* hover: a light sheen sweeps across the inked logo */
.rp-callig-sheen { transform: translateX(0) skewX(-20deg); }
.rp-ft-giant.is-filled:hover .rp-callig-sheen { animation: rp-callig-sheen 1.3s cubic-bezier(.65, 0, .35, 1); }
@keyframes rp-callig-sheen { from { transform: translateX(0) skewX(-20deg); } to { transform: translateX(1250px) skewX(-20deg); } }
@media (prefers-reduced-motion: reduce) {
	.rp-callig-pen path { stroke-dashoffset: 0; opacity: .35; transition: none !important; }
	.rp-callig-fill { opacity: 1; transition: none; }
}

/* ---- bottom signature, minimal version: only the pen outline (no red fill), spanning the footer width with a small
   margin on each side and cut in half by the page edge, like the earlier wordmark */
.rp-ft-giant.is-callig { --sw: 1.1; height: auto; aspect-ratio: 100 / 36; max-height: 560px; }
.rp-ft-giant.is-callig .rp-ft-callig { left: 24px; right: 24px; top: 14px; width: calc(100% - 48px); height: auto; transform: none; }
.rp-ft-giant.is-callig .rp-callig-fill, .rp-ft-giant.is-callig .rp-callig-sheen { display: none; }
.rp-ft-giant.is-callig .rp-callig-pen { stroke-width: var(--sw); }
.rp-ft-giant.is-callig .rp-callig-pen path { filter: drop-shadow(0 0 4px rgba(251, 72, 72, .7)); }
/* once drawn, the pen light settles into a quiet hairline; hover lights it up again */
.rp-ft-giant.is-callig.is-filled .rp-callig-pen path { opacity: 1; stroke: rgba(255, 255, 255, .2); filter: none; transition: stroke 1.4s ease, filter 1.4s ease; }
.rp-ft-giant.is-callig.is-filled:hover .rp-callig-pen path { stroke: rgba(251, 72, 72, .75); filter: drop-shadow(0 0 6px rgba(251, 72, 72, .6)); transition: stroke .5s ease, filter .5s ease; }
@media (max-width: 767px) { .rp-ft-giant.is-callig { --sw: 2.4; aspect-ratio: 100 / 38; } .rp-ft-giant.is-callig .rp-ft-callig { left: 12px; right: 12px; width: calc(100% - 24px); } }

/* ---- signature tucked under the footer content: it rises behind the bottom of the footer (lower footer height)
   and reads clearer (brighter, slightly thicker hairline). The footer content sits above it. */
.rp-ft > .container { position: relative; z-index: 1; }
.rp-ft-giant.is-callig { z-index: 0; margin-top: -15%; --sw: 1.6; pointer-events: none; }
.rp-ft-giant.is-callig .rp-ft-callig { pointer-events: auto; }
.rp-ft-giant.is-callig.is-filled .rp-callig-pen path { stroke: rgba(255, 255, 255, .3); }
@media (max-width: 767px) { .rp-ft-giant.is-callig { margin-top: -10%; --sw: 3; } }

/* ---- signature, quieter: no red at any stage, a very faint white wire, raised further and shifted left so
   about half of the calligraphy shows (the rest runs off the left edge and the bottom of the page) */
.rp-ft-giant.is-callig { margin-top: -21%; --sw: 1.4; }
.rp-ft-giant.is-callig .rp-ft-callig { transform: translateX(-34%); }
.rp-ft-giant.is-callig .rp-callig-pen { stroke: rgba(255, 255, 255, .22); }
.rp-ft-giant.is-callig .rp-callig-pen path { filter: none; }
.rp-ft-giant.is-callig.is-filled .rp-callig-pen path,
.rp-ft-giant.is-callig.is-filled:hover .rp-callig-pen path { stroke: rgba(255, 255, 255, .1); filter: none; }
@media (max-width: 767px) { .rp-ft-giant.is-callig { margin-top: -14%; --sw: 2.6; } }

/* footer ends with the bottom bar (copyright + certificates); the large signature was removed (backup: *.bak-nosig) */
.rp-ft-bar { padding-bottom: 26px; }

/* the floating back-to-top yields to the footer's own button (js/footer.js) */
.scroll-to-top.rp-totop { transition: background-color .25s, transform .35s var(--ft-ease, ease), opacity .3s ease; }
.scroll-to-top.rp-totop.is-hidden-by-footer { opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; }

/* studio film card: glass play button (the clip shows through) and a few px more height */
.rp-ft-reel { padding: 8px 8px 8px 12px; }
.rp-ft-reel-media { flex-basis: 124px; }
.rp-ft-reel-play {
	background: rgba(255, 255, 255, .16);
	-webkit-backdrop-filter: blur(6px) saturate(1.4);
	backdrop-filter: blur(6px) saturate(1.4);
	border: 1px solid rgba(255, 255, 255, .35);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 12px rgba(0, 0, 0, .35);
	color: #fff;
}
.rp-ft-reel:hover .rp-ft-reel-play { background: rgba(255, 255, 255, .26); }

/* certificates as glass cards: at rest a dark frosted card with the logo in clean white (stands out more than a grey box);
   on hover the card turns white and the logo shows its own brand colours */
.rp-cert {
	opacity: 1;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
	transition: background-color .35s, border-color .35s, transform .35s var(--ft-ease), box-shadow .35s;
}
.rp-cert img { filter: brightness(0) invert(1); opacity: .82; transition: filter .35s, opacity .35s; }
.rp-cert:hover { background: #fff; border-color: #fff; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .6); }
.rp-cert:hover img { filter: none; opacity: 1; }
@media (hover: none) { .rp-cert img { filter: brightness(0) invert(1); opacity: .9; } }
/* TÜV SÜD has white lettering inside a solid badge: keep it as light grey so the letters stay readable */
.rp-cert img.is-sud { filter: grayscale(1) brightness(1.9) contrast(1.1); opacity: .85; }
.rp-cert:hover img.is-sud { filter: none; opacity: 1; }
@media (hover: none) { .rp-cert img.is-sud { filter: grayscale(1) brightness(1.9) contrast(1.1); } }

/* taller film card, using the free space under the social icons (footer height unchanged) */
.rp-ft-reel-media { flex-basis: 132px; aspect-ratio: auto; height: 112px; }
.rp-ft-reel-media img, .rp-ft-reel-media video { object-position: 32% 50%; } /* keep the calligraphy logo in frame */
@media (max-width: 1199px) { .rp-ft-reel-media { height: 96px; } }
/* film card text: may wrap to two lines instead of running past the card edge */
.rp-ft-reel-text { white-space: normal; min-width: 0; flex: 1 1 auto; }
.rp-ft-reel-text b { line-height: 1.5; }

/* ---- certificates moved into the footer grid: under the three link columns on desktop, so the middle
   of the footer is used and everything ends on one bottom line (film card / certificates / hours) */
.rp-ft-trust h3 { margin: 0 0 14px; font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; font-size: 15px; color: #fff; }
.rp-ft-trust .rp-certs { gap: 10px; }
@media (min-width: 1200px) {
	.rp-ft-top { grid-template-rows: auto 1fr; }
	.rp-ft-brand, .rp-ft-contact { grid-row: 1 / span 2; }
	.rp-ft-trust { grid-column: 2 / 5; grid-row: 2; align-self: end; padding-top: 22px; border-top: 1px solid var(--ft-line); }
	.rp-ft-trust .rp-certs { flex-wrap: nowrap; justify-content: space-between; }
	.rp-ft-trust .rp-cert { flex: 1 1 0; width: auto; }
}
@media (max-width: 1199px) {
	.rp-ft-trust { grid-column: 1 / -1; }
	.rp-ft-trust .rp-certs { justify-content: flex-start; }
}
@media (max-width: 767px) {
	.rp-ft-trust h3 { text-align: center; }
	.rp-ft-trust .rp-certs { justify-content: center; }
}
/* bottom bar now carries only the copyright and the back-to-top button */
.rp-ft-bar { justify-content: space-between; }

/* certificates row: no title, slightly smaller cards, centred with breathing room on both sides */
@media (min-width: 1200px) {
	.rp-ft-trust .rp-certs { justify-content: center; gap: 12px; }
	.rp-ft-trust .rp-cert { flex: 0 0 auto; width: 98px; height: 42px; padding: 5px 12px; }
	.rp-ft-trust .rp-cert img { transform: scale(.9); }
}

/* ---- no studio film card (the film is dated); certificates back in the bottom bar at the compact size,
   bottom bar = certificates | copyright | back to top */
.rp-ft-bar { justify-content: space-between; }
.rp-ft-bar .rp-certs { gap: 10px; }
.rp-ft-bar .rp-cert { width: 98px; height: 42px; padding: 5px 12px; }
.rp-ft-bar .rp-cert img { transform: scale(.9); }
@media (max-width: 767px) { .rp-ft-bar .rp-cert { width: 92px; } }
@media (min-width: 1200px) {
	.rp-ft-top { grid-template-rows: none; }
	.rp-ft-brand, .rp-ft-contact { grid-row: auto; }
}
/* without the film card: a wider contact column keeps each address on one line (shorter column), and the
   social icons drop to the bottom line so brand / links / contact all end level */
@media (min-width: 1200px) {
	.rp-ft-top { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .78fr)) minmax(0, 1.5fr); gap: 32px; }
	.rp-ft-brand .rp-ft-social { margin-top: auto; margin-bottom: 0; }
}
/* English site link: globe icon + text (icon alone would be less clear and weaker for SEO / screen readers) */
.rp-ft-col ul a.rp-ft-en { display: inline-flex; align-items: center; gap: 8px; direction: ltr; }
.rp-ft-en i { font-size: 15px; color: var(--ft-red); transition: transform .5s var(--ft-ease); }
.rp-ft-en:hover i { transform: rotate(180deg); }
/* English site: a small language pill in the bottom bar (where visitors look for a language switch),
   next to "back to top"; the link list above stays plain text only */
.rp-ft-bar-end { display: flex; align-items: center; gap: 10px; }
.rp-ft-lang {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--ft-line);
	border-radius: 999px;
	color: rgba(255, 255, 255, .75) !important;
	font-size: 13px;
	direction: ltr;
	transition: border-color .25s, color .25s;
}
.rp-ft-lang i { font-size: 15px; color: var(--ft-red); transition: transform .6s var(--ft-ease); }
.rp-ft-lang:hover { border-color: rgba(255, 255, 255, .3); color: #fff !important; }
.rp-ft-lang:hover i { transform: rotate(180deg); }

/* footer logo a few px larger (58 -> 68 px wide) */
.rp-ft-logo .rp-logo-mark { width: 68px; }
