/* ═══════════════════════════════════════════════════════════════
   سخاوت گلد — شیوه‌نامه اصلی قالب وردپرس
   پالت: طلا روی شب (هم‌راستا با اپلیکیشن Laravel)
   ═══════════════════════════════════════════════════════════════ */

:root {
	--gold-50: #fdf9ec;
	--gold-100: #faf0cc;
	--gold-200: #f4df96;
	--gold-300: #eec857;
	--gold-400: #e9b52f;
	--gold-500: #d99b17;
	--gold-600: #bd7711;
	--gold-700: #975513;

	--night-50: #f6f6f7;
	--night-100: #e2e3e6;
	--night-200: #c4c6cc;
	--night-300: #9ea1ab;
	--night-400: #787c88;
	--night-500: #5d616d;
	--night-600: #4a4d57;
	--night-700: #3d3f47;
	--night-800: #26272d;
	--night-850: #1d1e23;
	--night-900: #16171a;
	--night-950: #0d0e10;

	--up: #10b981;
	--down: #ef4444;

	--font: "Vazirmatn", "Tahoma", sans-serif;
	--radius: 14px;
	--header-h: 72px;
	--container: 1120px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	font-weight: 400;
	line-height: 1.7;
	color: var(--night-100);
	background:
		radial-gradient(1200px 600px at 80% -10%, rgba(217, 155, 23, 0.12), transparent 55%),
		radial-gradient(900px 500px at 0% 20%, rgba(189, 119, 17, 0.08), transparent 50%),
		linear-gradient(180deg, var(--night-900) 0%, var(--night-950) 40%, #08090b 100%);
	background-attachment: fixed;
	min-height: 100vh;
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
}

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

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

a:hover {
	color: var(--gold-200);
}

h1, h2, h3, h4 {
	line-height: 1.35;
	font-weight: 700;
	color: var(--night-50);
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1em;
}

ul, ol {
	padding: 0;
	margin: 0;
	list-style: none;
}

.num {
	direction: ltr;
	unicode-bidi: isolate;
	font-variant-numeric: tabular-nums;
}

::selection {
	background: rgba(217, 155, 23, 0.35);
	color: #fff;
}

.sg-skip-link {
	position: absolute;
	inset-inline-start: 1rem;
	top: -100px;
	z-index: 1000;
	padding: 0.6rem 1rem;
	background: var(--gold-500);
	color: var(--night-950);
	border-radius: 8px;
	font-weight: 600;
}

.sg-skip-link:focus {
	top: 1rem;
}

.sg-container {
	width: min(100% - 2rem, var(--container));
	margin-inline: auto;
}

.sg-narrow {
	width: min(100% - 2rem, 760px);
	margin-inline: auto;
}

.sg-main--pad {
	padding: 3rem 0 4.5rem;
}

/* ── Header ─────────────────────────────────────────────────── */

.sg-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(16px);
	background: rgba(13, 14, 16, 0.78);
	border-bottom: 1px solid rgba(217, 155, 23, 0.12);
	transition: box-shadow 0.3s var(--ease);
}

.sg-header.is-scrolled {
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

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

.sg-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: var(--night-50);
	font-weight: 700;
	font-size: 1.05rem;
}

.sg-brand img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	filter: drop-shadow(0 0 12px rgba(217, 155, 23, 0.35));
}

.sg-nav {
	display: none;
}

.sg-nav__list {
	display: flex;
	align-items: center;
	gap: 0.25rem 1.25rem;
}

.sg-nav__list a {
	color: var(--night-200);
	font-size: 0.92rem;
	font-weight: 500;
	padding: 0.35rem 0;
}

.sg-nav__list a:hover,
.sg-nav__list .current-menu-item > a {
	color: var(--gold-300);
}

.sg-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.sg-nav-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 10px;
	border: 1px solid rgba(217, 155, 23, 0.25);
	border-radius: 10px;
	background: transparent;
	cursor: pointer;
}

.sg-nav-toggle span {
	display: block;
	height: 2px;
	background: var(--gold-300);
	border-radius: 2px;
	transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}

