@font-face {
	font-family: Vazir;
	src: url("../fonts/vazir/Vazir-FD.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: Vazir;
	src: url("../fonts/vazir/Vazir-Bold-FD.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: Vazir;
	src: url("../fonts/vazir/Vazir-Bold-FD.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* شیراز ترمز — لایه برند روی Twenty Twenty-Two */
:root {
	--st-red: #d61f26;
	--st-red-dark: #b3141a;
	--st-ink: #12151a;
	--st-muted: #5c6370;
	--st-paper: #f6f4f0;
	--st-sand: #e8e2d9;
	--st-steel: #8b919a;
	--st-night: #1c222b;
	--st-card: #fffcf8;
	--st-radius: 1.75rem;
	--st-shadow: 0 18px 40px rgba(18, 21, 26, 0.08);
	--st-header: 4.5rem;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: Vazir, Tahoma, sans-serif;
	background: var(--st-paper);
	color: var(--st-ink);
	letter-spacing: 0;
}

body,
h1, h2, h3, h4, h5, h6,
.wp-block-site-title,
.wp-block-post-title,
.wp-block-heading {
	font-family: Vazir, Tahoma, sans-serif !important;
	font-style: normal !important;
}

.st-tel,
.st-contact-card a[href^="tel:"],
.st-contact-card a[href*="wa.me"],
a[href^="tel:"] .st-tel,
a[href^="tel:"] {
	direction: ltr;
	unicode-bidi: isolate;
	display: inline-block;
	white-space: nowrap;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

/* ——— ناوبری ثابت ——— */
.st-site-header,
header.wp-block-template-part,
.wp-site-blocks > header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: color-mix(in srgb, var(--st-paper) 88%, white);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 8px 28px rgba(18, 21, 26, 0.06);
}

.st-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--st-header);
	padding-block: 0.55rem !important;
	padding-bottom: 0.55rem !important;
}

.st-brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	color: inherit;
	text-decoration: none !important;
}

.st-brand img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 6px 16px rgba(18, 21, 26, 0.16);
}

.st-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.st-brand-text strong {
	font-size: 1.05rem;
}

.st-brand-text span {
	font-size: 0.75rem;
	color: var(--st-muted);
}

.st-nav .wp-block-navigation-item a {
	font-weight: 600;
	padding: 0.35rem 0.55rem;
	border-radius: 999px;
}

.st-cta-call {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: var(--st-red);
	color: #fff !important;
	text-decoration: none !important;
	padding: 0.62rem 1.1rem;
	border-radius: 999px;
	font-weight: 700;
	box-shadow: 0 10px 22px rgba(214, 31, 38, 0.28);
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease;
}

.st-cta-call:hover,
.st-cta-call:focus {
	background: var(--st-red-dark);
	transform: translateY(-3px) scale(1.04);
	box-shadow: 0 14px 28px rgba(214, 31, 38, 0.34);
	text-decoration: none !important;
}

/* ——— دکمه‌ها ——— */
.st-btn,
.st-btn-ghost,
.wp-block-button__link {
	border-radius: 999px !important;
	font-weight: 700;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease;
}

.st-btn,
.wp-block-button__link {
	background: var(--st-red) !important;
	color: #fff !important;
	box-shadow: 0 10px 22px rgba(214, 31, 38, 0.25);
	text-decoration: none !important;
}

.st-btn:hover,
.wp-block-button__link:hover {
	background: var(--st-red-dark) !important;
	transform: translateY(-3px) scale(1.03);
}

.st-btn-ghost {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	padding: 0.75rem 1.3rem;
	text-decoration: none;
}

.st-btn-ghost:hover {
	background: #fff;
	color: var(--st-ink);
	transform: translateY(-3px) scale(1.03);
}

.st-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.st-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.4rem;
}

/* ——— پازل اسکرول ——— */
.st-piece {
	opacity: 0;
	transform: translate3d(0, 32px, 0) rotate(-1.2deg);
	filter: blur(2px);
	will-change: transform, opacity;
}

.st-piece.is-in,
.st-piece:nth-child(even).is-in,
.st-piece:nth-child(3n).is-in {
	opacity: 1;
	transform: none;
	filter: none;
	transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease, filter 0.55s ease;
}

.st-piece:nth-child(even):not(.is-in) {
	transform: translate3d(0, 36px, 0) rotate(1.4deg);
}

.st-piece:nth-child(3n):not(.is-in) {
	transform: translate3d(18px, 24px, 0);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.st-piece,
	.st-piece:nth-child(even),
	.st-piece:nth-child(3n) {
		opacity: 1;
		transform: none;
		filter: none;
		transition: none;
	}
	.st-btn:hover,
	.st-cta-call:hover,
	.wp-block-button__link:hover {
		transform: none;
	}
}

