/*
Theme Name: دابی | قالب حرفه ای استدیو دوبلاژ
Theme URI: https://persiandub.com
Author: Ferbit
Description: قالب مینیمال تیره RTL با بخش‌های پروژه و تیم.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dobi
Tags: rtl-language-support, dark, portfolio, custom-menu, featured-images
*/

:root {
	--bg: #09090b;
	--bg-elevated: #111114;
	--bg-card: #16161c;
	--bg-card-hover: #1c1c24;
	--border: #27272f;
	--text: #f4f4f5;
	--text-muted: #a1a1aa;
	--accent: #8b5cf6;
	--accent-soft: rgba(139, 92, 246, 0.15);
	--accent-hover: #a78bfa;
	--radius: 12px;
	--radius-lg: 20px;
	--shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
	--site-width: 1200px;
	--header-h: 72px;
	--font-sans: Yekan, Tahoma, "Segoe UI", sans-serif;
}

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

html {
	direction: rtl;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.75;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--accent-hover);
}

.site {
	width: min(100% - 2.5rem, var(--site-width));
	margin-inline: auto;
}

.site--narrow {
	max-width: 760px;
}

/* Header */
.site-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	width: 100%;
	z-index: 110;
	background: rgba(9, 9, 11, 0.85);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header--front,
.site-header--transparent {
	background: transparent;
	border-bottom-color: transparent;
}

.site-header--inner {
	background: rgba(9, 9, 11, 0.92);
}

html.is-front-page {
	scroll-behavior: smooth;
}

.site-header--transparent.is-scrolled {
	background: rgba(9, 9, 11, 0.92);
	border-bottom-color: var(--border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-h);
	gap: 1rem;
}

.site-title,
.site-branding .custom-logo-link {
	color: var(--text);
	font-weight: 700;
	font-size: 1.15rem;
	text-decoration: none;
}

.custom-logo {
	max-height: 44px;
	width: auto;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.75rem;
}

.main-navigation a {
	color: var(--text-muted);
	font-size: 0.95rem;
	font-weight: 500;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_item > a {
	color: var(--text);
}

.main-navigation .sub-menu {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0.5rem 0 0;
	border-top: 1px solid var(--border);
}

.main-navigation .sub-menu a {
	font-size: 0.88rem;
	opacity: 0.9;
}

@media (min-width: 769px) {
	.main-navigation .menu-item-has-children {
		position: relative;
	}

	.main-navigation .sub-menu {
		position: absolute;
		top: calc(100% + 0.5rem);
		inset-inline-end: 0;
		min-width: 200px;
		margin: 0;
		padding: 0.5rem;
		background: var(--bg-card);
		border: 1px solid var(--border);
		border-radius: var(--radius);
		box-shadow: var(--shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}

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

.nav-toggle {
	display: none;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 8px;
	width: 44px;
	height: 44px;
	padding: 0;
	cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--text);
	margin: 0 auto;
	border-radius: 1px;
}

.nav-toggle__bar {
	position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bar::before {
	top: -6px;
}

.nav-toggle__bar::after {
	top: 6px;
}

/* Hero — full viewport background */
body.is-front-page {
	overflow-x: clip;
}

.hero {
	--hero-pad-top: calc(var(--header-h) + 2.5rem);
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
	margin-top: calc(-1 * var(--header-h));
	min-height: 100svh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: var(--hero-pad-top) 0 5rem;
	margin-bottom: 0;
	isolation: isolate;
}

.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	background:
		radial-gradient(ellipse 90% 70% at 75% 15%, rgba(139, 92, 246, 0.28) 0%, transparent 55%),
		radial-gradient(ellipse 80% 60% at 10% 85%, rgba(56, 189, 248, 0.16) 0%, transparent 50%),
		radial-gradient(ellipse 50% 40% at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 60%),
		var(--bg);
}

.hero__bg-photo {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.4;
	mix-blend-mode: luminosity;
}

.hero__bg-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(9, 9, 11, 0.35) 0%, rgba(9, 9, 11, 0.55) 45%, rgba(9, 9, 11, 0.92) 100%),
		linear-gradient(90deg, rgba(9, 9, 11, 0.5) 0%, transparent 40%, rgba(9, 9, 11, 0.35) 100%);
}

