/*
Theme Name: Gamission
Theme URI: https://gamission.example
Author: Gamission
Description: قالب فارسی و راست‌به‌چپ وردپرس برای استودیوی بازی‌سازی و انیمیشن گیمیشن، با رنگ‌های مشکی، زرد-نارنجی و طوسی/سفید. شامل پروژه‌های قابل ویرایش (ساخته‌شده / در دست ساخت)، فرم‌های همکاری، سفارش پروژه و سرمایه‌گذاری، و کنترل کامل رنگ‌ها، متن‌ها و اطلاعات تماس از بخش سفارشی‌سازی.
Version: 1.5.0
Requires at least: 5.9
Tested up to: 6.6
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: gamission
Tags: dark, custom-logo, custom-menu, featured-images, translation-ready, rtl-language-support, one-column, two-columns
*/

/* ==========================================================================
   Tokens (colors can be changed in Appearance > Customize > Gamission > Colors)
   ========================================================================== */
:root {
	--gm-accent: #f5a31a;
	--gm-bg: #0b0b0c;
	--gm-surface: #151517;
	--gm-text: #ececee;
	--gm-muted: #9b9ba1;
	--gm-border: rgba(255, 255, 255, 0.09);
	--gm-surface-2: color-mix(in srgb, var(--gm-surface) 88%, #fff);
	--gm-accent-soft: color-mix(in srgb, var(--gm-accent) 14%, transparent);
	--gm-radius: 14px;
	--gm-font: "Vazirmatn", "Vazir", "Segoe UI", Tahoma, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--gm-header-h: 76px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	overflow-x: clip;
	margin: 0;
	background: var(--gm-bg);
	color: var(--gm-text);
	font-family: var(--gm-font);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--gm-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: #fff; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gm-accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gm-accent); color: #000; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.gm-skip {
	position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
	background: var(--gm-accent); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.gm-skip:focus { top: 12px; }

.gm-container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.gm-narrow { width: min(820px, 100% - 40px); }
.gm-center { text-align: center; }
.gm-icon { flex: none; vertical-align: middle; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.gm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer;
	transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
	text-decoration: none !important;
}
.gm-btn:hover { transform: translateY(-2px); }
.gm-btn-primary { background: var(--gm-accent); color: #111; box-shadow: 0 6px 24px -8px var(--gm-accent); }
.gm-btn-primary:hover { background: color-mix(in srgb, var(--gm-accent) 88%, #fff); }
.gm-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.gm-btn-ghost:hover { border-color: var(--gm-accent); color: var(--gm-accent); }
.gm-btn-dark { background: #0b0b0c; color: #fff; }
.gm-btn-dark:hover { background: #1b1b1e; }
.gm-btn-small { padding: 8px 18px; font-size: 14px; }
.gm-btn-block { display: flex; width: 100%; margin-top: 12px; }

.gm-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gm-accent); }
.gm-link:hover { text-decoration: none; gap: 10px; }

/* ==========================================================================
   Header
   ========================================================================== */
.gm-header {
	position: sticky; top: 0; z-index: 100;
	border-bottom: 1px solid var(--gm-border);
	transition: box-shadow .2s ease;
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would turn
   the header into the containing block of the fixed mobile menu and break it. */
.gm-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: color-mix(in srgb, var(--gm-bg) 86%, transparent);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	transition: background .2s ease;
}
.admin-bar .gm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gm-header { top: 46px; } }
.gm-header.is-scrolled { box-shadow: 0 8px 30px -12px #000; }
.gm-header.is-scrolled::before { background: color-mix(in srgb, var(--gm-bg) 96%, transparent); }

.gm-header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--gm-header-h); }
.gm-logo { display: inline-flex; align-items: center; flex: none; }
.gm-logo-img { height: 56px; width: auto; display: block; }
.gm-logo-footer .gm-logo-img { height: 120px; }

.gm-nav { display: flex; align-items: center; flex: 1; gap: 20px; }
.gm-menu, .gm-menu ul { list-style: none; margin: 0; padding: 0; }
.gm-menu { display: flex; align-items: center; gap: 2px; flex: 1; flex-wrap: nowrap; }
.gm-menu li { position: relative; }
.gm-menu a {
	display: block; padding: 9px 9px; color: var(--gm-text); font-weight: 500; font-size: 13px; white-space: nowrap;
	border-radius: 999px; text-decoration: none; transition: color .2s, background .2s;
}
.gm-menu a:hover, .gm-menu .current-menu-item > a, .gm-menu .current-menu-ancestor > a { color: var(--gm-accent); background: var(--gm-accent-soft); }

.gm-menu .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 8px;
	border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}
.gm-menu .sub-menu {
	position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px; padding: 8px;
	background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: var(--gm-radius);
	box-shadow: 0 20px 40px -12px #000; opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .18s ease; z-index: 20;
}
.gm-menu li:hover > .sub-menu, .gm-menu li:focus-within > .sub-menu, .gm-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.gm-menu .sub-menu a { border-radius: 8px; }

.gm-header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.gm-account-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gm-text); font-weight: 500; font-size: 13px; padding: 8px 10px; border-radius: 999px; }
.gm-account-link:hover { color: var(--gm-accent); text-decoration: none; }

