/* =========================================================
   TaakFest / Novin Taak Hormoz – Custom Styles (Child Theme)
   رنگ، فونت، بک‌گراند و استایل مشترک همه قالب‌ها
   ========================================================= */

/* -----------------------------
   1. متغیرهای رنگ و فونت برند
   ----------------------------- */

:root {
	/* رنگ‌ها */
	--taak-navy: #050814;
	--taak-navy-soft: #0a1020;
	--taak-navy-lighter: #141b33;
	--taak-gold: #f6c15b;
	--taak-gold-dark: #f19a33;
	--taak-gold-soft: #ffe09a;
	--taak-cream: #f4f4f4;
	--taak-offwhite: #f5ede0;
	--taak-white: #ffffff;

	/* سایز پایه فونت */
	--taak-base-font-size: 16px;

	/* نام فونت‌ها */
	--taak-fa-font: 'Estedad', system-ui, -apple-system, BlinkMacSystemFont,
		'Segoe UI', sans-serif;
	--taak-en-font: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont,
		'Segoe UI', sans-serif;
}

/* -----------------------------
   2. بارگذاری فونت‌ها
   ----------------------------- */

/* فونت فارسی Estedad – مسیر را با مسیر واقعی فایل خودت هماهنگ کن */
@font-face {
	font-family: 'Estedad';
	src: url('/wp-content/uploads/fonts/Estedad.woff2') format('woff2'),
		url('/wp-content/uploads/fonts/Estedad.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* فونت انگلیسی برای متن‌های لاتین */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* -----------------------------
   3. تایپوگرافی سراسری – همه قالب‌ها
   ----------------------------- */

html {
	font-size: 100%; /* ۱rem = ۱۶px */
	scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
	font-family: var(--taak-fa-font);
	font-size: var(--taak-base-font-size);
	color: var(--taak-offwhite);
	background-color: var(--taak-navy);
	line-height: 1.7;
}

/* متن‌های عمومی */
p,
li {
	font-size: 0.95rem;
	line-height: 1.8;
}

/* تیترها – اندازه یکسان در همه صفحات */
h1,
h2,
h3,
h4,
h5,
h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.wp-block-heading,
.wp-block-post-title {
	font-family: var(--taak-fa-font);
	font-weight: 700;
	color: var(--taak-white);
	line-height: 1.2;
	margin-top: 0.6em;
	margin-bottom: 0.4em;
}

/* مقیاس تیترها با clamp برای دسکتاپ و موبایل */
h1,
.entry-content h1,
.wp-block-post-title {
	font-size: clamp(2.3rem, 4.2vw, 2.9rem);
}

h2,
.entry-content h2 {
	font-size: clamp(1.8rem, 3.3vw, 2.2rem);
}

h3,
.entry-content h3 {
	font-size: clamp(1.4rem, 2.5vw, 1.6rem);
}

h4,
.entry-content h4 {
	font-size: 1.2rem;
}

h5,
.entry-content h5 {
	font-size: 1.05rem;
	letter-spacing: 0.02em;
}

h6,
.entry-content h6 {
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* متن لاتین – فقط جایی که کلاس می‌دهیم */
.latin-text {
	font-family: var(--taak-en-font) !important;
	letter-spacing: 0.03em;
	font-weight: 600;
}

/* برای تیتر لاتین داخل هدر اصلی */
.taakfest-hero-main .latin-text {
	font-size: clamp(1.1rem, 2.6vw, 1.5rem);
	text-transform: uppercase;
}

/* لینک‌ها */
a {
	color: var(--taak-gold-soft);
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
	color: var(--taak-gold);
	opacity: 0.95;
}

/* منوهای هدر و فوتر – یکسان در همه صفحات */
.main-header-menu a,
.ast-header-breadcrumb a,
.ast-footer-overlay .menu-item a {
	font-family: var(--taak-fa-font);
	font-size: 0.95rem;
	letter-spacing: 0.02em;
}

/* -----------------------------
   4. بک‌گراند کلی سایت
   ----------------------------- */

body,
.site,
.ast-page-builder-template {
	background:
		radial-gradient(circle at top left, #141b33 0, #050814 45%),
		radial-gradient(circle at bottom right, #141b33 0, #050814 55%);
	color: var(--taak-offwhite);
}

/* محتوای اصلی سفیدتر نشان داده شود */
.site-content,
.ast-container {
	background: transparent;
}

/* -----------------------------
   5. هدرهای قهرمان (Hero)
   ----------------------------- */

.taakfest-hero {
	position: relative;
	padding: 120px 20px 80px;
	text-align: center;
	background: radial-gradient(circle at top, #141b33 0, #050814 55%);
}

/* اگر روی بلوک Cover کلاس taakfest-hero-main داده‌ای */
.taakfest-hero-main {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: relative;
	color: var(--taak-white);
}

.taakfest-hero-main h1,
.taakfest-hero-main h2 {
	margin-bottom: 0.6rem;
}

.taakfest-hero-main p {
	max-width: 640px;
	margin: 0.4rem auto 1.2rem;
	font-size: 0.98rem;
	color: var(--taak-cream);
}

/* -----------------------------
   6. کارت‌ها (سه ستون، فستیوال‌ها و…)
   ----------------------------- */

/* ردیف سه ستونه – کلاس روی Container یا Row */
.taakfest-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	max-width: 1100px;
	margin: 40px auto 70px;
}

/* تک کارت – کلاس روی هر ستون یا گروه داخلی */
.taakfest-card,
.taakfest-feature-grid .wp-block-column {
	background: radial-gradient(circle at top, #161b32 0, #050814 65%);
	border-radius: 22px;
	box-shadow: 0 22px 55px rgba(0, 0, 0, 0.65);
	padding: 26px 22px 22px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	position: relative;
	overflow: hidden;
}

/* هاله طلایی روی کارت */
.taakfest-card::before,
.taakfest-feature-grid .wp-block-column::before {
	content: '';
	position: absolute;
	inset: -1px;
	background: radial-gradient(circle at top left,
			rgba(246, 193, 91, 0.24) 0,
			transparent 55%);
	pointer-events: none;
}

/* تیتر و متن داخل کارت */
.taakfest-card h3,
.taakfest-feature-grid h3 {
	font-size: 1.05rem;
	color: var(--taak-gold-soft);
	margin-bottom: 0.55rem;
}

.taakfest-card p,
.taakfest-feature-grid p {
	font-size: 0.9rem;
	color: var(--taak-offwhite);
	line-height: 1.8;
}

/* موبایل – کارت‌ها زیر هم */
@media (max-width: 920px) {
	.taakfest-feature-grid {
		grid-template-columns: 1fr;
		gap: 22px;
		padding-inline: 16px;
		margin-top: 30px;
	}
}

/* -----------------------------
   7. دکمه‌ها
   ----------------------------- */

.wp-block-button .wp-block-button__link {
	font-family: var(--taak-fa-font);
	font-size: 0.94rem;
	padding: 11px 30px;
	border-radius: 999px;
	border-width: 1px;
	border-style: solid;
	border-color: var(--taak-gold-soft);
	background: linear-gradient(135deg, var(--taak-gold) 0, var(--taak-gold-dark) 55%);
	color: #141414;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
	transition: all 0.2s ease;
	text-decoration: none;
}

.wp-block-button .wp-block-button__link:hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8);
}

/* استایل outline */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--taak-gold-soft) !important;
	border-color: rgba(246, 193, 91, 0.8) !important;
	box-shadow: none;
}

/* دکمه‌های داخل کارت‌ها کمی کوچک‌تر */
.taakfest-card .wp-block-button .wp-block-button__link {
	font-size: 0.88rem;
	padding: 9px 22px;
}

/* -----------------------------
   8. سکشن رویدادها / خبرها
   ----------------------------- */

.taakfest-news-section {
	max-width: 1100px;
	margin: 40px auto 80px;
	padding: 26px 24px 30px;
	border-radius: 22px;
	background: radial-gradient(circle at top, #161b32 0, #050814 65%);
	box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.taakfest-news-section h2 {
	margin-bottom: 0.8rem;
}

.taakfest-news-section p {
	font-size: 0.9rem;
}

/* -----------------------------
   9. ریسپانسیو کلی‌تر
   ----------------------------- */

@media (max-width: 768px) {
	body {
		font-size: 15px;
	}

	.taakfest-hero-main {
		min-height: 70vh;
		padding-inline: 16px;
	}

	.taakfest-hero-main h1,
	.taakfest-hero-main h2 {
		font-size: clamp(1.9rem, 6vw, 2.2rem);
	}
}
/* سیستم فونت رسمی سایت‌های تو */

/* 1. متغیرهای سراسری برای فونت‌ها */
:root {
  /* متن فارسی */
  --font-body-fa: 'Vazirmatn', 'Vazir', 'Estedad', 'BYekan', 'BMitra', sans-serif;

  /* عناوین فارسی */
  --font-heading-fa: 'Estedad', 'Vazirmatn', 'Vazir', sans-serif;

  /* فونت نمایشی (فقط برای تیترهای خاص) */
  --font-display-fa: 'AbdoMaster', 'AbdoLine', 'Estedad', sans-serif;

  /* در صورت نیاز برای متن انگلیسی */
  --font-body-en: system-ui, -apple-system, 'Segoe UI', 'Roboto', sans-serif;
}

/* 2. بدنه سایت (متن‌های معمولی) */
html, body {
  font-family: var(--font-body-fa);
  font-size: 15px;
  line-height: 1.8;
}

/* 3. عناوین و تیترها */
h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.main-navigation a,
.header-menu a {
  font-family: var(--font-heading-fa);
  font-weight: 700;
}

/* 4. دکمه‌ها و لینک‌های مهم */
button,
input[type="submit"],
.button,
.wp-block-button__link {
  font-family: var(--font-heading-fa);
}

/* 5. کلاس مخصوص تیترهای نمایشی (مثلاً برای صفحه لندینگ یا پوستر آنلاین) */
.display-title,
.hero-title,
.section-title-display {
  font-family: var(--font-display-fa);
  letter-spacing: 0.02em;
}

/* 6. اگر جایی متن کاملاً انگلیسی داری */
.en, .lang-en {
  font-family: var(--font-body-en);
}