/* ——— هیرو ——— */
.st-hero {
	position: relative;
	isolation: isolate;
	min-height: min(86vh, 760px);
	display: grid;
	align-items: end;
	color: #fff;
	border-bottom-left-radius: 2.8rem 1.6rem;
	border-bottom-right-radius: 42% 2.2rem;
	overflow: hidden;
	margin-bottom: 2.5rem;
	background: #1c222b;
}

.st-hero img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.st-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(270deg, rgba(12, 14, 18, 0.78) 0%, rgba(12, 14, 18, 0.4) 55%, rgba(12, 14, 18, 0.18) 100%);
}

.st-hero-copy {
	position: relative;
	z-index: 2;
	max-width: 40rem;
	padding: 5rem 6vw 4.5rem;
}

.st-kicker {
	display: inline-block;
	background: rgba(214, 31, 38, 0.92);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	margin-bottom: 1rem;
}

.st-hero h1 {
	font-size: clamp(1.8rem, 4.2vw, 3rem);
	line-height: 1.25;
	margin: 0 0 0.85rem;
	font-weight: 800;
	color: #fff;
}

.st-hero p {
	margin: 0;
	max-width: 36rem;
	font-size: 1.05rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.9);
}

/* ——— بخش‌ها ——— */
.st-wrap {
	width: min(1180px, calc(100% - 2rem));
	margin-inline: auto;
}

.st-section {
	padding: clamp(2.4rem, 5vw, 4.2rem) 0;
}

.st-section h2 {
	font-size: clamp(1.4rem, 3vw, 2rem);
	margin: 0 0 0.5rem;
	line-height: 1.35;
}

.st-lead {
	color: var(--st-muted);
	max-width: 40rem;
	margin: 0 0 1.8rem;
	line-height: 1.8;
}

.st-trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	align-items: stretch;
	margin-top: -3.2rem;
	position: relative;
	z-index: 2;
}

.st-trust article {
	background: var(--st-card);
	border-radius: var(--st-radius);
	padding: 1.3rem 1.2rem;
	box-shadow: var(--st-shadow);
	border: 1px solid rgba(18, 21, 26, 0.05);
}

.st-trust h3 {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
}

.st-trust p {
	margin: 0;
	color: var(--st-muted);
	font-size: 0.95rem;
	line-height: 1.7;
}

.st-services {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.15rem;
	align-items: stretch;
}

.st-card {
	background: var(--st-card);
	border-radius: 1.9rem 1.1rem 1.9rem 1.4rem;
	overflow: hidden;
	box-shadow: var(--st-shadow);
}

a.st-card {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

a.st-card:hover,
a.st-card:focus {
	transform: translateY(-4px);
	box-shadow: 0 22px 40px rgba(18, 21, 26, 0.12);
	color: inherit;
}

a.st-card:focus-visible {
	outline: 3px solid var(--st-red);
	outline-offset: 4px;
}

a.st-card .st-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.85rem;
	align-self: flex-start;
	background: var(--st-red);
	color: #fff;
	padding: 0.48rem 1rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.88rem;
	box-shadow: 0 8px 16px rgba(214, 31, 38, 0.22);
}

.st-service {
	max-width: 42rem;
	margin-inline: auto;
	padding: 0 0 2rem;
}

.st-service h2 {
	margin: 1.6rem 0 0.6rem;
	font-size: 1.2rem;
}

.st-service ul {
	margin: 0 0 1.2rem;
	padding-inline-start: 1.2rem;
	line-height: 1.9;
	color: var(--st-muted);
}

.st-service p {
	line-height: 1.85;
}

.st-card img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
}

.st-card div {
	padding: 1.15rem 1.2rem 1.35rem;
}

.st-card h3 {
	margin: 0 0 0.4rem;
	font-size: 1.12rem;
}

.st-card p {
	margin: 0;
	color: var(--st-muted);
	line-height: 1.75;
	font-size: 0.95rem;
}

.st-alert {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 1.5rem;
	align-items: center;
	background: var(--st-night);
	color: #fff;
	border-radius: 2.2rem 1.2rem 2.4rem 1.5rem;
	padding: clamp(1.4rem, 4vw, 2.4rem);
	overflow: hidden;
}

.st-alert img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	border-radius: 1.4rem;
}

.st-alert h2 { color: #fff; }
.st-alert p { color: rgba(255, 255, 255, 0.82); }

.st-posts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.1rem;
}