.hero__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.55;
	pointer-events: none;
	transition: transform 0.15s ease-out;
}

.hero__orb--1 {
	width: min(65vmax, 720px);
	height: min(65vmax, 720px);
	background: #7c3aed;
	top: -20%;
	left: 50%;
	animation: hero-drift 14s ease-in-out infinite;
}

.hero__orb--2 {
	width: min(50vmax, 560px);
	height: min(50vmax, 560px);
	background: #2563eb;
	bottom: -10%;
	left: -8%;
	opacity: 0.4;
	animation: hero-drift 18s ease-in-out infinite reverse;
}

.hero__orb--3 {
	width: min(35vmax, 400px);
	height: min(35vmax, 400px);
	background: #ec4899;
	top: 35%;
	right: -5%;
	opacity: 0.35;
	animation: hero-drift 11s ease-in-out infinite 2s;
}

.hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 120% 100% at 50% 40%, black 15%, transparent 72%);
}

.hero__noise {
	position: absolute;
	inset: 0;
	opacity: 0.04;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__layout {
	position: relative;
	z-index: 2;
	width: min(100% - 2.5rem, var(--site-width));
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 3rem;
	align-items: center;
}

.hero__content {
	text-align: start;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1rem 0.4rem 0.65rem;
	margin-bottom: 1.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--accent-hover);
	background: rgba(139, 92, 246, 0.1);
	border: 1px solid rgba(139, 92, 246, 0.25);
	border-radius: 999px;
	backdrop-filter: blur(8px);
}

.hero__badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 12px var(--accent);
	animation: hero-pulse 2s ease-in-out infinite;
}

.hero__title {
	margin: 0 0 1.25rem;
	font-size: clamp(2.25rem, 5.5vw, 3.75rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.hero__title-accent {
	display: block;
	background: linear-gradient(135deg, #fff 0%, #c4b5fd 45%, #8b5cf6 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero__subtitle {
	margin: 0 0 2rem;
	max-width: 28rem;
	color: var(--text-muted);
	font-size: 1.05rem;
	line-height: 1.8;
}

.hero__search {
	display: flex;
	align-items: center;
	max-width: 100%;
	padding: 0.4rem 0.4rem 0.4rem 0.25rem;
	background: rgba(22, 22, 28, 0.75);
	border: 1px solid rgba(139, 92, 246, 0.2);
	border-radius: 16px;
	backdrop-filter: blur(16px);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.04) inset,
		0 20px 50px rgba(0, 0, 0, 0.4),
		0 0 60px rgba(139, 92, 246, 0.08);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero__search:focus-within {
	border-color: rgba(139, 92, 246, 0.55);
	box-shadow:
		0 0 0 1px rgba(139, 92, 246, 0.15) inset,
		0 20px 50px rgba(0, 0, 0, 0.45),
		0 0 80px rgba(139, 92, 246, 0.18);
}

.hero__search-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	color: var(--text-muted);
}

.hero__search-icon svg {
	width: 20px;
	height: 20px;
}

.hero__search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	color: var(--text);
	padding: 0.75rem 0.5rem;
	font: inherit;
	outline: none;
}

.hero__search input::placeholder {
	color: var(--text-muted);
}

.hero__search-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.35rem;
	border-radius: 12px;
	white-space: nowrap;
}

.hero__search-btn svg {
	width: 18px;
	height: 18px;
	transform: scaleX(-1);
}

.hero__quick {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1.5rem;
}

.hero__quick a {
	padding: 0.45rem 1rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text-muted);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border);
	border-radius: 999px;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero__quick a:hover {
	color: var(--text);
	border-color: rgba(139, 92, 246, 0.4);
	background: var(--accent-soft);
}

