/**
 * Rahkan SEO Theme - Base Stylesheet
 * Mobile-First, Scoped (.rk-*), RTL Vazirmatn, WCAG 2.1 AA Compliant
 */

:root,
html[data-theme="light"] {
	--rk-bg: #f8fafc;
	--rk-bg-elevated: #ffffff;
	--rk-card: rgba(255, 255, 255, 0.92);
	--rk-card-solid: #ffffff;
	--rk-border: rgba(15, 23, 42, 0.11);
	--rk-border-hover: rgba(234, 88, 12, 0.45);

	--rk-accent: #ea580c;
	--rk-accent-hover: #f97316;
	--rk-accent-soft: rgba(234, 88, 12, 0.10);
	--rk-accent-glow: rgba(234, 88, 12, 0.22);
	--rk-accent-ink: #ffffff;

	--rk-cool: #0284c7;
	--rk-success: #16a34a;
	--rk-error: #dc2626;

	--rk-text: #0f172a;
	--rk-text-muted: #334155;
	--rk-text-subtle: #475569;

	--rk-font: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;

	--rk-radius-sm: 10px;
	--rk-radius-md: 16px;
	--rk-radius-lg: 24px;
	--rk-radius-pill: 9999px;

	--rk-space-xs: 0.5rem;
	--rk-space-sm: 1rem;
	--rk-space-md: 1.5rem;
	--rk-space-lg: 2.5rem;
	--rk-space-xl: 4.5rem;

	--rk-transition: 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
	--rk-bg: #090d16;
	--rk-bg-elevated: #0f1626;
	--rk-card: rgba(16, 23, 39, 0.82);
	--rk-card-solid: #111829;
	--rk-border: rgba(255, 255, 255, 0.09);
	--rk-border-hover: rgba(249, 115, 22, 0.45);

	--rk-accent: #f97316;
	--rk-accent-hover: #fb923c;
	--rk-accent-soft: rgba(249, 115, 22, 0.14);
	--rk-accent-glow: rgba(249, 115, 22, 0.30);
	--rk-accent-ink: #090d16;

	--rk-cool: #38bdf8;
	--rk-success: #22c55e;
	--rk-error: #f87171;

	--rk-text: #f8fafc;
	--rk-text-muted: #cbd5e1;
	--rk-text-subtle: #94a3b8;
}

/* Base scoped setup without breaking WP Admin Bar */
html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

body.rk-theme-body {
	margin: 0;
	padding: 0;
	font-family: var(--rk-font);
	background-color: var(--rk-bg);
	color: var(--rk-text);
	line-height: 1.75;
	direction: rtl;
	text-align: right;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

.rk-site-wrapper,
.rk-site-wrapper *,
.rk-site-wrapper *::before,
.rk-site-wrapper *::after {
	box-sizing: border-box;
}

.rk-site-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow-x: clip;
	background-image:
		radial-gradient(ellipse 70% 45% at 50% 0%, rgba(249, 115, 22, 0.08) 0%, transparent 68%),
		radial-gradient(circle at 85% 28%, rgba(56, 189, 248, 0.05) 0%, transparent 42%);
}

.rk-site-wrapper img,
.rk-site-wrapper svg,
.rk-site-wrapper video {
	max-width: 100%;
	height: auto;
	display: block;
}

.rk-site-wrapper a {
	color: inherit;
	text-decoration: none;
	transition: color var(--rk-transition), background-color var(--rk-transition), border-color var(--rk-transition), transform var(--rk-transition);
}

.rk-site-wrapper button,
.rk-site-wrapper input,
.rk-site-wrapper select,
.rk-site-wrapper textarea {
	font-family: inherit;
}

/* Accessible Skip Link & Focus States */
.rk-skip-link {
	position: fixed;
	top: -120px;
	right: 16px;
	z-index: 2000;
	background: var(--rk-accent);
	color: var(--rk-accent-ink);
	font-weight: 700;
	padding: 10px 18px;
	border-radius: var(--rk-radius-sm);
	opacity: 0;
	pointer-events: none;
	clip-path: inset(50%);
}

.rk-skip-link:focus {
	top: 16px;
	opacity: 1;
	pointer-events: auto;
	clip-path: none;
}

.rk-site-wrapper a:focus-visible,
.rk-site-wrapper button:focus-visible,
.rk-site-wrapper input:focus-visible,
.rk-site-wrapper select:focus-visible,
.rk-site-wrapper textarea:focus-visible {
	outline: 2px solid var(--rk-accent);
	outline-offset: 3px;
}

/* Container */
.rk-container {
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: 16px;
}

@media (min-width: 768px) {
	.rk-container {
		padding-inline: 24px;
	}
}