.st-post {
	background: var(--st-card);
	border-radius: 1.5rem;
	padding: 1.15rem 1.2rem 1.3rem;
	box-shadow: var(--st-shadow);
	text-decoration: none !important;
	color: inherit;
	display: block;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.st-post:hover {
	transform: translateY(-4px);
}

.st-post h3 {
	margin: 0 0 0.4rem;
	font-size: 1.05rem;
	color: var(--st-ink);
}

.st-post p {
	margin: 0;
	color: var(--st-muted);
	font-size: 0.92rem;
	line-height: 1.7;
}

.wp-block-post-excerpt__more-text {
	margin: 0.85rem 0 0 !important;
}

.wp-block-post-excerpt__more-link,
a.st-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--st-red) !important;
	color: #fff !important;
	text-decoration: none !important;
	padding: 0.48rem 1rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.88rem;
	box-shadow: 0 8px 16px rgba(214, 31, 38, 0.22);
}

.wp-block-post-excerpt__more-link:hover,
a.st-more:hover {
	background: var(--st-red-dark) !important;
	color: #fff !important;
}

/* ——— تماس و نقشه ——— */
.st-contact-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 1.25rem;
	align-items: stretch;
}

.st-contact-card {
	background: var(--st-card);
	border-radius: var(--st-radius);
	padding: 1.4rem 1.3rem;
	box-shadow: var(--st-shadow);
}

.st-contact-card h2 { margin-top: 0; }

.st-contact-card ul {
	list-style: none;
	margin: 1rem 0 1.2rem;
	padding: 0;
}

.st-contact-card li {
	margin: 0 0 0.85rem;
	line-height: 1.65;
}

.st-contact-card a { color: var(--st-red); font-weight: 700; }

.st-btn-night {
	background: var(--st-night) !important;
	box-shadow: 0 10px 22px rgba(18, 21, 26, 0.22);
}

.st-map {
	position: relative;
	min-height: 420px;
	border-radius: 1.8rem 1.1rem 1.8rem 1.3rem;
	overflow: hidden;
	box-shadow: var(--st-shadow);
	background: var(--st-sand);
}

.st-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.st-map-google,
.st-map-osm {
	display: none !important;
}

.st-map-live {
	display: block;
	min-height: 0;
}

.st-map-shot {
	position: relative;
	display: block;
	min-height: 420px;
	color: inherit;
	text-decoration: none !important;
	overflow: hidden;
}

.st-map-shot img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.st-map-pin {
	display: none;
}

.st-map-caption {
	position: absolute;
	right: 0.8rem;
	left: 0.8rem;
	top: 0.8rem;
	bottom: auto;
	z-index: 3;
	background: rgba(18, 21, 26, 0.78);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	padding: 0.55rem 0.8rem;
	border-radius: 999px;
	text-align: center;
}

.st-map-load {
	position: absolute;
	left: 50%;
	bottom: 3.2rem;
	z-index: 4;
	transform: translateX(-50%);
	border: 0;
	background: var(--st-red);
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 0.85rem;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(214, 31, 38, 0.28);
}

.st-map-load:hover,
.st-map-load:focus {
	background: var(--st-red-dark);
}

.st-footer {
	background: var(--st-night);
	color: rgba(255, 255, 255, 0.86);
	padding: 2.4rem 0 1.4rem;
	margin-top: 2rem;
	border-top-left-radius: 2.4rem 1.4rem;
	border-top-right-radius: 38% 1.8rem;
}

.st-footer a { color: #fff; }
.st-footer .st-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
}

.st-copy {
	width: 100%;
	margin-top: 1.4rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
}

.st-credit {
	width: 100%;
	margin-top: 1.1rem;
	padding-top: 0.95rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
}

.st-credit-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	color: rgba(255, 255, 255, 0.62) !important;
	text-decoration: none !important;
	font-size: 0.82rem;
	letter-spacing: 0.01em;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	transition: color 0.2s ease, background 0.2s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.st-credit-link strong {
	color: #fff;
	font-weight: 700;
}

.st-credit-link:hover,
.st-credit-link:focus {
	color: #fff !important;
	background: rgba(214, 31, 38, 0.92);
	transform: translateY(-2px);
	text-decoration: none !important;
}

/* صفحات داخلی */
.st-page-hero {
	background: var(--st-night);
	color: #fff;
	padding: 2.2rem 6vw 1.8rem;
	margin-bottom: 1.6rem;
	border-bottom-left-radius: 2rem 1.2rem;
	border-bottom-right-radius: 40% 1.6rem;
}

.st-page-hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.home .wp-block-post-content,
.home .entry-content {
	max-width: none;
	padding: 0;
}

.page .wp-block-post-content {
	margin-inline: auto;
	width: min(1180px, calc(100% - 2rem));
}

/* داک موبایل — فقط از ۹۰۰ پیکسل به پایین */
.st-dock {
	display: none;
}

#services,
.st-section,
.st-page-hero,
.st-map {
	scroll-margin-top: calc(var(--st-header) + 0.8rem);
}

