/*!
 * Dark mode for the homepage (shared parts: css/site-theme.css).
 * Light mode is the homepage as designed (its dark/light rhythm: hero, services and portfolio are dark by design),
 * so only the light sections are re-coloured here: «چرا رنگ پنجم», testimonials, brands and the contact section.
 */
html[data-theme="dark"] .sec-title h2.rp-h1 { color: #f2f2f5; }
html[data-theme="dark"] .sec-title p { color: #a3a3ac; }

/* ------------------------------------------------------------------ «چرا رنگ پنجم» (content side) */
html[data-theme="dark"] .rp-about {
	--rp-ink: #f2f2f5; --rp-muted: #a3a3ac; --rp-line: rgba(255, 255, 255, .09);
	--rp-surface: #18181b; --rp-bg: #111113;
}
html[data-theme="dark"] .rp-content { background: radial-gradient(520px 320px at 0% 0%, rgba(251, 72, 72, .09), transparent 70%), #111113; }
html[data-theme="dark"] .rp-pane::before { -webkit-text-stroke-color: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .rp-about .rp-lead,
html[data-theme="dark"] .rp-mile p,
html[data-theme="dark"] .rp-faq-a p { color: #b9b9c1; }
html[data-theme="dark"] .rp-stat:hover { box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .9); }
html[data-theme="dark"] .rp-step-node { border-color: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 7px #202024, 0 18px 34px -22px rgba(0, 0, 0, .9); }
html[data-theme="dark"] .rp-link-base { fill: rgba(255, 255, 255, .22); }
html[data-theme="dark"] .rp-link-head { stroke: rgba(255, 255, 255, .35); }
html[data-theme="dark"] .rp-years-line { background: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .rp-year { color: rgba(255, 255, 255, .4); }
html[data-theme="dark"] .rp-year::after { border-color: rgba(255, 255, 255, .25); }
html[data-theme="dark"] .rp-year.is-past { color: rgba(255, 255, 255, .62); }
html[data-theme="dark"] .rp-year.is-active { color: #f2f2f5; }
html[data-theme="dark"] .rp-year.is-active::after { background: #111113; }
html[data-theme="dark"] .rp-faq-q i { background: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .rp-faq-item.is-open { box-shadow: 0 18px 36px -24px rgba(251, 72, 72, .35); }

/* ------------------------------------------------------------------ testimonials */
html[data-theme="dark"] .rp-tm { --tm-ink: #f2f2f5; --tm-muted: #a3a3ac; --tm-line: rgba(255, 255, 255, .09); background: #0f0f11; }
html[data-theme="dark"] .rp-tm-stage { background: #18181b; }
html[data-theme="dark"] .rp-tm-tags li { background: #222226; }
html[data-theme="dark"] .rp-tm-nav { background: #18181b; }
html[data-theme="dark"] .rp-tm-rail button[aria-selected="true"] { background: #232327; }
html[data-theme="dark"] .rp-tm-arrows button { background: #18181b; }
/* logos with a white background: shown light-on-dark (white turns black and drops out) */
html[data-theme="dark"] .rp-tm-rail img,
html[data-theme="dark"] .rp-tm-logo { filter: grayscale(1) invert(1); mix-blend-mode: screen; }
html[data-theme="dark"] .rp-tm-doc--logo .rp-tm-paper img { mix-blend-mode: normal; }
html[data-theme="dark"] .rp-tm-rail button:hover img,
html[data-theme="dark"] .rp-tm-rail button:focus-visible img,
html[data-theme="dark"] .rp-tm-rail button[aria-selected="true"] img { filter: grayscale(1) invert(1) brightness(1.25); mix-blend-mode: screen; }
/* the letter keeps its paper look; the panel around it goes dark */
html[data-theme="dark"] .rp-tm-doc { background: radial-gradient(circle at 50% 42%, rgba(251, 72, 72, .14), transparent 62%), #1d1d21; }

/* ------------------------------------------------------------------ brands */
html[data-theme="dark"] .rp-br { --br-ink: #f2f2f5; --br-line: rgba(255, 255, 255, .09); background: #0f0f11; }
html[data-theme="dark"] .rp-br-toggle { background: #18181b; }
html[data-theme="dark"] .rp-br-toggle:hover { background: #f2f2f5; border-color: #f2f2f5; color: #151517; }
html[data-theme="dark"] .rp-br-logo { background: #18181b; transition: background-color .35s, border-color .3s, box-shadow .4s, transform .4s; }
html[data-theme="dark"] .rp-br-logo img { filter: grayscale(1) invert(1); mix-blend-mode: screen; opacity: .6; }
/* on hover the card lights up and the logo shows in its own colours */
html[data-theme="dark"] .rp-br-logo:hover, html[data-theme="dark"] .rp-br-logo:focus-visible { background: #fff; }
html[data-theme="dark"] .rp-br-logo:hover img, html[data-theme="dark"] .rp-br-logo:focus-visible img { filter: none; mix-blend-mode: normal; opacity: 1; }

/* ------------------------------------------------------------------ contact (map + details; the form card is dark already) */
html[data-theme="dark"] .rp-ct { --ct-ink: #f2f2f5; --ct-muted: #a3a3ac; --ct-line: rgba(255, 255, 255, .09); background: #0f0f11; }
html[data-theme="dark"] .rp-ct .rp-live-pill,
html[data-theme="dark"] .rp-ct-place,
html[data-theme="dark"] .rp-ct-copy { background: #18181b; }
html[data-theme="dark"] .rp-ct .rp-live-text b { color: #f2f2f5; }
html[data-theme="dark"] .rp-ct .rp-live-text small { color: #a3a3ac; }
html[data-theme="dark"] .rp-ct-copy:hover { background: #f2f2f5; border-color: #f2f2f5; color: #151517; }
html[data-theme="dark"] .rp-ct-map, html[data-theme="dark"] .rp-ct-map .leaflet-container { background: #1b1b1e; }
html[data-theme="dark"] .rp-ct-map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.85) contrast(.9); }
html[data-theme="dark"] .rp-ct-routes { background: rgba(24, 24, 27, .86); }
html[data-theme="dark"] .rp-ct-routes a:hover { background: #f2f2f5; color: #151517 !important; }
html[data-theme="dark"] .rp-ct-label { background: #f2f2f5; color: #151517; }
html[data-theme="dark"] .rp-ct-label::after { border-top-color: #f2f2f5; }
html[data-theme="dark"] .rp-ct-pin { border-color: #18181b; }