/* Glass Surface */
.rk-glass-card {
	background: var(--rk-card);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--rk-border);
	border-radius: var(--rk-radius-lg);
	box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.65);
}

/* Buttons */
.rk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 22px;
	border-radius: var(--rk-radius-pill);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
}

.rk-btn-sm {
	min-height: 40px;
	padding: 8px 18px;
	font-size: 0.875rem;
}

.rk-btn-block {
	width: 100%;
}

.rk-site-wrapper .rk-btn-primary,
.rk-btn-primary {
	background: var(--rk-accent);
	color: var(--rk-accent-ink);
	box-shadow: 0 0 24px var(--rk-accent-glow);
}

.rk-site-wrapper .rk-btn-primary:hover,
.rk-btn-primary:hover {
	background: var(--rk-accent-hover);
	color: var(--rk-accent-ink);
	transform: translateY(-1px);
	box-shadow: 0 6px 28px rgba(249, 115, 22, 0.42);
}

.rk-site-wrapper .rk-btn-outline,
.rk-btn-outline {
	background: rgba(255, 255, 255, 0.04);
	color: var(--rk-text);
	border-color: rgba(255, 255, 255, 0.16);
}

.rk-site-wrapper .rk-btn-outline:hover,
.rk-btn-outline:hover {
	background: rgba(255, 255, 255, 0.09);
	color: var(--rk-text);
	border-color: rgba(255, 255, 255, 0.34);
	transform: translateY(-1px);
}

/* Floating Capsule Header */
.rk-header-wrap {
	position: fixed;
	top: 12px;
	left: 0;
	right: 0;
	z-index: 1000;
}

body.admin-bar .rk-header-wrap {
	top: 56px;
}

@media (min-width: 783px) {
	body.admin-bar .rk-header-wrap {
		top: 44px;
	}
}

.rk-header-capsule {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 58px;
	padding: 12px 16px;
	background: rgba(11, 16, 28, 0.84);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid var(--rk-border);
	border-radius: var(--rk-radius-pill);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.rk-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 1rem;
	color: var(--rk-text);
}

.rk-brand-mark {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--rk-accent), #ea580c);
	color: var(--rk-accent-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.rk-custom-logo img {
	max-height: 36px;
	width: auto;
}

.rk-desktop-nav {
	display: none;
}

.rk-nav-list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rk-nav-list a,
.rk-nav-link {
	display: inline-flex;
	align-items: center;
	padding: 7px 13px;
	border-radius: var(--rk-radius-pill);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--rk-text-muted);
}

.rk-nav-list a:hover,
.rk-nav-link:hover,
.rk-nav-list .current-menu-item > a {
	color: var(--rk-text);
	background: rgba(255, 255, 255, 0.06);
}

/* Header Services Dropdown */
.rk-nav-item-has-dropdown {
	position: relative;
}

.rk-nav-dropdown-trigger {
	gap: 6px;
	background: transparent;
	border: none;
	cursor: pointer;
	line-height: inherit;
}

.rk-nav-chevron {
	transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
	opacity: 0.78;
}

.rk-nav-item-has-dropdown:hover .rk-nav-chevron,
.rk-nav-item-has-dropdown:focus-within .rk-nav-chevron,
.rk-nav-item-has-dropdown.is-open .rk-nav-chevron,
.rk-mobile-services-toggle[aria-expanded="true"] .rk-nav-chevron {
	transform: rotate(180deg);
	color: var(--rk-accent-hover);
	opacity: 1;
}

.rk-nav-dropdown {
	position: absolute;
	top: calc(100% + 14px);
	right: 50%;
	transform: translateX(50%) translateY(8px);
	width: min(620px, calc(100vw - 48px));
	padding: 14px;
	border-radius: 20px;
	background: rgba(11, 16, 28, 0.96);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow:
		0 24px 56px -14px rgba(0, 0, 0, 0.85),
		0 0 28px -12px rgba(249, 115, 22, 0.25);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 220ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1), visibility 220ms ease;
	z-index: 1200;
}

.rk-nav-dropdown::before {
	content: "";
	position: absolute;
	top: -16px;
	left: 0;
	right: 0;
	height: 16px;
}

.rk-nav-item-has-dropdown:hover .rk-nav-dropdown,
.rk-nav-item-has-dropdown:focus-within .rk-nav-dropdown,
.rk-nav-item-has-dropdown.is-open .rk-nav-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(50%) translateY(0);
}

.rk-nav-dropdown-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.rk-nav-list a.rk-nav-dropdown-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	padding: 10px 13px;
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid rgba(255, 255, 255, 0.06);
	text-align: right;
	transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.rk-nav-list a.rk-nav-dropdown-item:hover,
