/*
Theme Name: رایان‌داد
Theme URI: https://example.com/rayandad
Author: OpenAI
Author URI: https://openai.com
Description: تم حرفه‌ای فارسی برای کارشناس رسمی دادگستری در حوزه رایانه و فناوری اطلاعات؛ سریع، راست‌چین، دسترس‌پذیر و واکنش‌گرا.
Version: 1.2.3
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rayandad
Tags: rtl-language-support, blog, custom-logo, custom-menu, featured-images, accessibility-ready, editor-style, block-styles
*/

@font-face {
	font-family: "Estedad";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/estedad-arabic-variable.woff2") format("woff2-variations");
}

:root {
	--rd-navy-950: #0b1728;
	--rd-navy-900: #12243d;
	--rd-navy-800: #1b3554;
	--rd-teal-700: #0b6f69;
	--rd-teal-600: #0d8279;
	--rd-teal-100: #dff3ef;
	--rd-gold-500: #c99543;
	--rd-gold-100: #fbefd8;
	--rd-ink: #152130;
	--rd-muted: #5e6875;
	--rd-surface: #ffffff;
	--rd-canvas: #fbfcfc;
	--rd-line: #dce3e7;
	--rd-success: #287a58;
	--rd-danger: #b4233c;
	--rd-radius-sm: 12px;
	--rd-radius: 20px;
	--rd-radius-lg: 32px;
	--rd-shadow-sm: 0 10px 34px rgba(34, 75, 82, .07);
	--rd-shadow: 0 22px 60px rgba(34, 75, 82, .12);
	--rd-container: 1180px;
	--rd-font: "Estedad", Tahoma, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	max-width: 100%;
	overflow-x: clip;
	-webkit-text-size-adjust: 100%;
}

body {
	width: 100%;
	max-width: 100%;
	margin: 0;
	overflow-x: clip;
	color: var(--rd-ink);
	background: var(--rd-canvas);
	font-family: var(--rd-font);
	font-size: 16px;
	line-height: 1.9;
	text-rendering: optimizeLegibility;
}

