/*
Theme Name: Awazegaran
Theme URI: https://awazegaran.ir
Author: Awazegaran Advertising Group
Author URI: https://awazegaran.ir
Description: تم اختصاصی و حرفه‌ای وردپرس برای کانون آگهی و تبلیغات آوازه‌گران. طراحی مینیمال، راست‌چین، ریسپانسیو و بهینه برای سئو.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: awazegaran
Tags: custom-colors, custom-logo, custom-menu, featured-images, rtl-language-support, translation-ready, blog, one-column, two-columns, three-columns

This theme, like WordPress, is licensed under the GPL.
*/

/* ==========================================================================
   Base / Reset
   ========================================================================== */

:root{
	--color-primary: #1B4F9C;   /* آبی تیره لوگو */
	--color-primary-light: #2AA8DE; /* آبی روشن لوگو */
	--color-gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
	--color-dark: #14213d;
	--color-text: #2b2b2b;
	--color-muted: #6b7280;
	--color-bg: #ffffff;
	--color-bg-alt: #f6f8fb;
	--color-border: #e5e9f0;
	--radius: 10px;
	--container: 1180px;
	--font-fa: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

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

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

body{
	direction: rtl;
	text-align: right;
	font-family: var(--font-fa);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.9;
	margin: 0;
	font-size: 16px;
	overflow-x: hidden;
	width: 100%;
}

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

a{ color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover{ color: var(--color-primary-light); }

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

h1,h2,h3,h4,h5,h6{ font-family: var(--font-fa); font-weight: 700; color: var(--color-dark); line-height: 1.5; margin: 0 0 .6em; }

p{ margin: 0 0 1em; }

.screen-reader-text{
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}

.container{
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

.btn{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--color-gradient);
	color: #fff;
	padding: 12px 28px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 15px;
	border: none;
	cursor: pointer;
}
.btn:hover{ opacity: .92; color:#fff; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header{ position: sticky; top:0; z-index: 100; }

/* نوار سفید بالای منو: فضای خالی برای بیرون‌زدگی بالای آرم + شماره تماس در انتهای سمت چپ */
.site-topbar{
	background: #fff;
}
.topbar-inner{
	display: flex;
	align-items: center;
	justify-content: flex-end; /* راست‌چین است، پس flex-end یعنی متن در سمت چپ قرار می‌گیرد */
	min-height: 60px;
	padding: 6px 0;
}
.topbar-phone{
	margin: 0;
	font-size: 14px;
	color: var(--color-primary);
	display: flex;
	align-items: center;
	gap: 8px;
}
.topbar-phone-icon{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--color-gradient);
	color: #fff;
}
.topbar-phone-icon svg{ width: 16px; height: 16px; }
.topbar-phone-label{ color: var(--color-muted); font-weight: 500; }
.topbar-phone a{ color: var(--color-primary); font-weight: 700; font-size: 15px; }

/* نوار منو: لوگو + منو، همه در یک نوار تمام‌عرض */
.site-nav-bar{
	background: var(--color-gradient);
	position: relative;
}

.nav-bar-inner{
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	min-height: 48px;
	padding: 4px 0;
	position: relative;
}

/* لوگو: همیشه سمت راست، قبل از «خانه»، چسبیده به منو. این باکس فقط عرض لازم را برای آرم در نوار
   رزرو می‌کند؛ خود آرم با موقعیت مطلق و مستقل از این باکس رسم می‌شود */
.site-branding{ display: flex; align-items: flex-start; gap: 6px; flex-shrink: 0; width: 102px; }

/* بک‌گراند سفید و بزرگ برای لوگو؛ آرم دقیقاً روی مرز نوار سفید بالا و نوار آبی منو قرار می‌گیرد:
   نیمه بالایی آن در فضای سفید بالای منو و نیمه پایینی آن روی نوار آبی منو دیده می‌شود.
   یک حلقه سفید هم دور آن کشیده می‌شود (با box-shadow) تا از پس‌زمینه گرادیان جدا شود.
   right:0 آن را همیشه در سمت راست منو (جایی که site-branding رزرو کرده) نگه می‌دارد */
.site-logo-badge{
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 102px;
	height: 102px;
	position: absolute;
	right: 0;
	top: -46px; /* آرم را از بالای نوار منو به داخل فضای سفید بالا می‌کشد، طوری‌که پایین آرم درست روی پایین نوار منو بیفتد */
	border-radius: 50%;
	background: #fff;
	padding: 10px;
	box-sizing: border-box;
	z-index: 5;
}
.site-logo-badge img{
	max-width: 95%;
	max-height: 95%;
	width: auto;
	height: auto;
	object-fit: contain;
	margin: auto;
}

.site-title{ font-size: 18px; margin: 0; }
.site-title a{ color: #fff; }
.site-description{ font-size: 11px; color: rgba(255,255,255,.85); margin: 0; }

.main-navigation{ flex: 1 1 auto; }
.main-navigation ul{ display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
.main-navigation ul li a{
	display: block;
	color: #fff;
	padding: 8px 16px;
	font-size: 14.5px;
	font-weight: 500;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a{
	background: rgba(255,255,255,.18);
	color: #fff;
}

.menu-toggle{
	display: none;
	background: transparent;
	border: none;
	color: #fff;
	width: 40px; height: 40px;
	border-radius: 8px;
	font-size: 20px;
	cursor: pointer;
	flex-shrink: 0;
}

/* پرده تیره پشت منوی موبایل باز - فقط در حالت موبایل فعال می‌شود */
.nav-overlay{
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(10, 16, 30, .5);
	z-index: 190;
	opacity: 0;
	transition: opacity .25s ease;
}
.nav-overlay.is-open{ display: block; opacity: 1; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
	background: var(--color-bg-alt);
	padding: 80px 0 60px;
	text-align: center;
}
.hero .eyebrow{
	color: var(--color-primary-light);
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 10px;
	font-size: 15px;
}
.hero h1{ font-size: clamp(26px, 4vw, 42px); margin-bottom: 18px; }
.hero .lead{ font-size: 19px; color: var(--color-muted); margin-bottom: 8px; }
.hero-image{ margin-top: 40px; }
.hero-image img{ border-radius: var(--radius); margin: 0 auto; }

/* ==========================================================================
   Intro text section
   ========================================================================== */

.intro-section{ padding: 60px 0; }
.intro-section .intro-text{ max-width: 900px; margin: 0 auto; text-align: justify; }
.intro-section .intro-text p{ color: var(--color-text); }

/* ==========================================================================
   Services (سه‌ستون: تولید / تبلیغ / تحقیق)
   ========================================================================== */

.services-section{ padding: 40px 0 70px; background: var(--color-bg-alt); }
.services-section .section-title{ text-align: center; margin-bottom: 40px; }
.services-section .section-title h2{ font-size: 28px; }
.services-section .section-title span{ color: var(--color-primary-light); }

/* ---- هاب «۳ت»: جمله‌ی اصلی + خطوط اتصال به سه واژه ---- */
.three-t-hero{
	position: relative;
	max-width: 760px;
	margin: 0 auto 30px;
	text-align: center;
}
.three-t-caption{
	position: relative;
	z-index: 3;
	margin: 0;
	color: var(--color-text);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.6;
}
.three-t-caption .highlight-3t{
	color: var(--color-primary-light);
	font-weight: 800;
}
/* خطوط اتصال SVG: از زیر واژه «۳ت» داخل جمله به هر سه واژه شاخه می‌زند، شبیه یادداشت دستی که مرتبط بودن این سه کلمه را نشان می‌دهد */
.three-t-connector{
	position: absolute;
	top: 32px;
	right: 0;
	left: 0;
	width: 100%;
	height: 100px;
	z-index: 1;
	overflow: visible;
}
.three-t-connector .t-line{
	fill: none;
	stroke: var(--color-primary-light);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-dasharray: 6 7;
	opacity: .55;
	animation: awz-line-march 1.6s linear infinite;
}
.three-t-connector .t-dot{
	fill: var(--color-primary-light);
}
.three-t-caption .highlight-3t{
	display: inline-block;
	animation: awz-3t-pulse 2.4s ease-in-out infinite;
}
@keyframes awz-line-march{
	to{ stroke-dashoffset: -26; }
}
@keyframes awz-3t-pulse{
	0%, 100%{ transform: scale(1); }
	50%{ transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce){
	.three-t-connector .t-line{ animation: none; }
	.three-t-caption .highlight-3t{ animation: none; }
}

.three-t-links{
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 52px;
}
.three-t-link{
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 50px;
	padding: 10px 14px;
	font-size: 15px;
	font-weight: 700;
	color: var(--color-text);
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(27,79,156,.08);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.three-t-link:hover{
	transform: translateY(-4px);
	border-color: var(--color-primary-light);
	box-shadow: 0 12px 24px rgba(27,79,156,.16);
	color: var(--color-primary);
}
.three-t-link .link-letter{
	color: var(--color-primary-light);
	font-size: 1em;
	font-weight: 800;
}

.services-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.service-card{
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 30px 26px;
	transition: transform .25s ease, box-shadow .25s ease;
	scroll-margin-top: 120px; /* هنگام کلیک روی واژه‌ها و اسکرول به کارت، زیر منوی چسبان پنهان نشود */
}
.service-card:hover{
	transform: translateY(-6px);
	box-shadow: 0 16px 34px rgba(27,79,156,.12);
}
.service-card h3{
	font-size: 20px;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 3px solid var(--color-primary-light);
	display: inline-block;
}
.service-card h3 .card-t-letter{ color: var(--color-primary-light); }
.service-card ul li{
	padding: 10px 0;
	border-bottom: 1px dashed var(--color-border);
	font-size: 15px;
	color: var(--color-text);
}
.service-card ul li:last-child{ border-bottom: none; }
.service-card ul li::before{ content: "◆"; color: var(--color-primary-light); font-size: 10px; margin-left: 8px; }

/* ==========================================================================
   Why-advertise / numbered reasons
   ========================================================================== */

.reasons-section{ padding: 70px 0; }
.reasons-section .section-title{ text-align: center; margin-bottom: 45px; }
.reasons-grid{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}
.reason-card{
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 26px;
	position: relative;
	padding-right: 70px;
	transition: box-shadow .25s ease, border-color .25s ease;
}
.reason-card:hover{ box-shadow: 0 10px 26px rgba(27,79,156,.10); border-color: transparent; }
.reason-card .num{
	position: absolute;
	right: 20px; top: 24px;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--color-gradient);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700;
}
.reason-card h4{ font-size: 17px; margin-bottom: 8px; }
.reason-card p{ font-size: 14.5px; color: var(--color-muted); margin: 0; }

/* ==========================================================================
   Pillars (توان عملیاتی / تمرکز / خلاقیت / هوشمندی)
   ========================================================================== */

.pillars-section{ padding: 60px 0 80px; background: var(--color-gradient); }
.pillars-section .section-title h2{ color: #fff; }
.pillars-section .section-title{ text-align:center; margin-bottom: 40px; }
.pillars-grid{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.pillar-card{
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.25);
	border-radius: var(--radius);
	padding: 34px 18px;
	text-align: center;
	color: #fff;
	transition: transform .25s ease, background .25s ease;
}
.pillar-card:hover{ transform: translateY(-6px); background: rgba(255,255,255,.2); }
.pillar-card .icon{
	width: 56px; height: 56px;
	margin: 0 auto 16px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.16);
	border-radius: 50%;
}
.pillar-card .icon svg{ width: 28px; height: 28px; color: #fff; }
.pillar-card h4{ color: #fff; font-size: 17px; margin: 0; }

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-section{ padding: 70px 0; text-align: center; }
.cta-section h2{ font-size: 26px; margin-bottom: 16px; }
.cta-section p{ color: var(--color-muted); margin-bottom: 26px; }

/* ==========================================================================
   Generic page / blog content
   ========================================================================== */

.site-main{ padding: 50px 0; }
.site-main--flush{ padding-top: 0; }
.entry-title{ font-size: 30px; }
.entry-meta{ color: var(--color-muted); font-size: 14px; margin-bottom: 20px; }
.entry-content{ font-size: 16.5px; }
.entry-content img{ border-radius: var(--radius); margin: 20px 0; }

.post-list{ display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 26px; }
.post-card{ border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.post-card .thumb{ aspect-ratio: 16/10; overflow: hidden; }
.post-card .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.post-card .body{ padding: 18px; }
.post-card h3{ font-size: 18px; margin-bottom: 10px; }
.post-card .entry-meta{ font-size: 13px; margin-bottom: 0; }

.pagination{ display:flex; justify-content:center; gap:8px; margin-top: 40px; }
.pagination a, .pagination span{
	display:inline-block; padding: 8px 16px; border-radius: 8px; border:1px solid var(--color-border);
}
.pagination .current{ background: var(--color-gradient); color:#fff; border-color: transparent; }

.comments-area{ margin-top: 50px; }
.comment-list{ margin-bottom: 30px; }
.comment-body{ border:1px solid var(--color-border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px;}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
	width: 100%; padding: 12px 14px; border:1px solid var(--color-border); border-radius: 8px; font-family: var(--font-fa); margin-bottom: 14px;
}

/* Sidebar */
.content-with-sidebar{ display: grid; grid-template-columns: 2.4fr 1fr; gap: 40px; align-items: start; }
.widget{ background: var(--color-bg-alt); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.widget h2, .widget .widget-title{ font-size: 16px; margin-bottom: 14px; }
.widget ul li{ padding: 6px 0; border-bottom: 1px dashed var(--color-border); font-size: 14.5px; }

/* ==========================================================================
   Contact info cards (template-contact.php)
   ========================================================================== */

.contact-info-grid{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 22px;
	margin-top: 20px;
}
.contact-info-card{
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 30px 22px;
	text-align: center;
}
.contact-info-card .icon{
	width: 52px; height: 52px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--color-gradient);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
}
.contact-info-card .icon svg{ width: 24px; height: 24px; }
.contact-info-card h3{ font-size: 17px; margin-bottom: 8px; }
.contact-info-card p{ color: var(--color-muted); font-size: 15px; margin: 0; word-break: break-word; }
.contact-info-card p a{ color: var(--color-primary); font-weight: 700; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{ background: var(--color-gradient); color: #dce8f7; padding: 60px 0 0; margin-top: 40px; }
.footer-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer-widget h3{ color: #fff; font-size: 17px; margin-bottom: 16px; }
.footer-widget p, .footer-widget li{ color: #dce8f7; font-size: 14.5px; }
.footer-widget li{ padding: 6px 0; }
.footer-widget a{ color: #cfe8fb; text-decoration: none; transition: color .2s ease; }
.footer-widget a:hover{ color: #fff; text-decoration: underline; }
.footer-contact-list li{ display: flex; gap: 6px; align-items: flex-start; }
.footer-contact-label{ color: #a9c9e8; flex-shrink: 0; }
.footer-contact-list a{ line-height: 1.7; }
.footer-bottom{ text-align: center; padding: 22px 0; font-size: 13.5px; color: #b9d3ee; }
.footer-bottom a{ color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px){
	.services-grid, .footer-grid{ grid-template-columns: 1fr 1fr; }
	.pillars-grid{ grid-template-columns: repeat(2,1fr); }
	.content-with-sidebar{ grid-template-columns: 1fr; }
}

@media (max-width: 480px){
	.three-t-connector{ top: 26px; height: 80px; }
	.three-t-caption{ font-size: 16px; line-height: 1.7; }
	.three-t-links{ gap: 6px; margin-top: 38px; }
	.three-t-link{ padding: 9px 8px; font-size: 13px; }
}

@media (max-width: 782px){
	.nav-bar-inner{ justify-content: space-between; padding: 10px 20px; }

	.site-branding{ width: 84px; }
	.site-logo-badge{ width: 84px; height: 84px; top: -33px; right: 8px; }
	.site-logo-badge img{ max-width: 100%; max-height: 100%; }
	.topbar-inner{ min-height: 30px; padding: 4px 0; }
	.topbar-phone-icon{ width: 24px; height: 24px; }
	.topbar-phone-icon svg{ width: 13px; height: 13px; }

	.main-navigation{
		position: fixed;
		top: 0;
		right: 0;
		left: auto;
		height: 100vh;
		width: min(82%, 320px);
		max-width: 320px;
		background: var(--color-gradient);
		box-shadow: -12px 0 30px rgba(0,0,0,.25);
		transform: translateX(100%);
		transition: transform .3s ease;
		overflow-y: auto;
		padding-top: 80px;
		z-index: 200;
		flex: none;
	}
	.main-navigation.is-open{ transform: translateX(0); }
	.main-navigation ul{ flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 10px 16px; }
	.main-navigation ul li a{ padding: 14px 18px; border-radius: 8px; }

	.menu-toggle{ display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 210; }

	.services-grid, .footer-grid{ grid-template-columns: 1fr; }
	.pillars-grid{ grid-template-columns: 1fr 1fr; }
	.reason-card{ padding-right: 60px; }
}

/* وقتی منوی موبایل باز است، اسکرول پشت آن قفل می‌شود */
body.nav-is-open{ overflow: hidden; }