.rk-nav-list a.rk-nav-dropdown-item:focus-visible {
	background: rgba(249, 115, 22, 0.12);
	border-color: rgba(249, 115, 22, 0.42);
	transform: translateY(-1px);
}

.rk-nav-dd-title {
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--rk-text);
	line-height: 1.4;
}

.rk-nav-dd-kw {
	font-size: 0.73rem;
	font-weight: 400;
	color: var(--rk-text-subtle);
	line-height: 1.45;
}

.rk-nav-dropdown-foot {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	display: flex;
	justify-content: flex-end;
}

.rk-nav-list a.rk-nav-dd-all {
	padding: 6px 12px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--rk-accent-hover);
	border-radius: var(--rk-radius-pill);
}

.rk-nav-list a.rk-nav-dd-all:hover {
	background: rgba(249, 115, 22, 0.14);
	color: #fff;
}

/* Mobile Drawer Services Accordion */
.rk-mobile-services-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: transparent;
	border: none;
	text-align: right;
	cursor: pointer;
}

.rk-mobile-sublist {
	list-style: none;
	margin: 4px 0 8px;
	padding: 8px 10px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.07);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rk-mobile-sublist[hidden] {
	display: none;
}

.rk-mobile-nav-list a.rk-mobile-sublink {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 10px;
	border-radius: 10px;
}

.rk-mobile-sublink strong {
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--rk-text);
}

.rk-mobile-sublink small {
	font-size: 0.72rem;
	color: var(--rk-text-subtle);
	line-height: 1.4;
}

.rk-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rk-header-cta {
	display: none;
}

@media (min-width: 480px) {
	.rk-header-cta {
		display: inline-flex;
	}
}

.rk-menu-toggle {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--rk-border);
	background: rgba(255, 255, 255, 0.04);
	color: var(--rk-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.rk-menu-bars {
	width: 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rk-menu-bars span {
	display: block;
	height: 2px;
	width: 100%;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--rk-transition), opacity var(--rk-transition);
}

.rk-menu-toggle[aria-expanded="true"] .rk-menu-bars span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.rk-menu-toggle[aria-expanded="true"] .rk-menu-bars span:nth-child(2) {
	opacity: 0;
}

.rk-menu-toggle[aria-expanded="true"] .rk-menu-bars span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.rk-mobile-drawer {
	margin-top: 10px;
	padding: 16px;
	background: rgba(11, 16, 28, 0.96);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid var(--rk-border);
	border-radius: var(--rk-radius-md);
	box-shadow: 0 20px 44px rgba(0, 0, 0, 0.6);
}

.rk-mobile-drawer[hidden] {
	display: none;
}

.rk-mobile-nav-list {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rk-mobile-nav-list a,
.rk-mobile-nav-link {
	display: block;
	padding: 10px 14px;
	border-radius: var(--rk-radius-sm);
	color: var(--rk-text);
	font-weight: 500;
}

.rk-mobile-nav-list a:hover,
.rk-mobile-nav-link:hover {
	background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 960px) {
	.rk-header-wrap {
		top: 18px;
	}
	.rk-header-capsule {
		padding: 8px 16px;
	}
	.rk-desktop-nav {
		display: block;
	}
	.rk-menu-toggle,
	.rk-mobile-drawer {
		display: none !important;
	}
}

/* Sections & Typography Helpers */
.rk-main {
	flex: 1 0 auto;
}

.rk-section {
	padding-block: 56px;
	scroll-margin-top: 86px;
}

@media (min-width: 768px) {
	.rk-section {
		padding-block: 84px;
	}
}

.rk-section-head {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 32px;
}

.rk-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--rk-accent-hover);
	background: var(--rk-accent-soft);
	border: 1px solid rgba(249, 115, 22, 0.25);
	padding: 4px 12px;
	border-radius: var(--rk-radius-pill);
	margin-bottom: 12px;
}

.rk-section-title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 3.4vw, 2.25rem);
	font-weight: 800;
	line-height: 1.3;
	color: var(--rk-text);
}

.rk-section-subtitle {
	margin: 0;
	color: var(--rk-text-muted);
	font-size: 0.975rem;
}

.rk-text-start {
	text-align: right;
}

.rk-text-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--rk-accent-hover);
	font-weight: 700;
	font-size: 0.9rem;
}

.rk-text-link:hover {
	color: var(--rk-text);
}

.rk-text-link-muted {
	color: var(--rk-text-muted);
}

/* Contact & About Section (shared with /contact-us/) */
.rk-about-card {
	padding: 28px 22px;
}

