/* =========================================================================
   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-tel { border: 1px solid rgba(255, 255, 255, .5); color: #fff !important; }

/* ---- red call-to-action box: button motion (same family as the site's other buttons, plus its own touch)
   "Start a project": a white light sweep + the arrow launches out and back,
   and a white wave ripples out from the button across the whole red box (js/footer.js). Phone: white fill slides in + the handset rings. */
.rp-ftcta-actions { --cta-dir: -1; }
.rp-ftcta-btn {
	position: relative;
	background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .26) 50%, transparent 62%) no-repeat, #29292B;
	background-size: 260% 100%, auto;
	background-position: calc(50% - 130% * var(--cta-dir)) 0, 0 0;
	transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s, background-color .25s;
}
.rp-ftcta-btn i { display: inline-block; }
.rp-ftcta-btn:hover, .rp-ftcta-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(20, 0, 2, .55); }
.rp-ftcta-btn:hover { animation: rpCtaSweep .9s cubic-bezier(.22, 1, .36, 1) both; }
.rp-ftcta-btn:hover i { animation: rpCtaLaunch .7s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes rpCtaSweep { from { background-position: calc(50% - 130% * var(--cta-dir)) 0, 0 0; } to { background-position: calc(50% + 130% * var(--cta-dir)) 0, 0 0; } }
@keyframes rpCtaLaunch {
	0% { transform: translateX(0); opacity: 1; }
	40% { transform: translateX(calc(28px * var(--cta-dir))); opacity: 0; }
	41% { transform: translateX(calc(-24px * var(--cta-dir))); opacity: 0; }
	100% { transform: translateX(0); opacity: 1; }
}

.rp-ftcta-tel {
	background: linear-gradient(#fff, #fff) no-repeat right center / 0% 100%;
	transition: background-size .45s cubic-bezier(.22, 1, .36, 1), color .3s, border-color .3s, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.rp-ftcta-tel i { display: inline-block; transform-origin: 50% 60%; }
.rp-ftcta-tel:hover, .rp-ftcta-tel:focus-visible { background-size: 100% 100%; border-color: #fff; color: var(--ft-red) !important; transform: translateY(-2px); }
.rp-ftcta-tel:hover i { animation: rpCtaRing .8s ease-in-out both; }
@keyframes rpCtaRing {
	0%, 100% { transform: rotate(0); }
	10%, 30% { transform: rotate(-16deg); }
	20%, 40% { transform: rotate(16deg); }
	50% { transform: rotate(0); }
}
.rp-ftcta-btn:focus-visible, .rp-ftcta-tel:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.rp-ftcta-btn, .rp-ftcta-tel { transition: background-color .2s, color .2s, background-size .2s; translate: none; }
	.rp-ftcta-btn:hover, .rp-ftcta-btn:hover i, .rp-ftcta-tel:hover i { animation: none; }
	.rp-ftcta-wave { display: none; }
	.rp-ftcta-btn:hover, .rp-ftcta-tel:hover { transform: none; }
}

/* ---- footer */
.rp-ft {
	position: relative;
	padding: 72px 0 0;
	background:
		radial-gradient(1100px 460px at 50% 0%, rgba(251, 72, 72, .085), transparent 72%),   /* soft, centred glow: the red call-to-action box above lights the footer evenly */
		radial-gradient(1600px 700px at 50% 0%, rgba(251, 72, 72, .03), transparent 75%),
		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); white-space: nowrap; }
.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); }










/* 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 { color: #fff !important; }

.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-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. */






/* hover: a light sheen sweeps across the inked logo */





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




/* once drawn, the pen light settles into a quiet hairline; hover lights it up again */


@media (max-width: 767px) { .rp-ft-giant.is-callig { --sw: 2.4; aspect-ratio: 100 / 38; }  }

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


@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; }




@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; }




/* 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) */

 /* keep the calligraphy logo in frame */

/* film card text: may wrap to two lines instead of running past the card edge */