/* Hero visual — disc + EQ ring */
.hero__visual {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 380px;
	isolation: isolate;
}

.hero__stage {
	--eq-radius: 46cqw;
	position: relative;
	width: min(100%, 340px);
	aspect-ratio: 1;
	container-type: inline-size;
}

.hero__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(139, 92, 246, 0.2);
	transform-origin: 50% 50%;
}

.hero__ring--outer {
	inset: -8%;
	animation: hero-spin 24s linear infinite;
	border-style: dashed;
	opacity: 0.5;
}

.hero__ring--mid {
	inset: 6%;
	animation: hero-spin 16s linear infinite reverse;
	border-color: rgba(56, 189, 248, 0.25);
}

.hero__disc {
	position: absolute;
	inset: 18%;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(145deg, #1a1a22 0%, #0d0d10 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow:
		0 0 0 1px rgba(139, 92, 246, 0.15),
		0 24px 48px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	z-index: 2;
}

.hero__mic {
	width: 42%;
	color: var(--accent);
	filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
}

.hero__eq {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

.hero__eq-bar {
	--bar-h: clamp(14px, 7cqw, 28px);
	position: absolute;
	top: 50%;
	left: 50%;
	width: 3px;
	height: var(--bar-h);
	margin: calc(var(--bar-h) / -2) 0 0 -1.5px;
	border-radius: 3px;
	background: linear-gradient(180deg, var(--accent) 0%, rgba(139, 92, 246, 0.15) 100%);
	transform-origin: center center;
	transform: rotate(calc(var(--i) * 15deg)) translateY(calc(-1 * var(--eq-radius)));
	animation: hero-eq 1.2s ease-in-out infinite;
	animation-delay: calc(var(--i) * -0.05s);
	opacity: 0.75;
}

.hero__float {
	position: absolute;
	padding: 0.85rem 1.1rem;
	background: rgba(22, 22, 28, 0.9);
	border: 1px solid var(--border);
	border-radius: 14px;
	backdrop-filter: blur(12px);
	box-shadow: var(--shadow);
	animation: hero-float 5s ease-in-out infinite;
}

.hero__float strong {
	display: block;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--text);
	line-height: 1.2;
}

.hero__float-label {
	display: block;
	font-size: 0.7rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.15rem;
}

.hero__float--a {
	top: 8%;
	left: 0;
	animation-delay: 0s;
}

.hero__float--b {
	bottom: 12%;
	right: -4%;
	animation-delay: 1.5s;
}

.hero__scroll {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: var(--text-muted);
	text-decoration: none;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hero__scroll-line {
	display: block;
	width: 1px;
	height: 40px;
	background: linear-gradient(180deg, var(--accent), transparent);
	animation: hero-scroll-line 2s ease-in-out infinite;
}

.hero__curve {
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	z-index: 2;
	height: 80px;
	background: var(--bg);
	clip-path: polygon(0 100%, 100% 100%, 100% 0, 50% 55%, 0 0);
}

@keyframes hero-drift {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(24px, -20px) scale(1.05); }
}

@keyframes hero-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(0.85); }
}

@keyframes hero-spin {
	to { transform: rotate(360deg); }
}

@keyframes hero-eq {
	0%, 100% {
		opacity: 0.35;
		transform: rotate(calc(var(--i) * 15deg)) translateY(calc(-1 * var(--eq-radius))) scaleY(0.45);
	}
	50% {
		opacity: 1;
		transform: rotate(calc(var(--i) * 15deg)) translateY(calc(-1 * var(--eq-radius))) scaleY(1);
	}
}

@keyframes hero-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@keyframes hero-scroll-line {
	0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
	50% { opacity: 1; transform: scaleY(1); }
}