.sg-nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

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

.sg-nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.sg-mobile-nav {
	display: grid;
	grid-template-rows: 0fr;
	padding: 0 1rem;
	border-top: 1px solid transparent;
	background: rgba(13, 14, 16, 0.95);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		grid-template-rows 0.48s var(--ease),
		opacity 0.4s var(--ease),
		visibility 0.4s,
		padding 0.48s var(--ease),
		border-color 0.4s var(--ease);
}

.sg-mobile-nav__inner {
	overflow: hidden;
	min-height: 0;
}

.sg-mobile-nav.is-open {
	grid-template-rows: 1fr;
	padding: 0 1rem 1.25rem;
	border-top-color: rgba(217, 155, 23, 0.1);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* حالت اولیه با hidden فقط برای بدون‌جاوااسکریپت؛ با JS برداشته می‌شود */
.sg-mobile-nav[hidden] {
	display: none;
}

.sg-mobile-nav.is-ready[hidden] {
	display: grid;
}

.sg-mobile-nav__list {
	display: grid;
	gap: 0.35rem;
	padding: 1rem 0 0;
}

.sg-mobile-nav__list a {
	display: block;
	padding: 0.75rem 0.5rem;
	color: var(--night-100);
	border-radius: 8px;
	opacity: 0;
	transform: translateY(-8px);
	transition:
		opacity 0.35s var(--ease),
		transform 0.4s var(--ease),
		background 0.2s var(--ease);
}

.sg-mobile-nav__inner > .sg-btn {
	opacity: 0;
	transform: translateY(-8px);
	transition:
		opacity 0.35s var(--ease),
		transform 0.4s var(--ease),
		background 0.2s var(--ease),
		box-shadow 0.2s var(--ease);
	transition-delay: 0s;
	margin-top: 0.35rem;
}

.sg-mobile-nav.is-open .sg-mobile-nav__list a,
.sg-mobile-nav.is-open .sg-mobile-nav__inner > .sg-btn {
	opacity: 1;
	transform: translateY(0);
}

.sg-mobile-nav.is-open .sg-mobile-nav__list li:nth-child(1) a { transition-delay: 0.06s; }
.sg-mobile-nav.is-open .sg-mobile-nav__list li:nth-child(2) a { transition-delay: 0.1s; }
.sg-mobile-nav.is-open .sg-mobile-nav__list li:nth-child(3) a { transition-delay: 0.14s; }
.sg-mobile-nav.is-open .sg-mobile-nav__list li:nth-child(4) a { transition-delay: 0.18s; }
.sg-mobile-nav.is-open .sg-mobile-nav__list li:nth-child(5) a { transition-delay: 0.22s; }
.sg-mobile-nav.is-open .sg-mobile-nav__list li:nth-child(6) a { transition-delay: 0.26s; }
.sg-mobile-nav.is-open .sg-mobile-nav__list li:nth-child(7) a { transition-delay: 0.3s; }
.sg-mobile-nav.is-open .sg-mobile-nav__list li:nth-child(8) a { transition-delay: 0.34s; }
.sg-mobile-nav.is-open .sg-mobile-nav__inner > .sg-btn { transition-delay: 0.38s; }

.sg-mobile-nav__list a:hover {
	background: rgba(217, 155, 23, 0.08);
}

@media (prefers-reduced-motion: reduce) {
	.sg-nav-toggle span,
	.sg-mobile-nav,
	.sg-mobile-nav__list a {
		transition: none !important;
	}

	.sg-mobile-nav.is-open .sg-mobile-nav__list a {
		transition-delay: 0s !important;
	}
}

@media (min-width: 960px) {
	.sg-nav {
		display: block;
	}

	.sg-nav-toggle,
	.sg-mobile-nav {
		display: none !important;
	}
}

/* ── Buttons ────────────────────────────────────────────────── */

.sg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.85rem 1.4rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.sg-btn:hover {
	transform: translateY(-1px);
}

.sg-btn--primary {
	background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
	color: var(--night-950);
	box-shadow: 0 8px 28px rgba(217, 155, 23, 0.28);
}

.sg-btn--primary:hover {
	color: var(--night-950);
	box-shadow: 0 12px 32px rgba(217, 155, 23, 0.4);
}

.sg-btn--ghost {
	background: transparent;
	border-color: rgba(217, 155, 23, 0.4);
	color: var(--gold-200);
}

.sg-btn--ghost:hover {
	border-color: var(--gold-300);
	background: rgba(217, 155, 23, 0.08);
	color: var(--gold-100);
}

.sg-btn--sm {
	padding: 0.55rem 1rem;
	font-size: 0.85rem;
}

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

.sg-text-link {
	color: var(--gold-300);
	font-weight: 600;
	font-size: 0.92rem;
	white-space: nowrap;
}

/* ── Hero ───────────────────────────────────────────────────── */

.sg-hero {
	position: relative;
	min-height: calc(100svh - var(--header-h));
	display: flex;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
}

.sg-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.sg-hero__video,
.sg-hero__still {
	position: absolute;
	inset: -4%;
	width: 108%;
	height: 108%;
	object-fit: cover;
	object-position: center center;
	opacity: 0.5;
	filter: saturate(1.08) contrast(1.06) brightness(1.02);
	transform: scale(1.02);
}

.sg-hero__video {
	display: block;
}

.sg-hero__video--mobile {
	display: none;
}

.sg-hero__still {
	display: none;
	background:
		center / cover no-repeat url("../images/hero/bar-cast.jpg");
	animation: sg-hero-drift 28s ease-in-out infinite alternate;
}

.sg-hero.is-static .sg-hero__video {
	display: none !important;
}

.sg-hero.is-static .sg-hero__still {
	display: block;
}

.sg-hero__particles {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.45;
}

.sg-hero__veil {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 72% 58% at 50% 38%, rgba(217, 155, 23, 0.1), transparent 62%),
		radial-gradient(circle at 12% 82%, rgba(189, 119, 17, 0.08), transparent 42%),
		linear-gradient(180deg, rgba(13, 14, 16, 0.18) 0%, rgba(13, 14, 16, 0.35) 52%, var(--night-950) 100%);
}