.gm-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
	background: transparent; color: var(--gm-text); border: 1px solid var(--gm-border); border-radius: 50%; cursor: pointer;
	transition: color .2s, border-color .2s, background .2s;
}
.gm-icon-btn:hover, .gm-icon-btn[aria-expanded="true"] { color: var(--gm-accent); border-color: var(--gm-accent); background: var(--gm-accent-soft); }
.gm-nav-toggle { display: none; margin-inline-start: auto; }

.gm-search-panel { border-top: 1px solid var(--gm-border); background: var(--gm-surface); padding: 18px 0; }
.gm-search-panel[hidden] { display: none; }
.gm-searchform { display: flex; gap: 10px; max-width: 720px; margin-inline: auto; }
.gm-search-input {
	flex: 1; min-width: 0; padding: 13px 20px; font: inherit; color: #fff;
	background: var(--gm-bg); border: 1px solid var(--gm-border); border-radius: 999px;
}
.gm-search-input:focus { outline: none; border-color: var(--gm-accent); box-shadow: 0 0 0 3px var(--gm-accent-soft); }
.gm-search-again { margin-bottom: 36px; }

@media (max-width: 1240px) {
	.gm-nav-toggle { display: inline-flex; }
	.gm-nav {
		position: fixed; inset: var(--gm-header-h) 0 0 0; z-index: 90; flex-direction: column; align-items: stretch;
		gap: 12px; padding: 20px; background: var(--gm-bg); overflow-y: auto;
		transform: translateX(100%); visibility: hidden;
	}
	.admin-bar .gm-nav { top: calc(var(--gm-header-h) + 46px); }
	.rtl .gm-nav { transform: translateX(-100%); }
	.gm-nav.is-open { transform: none; visibility: visible; }
	.gm-menu { flex-direction: column; align-items: stretch; flex: none; }
	.gm-menu a { padding: 13px 16px; font-size: 15px; border-radius: 10px; }
	.gm-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; display: none; }
	.gm-menu li.is-open > .sub-menu { display: block; }
	.gm-header-actions { margin: 8px 0 0; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--gm-border); }
	body.gm-nav-open { overflow: hidden; }
}
@media (max-width: 520px) {
	.gm-logo-img { height: 46px; }
	.gm-btn-label { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.gm-hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0; isolation: isolate; }
.gm-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image:
		linear-gradient(var(--gm-border) 1px, transparent 1px),
		linear-gradient(90deg, var(--gm-border) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.gm-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.gm-eyebrow {
	display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
	font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--gm-accent); background: var(--gm-accent-soft); border: 1px solid color-mix(in srgb, var(--gm-accent) 35%, transparent);
}
.gm-hero-title { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.08; margin-bottom: 20px; }
.gm-hero-text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--gm-muted); max-width: 56ch; margin-bottom: 32px; }
.gm-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.gm-logo-art { position: relative; display: grid; place-items: center; width: 100%; max-width: 520px; aspect-ratio: 1; margin-inline: auto; overflow: hidden; }
.gm-logo-float { position: relative; z-index: 1; width: min(400px, 86%); animation: gm-float 6s ease-in-out infinite; }
.gm-hero-logo { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 50px rgba(245, 163, 26, .28)); }
.gm-hero-glow {
	position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--gm-accent) 38%, transparent), transparent 68%);
	filter: blur(30px); animation: gm-glow 4.5s ease-in-out infinite;
}
@keyframes gm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 860px) {
	.gm-hero-inner { grid-template-columns: 1fr; text-align: center; }
	.gm-hero-text { margin-inline: auto; }
	.gm-hero-actions { justify-content: center; }
	.gm-hero-art { order: -1; }
	.gm-logo-art { max-width: 320px; }
	.gm-logo-float { width: min(250px, 78%); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.gm-section { padding: clamp(56px, 7vw, 96px) 0; }
.gm-section-alt { background: var(--gm-surface); border-block: 1px solid var(--gm-border); }
.gm-section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.gm-section-text { color: var(--gm-muted); margin: 0; max-width: 60ch; }
.gm-lead { font-size: 1.15rem; color: #d6d6da; }

.gm-section-head { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }
.gm-section-head > div { flex: 1; }
.gm-section-head .gm-section-title { margin-bottom: 6px; }
.gm-section-icon {
	display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 16px;
	color: var(--gm-accent); background: var(--gm-accent-soft); border: 1px solid color-mix(in srgb, var(--gm-accent) 30%, transparent);
}
.gm-section-more { white-space: nowrap; }
@media (max-width: 640px) {
	.gm-section-head { flex-wrap: wrap; }
	.gm-section-more { margin-inline-start: 74px; }
}
.gm-center.gm-section-title, h2.gm-center { margin-bottom: 40px; }

.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.gm-grid-2 { grid-template-columns: repeat(2, 1fr); }
.gm-grid-3 { grid-template-columns: repeat(3, 1fr); }
.gm-grid-1 { grid-template-columns: minmax(0, 560px); justify-content: center; }
.gm-grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gm-center-text { text-align: center; margin: -22px auto 40px; }
@media (max-width: 900px) { .gm-grid-3 { grid-template-columns: 1fr; } .gm-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .gm-grid-auto { grid-template-columns: 1fr; } }

.gm-feature, .gm-cta-card {
	padding: 32px; background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: var(--gm-radius);
	transition: transform .2s ease, border-color .2s ease;
}
.gm-section-alt .gm-feature, .gm-section-alt .gm-cta-card { background: var(--gm-bg); }
.gm-feature:hover, .gm-cta-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gm-accent) 50%, transparent); }
.gm-feature h3, .gm-cta-card h3 { font-size: 1.35rem; }
.gm-feature p, .gm-cta-card p { color: var(--gm-muted); }
.gm-cta-card .gm-btn { margin-top: 8px; }
.gm-feature-icon {
	display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 18px; border-radius: 18px;
	color: #111; background: linear-gradient(135deg, var(--gm-accent), color-mix(in srgb, var(--gm-accent) 70%, #fff));
}