@media (min-width: 769px) {
	.hero__orb {
		animation: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero__orb,
	.hero__ring,
	.hero__eq-bar,
	.hero__float,
	.hero__scroll-line,
	.hero__badge-dot {
		animation: none !important;
	}
}

/* Sections */
.section {
	padding: 5rem 0;
}

.section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.section-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
}

.section-subtitle {
	margin: 0;
	color: var(--text-muted);
	max-width: 32rem;
	margin-inline: auto;
}

.section-cta {
	text-align: center;
	margin-top: 2.5rem;
}

.section-empty {
	text-align: center;
	color: var(--text-muted);
	padding: 2rem;
	border: 1px dashed var(--border);
	border-radius: var(--radius);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.75rem;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.95rem;
	border: none;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
}

.btn-primary {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
	background: var(--accent-hover);
	color: #fff;
	transform: translateY(-1px);
}

/* Services */
.section-services {
	background: var(--bg);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.service-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.75rem 1.5rem;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover {
	background: var(--bg-card-hover);
	border-color: rgba(139, 92, 246, 0.35);
}

.service-card__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	margin-bottom: 1.25rem;
	background: var(--accent-soft);
	color: var(--accent);
}

.service-card__icon svg {
	width: 24px;
	height: 24px;
}

.service-card__icon--1 { color: #f472b6; background: rgba(244, 114, 182, 0.12); }
.service-card__icon--2 { color: #8b5cf6; background: rgba(139, 92, 246, 0.12); }
.service-card__icon--3 { color: #38bdf8; background: rgba(56, 189, 248, 0.12); }
.service-card__icon--4 { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }

.service-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 600;
}

.service-card__text {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.65;
}

/* Portfolio */
.section-portfolio {
	background: var(--bg-elevated);
}

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.portfolio-card {
	display: block;
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}

.portfolio-card__media {
	position: relative;
	aspect-ratio: 3/4;
	background: var(--bg-card);
	overflow: hidden;
}

.portfolio-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.portfolio-card:hover img {
	transform: scale(1.05);
}

.portfolio-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.25rem;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-card__overlay {
	opacity: 1;
}

.portfolio-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
}

.portfolio-card__meta {
	margin: 0.25rem 0 0;
	font-size: 0.8rem;
	color: var(--text-muted);
}

.portfolio-card__media--empty {
	display: grid;
	place-items: center;
	padding: 1rem;
}

/* Feature split */
.section-feature {
	background: var(--bg);
}

.feature-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.feature-split__title {
	margin: 0 0 1rem;
	font-size: 1.75rem;
	font-weight: 700;
}

.feature-split__text {
	margin: 0 0 1.5rem;
	color: var(--text-muted);
}

.feature-split__media img,
.feature-split__placeholder {
	border-radius: var(--radius-lg);
	width: 100%;
}

.feature-split__placeholder {
	aspect-ratio: 4/3;
	background: linear-gradient(135deg, var(--bg-card) 0%, var(--accent-soft) 100%);
	border: 1px solid var(--border);
}

/* Team */
.section-team {
	background: var(--bg-elevated);
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.team-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.team-card:hover {
	border-color: rgba(139, 92, 246, 0.4);
}

.team-card__link {
	display: block;
	padding: 1.25rem;
	color: inherit;
	text-decoration: none;
}

.team-card__photo {
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 1rem;
	aspect-ratio: 1;
	background: var(--bg);
}

.team-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.team-card__name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
}

.team-card__role {
	margin: 0.25rem 0 0;
	color: var(--accent);
	font-size: 0.85rem;
}

.team-card__excerpt {
	margin: 0.5rem 0 0;
	color: var(--text-muted);
	font-size: 0.85rem;
}

/* Stats */
.section-stats {
	background: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
	padding: 3.5rem 0;
	border-block: 1px solid var(--border);
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	text-align: center;
}

.stat-item__number {
	display: block;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
}

.stat-item__label {
	display: block;
	margin-top: 0.35rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.95rem;
}

/* Blog */
.section-blog {
	background: var(--bg);
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.blog-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.blog-card:hover {
	border-color: rgba(139, 92, 246, 0.35);
}

.blog-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.blog-card__media {
	aspect-ratio: 16/10;
	overflow: hidden;
	background: var(--bg-elevated);
}

.blog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-card__body {
	padding: 1.25rem;
}

.blog-card__date {
	font-size: 0.8rem;
	color: var(--text-muted);
}

.blog-card__title {
	margin: 0.35rem 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 600;
}

.blog-card__excerpt {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.9rem;
}

/* Inner pages */
.site-main {
	padding: calc(var(--header-h) + 2.5rem) 0 4rem;
}

.is-front-page .site-main--front,
.site-main--front {
	padding: 0;
}

.page-header--archive {
	margin-bottom: 2.5rem;
	text-align: center;
}

.page-title {
	margin: 0;
	font-size: 2rem;
}

.entry,
.page-header {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.75rem;
	margin-bottom: 1.5rem;
}

.entry-title {
	margin: 0 0 0.75rem;
}

.entry-meta {
	color: var(--text-muted);
	font-size: 0.9rem;
}

.entry-type-badge {
	display: inline-block;
	margin-bottom: 0.5rem;
	padding: 0.2rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--accent);
	background: var(--accent-soft);
	border-radius: 999px;
}

.entry--search .entry-title {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
}

.entry-hero {
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 1.5rem;
}

.team-single {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 2rem;
	align-items: start;
}

.team-single__photo {
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.team-single__role {
	color: var(--accent);
	margin: 0 0 1rem;
}

/* Footer */
.site-footer {
	background: var(--bg-elevated);
	border-top: 1px solid var(--border);
	padding: 4rem 0 0;
	margin-top: 0;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 2.5rem;
	padding-bottom: 3rem;
}

.site-footer__logo {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text);
}

.site-footer__desc {
	color: var(--text-muted);
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
}

.footer-heading {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
}

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

.site-footer .menu a {
	color: var(--text-muted);
}

.site-footer__bottom {
	border-top: 1px solid var(--border);
	padding: 1.25rem 0;
	text-align: center;
	color: var(--text-muted);
	font-size: 0.85rem;
}

.site-footer__bottom p {
	margin: 0;
}

/* Pagination */
.nav-links,
.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
}

