/*!
 * Light / dark mode — shared parts (homepage + single service pages so far).
 * <html data-theme="light|dark"> is set before paint by the inline script in main.tpl (saved choice, else the device
 * setting); the header button is handled by js/theme-toggle.js. Page parts: css/home-theme.css, css/service-theme.css.
 * The top menu bar and the footer stay dark in both modes.
 */
/* ------------------------------------------------------------------ toggle button (header, next to search) */
.rp-theme-btn {
	position: relative; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(255, 255, 255, .06);
	color: #fff; font-size: 18px; cursor: pointer; transition: background-color .3s, border-color .3s;
}
.rp-theme-btn:hover { background: #fb4848; border-color: #fb4848; }
.rp-theme-btn:focus-visible { outline: 2px solid #fb4848; outline-offset: 2px; }
.rp-theme-btn i { position: absolute; transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .3s; }
.rp-theme-btn .rp-th-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
html[data-theme="dark"] .rp-theme-btn .rp-th-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
html[data-theme="dark"] .rp-theme-btn .rp-th-sun { opacity: 1; transform: none; }
.mainmeu-area.stricky-fixed .rp-theme-btn { width: 42px; }
@media (max-width: 991px) { .rp-theme-btn { width: 42px; height: 42px; border-radius: 12px; font-size: 16px; } }

/* short, soft colour change when the visitor switches (class added for ~0.5s by js/service-page.js) */
html.rp-theme-anim body, html.rp-theme-anim body *, html.rp-theme-anim body *::before, html.rp-theme-anim body *::after {
	transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important;
}

/* ================================================================== DARK */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body { background: #0f0f11; }

/* header top row */
html[data-theme="dark"] .header-area.rp-header { background: #141416; border-bottom-color: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .rp-brand-text small { color: #9a9aa2; }
html[data-theme="dark"] .rp-header-info > * { border-left-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .rp-hinfo-text small { color: #8d8d95; }
html[data-theme="dark"] .rp-hinfo-val, html[data-theme="dark"] .rp-hinfo-val a { color: #ececf0 !important; }
html[data-theme="dark"] .rp-hinfo-val a:hover { color: #fb4848 !important; }
html[data-theme="dark"] .rp-social a { background: #222226; color: #e6e6ea !important; }
html[data-theme="dark"] .rp-social a:hover { background: #fb4848; color: #fff !important; }
html[data-theme="dark"] .breadcrumb-bottom-area { background: #151517; border-bottom-color: rgba(255, 255, 255, .06); color: #a9a9b1; }