/* Invest band: yellow-orange background, black text */
.gm-invest-band {
	padding: clamp(56px, 7vw, 88px) 0; text-align: center; color: #0b0b0c;
	background: linear-gradient(135deg, var(--gm-accent), color-mix(in srgb, var(--gm-accent) 78%, #fff));
}
.gm-invest-band .gm-container { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gm-invest-band h2 { color: #0b0b0c; font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; margin: 10px 0; }
.gm-invest-band p { max-width: 60ch; font-size: 1.1rem; color: rgba(0, 0, 0, .75); margin-bottom: 22px; }

.gm-about-teaser { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .gm-about-teaser { grid-template-columns: 1fr; } }

/* ==========================================================================
   Project cards
   ========================================================================== */
.gm-card { display: flex; flex-direction: column; overflow: hidden; background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: var(--gm-radius); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.gm-section-alt .gm-card { background: var(--gm-bg); }
.gm-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--gm-accent) 55%, transparent); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .9); }
.gm-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--gm-surface-2); }
.gm-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gm-card:hover .gm-card-media img { transform: scale(1.05); }
.gm-card-placeholder {
	display: grid; place-items: center; width: 100%; height: 100%; color: var(--gm-accent);
	background: radial-gradient(circle at 30% 20%, var(--gm-accent-soft), transparent 60%), linear-gradient(135deg, #1b1b1e, #0f0f11);
}
.gm-badge {
	position: absolute; top: 14px; inset-inline-start: 14px; padding: 4px 12px; border-radius: 999px;
	font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	color: #fff; background: rgba(11, 11, 12, .82); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
}
.gm-badge-live { color: #111; background: var(--gm-accent); border-color: var(--gm-accent); }
.gm-badge-inline { position: static; display: inline-block; margin-bottom: 14px; }
.gm-badge-inline:hover { text-decoration: none; }
.gm-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.gm-card-title { font-size: 1.25rem; margin-bottom: 4px; }
.gm-card-title a { color: #fff; }
.gm-card-title a:hover { color: var(--gm-accent); text-decoration: none; }
.gm-card-meta { font-size: 13px; color: var(--gm-accent); font-weight: 600; margin-bottom: 10px; }
.gm-card-excerpt { color: var(--gm-muted); font-size: 15px; flex: 1; }

.gm-progress { height: 8px; margin-top: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.gm-progress-bar { width: var(--gm-w, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gm-accent), color-mix(in srgb, var(--gm-accent) 60%, #fff)); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.js .gm-progress-bar:not(.is-in) { width: 0; }
.gm-progress-label { font-size: 13px; color: var(--gm-muted); margin: 6px 0 14px; }
.gm-empty { padding: 40px; text-align: center; color: var(--gm-muted); border: 1px dashed var(--gm-border); border-radius: var(--gm-radius); }

.gm-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.gm-filter a { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--gm-border); color: var(--gm-text); font-weight: 600; font-size: 14px; }
.gm-filter a:hover { text-decoration: none; border-color: var(--gm-accent); color: var(--gm-accent); }
.gm-filter a.is-active { background: var(--gm-accent); border-color: var(--gm-accent); color: #111; }

.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.nav-links .page-numbers { padding: 9px 16px; border: 1px solid var(--gm-border); border-radius: 999px; color: var(--gm-text); font-weight: 600; }
.nav-links .page-numbers.current, .nav-links a.page-numbers:hover { background: var(--gm-accent); border-color: var(--gm-accent); color: #111; text-decoration: none; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.gm-page-hero {
	padding: clamp(48px, 6vw, 84px) 0 clamp(36px, 4vw, 56px); text-align: center; border-bottom: 1px solid var(--gm-border);
	background: radial-gradient(ellipse at 50% 0%, var(--gm-accent-soft), transparent 65%), var(--gm-bg);
}
.gm-page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 10px; }
.gm-page-hero p { color: var(--gm-muted); max-width: 62ch; margin: 0 auto; font-size: 1.1rem; }

.gm-entry-content { font-size: 1.05rem; color: #d4d4d8; }
.gm-entry-content > * + * { margin-top: 1.1em; }
.gm-entry-content h2, .gm-entry-content h3 { margin-top: 1.6em; }
.gm-entry-content img { border-radius: var(--gm-radius); }
.gm-entry-content blockquote { margin-inline: 0; padding: 4px 24px; border-inline-start: 4px solid var(--gm-accent); color: #fff; }
.gm-lead-content p:first-child { font-size: 1.25rem; color: #fff; }

.gm-about-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .gm-about-layout { grid-template-columns: 1fr; } .gm-about-logo { order: -1; max-width: 260px; margin-inline: auto; } }

/* Project single */
.gm-project-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .gm-project-layout { grid-template-columns: 1fr; } }
.gm-project-cover { margin-bottom: 32px; border-radius: var(--gm-radius); overflow: hidden; border: 1px solid var(--gm-border); }
.gm-project-cover img { display: block; width: 100%; }
.gm-project-side { position: sticky; top: calc(var(--gm-header-h) + 24px); padding: 26px; background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: var(--gm-radius); }
.gm-facts { margin: 0 0 18px; }
.gm-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--gm-border); }
.gm-facts dt { color: var(--gm-muted); }
.gm-facts dd { margin: 0; font-weight: 600; color: #fff; text-align: end; }

/* ==========================================================================
   Contact cards
   ========================================================================== */
.gm-contact-list { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.gm-contact-item { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: var(--gm-radius); }
.gm-section-alt .gm-contact-item { background: var(--gm-bg); }
.gm-contact-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; color: #111; background: var(--gm-accent); }
.gm-contact-item strong { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.gm-contact-item a, .gm-contact-item span { color: #d4d4d8; word-break: break-word; }
.gm-contact-item a:hover { color: var(--gm-accent); }
.gm-contact-item .gm-link { display: flex; margin-top: 4px; color: var(--gm-accent); font-size: 14px; }
.gm-contact-compact { margin-top: 0; }

/* ==========================================================================
   Forms
   ========================================================================== */
.gm-form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .gm-form-layout { grid-template-columns: 1fr; } }
.gm-form-side .gm-feature-icon { margin-bottom: 22px; }
.gm-slogan { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--gm-accent); }
.gm-form-wrap { padding: clamp(24px, 3.5vw, 40px); background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: 20px; scroll-margin-top: calc(var(--gm-header-h) + 20px); }
.gm-form-title { font-size: 1.5rem; }
.gm-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; margin-bottom: 26px; }
.gm-field { grid-column: 1 / -1; min-width: 0; }
.gm-field.gm-half { grid-column: auto; }
@media (max-width: 600px) { .gm-field.gm-half { grid-column: 1 / -1; } }
.gm-form-heading { grid-column: 1 / -1; margin: 8px 0 -4px; padding-bottom: 10px; font-size: 1.1rem; color: var(--gm-accent); border-bottom: 1px solid var(--gm-border); }
.gm-form-heading:first-child { margin-top: 0; }
.gm-field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: #e4e4e7; }
.gm-req { color: var(--gm-accent); }
.gm-field input, .gm-field select, .gm-field textarea {
	width: 100%; padding: 13px 16px; font: inherit; color: #fff;
	background: var(--gm-bg); border: 1px solid var(--gm-border); border-radius: 12px;
	transition: border-color .2s, box-shadow .2s;
}
.gm-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239b9ba1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 16px center; background-size: 14px; background-repeat: no-repeat; padding-inline-end: 42px; }
.rtl .gm-field select { background-position: left 16px center; }
.gm-field select option { background: #151517; color: #fff; }
.gm-field input::placeholder, .gm-field textarea::placeholder { color: #6d6d73; }
.gm-field input:focus, .gm-field select:focus, .gm-field textarea:focus { outline: none; border-color: var(--gm-accent); box-shadow: 0 0 0 3px var(--gm-accent-soft); }
.gm-field input[type="file"] { padding: 10px; color: var(--gm-muted); border-style: dashed; cursor: pointer; }
.gm-field input[type="file"]::file-selector-button { margin-inline-end: 14px; padding: 8px 16px; font: inherit; font-weight: 700; color: #111; background: var(--gm-accent); border: 0; border-radius: 999px; cursor: pointer; }
.gm-field textarea { resize: vertical; min-height: 130px; }
.gm-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.gm-notice { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; padding: 16px 20px; border-radius: 12px; font-weight: 600; }
.gm-notice-ok { color: #d7f5df; background: rgba(46, 160, 90, .16); border: 1px solid rgba(46, 160, 90, .5); }
.gm-notice-err { color: #ffd9d4; background: rgba(220, 70, 50, .14); border: 1px solid rgba(220, 70, 50, .5); }

/* ==========================================================================
   Footer
   ========================================================================== */
.gm-footer { margin-top: 0; background: #070708; border-top: 1px solid var(--gm-border); }
.gm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 48px; padding: 64px 0 48px; }
.gm-footer-grid:has(.gm-widget) { grid-template-columns: 1.4fr 1fr 1.4fr 1fr; }
@media (max-width: 960px) { .gm-footer-grid, .gm-footer-grid:has(.gm-widget) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gm-footer-grid, .gm-footer-grid:has(.gm-widget) { grid-template-columns: 1fr; gap: 36px; } }
.gm-footer-brand p { color: var(--gm-muted); max-width: 38ch; margin-top: 14px; }
.gm-footer-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gm-accent); margin-bottom: 18px; }
.gm-footer-menu, .gm-footer-contact { list-style: none; display: grid; gap: 10px; }
.gm-footer-menu a, .gm-footer-contact a, .gm-footer-contact span { color: #c9c9ce; }
.gm-footer-menu a:hover, .gm-footer-contact a:hover { color: var(--gm-accent); text-decoration: none; }
.gm-footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.gm-footer-contact .gm-icon { color: var(--gm-accent); margin-top: 3px; }
.gm-footer .gm-btn { margin-top: 20px; }
.gm-social { list-style: none; display: flex; gap: 10px; margin-top: 18px; }
.gm-social a { display: grid; place-items: center; width: 42px; height: 42px; color: var(--gm-text); border: 1px solid var(--gm-border); border-radius: 50%; transition: all .2s; }
.gm-social a:hover { color: #111; background: var(--gm-accent); border-color: var(--gm-accent); transform: translateY(-3px); }
.gm-footer-bottom { padding: 20px 0; border-top: 1px solid var(--gm-border); text-align: center; color: var(--gm-muted); font-size: 14px; }
.gm-footer-bottom p { margin: 0; }

/* 404 */
.gm-404 { padding-block: 100px; }
.gm-404-code { display: block; font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; line-height: 1; color: var(--gm-accent); text-shadow: 0 0 60px color-mix(in srgb, var(--gm-accent) 45%, transparent); }
.gm-404 .gm-searchform { margin: 28px auto; }

/* Comments / WP core bits */
.alignleft { float: left; margin-inline: 0 1.5em; }
.alignright { float: right; margin-inline: 1.5em 0; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--gm-muted); text-align: center; }
.gm-widget { margin-bottom: 24px; color: #c9c9ce; }

/* ==========================================================================
   Animations
   Everything below is switched off for visitors who prefer reduced motion
   (see the last block of this file).
   ========================================================================== */

@keyframes gm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gm-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes gm-pop { from { opacity: 0; scale: .78; rotate: -7deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes gm-slide-down { from { opacity: 0; translate: 0 -100%; } to { opacity: 1; translate: 0 0; } }
@keyframes gm-glow { 0%, 100% { opacity: .55; scale: .92; } 50% { opacity: 1; scale: 1.08; } }
@keyframes gm-spin { to { rotate: 360deg; } }
@keyframes gm-shine { 0% { background-position: 160% 0; } 55%, 100% { background-position: -60% 0; } }
@keyframes gm-gradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes gm-grid-drift { to { background-position: 56px 56px, 56px 56px; } }
@keyframes gm-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes gm-ring { 0% { box-shadow: 0 6px 24px -8px var(--gm-accent), 0 0 0 0 color-mix(in srgb, var(--gm-accent) 55%, transparent); } 70%, 100% { box-shadow: 0 6px 24px -8px var(--gm-accent), 0 0 0 16px transparent; } }
@keyframes gm-icon-pulse { 0%, 100% { scale: 1; filter: drop-shadow(0 0 0 transparent); } 50% { scale: 1.16; filter: drop-shadow(0 0 10px rgba(0, 0, 0, .35)); } }
@keyframes gm-wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -12deg; } 75% { rotate: 12deg; } }
@keyframes gm-stripes { to { background-position: 40px 0; } }
@keyframes gm-dot { 0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, .45); } 100% { box-shadow: 0 0 0 9px rgba(0, 0, 0, 0); } }
@keyframes gm-flicker { 0%, 18%, 22%, 62%, 66%, 100% { opacity: 1; } 20%, 64% { opacity: .35; } }
@keyframes gm-particle {
	0% { opacity: 0; transform: translateY(0) rotate(0deg); }
	12% { opacity: .55; }
	85% { opacity: .3; }
	100% { opacity: 0; transform: translateY(-620px) rotate(360deg); }
}

/* Page load */
/* 'backwards' (not 'both'): once finished, no transform stays on the header. */
.gm-header { animation: gm-slide-down .6s cubic-bezier(.2, .8, .2, 1) backwards; }

/* Header logo */
.gm-logo-img { transition: transform .3s ease, filter .3s ease; }
.gm-logo:hover .gm-logo-img { transform: scale(1.06) rotate(-1.5deg); filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--gm-accent) 55%, transparent)); }
.gm-logo-footer .gm-logo-img { animation: gm-float 7s ease-in-out infinite; }

/* Scroll progress line (created by main.js) */
.gm-scrollbar { position: absolute; inset-inline-start: 0; bottom: -1px; height: 3px; width: var(--p, 0%); background: linear-gradient(90deg, var(--gm-accent), color-mix(in srgb, var(--gm-accent) 55%, #fff)); box-shadow: 0 0 12px var(--gm-accent); transition: width .1s linear; pointer-events: none; }

/* Hero: staggered entrance */
.gm-hero-copy > * { animation: gm-rise .85s cubic-bezier(.2, .7, .2, 1) both; }
.gm-hero-copy > :nth-child(1) { animation-delay: .1s; }
.gm-hero-copy > :nth-child(2) { animation-delay: .22s; }
.gm-hero-copy > :nth-child(3) { animation-delay: .36s; }
.gm-hero-copy > :nth-child(4) { animation-delay: .5s; }
.gm-hero::before { animation: gm-grid-drift 40s linear infinite; }
.gm-hero-actions .gm-btn-primary { animation: gm-ring 2.8s ease-out 1.6s infinite; }

/* Logo: entrance, orbiting rings, light sweep, tilt (tilt set by main.js) */
.gm-logo-art { animation: gm-pop 1.1s cubic-bezier(.2, .8, .2, 1) .2s both; transition: transform .25s ease-out; transform: perspective(900px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }
.gm-orbit { position: absolute; aspect-ratio: 1; border-radius: 50%; pointer-events: none; }
.gm-orbit-1 { width: 80%; border: 1.5px dashed color-mix(in srgb, var(--gm-accent) 50%, transparent); animation: gm-spin 26s linear infinite; }
.gm-orbit-2 { width: 100%; border: 1px solid color-mix(in srgb, var(--gm-accent) 20%, transparent); animation: gm-spin 44s linear infinite reverse; }
.gm-orbit::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--gm-accent); box-shadow: 0 0 14px 3px var(--gm-accent); }
.gm-orbit-2::after { top: auto; bottom: -4px; width: 7px; height: 7px; margin-left: -3px; background: #fff; box-shadow: 0 0 10px 2px #fff; }
.gm-logo-shine { display: none; }
.gm-logo-shine.is-on {
	display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	-webkit-mask-image: var(--gm-logo-url); mask-image: var(--gm-logo-url);
	-webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
	background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .9) 50%, transparent 60%) 160% 0 / 260% 100% no-repeat;
	animation: gm-shine 5.5s ease-in-out 1.8s infinite;
}

/* Inner page banner: drifting grid, floating emblem, rising text */
.gm-page-hero { position: relative; overflow: hidden; isolation: isolate; }
.gm-page-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image: linear-gradient(var(--gm-border) 1px, transparent 1px), linear-gradient(90deg, var(--gm-border) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 72%); mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 72%);
	animation: gm-grid-drift 40s linear infinite;
}
.gm-page-hero::after {
	content: ""; position: absolute; z-index: -1; inset-inline-end: 6%; top: 50%; width: clamp(110px, 16vw, 210px); aspect-ratio: 1;
	margin-top: calc(clamp(110px, 16vw, 210px) / -2);
	background: var(--gm-mark-url, none) center / contain no-repeat; opacity: .09; animation: gm-bob 6s ease-in-out infinite;
}
.gm-page-hero .gm-container > * { animation: gm-rise .75s cubic-bezier(.2, .7, .2, 1) both; }
.gm-page-hero .gm-container > :nth-child(2) { animation-delay: .12s; }
.gm-page-hero .gm-container > :nth-child(3) { animation-delay: .24s; }

/* Floating particles (created by main.js inside hero, page banners and the invest band) */
.gm-hero, .gm-invest-band, .gm-404 { position: relative; isolation: isolate; }
.gm-particles { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.gm-particle { position: absolute; bottom: -24px; left: var(--x); width: var(--s); height: var(--s); border-radius: var(--r, 50%); background: var(--gm-accent); opacity: 0; animation: gm-particle var(--t) linear var(--dl) infinite; }
.gm-invest-band .gm-particle { background: rgba(0, 0, 0, .22); }

/* Scroll reveal (classes added by main.js; the page is fully visible without JS) */
.js .gm-reveal {
	opacity: 0; translate: 0 32px;
	transition: opacity .75s ease var(--gm-d, 0s), translate .75s cubic-bezier(.2, .7, .2, 1) var(--gm-d, 0s),
		transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.js .gm-reveal.is-in { opacity: 1; translate: 0 0; }

/* Section titles get an accent underline that draws itself */
.gm-section-title::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--gm-accent); transition: width .8s cubic-bezier(.2, .7, .2, 1) .25s; }
.gm-center.gm-section-title::after, h2.gm-center::after { margin-inline: auto; }
.js .gm-section-title:not(.is-in)::after, .js .is-pending .gm-section-title::after { width: 0; }
.gm-page-hero h1::after, .gm-invest-band h2::after, .gm-slogan::after, .gm-form-title::after { content: none; }

/* Cards: lift (existing), spotlight that follows the pointer, icon wobble */
.gm-card:hover, .gm-feature:hover, .gm-cta-card:hover, .gm-contact-item:hover {
	background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--gm-accent) 13%, transparent), transparent 55%);
}
.gm-feature-icon { animation: gm-bob 4.5s ease-in-out infinite; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s ease; }
.gm-feature:nth-child(2) .gm-feature-icon { animation-delay: -1.2s; }
.gm-feature:nth-child(3) .gm-feature-icon { animation-delay: -2.4s; }
.gm-feature:nth-child(4) .gm-feature-icon { animation-delay: -3.4s; }
.gm-feature:hover .gm-feature-icon, .gm-cta-card:hover .gm-feature-icon { transform: rotate(-9deg) scale(1.1); box-shadow: 0 12px 30px -10px var(--gm-accent); }
.gm-section-icon { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.gm-section-head:hover .gm-section-icon { transform: rotate(-8deg) scale(1.08); }
.gm-contact-item { transition: transform .25s ease, border-color .25s ease; }
.gm-contact-item:hover { transform: translateX(-6px); border-color: color-mix(in srgb, var(--gm-accent) 50%, transparent); }
.gm-contact-item:hover .gm-contact-icon { animation: gm-wiggle .6s ease; }

/* Buttons: light sweep, arrow nudge */
.gm-btn { position: relative; overflow: hidden; }
.gm-btn-primary::after, .gm-btn-dark::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-130%);
}
.gm-btn-primary:hover::after, .gm-btn-dark:hover::after { transform: translateX(130%); transition: transform .8s ease; }
.gm-btn .gm-icon-arrow, .gm-link .gm-icon-arrow { transition: translate .25s ease; }
.gm-btn:hover .gm-icon-arrow, .gm-link:hover .gm-icon-arrow { translate: -6px 0; }