body.menu-open {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

iframe,
video,
embed,
object,
svg {
	max-width: 100%;
}

pre {
	max-width: 100%;
	overflow-x: auto;
}

.entry-content,
.entry-content p,
.entry-content li,
.entry-content a {
	overflow-wrap: anywhere;
	word-break: normal;
}

a {
	color: var(--rd-teal-700);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

a:hover {
	color: var(--rd-navy-900);
}

button,
input,
textarea,
select {
	font: inherit;
}

button,
.button {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--rd-gold-500);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 12px;
	right: 12px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	color: var(--rd-navy-950);
	background: var(--rd-surface);
	border-radius: 8px;
	box-shadow: var(--rd-shadow);
}

.site-container {
	width: min(calc(100% - 40px), var(--rd-container));
	margin-inline: auto;
}

.site-main {
	min-height: 55vh;
}

.site-header + .site-main,
.site-main > :first-child {
	margin-top: 0;
}

.section {
	padding: clamp(64px, 8vw, 112px) 0;
}

.section--white {
	background: var(--rd-surface);
}

.section--soft {
	background:
		radial-gradient(circle at 12% 8%, rgba(223, 243, 239, .86), transparent 31%),
		linear-gradient(180deg, #f5fbfa 0%, #fbfcfc 100%);
}

.section-heading {
	max-width: 720px;
	margin: 0 auto 44px;
	text-align: center;
}

.section-heading--start {
	margin-inline: 0;
	text-align: start;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	color: var(--rd-teal-700);
	font-size: .88rem;
	font-weight: 800;
	letter-spacing: .02em;
}

.eyebrow::before {
	width: 24px;
	height: 2px;
	content: "";
	background: var(--rd-gold-500);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 .65em;
	color: var(--rd-navy-950);
	font-weight: 850;
	line-height: 1.45;
}

h1 {
	font-size: clamp(2rem, 5vw, 4.25rem);
}

h2 {
	font-size: clamp(1.65rem, 3vw, 2.6rem);
}

h3 {
	font-size: clamp(1.15rem, 2vw, 1.38rem);
}

p {
	margin: 0 0 1.25em;
}

.lead {
	color: var(--rd-muted);
	font-size: clamp(1.02rem, 1.6vw, 1.18rem);
	line-height: 2;
}

.button {
	position: relative;
	display: inline-flex;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 24px;
	color: #fff;
	background: var(--rd-teal-700);
	border: 1px solid var(--rd-teal-700);
	border-radius: 999px;
	font-weight: 800;
	line-height: 1.4;
	text-decoration: none;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.button::after {
	position: absolute;
	top: -60%;
	left: -45%;
	width: 28px;
	height: 220%;
	content: "";
	background: rgba(255, 255, 255, .34);
	transform: rotate(22deg) translateX(-190px);
	transition: transform .65s ease;
}

.button:hover {
	color: #fff;
	background: var(--rd-teal-600);
	box-shadow: 0 10px 25px rgba(11, 111, 105, .23);
	transform: translateY(-2px);
}

.button:hover::after {
	transform: rotate(22deg) translateX(360px);
}

.button--light {
	color: var(--rd-navy-950);
	background: #fff;
	border-color: var(--rd-line);
	box-shadow: var(--rd-shadow-sm);
}

.button--light:hover {
	color: var(--rd-navy-950);
	background: var(--rd-gold-100);
}

.button--ghost {
	color: var(--rd-navy-900);
	background: transparent;
	border-color: var(--rd-line);
}

.button--ghost:hover {
	color: var(--rd-navy-950);
	background: #fff;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, .9);
	border-bottom: 1px solid rgba(220, 227, 231, .85);
	box-shadow: 0 2px 18px rgba(11, 23, 40, .04);
	backdrop-filter: blur(14px);
	transition: box-shadow .3s ease, background-color .3s ease;
}

.site-header.is-scrolled {
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 10px 30px rgba(34, 75, 82, .1);
}

.admin-bar .site-header {
	top: 32px;
}

.header-inner {
	display: flex;
	min-height: 84px;
	align-items: center;
	gap: 28px;
}

.site-branding {
	display: flex;
	min-width: 210px;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.custom-logo {
	display: block;
	width: auto;
	max-height: 54px;
}

.brand-mark {
	display: grid;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	place-items: center;
	color: #fff;
	background: linear-gradient(145deg, var(--rd-navy-900), var(--rd-teal-700));
	border-radius: 15px 15px 15px 4px;
	box-shadow: 0 8px 20px rgba(18, 36, 61, .18);
	font-size: 1.2rem;
	font-weight: 900;
}

.brand-copy {
	display: flex;
	flex-direction: column;
	color: var(--rd-navy-950);
	line-height: 1.45;
}

.brand-copy strong {
	font-size: 1rem;
}

.brand-copy span {
	color: var(--rd-muted);
	font-size: .72rem;
}

.primary-navigation {
	margin-inline-start: auto;
}

.primary-navigation ul {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.primary-navigation a {
	display: flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	padding: 10px 15px;
	color: var(--rd-ink);
	border-radius: 12px;
	font-size: .96rem;
	font-weight: 700;
	text-decoration: none;
}

.primary-navigation > ul > li > a {
	min-width: 76px;
	text-align: center;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
	color: var(--rd-teal-700);
	background: var(--rd-teal-100);
}

.primary-navigation .menu-item-has-children {
	position: relative;
}

.primary-navigation .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 10;
	display: block;
	width: 240px;
	padding: 10px;
	visibility: hidden;
	background: #fff;
	border: 1px solid var(--rd-line);
	border-radius: 14px;
	box-shadow: var(--rd-shadow);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.primary-navigation .menu-item-has-children:hover > .sub-menu,
.primary-navigation .menu-item-has-children:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

.primary-navigation .sub-menu a {
	width: 100%;
	justify-content: flex-start;
	min-height: 44px;
	text-align: right;
}

.header-cta {
	flex: 0 0 auto;
}

.menu-toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	color: var(--rd-navy-950);
	background: var(--rd-canvas);
	border: 1px solid var(--rd-line);
	border-radius: 14px;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
	position: relative;
	display: block;
	width: 21px;
	height: 2px;
	margin: auto;
	content: "";
	background: currentColor;
	transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle-lines::before {
	position: absolute;
	top: -7px;
}

.menu-toggle-lines::after {
	position: absolute;
	top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
	top: 0;
	transform: rotate(-45deg);
}

.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(72px, 9vw, 132px) 0;
	color: var(--rd-ink);
	background:
		radial-gradient(circle at 7% 18%, rgba(223, 243, 239, .98), transparent 34%),
		radial-gradient(circle at 91% 82%, rgba(251, 239, 216, .75), transparent 29%),
		linear-gradient(135deg, #ffffff 0%, #f5fbfa 58%, #f8f4ec 100%);
}

.hero::after {
	position: absolute;
	inset: 0;
	content: "";
	background-image: url("assets/images/circuit-pattern-light.svg");
	background-position: center;
	background-size: 780px;
	opacity: .38;
	pointer-events: none;
	animation: rd-pattern-drift 24s ease-in-out infinite alternate;
}

.hero::before {
	position: absolute;
	top: -110px;
	left: -90px;
	width: 300px;
	height: 300px;
	content: "";
	background: rgba(13, 130, 121, .08);
	border-radius: 46% 54% 67% 33% / 44% 40% 60% 56%;
	animation: rd-blob 11s ease-in-out infinite alternate;
}

.hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
	align-items: center;
	gap: clamp(40px, 7vw, 88px);
}

.hero-grid--single {
	grid-template-columns: minmax(0, 820px);
	justify-content: center;
}

.hero h1 {
	max-width: 800px;
	color: var(--rd-navy-950);
	letter-spacing: -.035em;
}

.hero .lead {
	max-width: 680px;
	color: var(--rd-muted);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.hero-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding: 0;
	margin: 36px 0 0;
	color: var(--rd-muted);
	list-style: none;
	font-size: .88rem;
}

.hero-badges li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hero-badges li::before {
	display: grid;
	width: 22px;
	height: 22px;
	place-items: center;
	content: "✓";
	color: var(--rd-teal-700);
	background: var(--rd-teal-100);
	border-radius: 50%;
	font-size: .75rem;
	font-weight: 900;
}

.expert-card {
	position: relative;
	padding: 18px;
	background: rgba(255, 255, 255, .72);
	border: 1px solid rgba(11, 111, 105, .14);
	border-radius: var(--rd-radius-lg);
	box-shadow: var(--rd-shadow);
	backdrop-filter: blur(12px);
}

.expert-photo {
	overflow: hidden;
	aspect-ratio: 4 / 4.55;
	background:
		linear-gradient(145deg, rgba(223, 243, 239, .95), rgba(255, 255, 255, .72)),
		url("assets/images/expert-placeholder.svg") center bottom / cover no-repeat;
	border-radius: 24px;
}

.expert-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.expert-meta {
	position: absolute;
	right: 34px;
	bottom: 34px;
	left: 34px;
	padding: 16px 18px;
	color: var(--rd-navy-950);
	background: rgba(255, 255, 255, .94);
	border-radius: 17px;
	box-shadow: var(--rd-shadow-sm);
}

.expert-meta strong,
.expert-meta span {
	display: block;
}

.expert-meta span {
	margin-top: 3px;
	color: var(--rd-muted);
	font-size: .82rem;
}

.trust-strip {
	position: relative;
	z-index: 2;
	margin-top: -34px;
}

.trust-strip--standalone {
	padding-top: 30px;
	margin-top: 0;
}

.trust-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1px;
	overflow: hidden;
	background: var(--rd-line);
	border: 1px solid var(--rd-line);
	border-radius: var(--rd-radius);
	box-shadow: var(--rd-shadow);
}

.trust-item {
	padding: 26px 30px;
	background: var(--rd-surface);
	text-align: center;
}

.trust-item + .trust-item {
	border-inline-start: 0;
}

.trust-item strong {
	display: block;
	color: var(--rd-navy-950);
	font-size: 1.25rem;
}

.trust-item span {
	color: var(--rd-muted);
	font-size: .84rem;
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.service-card {
	position: relative;
	min-height: 290px;
	padding: 30px;
	overflow: hidden;
	background: var(--rd-surface);
	border: 1px solid var(--rd-line);
	border-radius: var(--rd-radius);
	box-shadow: var(--rd-shadow-sm);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .25s ease, box-shadow .35s ease;
}

.service-card:hover {
	border-color: rgba(11, 111, 105, .35);
	box-shadow: var(--rd-shadow);
	transform: translateY(-8px) rotate(.2deg);
}

.service-card::after {
	position: absolute;
	top: -45px;
	left: -45px;
	width: 110px;
	height: 110px;
	content: "";
	background: var(--rd-teal-100);
	border-radius: 50%;
	opacity: .7;
}

.service-icon {
	display: grid;
	width: 56px;
	height: 56px;
	margin-bottom: 22px;
	place-items: center;
	color: var(--rd-teal-700);
	background: var(--rd-teal-100);
	border-radius: 17px;
	font-size: 1.45rem;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .3s ease;
}

.service-card:hover .service-icon {
	background: var(--rd-gold-100);
	transform: rotate(-6deg) scale(1.08);
}

.service-card p {
	color: var(--rd-muted);
	font-size: .93rem;
}

.service-card a {
	position: absolute;
	right: 30px;
	bottom: 25px;
	font-weight: 800;
	text-decoration: none;
}

.process-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	counter-reset: steps;
}

.process-item {
	position: relative;
	padding: 26px;
	background: rgba(255, 255, 255, .85);
	border: 1px solid var(--rd-line);
	border-radius: var(--rd-radius);
	counter-increment: steps;
	transition: transform .3s ease, box-shadow .3s ease;
}

.process-item:hover {
	box-shadow: var(--rd-shadow-sm);
	transform: translateY(-5px);
}

.process-item::before {
	display: grid;
	width: 42px;
	height: 42px;
	margin-bottom: 18px;
	place-items: center;
	content: counter(steps, decimal-leading-zero);
	color: #fff;
	background: var(--rd-navy-900);
	border-radius: 50%;
	font-size: .82rem;
	font-weight: 900;
}

.process-item p {
	margin: 0;
	color: var(--rd-muted);
	font-size: .9rem;
}

.about-grid {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	align-items: center;
	gap: clamp(40px, 7vw, 90px);
}

.about-visual {
	position: relative;
	min-height: 470px;
	overflow: hidden;
	background:
		radial-gradient(circle at 70% 20%, rgba(255, 255, 255, .9), transparent 25%),
		linear-gradient(145deg, #dff3ef, #eef6f6 55%, #fbefd8),
		url("assets/images/circuit-pattern-light.svg") center / 640px;
	border-radius: var(--rd-radius-lg);
	box-shadow: var(--rd-shadow);
}

.about-quote {
	position: absolute;
	right: 28px;
	bottom: 28px;
	left: 28px;
	padding: 28px;
	color: var(--rd-ink);
	background: rgba(255, 255, 255, .88);
	border: 1px solid rgba(11, 111, 105, .12);
	border-radius: 22px;
	backdrop-filter: blur(8px);
}

.about-quote strong {
	display: block;
	margin-bottom: 7px;
	color: var(--rd-teal-700);
}

.feature-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	padding: 0;
	margin: 28px 0;
	list-style: none;
}

.feature-list li {
	position: relative;
	padding-inline-start: 28px;
	font-weight: 700;
}

.feature-list li::before {
	position: absolute;
	top: 10px;
	right: 0;
	width: 15px;
	height: 15px;
	content: "";
	background: var(--rd-teal-600);
	border: 4px solid var(--rd-teal-100);
	border-radius: 50%;
}

.cta-panel {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 36px;
	padding: clamp(34px, 5vw, 64px);
	color: var(--rd-ink);
	background:
		radial-gradient(circle at 10% 10%, rgba(255, 255, 255, .8), transparent 32%),
		linear-gradient(120deg, #dff3ef, #f7fbfa 60%, #fbefd8);
	border: 1px solid rgba(11, 111, 105, .12);
	border-radius: var(--rd-radius-lg);
	box-shadow: var(--rd-shadow);
}

.cta-panel h2 {
	color: var(--rd-navy-950);
}

.cta-panel p {
	max-width: 680px;
	margin: 0;
	color: var(--rd-muted);
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.post-card {
	overflow: hidden;
	background: var(--rd-surface);
	border: 1px solid var(--rd-line);
	border-radius: var(--rd-radius);
	box-shadow: var(--rd-shadow-sm);
	transition: transform .35s ease, box-shadow .35s ease;
}

.post-card:hover {
	box-shadow: var(--rd-shadow);
	transform: translateY(-6px);
}

.post-card-media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: linear-gradient(145deg, var(--rd-teal-100), #e9edf3);
}

.post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.post-card:hover .post-card-media img {
	transform: scale(1.035);
}

.post-card-body {
	padding: 24px;
}

.post-card-body h2,
.post-card-body h3 {
	font-size: 1.14rem;
}

.post-card-body h2 a,
.post-card-body h3 a {
	color: inherit;
	text-decoration: none;
}

.post-card-meta {
	margin-bottom: 12px;
	color: var(--rd-muted);
	font-size: .78rem;
}

.post-card-excerpt {
	color: var(--rd-muted);
	font-size: .9rem;
}

.page-hero {
	padding: 16px 0 20px;
	color: var(--rd-ink);
	background:
		radial-gradient(circle at 10% 10%, rgba(223, 243, 239, .9), transparent 36%),
		linear-gradient(135deg, #fff, #f4faf9 68%, #fbf5e9);
	border-bottom: 1px solid var(--rd-line);
}

.page-hero .site-container > :first-child {
	margin-top: 0;
}

.page-hero h1 {
	margin-bottom: 0;
	color: var(--rd-navy-950);
	font-size: clamp(2rem, 4.5vw, 3.35rem);
}

.page-hero h1 + .lead {
	margin: 8px 0 0;
}

.breadcrumbs {
	margin-bottom: 8px;
	color: var(--rd-muted);
	font-size: .82rem;
}

.breadcrumbs a {
	color: var(--rd-teal-700);
}

.page-hero + .section {
	padding-top: 16px;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
	gap: 34px;
}

.entry-card,
.sidebar-card,
.form-card {
	padding: clamp(26px, 4vw, 48px);
	background: var(--rd-surface);
	border: 1px solid var(--rd-line);
	border-radius: var(--rd-radius);
	box-shadow: var(--rd-shadow-sm);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content ul,
.entry-content ol {
	padding-right: 1.25em;
}

.entry-content blockquote {
	padding: 22px 26px;
	margin: 30px 0;
	background: var(--rd-teal-100);
	border-right: 4px solid var(--rd-teal-700);
	border-radius: 12px;
}

.entry-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 12px 14px;
	border: 1px solid var(--rd-line);
}

.entry-content th {
	background: var(--rd-canvas);
}

.sidebar-card {
	position: sticky;
	top: 112px;
	padding: 26px;
}

.sidebar-card ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.sidebar-card li + li {
	border-top: 1px solid var(--rd-line);
}

.sidebar-card li a {
	display: block;
	padding: 12px 0;
	text-decoration: none;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	margin: 0 0 28px;
	color: var(--rd-muted);
	font-size: .84rem;
}

.pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.page-numbers {
	display: grid;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	place-items: center;
	color: var(--rd-ink);
	background: #fff;
	border: 1px solid var(--rd-line);
	border-radius: 11px;
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
	color: #fff;
	background: var(--rd-teal-700);
	border-color: var(--rd-teal-700);
}

.expertise-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.form-field--full {
	grid-column: 1 / -1;
}

.form-field label {
	color: var(--rd-navy-950);
	font-size: .9rem;
	font-weight: 800;
}

.form-field input,
.form-field textarea,
.form-field select {
	width: 100%;
	min-height: 52px;
	padding: 10px 14px;
	color: var(--rd-ink);
	background: #fff;
	border: 1px solid #cfd8de;
	border-radius: 12px;
}

.form-field textarea {
	min-height: 150px;
	resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
	border-color: var(--rd-teal-700);
	box-shadow: 0 0 0 3px rgba(11, 111, 105, .12);
	outline: 0;
}

.form-consent {
	display: flex;
	grid-column: 1 / -1;
	align-items: flex-start;
	gap: 10px;
	color: var(--rd-muted);
	font-size: .82rem;
}

.form-consent input {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	margin-top: 5px;
}

.form-note {
	padding: 14px 16px;
	color: #6f531f;
	background: var(--rd-gold-100);
	border: 1px solid #efd59f;
	border-radius: 12px;
	font-size: .84rem;
}

.form-status {
	padding: 14px 16px;
	margin-bottom: 24px;
	border-radius: 12px;
}

.form-status--success {
	color: #155c3c;
	background: #e4f5ec;
	border: 1px solid #a7dbc0;
}

.form-status--error {
	color: #842036;
	background: #fde8ed;
	border: 1px solid #f4b7c4;
}

.honeypot {
	position: absolute;
	left: -10000px;
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.contact-card {
	padding: 24px;
	background: var(--rd-surface);
	border: 1px solid var(--rd-line);
	border-radius: var(--rd-radius);
}

.contact-card strong,
.contact-card a {
	display: block;
}

.contact-content {
	margin-top: 24px;
}

.site-footer {
	padding-top: 68px;
	color: var(--rd-muted);
	background:
		radial-gradient(circle at 8% 12%, rgba(223, 243, 239, .95), transparent 30%),
		linear-gradient(180deg, #f7fbfa, #edf5f3);
	border-top: 1px solid var(--rd-line);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.25fr .75fr .75fr;
	gap: 60px;
	padding-bottom: 48px;
}

.site-footer h2,
.site-footer h3,
.site-footer h4 {
	color: var(--rd-navy-950);
}

.site-footer a {
	color: var(--rd-navy-800);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--rd-gold-500);
}

.footer-menu {
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer-menu li + li {
	margin-top: 9px;
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 0;
	border-top: 1px solid rgba(11, 111, 105, .13);
	font-size: .8rem;
}

.floating-contact {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 900;
	display: none;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	color: #fff;
	background: var(--rd-teal-700);
	border-radius: 999px;
	box-shadow: 0 12px 32px rgba(11, 23, 40, .22);
	font-size: .84rem;
	font-weight: 900;
	text-decoration: none;
}

.not-found {
	max-width: 700px;
	padding: 32px 20px 56px;
	margin: auto;
	text-align: center;
}

.alignwide {
	width: min(100%, 1100px);
	max-width: 1100px;
	margin-inline: auto;
}

.alignfull {
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
}

.has-motion .motion-item {
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity .72s ease,
		transform .72s cubic-bezier(.2, .8, .2, 1);
	transition-delay: var(--rd-motion-delay, 0ms);
}

.has-motion .motion-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.expert-card {
	animation: rd-card-float 6s .8s ease-in-out infinite;
}

@keyframes rd-card-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

@keyframes rd-blob {
	from {
		transform: rotate(0deg) scale(1);
	}
	to {
		transform: rotate(18deg) scale(1.08) translate(16px, 12px);
	}
}

@keyframes rd-pattern-drift {
	from {
		background-position: 48% 50%;
	}
	to {
		background-position: 54% 46%;
	}
}

@media (max-width: 1080px) {
	.header-cta {
		display: none;
	}

	.cards-grid,
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.process-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.header-inner {
		min-height: 74px;
	}

	.menu-toggle {
		display: block;
		margin-inline-start: auto;
	}

	.primary-navigation {
		position: fixed;
		top: 74px;
		right: 0;
		bottom: 0;
		width: min(86vw, 380px);
		padding: 22px;
		overflow-y: auto;
		background: #fff;
		box-shadow: -18px 0 50px rgba(11, 23, 40, .16);
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
		transform: translateY(8px) scale(.985);
		transform-origin: top right;
		transition: opacity .22s ease, transform .28s ease, visibility .28s ease;
	}

	.admin-bar .primary-navigation {
		top: 120px;
	}

	.primary-navigation.is-open {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.primary-navigation ul {
		align-items: stretch;
		flex-direction: column;
		gap: 6px;
	}

	.primary-navigation .sub-menu {
		position: static;
		display: block;
		width: auto;
		padding: 4px 14px 4px 0;
		visibility: visible;
		background: transparent;
		border: 0;
		box-shadow: none;
		opacity: 1;
		transform: none;
	}

	.primary-navigation a {
		min-height: 50px;
		justify-content: flex-start;
		padding: 13px 15px;
		font-size: 1rem;
		text-align: right;
	}

	.primary-navigation > ul > li > a {
		width: 100%;
		min-width: 0;
	}

	.hero-grid,
	.about-grid,
	.content-layout {
		grid-template-columns: 1fr;
	}

	.hero-copy {
		text-align: center;
	}

	.hero .lead {
		margin-inline: auto;
	}

	.hero-actions,
	.hero-badges {
		justify-content: center;
	}

	.expert-card {
		width: min(100%, 520px);
		margin-inline: auto;
	}

	.content-layout .sidebar-card {
		position: static;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-grid > :first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.site-container {
		width: min(calc(100% - 28px), var(--rd-container));
	}

	body {
		font-size: 15px;
	}

	.page-hero {
		padding: 12px 0 16px;
	}

	.page-hero + .section {
		padding-top: 12px;
	}

	.site-branding {
		min-width: 0;
	}

	.brand-copy span {
		display: none;
	}

	.hero {
		padding: 58px 0 78px;
	}

	.hero-grid {
		gap: 36px;
	}

	.hero-actions .button {
		width: 100%;
	}

	.hero-badges {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
		text-align: start;
	}

	.expert-meta {
		right: 26px;
		bottom: 26px;
		left: 26px;
	}

	.trust-strip {
		margin-top: -24px;
	}

	.trust-strip--standalone {
		padding-top: 20px;
		margin-top: 0;
	}

	.trust-grid {
		grid-template-columns: 1fr;
	}

	.trust-item {
		padding: 18px 22px;
	}

	.trust-item + .trust-item {
		border-top: 0;
		border-inline-start: 0;
	}

	.cards-grid,
	.posts-grid,
	.process-grid,
	.feature-list,
	.contact-grid,
	.expertise-form {
		grid-template-columns: 1fr;
	}

	.service-card {
		min-height: 265px;
	}

	.form-field--full,
	.form-consent {
		grid-column: auto;
	}

	.cta-panel {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.cta-panel p {
		margin-inline: auto;
	}

	.about-visual {
		min-height: 390px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.footer-grid > :first-child {
		grid-column: auto;
	}

	.footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.floating-contact {
		display: flex;
	}
}

@media (max-width: 360px) {
	.brand-copy strong {
		max-width: 155px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.brand-mark {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}

	.has-motion .motion-item {
		opacity: 1;
		transform: none;
	}
}

@supports not (overflow: clip) {
	html,
	body {
		overflow-x: hidden;
	}
}

@media print {
	.site-header,
	.site-footer,
	.floating-contact,
	.sidebar-card,
	.hero-actions,
	.cta-panel {
		display: none !important;
	}

	body {
		color: #000;
		background: #fff;
		font-size: 12pt;
	}

	.entry-card {
		padding: 0;
		border: 0;
		box-shadow: none;
	}
}