@media (min-width: 768px) {
	.rk-about-card {
		padding: 40px 44px;
	}
}

.rk-about-prose p {
	margin: 0 0 14px;
	color: var(--rk-text-muted);
	font-size: 0.975rem;
	line-height: 1.9;
}

.rk-about-prose p:last-child {
	margin-bottom: 0;
}

.rk-contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	align-items: start;
}

@media (min-width: 900px) {
	.rk-contact-grid {
		grid-template-columns: 5fr 7fr;
		gap: 40px;
	}
}

.rk-contact-list {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rk-contact-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--rk-text-muted);
	font-size: 0.9375rem;
}

.rk-contact-label {
	color: var(--rk-text-subtle);
}

.rk-contact-val {
	color: var(--rk-accent-hover);
	font-weight: 700;
}

.rk-contact-form-card {
	padding: 24px 18px;
}

@media (min-width: 640px) {
	.rk-contact-form-card {
		padding: 32px;
	}
}

.rk-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rk-form-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 640px) {
	.rk-form-row {
		grid-template-columns: 1fr 1fr;
	}
}

.rk-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.rk-field label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rk-text-muted);
}

.rk-field input,
.rk-field select,
.rk-field textarea {
	width: 100%;
	padding: 11px 14px;
	border-radius: var(--rk-radius-sm);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(9, 13, 22, 0.85);
	color: var(--rk-text);
	font-size: 0.9375rem;
	transition: border-color var(--rk-transition);
}

.rk-field input:focus,
.rk-field select:focus,
.rk-field textarea:focus {
	border-color: var(--rk-accent);
}

.rk-hp-field {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

.rk-form-feedback {
	font-size: 0.9rem;
	font-weight: 600;
	min-height: 1.2em;
}

.rk-form-feedback.is-success {
	color: var(--rk-success);
	background: rgba(34, 197, 94, 0.10);
	border: 1px solid rgba(34, 197, 94, 0.30);
	padding: 12px 14px;
	border-radius: var(--rk-radius-sm);
}

.rk-form-feedback.is-error {
	color: var(--rk-error);
	background: rgba(248, 113, 113, 0.10);
	border: 1px solid rgba(248, 113, 113, 0.30);
	padding: 12px 14px;
	border-radius: var(--rk-radius-sm);
}

/* Inner Pages (/about-us/, /blog/, single, 404) */
.rk-inner-main {
	padding-top: 108px;
	padding-bottom: 64px;
}

.rk-page-header {
	margin-bottom: 28px;
}

.rk-page-title {
	margin: 0;
	font-size: clamp(1.65rem, 4vw, 2.5rem);
	font-weight: 800;
	line-height: 1.3;
}

.rk-prose-card,
.rk-empty-card {
	padding: 28px 22px;
}

.rk-empty-card {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.rk-entry-content {
	color: var(--rk-text-muted);
	line-height: 1.9;
}

.rk-entry-content h2,
.rk-entry-content h3 {
	color: var(--rk-text);
	margin-top: 1.5em;
}

.rk-posts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 768px) {
	.rk-posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.rk-post-card {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rk-post-card-title {
	margin: 0;
	font-size: 1.2rem;
}

.rk-post-date {
	font-size: 0.8125rem;
	color: var(--rk-text-subtle);
}

/* Footer */
.rk-footer {
	margin-top: auto;
	background: #060910;
	border-top: 1px solid var(--rk-border);
	padding: 32px 0 20px;
}

.rk-footer-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 14px;
	margin-bottom: 22px;
}

.rk-footer-brand {
	grid-column: 1 / -1;
}

.rk-footer-col-landings {
	grid-column: 1 / -1;
	order: 3;
}

@media (min-width: 768px) {
	.rk-footer {
		padding: 52px 0 28px;
	}
	.rk-footer-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px;
		margin-bottom: 36px;
	}
	.rk-footer-brand,
	.rk-footer-col-landings {
		grid-column: auto;
		order: initial;
	}
}

@media (min-width: 1024px) {
	.rk-footer-grid {
		grid-template-columns: 1.45fr 0.85fr 1.65fr 1fr;
		gap: 28px;
	}
}

.rk-footer-cta-wrap {
	margin: 12px 0 0;
}

.rk-footer-landings {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px 14px;
}

.rk-footer-desc {
	margin: 8px 0 0;
	color: var(--rk-text-muted);
	font-size: 0.86rem;
	line-height: 1.6;
	max-width: 380px;
}

.rk-footer-heading {
	margin: 0 0 9px;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--rk-text);
}

.rk-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.82rem;
	color: var(--rk-text-muted);
}

.rk-footer-links.rk-footer-landings {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px 14px;
}