/* Screen reader */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
	.services-grid,
	.portfolio-grid,
	.team-grid {
		grid-template-columns: repeat(2, 1fr);
	}

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

	.feature-split {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.nav-toggle {
		display: block;
	}

	.main-navigation {
		position: fixed;
		inset-inline: 1rem;
		top: calc(var(--header-h) + 0.5rem);
		background: var(--bg-card);
		border: 1px solid var(--border);
		border-radius: var(--radius);
		padding: 1rem;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}

	.main-navigation.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0.5rem;
	}

	.services-grid,
	.portfolio-grid,
	.team-grid,
	.blog-grid,
	.stats-grid {
		grid-template-columns: 1fr;
	}

	.hero__layout {
		grid-template-columns: 1fr;
		gap: 2.5rem;
		text-align: center;
	}

	.hero__content {
		text-align: center;
	}

	.hero__subtitle {
		margin-inline: auto;
	}

	.hero__badge {
		margin-inline: auto;
	}

	.hero__quick {
		justify-content: center;
	}

	.hero__visual {
		min-height: 300px;
		order: -1;
	}

	.hero__stage {
		width: min(280px, 85vw);
		margin-inline: auto;
		--eq-radius: 44cqw;
	}

	.hero__float--a {
		left: 5%;
		top: 0;
	}

	.hero__float--b {
		right: 5%;
		bottom: 0;
	}

	.hero__search {
		flex-wrap: wrap;
		padding: 0.5rem;
	}

	.hero__search-btn {
		width: 100%;
		justify-content: center;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.team-single {
		grid-template-columns: 1fr;
	}
}
