/*!
 * Light / dark mode — PILOT on single service pages only (loaded with css/service-page.css).
 * <html data-theme="light|dark"> is set before paint by the inline script in main.tpl (saved choice, else the
 * device setting); the toggle button in the header is handled in js/service-page.js.
 * The top menu bar and the footer stay dark in both modes (brand anchors).
 * To undo the whole feature: remove this file's <link>, the inline script and the button in main.tpl
 * (backups: main.tpl.bak-theme, css/service-page.css.bak-theme, js/service-page.js.bak-theme).
 */

/* toggle button, header, page background and the switch animation: css/site-theme.css */

html[data-theme="dark"] .services-area { background: #0f0f11; }

/* page */
html[data-theme="dark"] .rp-sv {
	--sv-ink: #f2f2f5; --sv-text: #c6c6cd; --sv-muted: #9b9ba4; --sv-line: rgba(255, 255, 255, .09); --sv-soft: #232327;
	--sv-red-soft: rgba(251, 72, 72, .13);
}
html[data-theme="dark"] .rp-sv-hero { background: radial-gradient(620px 360px at 100% 0%, rgba(251, 72, 72, .12), transparent 70%), linear-gradient(180deg, #19191c, #141416); }
html[data-theme="dark"] .rp-sv-hero::after { background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); }
html[data-theme="dark"] .rp-sv-short .svc-tags li,
html[data-theme="dark"] .rp-sv-toc,
html[data-theme="dark"] .rp-sv-price,
html[data-theme="dark"] .rp-sv-sec,
html[data-theme="dark"] .rp-sv-steps li,
html[data-theme="dark"] .rp-sv-faq-item { background: #18181b; }
html[data-theme="dark"] .rp-sv-btn--primary { background: #f2f2f5; color: #151517 !important; }
html[data-theme="dark"] .rp-sv-btn--primary:hover { background: #fb4848; color: #fff !important; }
html[data-theme="dark"] .rp-sv-btn--ghost { background: transparent; color: #f2f2f5 !important; }
html[data-theme="dark"] .rp-sv-btn--ghost:hover { border-color: #f2f2f5; }
html[data-theme="dark"] .rp-sv-card { background: #1d1d21; border: 1px solid rgba(255, 255, 255, .07); }
html[data-theme="dark"] .rp-sv-card .rp-sv-btn { background: #fff; color: #151517 !important; }
html[data-theme="dark"] .rp-sv-card .rp-sv-btn:hover { background: #fb4848; color: #fff !important; }
html[data-theme="dark"] .rp-sv-toc a::before { color: #6f6f78; }
html[data-theme="dark"] .rp-sv-price > i:last-child { color: #6f6f78; }
html[data-theme="dark"] .rp-sv-price:hover,
html[data-theme="dark"] .rp-sv-steps li:hover { border-color: rgba(251, 72, 72, .45); }
html[data-theme="dark"] .rp-sv-sec:hover { border-color: rgba(255, 255, 255, .16); box-shadow: 0 24px 46px -34px rgba(0, 0, 0, .9); }
html[data-theme="dark"] .rp-sv-sec-n, html[data-theme="dark"] .rp-sv-step-n { -webkit-text-stroke-color: rgba(255, 255, 255, .18); }
html[data-theme="dark"] .rp-sv-steps li:not(:last-child)::after { background: #18181b; color: #6f6f78; }
html[data-theme="dark"] .rp-sv-steps li > i, html[data-theme="dark"] .rp-sv-price > i:first-child { color: #a3a3ac; }
html[data-theme="dark"] .rp-sv-faq-q:hover i { background: #2c2c31; }
html[data-theme="dark"] .rp-sv-files { border-color: rgba(255, 255, 255, .14); }
html[data-theme="dark"] .rp-sv-body img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }

/* ================================================================== LIGHT: the dark parts of the page become light */
html[data-theme="light"] .rp-pf.rp-sv-more {
	background: radial-gradient(900px 420px at 85% 0%, rgba(251, 72, 72, .06), transparent 70%), #f4f4f6; color: #29292B;
}
html[data-theme="light"] .rp-sv-more-head h2 { color: #29292B; }
html[data-theme="light"] .rp-sv-all { border-color: rgba(41, 41, 43, .16); color: #29292B !important; }
html[data-theme="light"] .rp-sv-all:hover { background: #fb4848; border-color: #fb4848; color: #fff !important; }
html[data-theme="light"] .rp-sv-mini { background: #fff; border-color: #e8e8ec; color: #29292B !important; }
html[data-theme="light"] .rp-sv-mini > i:first-child { background: #f4f4f6; color: #8b8b93; }
html[data-theme="light"] .rp-sv-mini-go { color: #b4b4bb; }
html[data-theme="light"] .rp-sv-mini:hover { background: #fff; border-color: rgba(251, 72, 72, .45); box-shadow: 0 18px 32px -24px rgba(251, 72, 72, .55); }
html[data-theme="light"] .rp-sv-mini:hover > i:first-child { background: #fb4848; color: #fff; }
html[data-theme="light"] .rp-sv-card { background: #fff; border: 1px solid #e8e8ec; color: #29292B; }
html[data-theme="light"] .rp-sv-card::before { background: radial-gradient(closest-side, rgba(251, 72, 72, .16), transparent); }
html[data-theme="light"] .rp-sv-card h2 { color: #29292B; }
html[data-theme="light"] .rp-sv-card p { color: #6b6b72; }
html[data-theme="light"] .rp-sv-card .rp-sv-btn { background: #29292B; color: #fff !important; }
html[data-theme="light"] .rp-sv-card .rp-sv-btn:hover { background: #fb4848; }
html[data-theme="light"] .rp-sv-tel { color: #29292B !important; }
/* footer CTA band goes back to "half on the page, half on the footer" */
html[data-theme="light"] body .rp-ftcta { background: linear-gradient(180deg, #f4f4f6 50%, #121214 50%); }

/* coloured price link in dark mode */
html[data-theme="dark"] .rp-sv-price { background: linear-gradient(135deg, rgba(251, 72, 72, .18), rgba(251, 72, 72, .05) 70%); border-color: rgba(251, 72, 72, .45); }
html[data-theme="dark"] .rp-sv-price > i:first-child { color: #fff; }
html[data-theme="dark"] .rp-sv-price > i:last-child { color: #fb4848; }
html[data-theme="dark"] .rp-sv-price:hover { background: #fb4848; }
html[data-theme="dark"] .rp-sv-price:hover > i:last-child { color: #fff; }

/* light mode: brief card button on a white card + softer moving glow */
html[data-theme="light"] .rp-sv-card .rp-sv-fx { background: #29292B; box-shadow: none; }
html[data-theme="light"] .rp-sv-card::after { background: radial-gradient(260px circle at var(--mx) var(--my), rgba(251, 72, 72, .2), transparent 70%); }

/* dark mode fixes: numbers turn red on hover, step icons brighter, price icon visible on hover */
html[data-theme="dark"] .rp-sv-sec:hover .rp-sv-sec-n,
html[data-theme="dark"] .rp-sv-steps li:hover .rp-sv-step-n { -webkit-text-stroke-color: #fb4848; }
html[data-theme="dark"] .rp-sv-steps li > i { color: #e4e4ea; }
html[data-theme="dark"] .rp-sv-steps li:hover > i { color: #fff; }
html[data-theme="dark"] .rp-sv-price:hover > i:first-child { background: #fff; color: #fb4848; }

/* hero primary button keeps its own colour on hover (the sweep is the effect) */
html[data-theme="dark"] .rp-sv-cta .rp-sv-btn--primary:hover { background: #f2f2f5; color: #151517 !important; }