@media (min-width: 768px) {
	.rk-footer-heading {
		margin: 0 0 14px;
		font-size: 1rem;
	}
	.rk-footer-links {
		gap: 10px;
		font-size: 0.9rem;
	}
}

.rk-footer-links a:hover {
	color: var(--rk-accent-hover);
}

.rk-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding-top: 20px;
	color: var(--rk-text-subtle);
	font-size: 0.85rem;
	text-align: center;
}

.rk-footer-bottom p {
	margin: 0;
}

/* Reduced Motion Global Compliance */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.rk-site-wrapper *,
	.rk-site-wrapper *::before,
	.rk-site-wrapper *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ==========================================================================
   Blog & Prose Responsive Tables (Desktop + Mobile)
   ========================================================================== */
article table,
.entry-content table,
.rk-prose table,
.rk-single-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 24px 0;
	background: rgba(15, 23, 42, 0.72);
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 14px;
	overflow: hidden;
	font-size: 0.94rem;
	line-height: 1.75;
}

article table thead th,
.entry-content table thead th,
.rk-prose table thead th,
.rk-single-content table thead th {
	background: rgba(56, 189, 248, 0.14);
	color: #f8fafc;
	font-weight: 700;
	text-align: right;
	padding: 13px 16px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.25);
	white-space: nowrap;
}

article table tbody td,
.entry-content table tbody td,
.rk-prose table tbody td,
.rk-single-content table tbody td {
	padding: 12px 16px;
	color: #e2e8f0;
	border-bottom: 1px solid rgba(148, 163, 184, 0.14);
	vertical-align: top;
}

article table tbody tr:last-child td,
.entry-content table tbody tr:last-child td,
.rk-prose table tbody tr:last-child td,
.rk-single-content table tbody tr:last-child td {
	border-bottom: 0;
}

article table tbody tr:nth-child(even) td,
.entry-content table tbody tr:nth-child(even) td,
.rk-prose table tbody tr:nth-child(even) td,
.rk-single-content table tbody tr:nth-child(even) td {
	background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 767px) {
	article table,
	.entry-content table,
	.rk-prose table,
	.rk-single-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		font-size: 0.86rem;
		border-radius: 12px;
	}

	article table thead th,
	.entry-content table thead th,
	.rk-prose table thead th,
	.rk-single-content table thead th,
	article table tbody td,
	.entry-content table tbody td,
	.rk-prose table tbody td,
	.rk-single-content table tbody td {
		padding: 10px 12px;
		min-width: 155px;
		white-space: normal;
	}
}

/* ==========================================================================
   Theme Toggle Button & Light Mode Surface Overrides
   ========================================================================== */
.rk-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 9999px;
	border: 1px solid var(--rk-border);
	background: var(--rk-card-solid);
	color: var(--rk-text);
	cursor: pointer;
	transition: border-color var(--rk-transition), background-color var(--rk-transition), transform var(--rk-transition);
	flex-shrink: 0;
}

.rk-theme-toggle:hover {
	border-color: var(--rk-accent);
	color: var(--rk-accent);
	transform: translateY(-1px);
}

html:not([data-theme="dark"]) .rk-theme-toggle .rk-icon-sun {
	display: none;
}

html[data-theme="dark"] .rk-theme-toggle .rk-icon-moon {
	display: none;
}

/* Light Mode overrides for surfaces that used dark RGBA values */
html:not([data-theme="dark"]) .rk-header-capsule {
	background: rgba(255, 255, 255, 0.88) !important;
	border-color: rgba(15, 23, 42, 0.10) !important;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

html:not([data-theme="dark"]) .rk-nav-dropdown,
html:not([data-theme="dark"]) .rk-mobile-drawer {
	background: #ffffff !important;
	border-color: rgba(15, 23, 42, 0.12) !important;
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14) !important;
}

html:not([data-theme="dark"]) .rk-nav-dropdown-item:hover {
	background: rgba(234, 88, 12, 0.07) !important;
}