/* موبایل و تبلت */
@media (max-width: 900px) {
	:root {
		--st-header: 3.55rem;
		--st-dock: 4.35rem;
	}

	html {
		padding-bottom: 0;
	}

	body {
		padding-bottom: calc(var(--st-dock) + env(safe-area-inset-bottom, 0px));
	}

	.st-trust,
	.st-services,
	.st-posts,
	.st-alert {
		grid-template-columns: 1fr;
	}

	.st-hero {
		min-height: 68vh;
		border-bottom-right-radius: 2rem 1.4rem;
	}

	.st-header-inner {
		gap: 0.45rem;
		min-height: var(--st-header);
		padding-block: 0.35rem !important;
		padding-inline: 0.2rem 0.15rem;
	}

	.st-brand img {
		width: 36px;
		height: 36px;
	}

	.st-brand-text strong {
		font-size: 0.95rem;
	}

	.st-brand-text span,
	.st-cta-call {
		display: none !important;
	}

	.st-site-header,
	header.wp-block-template-part,
	.wp-site-blocks > header {
		position: sticky;
		top: 0;
		z-index: 220;
		background: color-mix(in srgb, var(--st-paper) 94%, white);
	}

	.st-header-inner .wp-block-navigation {
		margin-inline-start: auto;
	}

	.st-nav.wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.st-nav .wp-block-navigation__responsive-container-open {
		display: flex !important;
	}

	.wp-block-navigation__responsive-container-open,
	.wp-block-navigation__responsive-container-close {
		width: 42px;
		height: 42px;
		border-radius: 12px;
		background: var(--st-night);
		color: #fff !important;
		padding: 0;
		display: flex !important;
		align-items: center;
		justify-content: center;
	}

	.wp-block-navigation__responsive-container-open svg,
	.wp-block-navigation__responsive-container-close svg {
		width: 22px;
		height: 22px;
		fill: currentColor;
	}

	.wp-block-navigation__responsive-container.is-menu-open {
		background: rgba(18, 21, 26, 0.55);
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
		padding: calc(var(--st-header) + 0.6rem) 1rem 1.4rem;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		background: var(--st-card);
		border-radius: 1.4rem;
		padding: 1.1rem 0.8rem 1.3rem;
		box-shadow: var(--st-shadow);
		align-items: stretch !important;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
		display: block;
		padding: 0.85rem 1rem;
		font-size: 1.05rem;
		border-radius: 0.9rem;
		text-align: right;
	}

	.st-trust { margin-top: 0.4rem; }

	/* آدرس بالا، نقشه گوگل پایین صفحه تماس */
	.st-contact-grid {
		display: flex;
		flex-direction: column;
		gap: 1.15rem;
	}

	.st-contact-card {
		order: 1;
	}

	.st-map {
		order: 2;
		min-height: 280px;
		margin-top: 0.25rem;
		border-radius: 1.4rem;
	}

	.st-map iframe,
	.st-map-shot {
		min-height: 280px;
	}

	.st-footer {
		margin-top: 1.2rem;
		margin-bottom: 0;
		padding: 1.6rem 0 1rem;
		border-top-left-radius: 1.6rem;
		border-top-right-radius: 1.6rem;
	}

	.st-footer .st-wrap {
		flex-direction: column;
		gap: 0.7rem;
	}

	.st-copy {
		margin-top: 0.6rem;
	}

	.st-dock {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		position: fixed;
		right: 0;
		left: 0;
		bottom: 0;
		z-index: 230;
		background: color-mix(in srgb, var(--st-night) 92%, #000);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
		box-shadow: 0 -10px 28px rgba(18, 21, 26, 0.22);
		padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}

	.st-dock-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.12rem;
		color: rgba(255, 255, 255, 0.72) !important;
		text-decoration: none !important;
		font-size: 0.68rem;
		font-weight: 700;
		padding: 0.28rem 0.15rem 0.2rem;
		min-height: 3.35rem;
		border-radius: 0.9rem;
	}

	.st-dock-item svg {
		display: block;
	}

	.st-dock-main {
		color: #fff !important;
		background: var(--st-red);
		box-shadow: 0 8px 18px rgba(214, 31, 38, 0.38);
		transform: translateY(-10px);
		min-height: 3.7rem;
		padding-top: 0.4rem;
	}

	.st-dock-item.is-active {
		color: #fff !important;
	}
}

@media (max-width: 640px) {
	.st-brand-text span { display: none; }
	.st-hero-copy { padding: 4.2rem 1.1rem 3rem; }
	.st-map,
	.st-map iframe { min-height: 260px; }
	.st-page-hero { padding: 1.4rem 1.1rem 1.2rem; }
}