/* Progress bars: moving stripes; live badge: pulsing dot */
.gm-progress-bar { position: relative; overflow: hidden; }
.gm-progress-bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 10px, rgba(255, 255, 255, .28) 10px 20px); background-size: 40px 100%; animation: gm-stripes 1.4s linear infinite; }
.gm-badge-live { padding-inline-start: 26px; }
.gm-badge-live::before { content: ""; position: absolute; inset-inline-start: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #111; animation: gm-dot 1.5s ease-out infinite; }
.gm-badge-inline.gm-badge-live::before { position: absolute; }
.gm-badge-inline { position: relative; }

/* Invest band: living gradient, pulsing icon */
.gm-invest-band { background-size: 220% 220%; animation: gm-gradient 12s ease-in-out infinite; }
.gm-invest-band .gm-icon { animation: gm-icon-pulse 2.6s ease-in-out infinite; }

/* Forms */
.gm-field label { transition: color .2s ease; }
.gm-field:focus-within label { color: var(--gm-accent); }
.gm-form .gm-btn-primary { animation: gm-ring 3s ease-out 1s infinite; }
.gm-notice { animation: gm-pop .6s cubic-bezier(.2, .8, .2, 1) both; }
.gm-notice-ok .gm-icon { animation: gm-icon-pulse 1.4s ease-in-out 2; }

/* Custom file picker (Persian text; markup added by main.js) */
.gm-file { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px dashed var(--gm-border); border-radius: 12px; background: var(--gm-bg); transition: border-color .2s, background-color .2s; }
.gm-file:hover, .gm-file:focus-within { border-color: var(--gm-accent); background: color-mix(in srgb, var(--gm-accent) 5%, var(--gm-bg)); }
.gm-file-btn { flex: none; padding: 8px 18px; font-weight: 700; font-size: 14px; color: #111; background: var(--gm-accent); border-radius: 999px; }
.gm-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gm-muted); font-size: 14px; }
.gm-file.has-file .gm-file-name { color: #fff; }
.gm-field .gm-file input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; border: 0; cursor: pointer; }