html:not([data-theme="dark"]) .rk-glass-card,
html:not([data-theme="dark"]) .rk-sl-hero-card,
html:not([data-theme="dark"]) .rk-contact-form-card {
	background: #ffffff !important;
	border-color: rgba(15, 23, 42, 0.10) !important;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

html:not([data-theme="dark"]) .rk-footer {
	background: #f1f5f9 !important;
	border-top: 1px solid rgba(15, 23, 42, 0.10) !important;
}

html:not([data-theme="dark"]) .rk-btn-outline {
	color: var(--rk-text) !important;
	border-color: rgba(15, 23, 42, 0.22) !important;
	background: rgba(255, 255, 255, 0.7) !important;
}

html:not([data-theme="dark"]) .rk-btn-outline:hover {
	border-color: var(--rk-accent) !important;
	color: var(--rk-accent) !important;
}

html:not([data-theme="dark"]) .rk-form input,
html:not([data-theme="dark"]) .rk-form select,
html:not([data-theme="dark"]) .rk-form textarea {
	background: #f8fafc !important;
	color: #0f172a !important;
	border-color: rgba(15, 23, 42, 0.18) !important;
}

html:not([data-theme="dark"]) .rk-form input::placeholder,
html:not([data-theme="dark"]) .rk-form textarea::placeholder {
	color: #64748b !important;
}

html:not([data-theme="dark"]) article table,
html:not([data-theme="dark"]) .entry-content table,
html:not([data-theme="dark"]) .rk-prose table,
html:not([data-theme="dark"]) .rk-single-content table,
html:not([data-theme="dark"]) .rk-sl-table-wrap table {
	background: #ffffff !important;
	border-color: rgba(15, 23, 42, 0.14) !important;
}

html:not([data-theme="dark"]) article table thead th,
html:not([data-theme="dark"]) .entry-content table thead th,
html:not([data-theme="dark"]) .rk-prose table thead th,
html:not([data-theme="dark"]) .rk-single-content table thead th,
html:not([data-theme="dark"]) .rk-sl-table-wrap table thead th {
	background: #f1f5f9 !important;
	color: #0f172a !important;
	border-bottom-color: rgba(15, 23, 42, 0.15) !important;
}

html:not([data-theme="dark"]) article table tbody td,
html:not([data-theme="dark"]) .entry-content table tbody td,
html:not([data-theme="dark"]) .rk-prose table tbody td,
html:not([data-theme="dark"]) .rk-single-content table tbody td,
html:not([data-theme="dark"]) .rk-sl-table-wrap table tbody td {
	color: #1e293b !important;
	border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

html:not([data-theme="dark"]) article table tbody tr:nth-child(even) td,
html:not([data-theme="dark"]) .entry-content table tbody tr:nth-child(even) td,
html:not([data-theme="dark"]) .rk-prose table tbody tr:nth-child(even) td,
html:not([data-theme="dark"]) .rk-single-content table tbody tr:nth-child(even) td {
	background: #f8fafc !important;
}

html:not([data-theme="dark"]) .rk-callout {
	background: #f1f5f9 !important;
	color: #0f172a !important;
}

html:not([data-theme="dark"]) .rk-sl-compare-card p,
html:not([data-theme="dark"]) .rk-sl-note-box {
	color: #334155 !important;
}

/* Light Mode Fixes: Landing H1, TOC, Services Showcase, and Marquee */
html:not([data-theme="dark"]) .rk-sl-h1,
html:not([data-theme="dark"]) .rk-section-title,
html:not([data-theme="dark"]) .rk-sl-entry h2,
html:not([data-theme="dark"]) .rk-sl-entry h3,
html:not([data-theme="dark"]) .rk-sl-case-body h3,
html:not([data-theme="dark"]) .rk-sl-road-step h3,
html:not([data-theme="dark"]) .rk-sl-faq-item summary {
	color: #0f172a !important;
	background: none !important;
	-webkit-text-fill-color: #0f172a !important;
}

html:not([data-theme="dark"]) .rk-sl-toc-inline {
	border-top-color: rgba(15, 23, 42, 0.10) !important;
}

html:not([data-theme="dark"]) .rk-sl-toc-inline a {
	color: #334155 !important;
	background: #f1f5f9 !important;
	border: 1px solid rgba(15, 23, 42, 0.10) !important;
	padding: 5px 12px;
	border-radius: 999px;
}

html:not([data-theme="dark"]) .rk-sl-toc-inline a:hover {
	color: #ea580c !important;
	border-color: rgba(234, 88, 12, 0.35) !important;
	background: rgba(234, 88, 12, 0.08) !important;
}

/* Home Services Showcase Box in Light Mode */
html:not([data-theme="dark"]) .rk-svc-showcase,
html:not([data-theme="dark"]) .rk-services-box,
html:not([data-theme="dark"]) .rk-svc-panel,
html:not([data-theme="dark"]) .rk-svc-stage,
html:not([data-theme="dark"]) [class*="rk-service-stage"],
html:not([data-theme="dark"]) [class*="rk-services-stage"] {
	background: #ffffff !important;
	border-color: rgba(15, 23, 42, 0.12) !important;
	box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07) !important;
}

html:not([data-theme="dark"]) .rk-svc-card,
html:not([data-theme="dark"]) .rk-svc-tab,
html:not([data-theme="dark"]) .rk-service-tab {
	background: #f8fafc !important;
	border-color: rgba(15, 23, 42, 0.10) !important;
	color: #0f172a !important;
}

html:not([data-theme="dark"]) .rk-svc-card.is-active,
html:not([data-theme="dark"]) .rk-svc-tab.is-active,
html:not([data-theme="dark"]) .rk-service-tab.is-active {
	background: linear-gradient(135deg, rgba(234, 88, 12, 0.14), rgba(249, 115, 22, 0.06)) !important;
	border-color: #ea580c !important;
	color: #0f172a !important;
}

/* Logo Marquee Strip in Light Mode */
html:not([data-theme="dark"]) .rk-marquee-strip,
html:not([data-theme="dark"]) .rk-logo-marquee,
html:not([data-theme="dark"]) .rk-platforms-strip {
	background: #f1f5f9 !important;
	border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html:not([data-theme="dark"]) .rk-marquee-strip::before,
html:not([data-theme="dark"]) .rk-marquee-strip::after,
html:not([data-theme="dark"]) .rk-logo-marquee::before,
html:not([data-theme="dark"]) .rk-logo-marquee::after {
	background: none !important;
}

/* Home Services Showcase (.rk-showcase-*) in Light Mode */
html:not([data-theme="dark"]) .rk-showcase-master {
	background: #ffffff !important;
	border: 1px solid rgba(15, 23, 42, 0.12) !important;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08) !important;
}

html:not([data-theme="dark"]) .rk-showcase-top {
	background: #f8fafc !important;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html:not([data-theme="dark"]) .rk-showcase-bar-label,
html:not([data-theme="dark"]) .rk-showcase-counter {
	color: #475569 !important;
	background: #ffffff !important;
	border-color: rgba(15, 23, 42, 0.12) !important;
}

html:not([data-theme="dark"]) .rk-showcase-tab,
html:not([data-theme="dark"]) .rk-service-tab-btn,
html:not([data-theme="dark"]) .rk-showcase-master button[role="tab"] {
	background: #ffffff !important;
	border: 1px solid rgba(15, 23, 42, 0.10) !important;
	color: #1e293b !important;
}

html:not([data-theme="dark"]) .rk-showcase-tab.is-active,
html:not([data-theme="dark"]) .rk-showcase-master button[role="tab"][aria-selected="true"] {
	background: linear-gradient(135deg, rgba(234, 88, 12, 0.12), rgba(249, 115, 22, 0.04)) !important;
	border-color: #ea580c !important;
	color: #0f172a !important;
}

html:not([data-theme="dark"]) .rk-showcase-master h3,
html:not([data-theme="dark"]) .rk-showcase-master h4,
html:not([data-theme="dark"]) .rk-showcase-master strong {
	color: #0f172a !important;
}

html:not([data-theme="dark"]) .rk-showcase-master p,
html:not([data-theme="dark"]) .rk-showcase-master li {
	color: #334155 !important;
}

/* Light Mode: All Bento, Deck, Portfolio, Compare, Marquee & Service Tab Surfaces */
html:not([data-theme="dark"]) .rk-bento-card,
html:not([data-theme="dark"]) .rk-deck-card,
html:not([data-theme="dark"]) .rk-deck-back,
html:not([data-theme="dark"]) .rk-pf-card,
html:not([data-theme="dark"]) .rk-pf-studio,
html:not([data-theme="dark"]) .rk-compare-stage,
html:not([data-theme="dark"]) .rk-compare-preview,
html:not([data-theme="dark"]) .rk-compare-code,
html:not([data-theme="dark"]) .rk-platform-tooltip-dock,
html:not([data-theme="dark"]) .rk-srv-card-tab,
html:not([data-theme="dark"]) .rk-home-blog-card {
	background: #ffffff !important;
	border-color: rgba(15, 23, 42, 0.12) !important;
	color: #0f172a !important;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07) !important;
}

html:not([data-theme="dark"]) .rk-bento-card h2,
html:not([data-theme="dark"]) .rk-bento-card h3,
html:not([data-theme="dark"]) .rk-bento-card h4,
html:not([data-theme="dark"]) .rk-bento-card strong,
html:not([data-theme="dark"]) .rk-pf-card h3,
html:not([data-theme="dark"]) .rk-deck-card h3 {
	color: #0f172a !important;
}

html:not([data-theme="dark"]) .rk-bento-card p,
html:not([data-theme="dark"]) .rk-bento-card li,
html:not([data-theme="dark"]) .rk-pf-card p,
html:not([data-theme="dark"]) .rk-deck-card p {
	color: #334155 !important;
}

html:not([data-theme="dark"]) .rk-marquee-shell {
	background: #f1f5f9 !important;
	border-color: rgba(15, 23, 42, 0.10) !important;
}

html:not([data-theme="dark"]) .rk-srv-card-tab:hover,
html:not([data-theme="dark"]) .rk-srv-card-tab.is-active {
	background: linear-gradient(135deg, rgba(234, 88, 12, 0.12), rgba(249, 115, 22, 0.04)) !important;
	border-color: #ea580c !important;
	color: #0f172a !important;
}

html:not([data-theme="dark"]) .rk-pf-browser-bar {
	background: #f1f5f9 !important;
	border-bottom-color: rgba(15, 23, 42, 0.10) !important;
}

/* ==========================================================================
   Light Mode Rich Multi-Tone Palette (Warm Amber + Sky Blue + Deep Navy Footer)
   ========================================================================== */
html:not([data-theme="dark"]) body.rk-theme-body {
	background-color: #f4f6fb !important;
}

html:not([data-theme="dark"]) .rk-site-wrapper {
	background-image:
		radial-gradient(ellipse 65% 40% at 80% 0%, rgba(234, 88, 12, 0.11) 0%, transparent 65%),
		radial-gradient(ellipse 60% 45% at 15% 22%, rgba(2, 132, 199, 0.10) 0%, transparent 60%),
		radial-gradient(ellipse 55% 40% at 50% 75%, rgba(99, 102, 241, 0.06) 0%, transparent 60%) !important;
}

/* Alternating section rhythm so the page never feels flat white */
html:not([data-theme="dark"]) main > section:nth-of-type(even) {
	background: linear-gradient(180deg, #edf2f9 0%, #f5f7fc 100%);
	border-top: 1px solid rgba(15, 23, 42, 0.06);
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Accent color depth on Bento & Compare cards */
html:not([data-theme="dark"]) .rk-bento-card:nth-child(odd),
html:not([data-theme="dark"]) .rk-sl-compare-card:nth-child(odd) {
	border-top: 3px solid #ea580c !important;
}

html:not([data-theme="dark"]) .rk-bento-card:nth-child(even),
html:not([data-theme="dark"]) .rk-sl-compare-card:nth-child(even) {
	border-top: 3px solid #0284c7 !important;
}

/* Sky-blue tinted table headers for crisp visual pop */
html:not([data-theme="dark"]) article table thead th,
html:not([data-theme="dark"]) .entry-content table thead th,
html:not([data-theme="dark"]) .rk-sl-table-wrap table thead th {
	background: linear-gradient(90deg, #e0f2fe 0%, #eef2ff 100%) !important;
	color: #0f172a !important;
}

/* Warm-tinted callouts & contact section */
html:not([data-theme="dark"]) .rk-sl-contact {
	background: linear-gradient(135deg, #fff7ed 0%, #eef6ff 100%) !important;
}

/* Deep Navy Footer for strong visual anchor & luxury contrast */
html:not([data-theme="dark"]) .rk-footer {
	background: linear-gradient(180deg, #0f172a 0%, #0b1120 100%) !important;
	color: #e2e8f0 !important;
	border-top: 3px solid #ea580c !important;
}

html:not([data-theme="dark"]) .rk-footer .rk-brand-text,
html:not([data-theme="dark"]) .rk-footer .rk-footer-heading {
	color: #ffffff !important;
}

html:not([data-theme="dark"]) .rk-footer .rk-footer-desc,
html:not([data-theme="dark"]) .rk-footer .rk-footer-links a,
html:not([data-theme="dark"]) .rk-footer .rk-footer-links li,
html:not([data-theme="dark"]) .rk-footer .rk-footer-bottom p {
	color: #cbd5e1 !important;
}

html:not([data-theme="dark"]) .rk-footer .rk-footer-links a:hover {
	color: #fb923c !important;
}

/* Light Mode: Portfolio Deck, Dial, Detail Bar & Arrows */
html:not([data-theme="dark"]) .rk-pf-deck,
html:not([data-theme="dark"]) .rk-pf-dial,
html:not([data-theme="dark"]) .rk-pf-detail-bar {
	background: #ffffff !important;
	border: 1px solid rgba(15, 23, 42, 0.12) !important;
	color: #0f172a !important;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
}

html:not([data-theme="dark"]) .rk-pf-detail-bar *,
html:not([data-theme="dark"]) .rk-pf-dial * {
	color: #0f172a !important;
}

html:not([data-theme="dark"]) .rk-pf-m-arrow {
	background: #ffffff !important;
	color: #0f172a !important;
	border: 1px solid rgba(15, 23, 42, 0.16) !important;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10) !important;
}