.sg-hero__inner {
	position: relative;
	z-index: 1;
	padding: 4rem 0 5rem;
	text-align: center;
	max-width: 720px;
}

.sg-hero__logo {
	width: 112px;
	height: 112px;
	margin: 0 auto 1.5rem;
	object-fit: contain;
	filter: drop-shadow(0 0 40px rgba(217, 155, 23, 0.35));
	animation: sg-fade-up 0.9s var(--ease) both;
}

.sg-hero__brand {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 6vw, 3.25rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	background: linear-gradient(135deg, var(--gold-200), var(--gold-500) 55%, var(--gold-300));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: sg-fade-up 0.9s 0.08s var(--ease) both;
}

.sg-hero__headline {
	margin: 0 0 1rem;
	font-size: clamp(1.35rem, 3.5vw, 1.85rem);
	font-weight: 600;
	color: var(--night-50);
	animation: sg-fade-up 0.9s 0.14s var(--ease) both;
}

.sg-hero__lead {
	margin: 0 auto 2rem;
	max-width: 34rem;
	color: var(--night-300);
	font-size: 1.05rem;
	animation: sg-fade-up 0.9s 0.2s var(--ease) both;
}

.sg-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	animation: sg-fade-up 0.9s 0.26s var(--ease) both;
}

@keyframes sg-fade-up {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes sg-hero-drift {
	from { transform: scale(1.02) translate3d(-1.2%, 0.6%, 0); }
	to { transform: scale(1.08) translate3d(1.4%, -0.8%, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.sg-hero__video {
		display: none;
	}

	.sg-hero__still {
		display: block;
		animation: none;
		opacity: 0.34;
	}

	.sg-hero__particles {
		display: none;
	}

	.sg-hero__logo,
	.sg-hero__brand,
	.sg-hero__headline,
	.sg-hero__lead,
	.sg-hero__actions {
		animation: none;
	}
}

@media (max-width: 720px) {
	.sg-hero__video--desktop {
		display: none;
	}

	.sg-hero__video--mobile {
		display: block;
	}

	.sg-hero__video,
	.sg-hero__still {
		opacity: 0.55;
	}

	.sg-hero__still {
		background-image: url("../images/hero/bar-cast-mobile.jpg");
	}

	.sg-hero.is-static .sg-hero__video--mobile {
		display: none !important;
	}
}

/* ── Sections shared ────────────────────────────────────────── */

.sg-eyebrow {
	margin: 0 0 0.5rem;
	color: var(--gold-400);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.sg-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}

.sg-section-head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.sg-section-head h2 {
	margin: 0;
	font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.sg-section-lead {
	margin: 0.6rem 0 0;
	color: var(--night-300);
	max-width: 32rem;
}

.sg-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.sg-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Price board ────────────────────────────────────────────── */

.sg-prices {
	padding: 1rem 0 4.5rem;
}

.sg-live-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	border: 1px solid rgba(16, 185, 129, 0.35);
	background: rgba(16, 185, 129, 0.08);
	color: var(--night-200);
	font-size: 0.78rem;
}

.sg-live-badge.is-stale {
	border-color: rgba(239, 68, 68, 0.35);
	background: rgba(239, 68, 68, 0.08);
}

.sg-live-badge__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--up);
	animation: sg-pulse 1.6s ease-in-out infinite;
}

.sg-live-badge.is-stale .sg-live-badge__dot {
	background: var(--down);
	animation: none;
}

@keyframes sg-pulse {
	0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
	50% { opacity: 0.65; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.sg-price-grid {
	display: grid;
	gap: 1rem;
}

@media (min-width: 720px) {
	.sg-price-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.sg-price-tile {
	padding: 1.35rem 1.25rem;
	border-radius: var(--radius);
	background: linear-gradient(165deg, rgba(38, 39, 45, 0.9), rgba(22, 23, 26, 0.95));
	border: 1px solid rgba(217, 155, 23, 0.12);
	transition: border-color 0.3s, transform 0.3s var(--ease);
}

.sg-price-tile:hover {
	border-color: rgba(217, 155, 23, 0.28);
	transform: translateY(-2px);
}

.sg-price-tile--accent {
	border-color: rgba(217, 155, 23, 0.35);
	background:
		linear-gradient(165deg, rgba(217, 155, 23, 0.12), transparent 55%),
		linear-gradient(165deg, rgba(38, 39, 45, 0.95), rgba(22, 23, 26, 0.98));
}

.sg-price-tile__label {
	margin: 0 0 0.55rem;
	color: var(--night-400);
	font-size: 0.82rem;
}

.sg-price-tile__value {
	margin: 0;
	font-size: clamp(1.15rem, 2.5vw, 1.45rem);
	font-weight: 700;
	color: var(--night-50);
	transition: color 0.35s, text-shadow 0.35s;
}

.sg-price-tile--accent .sg-price-tile__value {
	color: var(--gold-300);
}

.sg-price-tile__value.is-flash-up {
	color: var(--up) !important;
	text-shadow: 0 0 18px rgba(16, 185, 129, 0.35);
}

.sg-price-tile__value.is-flash-down {
	color: var(--down) !important;
	text-shadow: 0 0 18px rgba(239, 68, 68, 0.35);
}

.sg-price-tile__unit,
.sg-price-tile__meta {
	margin: 0.55rem 0 0;
	color: var(--night-500);
	font-size: 0.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.sg-prices__note {
	margin: 1.25rem 0 0;
	color: var(--night-400);
	font-size: 0.85rem;
}

/* ── How it works ───────────────────────────────────────────── */

.sg-how {
	padding: 4rem 0;
}

.sg-steps {
	display: grid;
	gap: 1.25rem;
	counter-reset: none;
}

@media (min-width: 800px) {
	.sg-steps {
		grid-template-columns: repeat(4, 1fr);
		gap: 1.5rem;
	}
}

.sg-step {
	padding: 0.25rem 0;
}

.sg-step__num {
	display: block;
	margin-bottom: 0.85rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--gold-500);
	letter-spacing: 0.08em;
}

.sg-step__title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
}

.sg-step__text {
	margin: 0;
	color: var(--night-350, var(--night-300));
	font-size: 0.92rem;
}

/* ── Trust ──────────────────────────────────────────────────── */

.sg-trust {
	padding: 2rem 0 4.5rem;
}

.sg-trust-list {
	display: grid;
	gap: 1.5rem 2.5rem;
	max-width: 880px;
	margin-inline: auto;
}

@media (min-width: 700px) {
	.sg-trust-list {
		grid-template-columns: 1fr 1fr;
	}
}

.sg-trust-item {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
}

.sg-trust-item__mark {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	margin-top: 0.55rem;
	border-radius: 50%;
	background: var(--gold-500);
	box-shadow: 0 0 0 4px rgba(217, 155, 23, 0.15);
}

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

.sg-trust-item p {
	margin: 0;
	color: var(--night-300);
	font-size: 0.92rem;
}

/* ── CTA ────────────────────────────────────────────────────── */

.sg-cta {
	padding: 1rem 0 5rem;
}

.sg-cta__panel {
	text-align: center;
	padding: 3rem 1.5rem;
	border-radius: calc(var(--radius) + 4px);
	border: 1px solid rgba(217, 155, 23, 0.22);
	background:
		radial-gradient(ellipse at 50% 0%, rgba(217, 155, 23, 0.16), transparent 55%),
		linear-gradient(180deg, var(--night-850), var(--night-900));
}

.sg-cta__panel h2 {
	margin-bottom: 0.5rem;
}

.sg-cta__panel p {
	color: var(--night-300);
	max-width: 28rem;
	margin: 0 auto 1.5rem;
}

/* ── Blog teaser / cards (interaction containers) ───────────── */

.sg-blog-teaser {
	padding: 2rem 0 3rem;
}

.sg-post-grid {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 720px) {
	.sg-post-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.sg-post-card {
	border-radius: var(--radius);
	border: 1px solid rgba(217, 155, 23, 0.12);
	background: rgba(29, 30, 35, 0.7);
	overflow: hidden;
	transition: border-color 0.25s, transform 0.25s var(--ease);
}

.sg-post-card:hover {
	border-color: rgba(217, 155, 23, 0.3);
	transform: translateY(-3px);
}

.sg-post-card__link {
	display: block;
	color: inherit;
	height: 100%;
}

.sg-post-card__media {
	background: radial-gradient(circle at 50% 40%, rgba(217, 155, 23, 0.18), transparent 55%),
		var(--night-900, #16171a);
	overflow: hidden;
}

.sg-post-card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.sg-post-card__media img[src*="logo-mark-v2"] {
	object-fit: contain;
	padding: 1.75rem;
}

.sg-post-card__body {
	padding: 1.15rem 1.2rem 1.35rem;
}

.sg-post-card time {
	display: block;
	margin-bottom: 0.45rem;
	color: var(--night-500);
	font-size: 0.78rem;
}

.sg-post-card h2,
.sg-post-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	color: var(--night-50);
}

.sg-post-card p {
	margin: 0;
	color: var(--night-300);
	font-size: 0.88rem;
}

/* ── Content pages ──────────────────────────────────────────── */

.sg-page-header {
	margin-bottom: 2rem;
}

.sg-page-header--center {
	text-align: center;
}

.sg-page-header h1 {
	font-size: clamp(1.6rem, 3.5vw, 2.1rem);
	margin-bottom: 0.4rem;
}

.sg-page-header p {
	color: var(--night-300);
	margin: 0;
}

/* ── درباره ما — تصویر شمش ─────────────────────────────────── */

.sg-about {
	max-width: 920px;
}

.sg-about__intro {
	display: grid;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 768px) {
	.sg-about__intro {
		grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
		gap: 2.75rem;
		align-items: center;
	}
}

.sg-about-visual,
.sg-founder {
	margin: 0;
	text-align: center;
}

.sg-about-visual__frame,
.sg-founder__frame {
	position: relative;
	width: min(380px, 92vw);
	margin-inline: auto;
	aspect-ratio: 16 / 10;
	border-radius: 18px;
	overflow: hidden;
	background: linear-gradient(160deg, #2a2418, #12131a 55%, #0d0e10);
	box-shadow:
		0 0 0 1px rgba(233, 181, 47, 0.35),
		0 0 40px rgba(217, 155, 23, 0.18),
		0 18px 40px rgba(0, 0, 0, 0.45);
	animation: sg-founder-in 0.8s var(--ease) both;
}

.sg-about-visual__frame::after,
.sg-founder__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 18px;
	pointer-events: none;
	box-shadow: inset 0 0 0 2px rgba(233, 181, 47, 0.45);
}

.sg-about-visual__frame img,
.sg-founder__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.sg-founder__caption {
	display: none;
}

.sg-about-visual--el,
.sg-founder--el {
	margin: 0 auto 1.5rem;
}

.sg-about-visual--el .sg-about-visual__frame,
.sg-founder--el .sg-founder__frame {
	box-shadow:
		0 0 0 2px rgba(233, 181, 47, 0.55),
		0 18px 40px rgba(0, 0, 0, 0.35);
}

.sg-about-visual--el .sg-about-visual__frame img,
.sg-founder--el .sg-founder__frame img {
	object-fit: cover;
	object-position: center;
	background: transparent;
}

/* ── قاب پروانه کسب ─────────────────────────────────────────── */
.sg-license-frame {
	position: relative;
	max-width: 860px;
	margin: 1.5rem auto 0.5rem;
	padding: 1.15rem 1.15rem 1.35rem;
	border-radius: 20px;
	background:
		linear-gradient(160deg, rgba(233, 181, 47, 0.16), rgba(29, 30, 35, 0.92) 42%, rgba(13, 14, 16, 0.98));
	border: 1px solid rgba(233, 181, 47, 0.38);
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.42),
		inset 0 1px 0 rgba(253, 249, 236, 0.08);
}

.sg-license-frame__ornament {
	position: absolute;
	inset: 10px;
	border-radius: 14px;
	border: 1px solid rgba(244, 223, 150, 0.22);
	pointer-events: none;
}

.sg-license-frame__inner {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #f4f6f8;
	border: 1px solid rgba(233, 181, 47, 0.28);
	box-shadow: 0 0 0 4px rgba(13, 14, 16, 0.35);
}

.sg-license-frame__inner img {
	display: block;
	width: 100%;
	height: auto;
}

.sg-license-frame__caption {
	margin: 1rem 0 0;
	text-align: center;
	color: var(--gold-200);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.sg-about__body > *:first-child {
	margin-top: 0;
}

@keyframes sg-founder-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sg-founder__frame,
	.sg-founder__caption {
		animation: none;
	}
}

.sg-layout {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 960px) {
	.sg-layout {
		grid-template-columns: minmax(0, 1fr) 280px;
		align-items: start;
	}
}

.sg-prose {
	color: var(--night-200);
	font-size: 1.02rem;
}

.sg-prose h2,
.sg-prose h3 {
	margin-top: 1.75em;
}

.sg-prose p,
.sg-prose ul,
.sg-prose ol {
	margin-bottom: 1.1em;
}

.sg-prose ul,
.sg-prose ol {
	padding-inline-start: 1.25rem;
	list-style: disc;
}

.sg-prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sg-article__header {
	margin-bottom: 1.75rem;
}

.sg-article__meta {
	color: var(--night-400);
	font-size: 0.88rem;
}

.sg-article__thumb {
	margin: 0 0 2rem;
	border-radius: var(--radius);
	overflow: hidden;
}

.sg-article-cta {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(217, 155, 23, 0.12);
}

.sg-sidebar .widget {
	padding: 1.25rem;
	margin-bottom: 1.25rem;
	border-radius: var(--radius);
	border: 1px solid rgba(217, 155, 23, 0.1);
	background: rgba(29, 30, 35, 0.65);
}

.sg-sidebar .widget-title {
	font-size: 0.95rem;
	margin-bottom: 0.75rem;
	color: var(--gold-300);
}

.sg-search-results {
	display: grid;
	gap: 0.75rem;
}

.sg-search-results a {
	display: block;
	padding: 1rem 1.1rem;
	border-radius: var(--radius);
	border: 1px solid rgba(217, 155, 23, 0.1);
	background: rgba(29, 30, 35, 0.6);
	color: inherit;
}

.sg-search-results strong {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--night-50);
}

.sg-search-results span {
	color: var(--night-300);
	font-size: 0.9rem;
}

.sg-404 {
	text-align: center;
	padding: 3rem 0;
}

.sg-empty {
	color: var(--night-400);
	text-align: center;
	padding: 2rem 0;
}

.sg-pagination {
	margin-top: 2rem;
}

.sg-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.sg-pagination a,
.sg-pagination span {
	display: inline-flex;
	padding: 0.45rem 0.8rem;
	border-radius: 8px;
	border: 1px solid rgba(217, 155, 23, 0.15);
	color: var(--night-200);
	font-size: 0.88rem;
}

.sg-pagination .current {
	background: rgba(217, 155, 23, 0.15);
	color: var(--gold-200);
}

/* Search — classic + block widget (override core :where() block styles) */
.sg-sidebar .wp-block-search,
.search-form,
.wp-block-search {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0;
	width: 100%;
}

.sg-sidebar .wp-block-search__label,
.search-form label,
.wp-block-search__label {
	display: block;
	margin: 0 0 0.15rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--gold-300);
}

.sg-sidebar .wp-block-search__inside-wrapper,
.wp-block-search__inside-wrapper {
	display: flex !important;
	align-items: stretch;
	gap: 0.5rem;
	width: 100%;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-sizing: border-box;
}

.sg-sidebar .wp-block-search__input,
.sg-sidebar input[type='search'],
.sg-sidebar input[type='text'],
.search-form .search-field,
.wp-block-search__input {
	flex: 1 1 auto !important;
	width: 100% !important;
	min-width: 0 !important;
	height: 2.85rem;
	padding: 0.7rem 0.95rem !important;
	border-radius: 12px !important;
	border: 1px solid rgba(217, 155, 23, 0.3) !important;
	background: var(--night-900) !important;
	color: var(--night-50) !important;
	font-family: inherit !important;
	font-size: 0.92rem !important;
	line-height: 1.4 !important;
	outline: none !important;
	box-shadow: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.sg-sidebar .wp-block-search__input::placeholder,
.sg-sidebar input[type='search']::placeholder {
	color: var(--night-500);
	opacity: 1;
}

.sg-sidebar .wp-block-search__input:hover,
.sg-sidebar input[type='search']:hover {
	border-color: rgba(217, 155, 23, 0.5) !important;
}

.sg-sidebar .wp-block-search__input:focus,
.sg-sidebar input[type='search']:focus,
.sg-sidebar input[type='text']:focus,
.search-form .search-field:focus {
	border-color: var(--gold-400) !important;
	background: var(--night-850) !important;
	box-shadow: 0 0 0 3px rgba(217, 155, 23, 0.2) !important;
}

.sg-sidebar .wp-block-search__button,
.sg-sidebar .wp-element-button,
.search-form .search-submit,
.wp-block-search__button {
	flex: 0 0 auto !important;
	height: 2.85rem !important;
	padding: 0 1.15rem !important;
	border: none !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, var(--gold-400), var(--gold-600)) !important;
	color: var(--night-950) !important;
	font-family: inherit !important;
	font-size: 0.88rem !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	cursor: pointer;
	white-space: nowrap;
	transition: filter 0.2s ease, transform 0.15s ease;
}

.sg-sidebar .wp-block-search__button:hover,
.sg-sidebar .wp-element-button:hover,
.search-form .search-submit:hover {
	filter: brightness(1.08);
}

.sg-sidebar .wp-block-search__button:active,
.search-form .search-submit:active {
	transform: translateY(1px);
}

/* Sidebar block headings / lists */
.sg-sidebar .wp-block-heading,
.sg-sidebar .widget-title {
	font-size: 0.95rem;
	margin: 0 0 0.85rem;
	color: var(--gold-300);
}

.sg-sidebar .wp-block-latest-posts,
.sg-sidebar .wp-block-archives,
.sg-sidebar .wp-block-categories,
.sg-sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sg-sidebar .wp-block-latest-posts li,
.sg-sidebar .wp-block-archives li,
.sg-sidebar .wp-block-categories li {
	margin: 0;
	padding: 0.45rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sg-sidebar .wp-block-latest-posts li:last-child,
.sg-sidebar .wp-block-archives li:last-child,
.sg-sidebar .wp-block-categories li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.sg-sidebar .wp-block-latest-posts a,
.sg-sidebar .wp-block-archives a,
.sg-sidebar .wp-block-categories a {
	color: var(--night-200);
	text-decoration: none;
	font-size: 0.9rem;
	line-height: 1.55;
}

.sg-sidebar .wp-block-latest-posts a:hover,
.sg-sidebar .wp-block-archives a:hover,
.sg-sidebar .wp-block-categories a:hover {
	color: var(--gold-300);
}

/* ── Footer ─────────────────────────────────────────────────── */

.sg-footer {
	border-top: 1px solid rgba(217, 155, 23, 0.12);
	background: rgba(8, 9, 11, 0.85);
	padding-top: 3rem;
}

.sg-footer__grid {
	display: grid;
	gap: 2rem;
	padding-bottom: 2.5rem;
}

@media (min-width: 800px) {
	.sg-footer__grid {
		grid-template-columns: 1.4fr 1fr 1.2fr;
	}
}

.sg-footer__brand img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	margin-bottom: 0.75rem;
}

.sg-footer__name {
	margin: 0 0 0.35rem;
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--gold-300);
}