/* 404 */
.gm-404-code { animation: gm-bob 3.5s ease-in-out infinite, gm-flicker 6s linear infinite; }

/* Respect the visitor's motion settings */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.js .gm-reveal { opacity: 1; translate: none; }
	.js .gm-section-title:not(.is-in)::after { width: 64px; }
	.gm-particles { display: none; }
	.gm-logo-art { transform: none; }
}

/* Mobile menu slides only after the first paint, so it never flashes on page load */
@media (max-width: 1240px) {
	.gm-ready .gm-nav { transition: transform .25s ease, visibility .25s; }
}

/* ==========================================================================
   v1.2 — status badges, install box, gallery, investment amounts, lightbox
   ========================================================================== */
.gm-muted { color: var(--gm-muted); font-size: 14px; margin: 8px 0 0; }
.gm-badge-idea { color: #111; background: #d9d9de; border-color: #d9d9de; }
.gm-badge-built { color: #fff; background: rgba(11, 11, 12, .82); }
.gm-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.gm-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.gm-link svg { transform: scaleX(-1); }
.gm-list-intro { max-width: 70ch; margin: 0 auto 36px; text-align: center; }

.gm-invest-mini { margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--gm-accent-soft); border: 1px solid color-mix(in srgb, var(--gm-accent) 30%, transparent); }
.gm-invest-mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.gm-invest-mini-row span { display: inline-flex; align-items: center; gap: 6px; color: var(--gm-muted); }
.gm-invest-mini-row strong { color: var(--gm-accent); }
.gm-invest-mini-note { margin: 6px 0 0; font-size: 12.5px; color: var(--gm-muted); }
.gm-meter { height: 8px; margin-top: 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.gm-meter > span { display: block; width: var(--gm-w, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gm-accent), color-mix(in srgb, var(--gm-accent) 60%, #fff)); }
.gm-meter-lg { height: 12px; }

.gm-install, .gm-invest-box { margin: 18px 0; padding: 18px; border-radius: 12px; background: var(--gm-bg); border: 1px solid var(--gm-border); }
.gm-install h3, .gm-invest-box h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 6px; color: var(--gm-accent); }
.gm-invest-box .gm-facts { margin-bottom: 6px; }

.gm-gallery { margin-bottom: 32px; }
.gm-gallery-main { display: block; border-radius: var(--gm-radius); overflow: hidden; border: 1px solid var(--gm-border); }
.gm-gallery-main img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.gm-gallery-main:hover img { transform: scale(1.02); }
.gm-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; }
.gm-gallery-thumbs a { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--gm-border); }
.gm-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gm-gallery-thumbs a:hover img { transform: scale(1.08); }

.gm-invest-rows { display: grid; gap: 16px; }
.gm-invest-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 16px 20px; border-radius: var(--gm-radius); background: var(--gm-surface); border: 1px solid var(--gm-border); transition: border-color .2s, transform .2s; }
.gm-invest-row:hover { border-color: var(--gm-accent); transform: translateY(-2px); }
.gm-invest-thumb { display: grid; place-items: center; width: 96px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; color: var(--gm-accent); background: var(--gm-surface-2); }
.gm-invest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gm-invest-info h3 { font-size: 1.1rem; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gm-invest-info h3 a { color: #fff; }
.gm-invest-info .gm-badge-inline { margin: 0; font-size: 11px; padding: 2px 10px; }
.gm-invest-nums { display: flex; gap: 24px; margin: 0; }
.gm-invest-nums dt { font-size: 12px; color: var(--gm-muted); }
.gm-invest-nums dd { margin: 2px 0 0; font-weight: 800; color: var(--gm-accent); white-space: nowrap; }
@media (max-width: 860px) {
	.gm-invest-row { grid-template-columns: 80px 1fr; }
	.gm-invest-thumb { width: 80px; }
	.gm-invest-nums, .gm-invest-row > .gm-btn { grid-column: 1 / -1; }
	.gm-invest-nums { justify-content: space-between; }
}

.gm-lightbox-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); padding: 24px; }
.gm-lightbox-overlay img { max-width: 100%; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.gm-lightbox-overlay button { position: absolute; border: 0; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; font-size: 24px; line-height: 1; color: #111; background: var(--gm-accent); }
.gm-lightbox-close { top: 20px; inset-inline-start: 20px; }
.gm-lightbox-prev { inset-inline-end: 20px; top: 50%; }
.gm-lightbox-next { inset-inline-start: 20px; top: 50%; }
.gm-invest-info h3 { margin-bottom: 12px; row-gap: 6px; }


/* ==========================================================================
   v1.4 — smaller header menu, Elementor compatibility
   ========================================================================== */
.gm-menu { gap: 0; }
.gm-header .gm-btn-small { font-size: 13px; padding: 7px 16px; }

/* Elementor pages use the theme colours and the Vazirmatn font. */
html body[class*="elementor-kit-"] {
	--e-global-color-primary: #ffffff;
	--e-global-color-secondary: #d6d6da;
	--e-global-color-text: #d6d6da;
	--e-global-color-accent: var(--gm-accent);
	--e-global-typography-primary-font-family: "Vazirmatn";
	--e-global-typography-secondary-font-family: "Vazirmatn";
	--e-global-typography-text-font-family: "Vazirmatn";
	--e-global-typography-accent-font-family: "Vazirmatn";
}
.elementor { font-family: var(--gm-font); }
.elementor :where(h1, h2, h3, h4, h5, h6) { color: #fff; font-family: var(--gm-font); }
.elementor :where(p, li, span, div) { font-family: var(--gm-font); }
.elementor-widget-text-editor, .elementor-widget-text-editor p { color: var(--gm-muted, #b9b9c0); }
.elementor-widget-gm_section, .elementor-widget-gm_projects, .elementor-widget-gm_services,
.elementor-widget-gm_invest_list, .elementor-widget-gm_page_hero, .elementor-widget-gm_project_page { width: 100%; }
.elementor-widget-gm_section > .elementor-widget-container,
.elementor-widget-gm_page_hero > .elementor-widget-container { margin: 0; }
/* Scroll-reveal must never hide content inside the Elementor editor. */
.elementor-editor-active .gm-reveal, .elementor-editor-preview .gm-reveal { opacity: 1 !important; translate: 0 0 !important; transform: none !important; }

/* HTML game embedded in the project page */
.gm-play { margin-bottom: 32px; border-radius: var(--gm-radius); overflow: hidden; border: 1px solid var(--gm-accent); background: var(--gm-surface); box-shadow: 0 0 40px color-mix(in srgb, var(--gm-accent) 22%, transparent); }
.gm-play-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--gm-border); }
.gm-play-bar strong { display: inline-flex; align-items: center; gap: 8px; color: var(--gm-accent); }
.gm-play-frame { position: relative; aspect-ratio: 16 / 10; background: #000; }
.gm-play-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .gm-play-frame { aspect-ratio: 4 / 5; } }

/* Investment page: steps and single-column form */
.gm-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.gm-steps li { display: flex; align-items: flex-start; gap: 14px; color: var(--gm-text); line-height: 1.8; }
.gm-steps li span { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #111; background: var(--gm-accent); box-shadow: 0 0 18px color-mix(in srgb, var(--gm-accent) 45%, transparent); }
.gm-form-single { max-width: 860px; }