/* ---- 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) */


@media (min-width: 1200px) {
	.rp-ft-top { grid-template-rows: auto 1fr; }
	.rp-ft-brand, .rp-ft-contact { grid-row: 1 / span 2; }
	
	
	
}


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


/* ---- 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) */



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

/* ---- the wave: two thin white rings spread from "Start a project" to the far corner of the red box,
   clipped by the box's rounded edges (js/footer.js sets --wx/--wy = button centre, --wd = diameter) */
.rp-ftcta-box { position: relative; overflow: hidden; isolation: isolate; }
.rp-ftcta-box > :not(.rp-ftcta-wave) { position: relative; z-index: 1; }
.rp-ftcta-wave {
	position: absolute; z-index: 0; left: var(--wx, 80%); top: var(--wy, 50%);
	width: 0; height: 0; border-radius: 50%; pointer-events: none; opacity: 0;
	border: 2px solid rgba(255, 255, 255, .85);
	box-shadow: 0 0 24px rgba(255, 255, 255, .18), inset 0 0 24px rgba(255, 255, 255, .14);
	transform: translate(-50%, -50%);
}
.rp-ftcta-wave + .rp-ftcta-wave { border-width: 1px; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.rp-ftcta-box.is-waving .rp-ftcta-wave { animation: rpCtaWave 2.4s cubic-bezier(.25, .6, .35, 1) both; }
.rp-ftcta-box.is-waving .rp-ftcta-wave + .rp-ftcta-wave { animation-delay: .35s; animation-duration: 2.7s; }
@keyframes rpCtaWave {
	0% { width: 0; height: 0; opacity: .95; }
	70% { opacity: .5; }
	100% { width: var(--wd, 1600px); height: var(--wd, 1600px); opacity: 0; }
}

/* =========================================================================
   Light theme (html[data-theme="light"], set by the theme toggle): a light footer instead of the dark block.
   Dark theme and pages without the toggle keep the dark footer above, unchanged.
   ========================================================================= */
.rp-ft, .rp-ft-col ul a, .rp-ft-col h3, .rp-ft-big, .rp-ft-social a, .rp-ft-lang, .rp-ft-top-btn, .rp-ft-copy, .rp-ft-copy a, .rp-ft-logo strong {
	transition-property: background-color, border-color, color, transform, box-shadow;
	transition-duration: .4s;
}
html[data-theme="light"] .rp-ft,
html[data-theme="light"] .rp-ftcta {
	--ft-bg: #f4f4f6;
	--ft-line: rgba(41, 41, 43, .1);
	--ft-text: #66666d;
}
html[data-theme="light"] .rp-ft {
	background:
		radial-gradient(1100px 460px at 50% 0%, rgba(251, 72, 72, .06), transparent 72%),
		var(--ft-bg);
	border-top: 1px solid rgba(41, 41, 43, .06);
}
html[data-theme="light"] .rp-ftcta + .rp-ft { border-top: 0; }
html[data-theme="light"] .rp-ftcta-box { box-shadow: 0 30px 60px -34px rgba(251, 72, 72, .55); }

/* brand + headings */
html[data-theme="light"] .rp-ft-logo,
html[data-theme="light"] .rp-ft-logo strong { color: #29292B !important; }
html[data-theme="light"] .rp-ft-logo:hover .rp-logo-mark { color: #29292B; }
html[data-theme="light"] .rp-ft-col h3 { color: #29292B; }

/* social icons: light tiles, red on hover */
html[data-theme="light"] .rp-ft-social a {
	background: #fff;
	border-color: rgba(41, 41, 43, .1);
	color: #55555c !important;
	box-shadow: 0 6px 14px -10px rgba(20, 20, 24, .35);
}
html[data-theme="light"] .rp-ft-social a:hover { background: var(--ft-red); border-color: var(--ft-red); color: #fff !important; }

/* link columns + contact */
html[data-theme="light"] .rp-ft-col ul a:hover,
html[data-theme="light"] .rp-ft-phones a:hover,
html[data-theme="light"] .rp-ft-copy a:hover { color: #29292B !important; }
html[data-theme="light"] .rp-ft-big { color: #29292B !important; }
html[data-theme="light"] .rp-ft-big:hover { color: var(--ft-red) !important; }
html[data-theme="light"] .rp-ft .rp-live--mini .rp-live-text b { color: #29292B; }

/* bottom bar */
html[data-theme="light"] .rp-ft-copy { color: #7a7a82; }
html[data-theme="light"] .rp-ft-copy a { color: #3a3a3e !important; }
html[data-theme="light"] .rp-ft-lang,
html[data-theme="light"] .rp-ft-top-btn { background: #fff; color: #3a3a3e !important; }
html[data-theme="light"] .rp-ft-lang:hover,
html[data-theme="light"] .rp-ft-top-btn:hover { border-color: rgba(41, 41, 43, .28); color: #29292B !important; }
html[data-theme="light"] .rp-ft-top-btn i { background: rgba(41, 41, 43, .07); }
html[data-theme="light"] .rp-ft-top-btn:hover i { background: var(--ft-red); color: #fff; }

/* certificates: white cards, logos in their own colours at a calm grey, full colour on hover */
html[data-theme="light"] .rp-cert {
	background: #fff;
	border-color: rgba(41, 41, 43, .1);
	box-shadow: 0 8px 18px -14px rgba(20, 20, 24, .4);
}
html[data-theme="light"] .rp-cert img,
html[data-theme="light"] .rp-cert img.is-sud { filter: grayscale(1); opacity: .88; }
html[data-theme="light"] .rp-cert:hover { border-color: rgba(41, 41, 43, .16); box-shadow: 0 14px 26px -14px rgba(20, 20, 24, .45); }
html[data-theme="light"] .rp-cert:hover img,
html[data-theme="light"] .rp-cert:hover img.is-sud { filter: none; opacity: 1; }
@media (hover: none) {
	html[data-theme="light"] .rp-cert img, html[data-theme="light"] .rp-cert img.is-sud { filter: none; opacity: .9; }
}

/* =========================================================================
   Ink aurora (modules/footer.tpl .rp-ft-aura): soft clouds of colour drift behind the footer, like a gradient mesh.
   Brand red leads; magenta, cyan and a warm amber (the print inks, softened so they don't clash) blend where they meet.
   They keep mostly to the top and bottom edges so the text area stays calm.
   Dark: light mixes like glowing ink (screen). Light: ink soaks into paper (multiply).
   Only transform animates (cheap); js/footer.js pauses it off screen.
   ========================================================================= */
.rp-ft > .container { position: relative; z-index: 1; }
.rp-ft-aura { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; isolation: isolate; }
.rp-ft-aura i {
	position: absolute;
	display: block;
	border-radius: 50%;
	will-change: transform;
	mix-blend-mode: screen;
	animation: 20s ease-in-out infinite alternate;
}
.rp-ft-aura .is-r { width: min(940px, 78vw); height: 560px; top: -270px; left: -12%; animation-name: rpAuraR; animation-duration: 17s; background: radial-gradient(closest-side, rgba(251, 72, 72, .34), rgba(251, 72, 72, .1) 55%, transparent); }
.rp-ft-aura .is-m { width: min(760px, 62vw); height: 480px; top: -230px; right: -10%; animation-name: rpAuraM; animation-duration: 21s; background: radial-gradient(closest-side, rgba(226, 46, 150, .26), rgba(226, 46, 150, .06) 60%, transparent); }
.rp-ft-aura .is-c { width: min(720px, 60vw); height: 460px; bottom: -250px; left: 18%; animation-name: rpAuraC; animation-duration: 23s; background: radial-gradient(closest-side, rgba(40, 170, 230, .2), rgba(40, 170, 230, .05) 60%, transparent); }
.rp-ft-aura .is-y { width: min(600px, 52vw); height: 400px; bottom: -230px; right: 6%; animation-name: rpAuraY; animation-duration: 19s; background: radial-gradient(closest-side, rgba(255, 170, 60, .17), transparent); }
.rp-ft-aura .is-v { width: min(520px, 46vw); height: 360px; top: 30%; left: 40%; animation-name: rpAuraV; animation-duration: 25s; background: radial-gradient(closest-side, rgba(150, 80, 220, .1), transparent); }
@keyframes rpAuraR { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(16vw, 70px) scale(1.12); } 100% { transform: translate(32vw, 20px) scale(.94); } }
@keyframes rpAuraM { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-18vw, 100px) scale(.86); } 100% { transform: translate(-34vw, 30px) scale(1.1); } }
@keyframes rpAuraC { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-14vw, -90px) scale(1.18); } 100% { transform: translate(-26vw, -30px) scale(.96); } }
@keyframes rpAuraY { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(12vw, -80px) scale(1.14); } 100% { transform: translate(-6vw, -40px) scale(1); } }
@keyframes rpAuraV { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-20vw, -60px) scale(1.2); } 100% { transform: translate(14vw, 40px) scale(.9); } }
.rp-ft-aura.is-paused i { animation-play-state: paused; }

/* light theme: ink soaking into paper; colours a touch deeper so they read on white, multiply keeps overlaps rich */
html[data-theme="light"] .rp-ft-aura i { mix-blend-mode: multiply; }
html[data-theme="light"] .rp-ft-aura .is-r { background: radial-gradient(closest-side, rgba(251, 72, 72, .3), rgba(251, 72, 72, .09) 55%, transparent); }
html[data-theme="light"] .rp-ft-aura .is-m { background: radial-gradient(closest-side, rgba(226, 46, 150, .2), rgba(226, 46, 150, .05) 60%, transparent); }
html[data-theme="light"] .rp-ft-aura .is-c { background: radial-gradient(closest-side, rgba(40, 170, 230, .22), rgba(40, 170, 230, .06) 60%, transparent); }
html[data-theme="light"] .rp-ft-aura .is-y { background: radial-gradient(closest-side, rgba(255, 180, 40, .3), transparent); }
html[data-theme="light"] .rp-ft-aura .is-v { background: radial-gradient(closest-side, rgba(150, 80, 220, .09), transparent); }

@media (max-width: 767px) {
	.rp-ft-aura .is-r { width: 120vw; height: 400px; top: -190px; }
	.rp-ft-aura .is-m { width: 100vw; height: 360px; }
	.rp-ft-aura .is-c { width: 100vw; height: 340px; bottom: -200px; }
	.rp-ft-aura .is-y { width: 90vw; height: 300px; bottom: -190px; }
	.rp-ft-aura .is-v { width: 90vw; height: 280px; left: 10%; }
}
@media (prefers-reduced-motion: reduce) {
	.rp-ft-aura i { animation: none; }
}

/* =========================================================================
   Typing label on the plain buttons (js/btn-type.js): the label re-types itself on hover.
   Its width is locked while it plays; the letters still being typed are faded.
   ========================================================================= */
.rp-ty.is-typing { display: inline-block; white-space: nowrap; overflow: visible; text-align: start; }
.rp-ty em { font-style: normal; opacity: .45; }
.rp-ty.is-typing.is-multi { display: inline; white-space: normal; }

/* ---- the red box and the footer as one surface. The footer now starts behind the middle of the box (js/footer.js sets
   --cta-half = half the box's height, 110px until it runs), so its glow and drifting colours carry on behind the box's
   lower half instead of a flat band under the box and a second step where the footer used to begin. */
.rp-ftcta { background: none; margin-bottom: calc(var(--cta-half, 110px) * -1); }
.rp-ftcta + .rp-ft { padding-top: calc(64px + var(--cta-half, 110px)); }