.sg-footer__tagline {
	margin: 0;
	color: var(--night-400);
	font-size: 0.9rem;
	max-width: 16rem;
}

.sg-footer__heading {
	margin: 0 0 0.85rem;
	font-weight: 700;
	color: var(--night-100);
}

.sg-footer__links,
.sg-footer__contact {
	display: grid;
	gap: 0.45rem;
}

.sg-footer__links a,
.sg-footer__contact a {
	color: var(--night-300);
	font-size: 0.9rem;
}

.sg-footer__contact li {
	display: grid;
	gap: 0.15rem;
	color: var(--night-200);
	font-size: 0.9rem;
	margin-bottom: 0.65rem;
}

.sg-footer__contact span {
	color: var(--night-500);
	font-size: 0.78rem;
}

.sg-footer__contact + .sg-btn {
	margin-top: 0.5rem;
}

.sg-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	padding: 1.1rem 0;
}

.sg-footer__bottom p {
	margin: 0;
	color: var(--night-500);
	font-size: 0.82rem;
	text-align: center;
}

/* ─── Elementor روی زمینه شب ─── */
.elementor-section.elementor-section-boxed > .elementor-container {
	max-width: 1100px;
}

.elementor-section {
	padding-block: 2.5rem;
}

.elementor-widget-heading .elementor-heading-title {
	color: var(--night-50);
	font-family: var(--font);
}

.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-text-editor li {
	color: var(--night-200);
	font-family: var(--font);
	line-height: 1.8;
}

.elementor-widget-text-editor h2,
.elementor-widget-text-editor h3 {
	color: var(--night-50);
}

.elementor-widget-text-editor a {
	color: var(--gold-300);
}

.elementor-widget-image img {
	border-radius: var(--radius);
}

.elementor-button {
	font-family: var(--font) !important;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.sg-reveal {
		opacity: 1;
		transform: none;
	}
}
