/*
Theme Name: قدرت گستر (TQG Power)
Theme URI: http://tqgeng.ir
Author: TQG ENG.CO
Author URI: http://tqgeng.ir
Description: قالب اختصاصی شرکتی شرکت مهندسی طراحی قدرت گستر - طراحی، اجرا و نگهداری تأسیسات برق صنعتی، شبکه و دیتاسنتر، اعلام و اطفای حریق و ایمنی برق
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tqg
Tags: rtl-language-support, one-column, custom-logo, custom-menu, featured-images
*/

/* ============ فونت ============ */
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

/* ============ متغیرها ============ */
:root {
    --navy: #0a1d3a;
    --navy-2: #10294b;
    --navy-3: #16345f;
    --blue: #1c64e5;
    --blue-2: #2f7df6;
    --amber: #f6a821;
    --amber-2: #ffc04d;
    --bg: #f4f7fb;
    --white: #ffffff;
    --text: #22374f;
    --muted: #5d6f8a;
    --line: #e3eaf4;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(10, 29, 58, .08);
    --shadow-lg: 0 18px 45px rgba(10, 29, 58, .14);
    --font: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

/* ============ پایه ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
    background: var(--white);
    direction: rtl;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-2); }
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.5; color: var(--navy); margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; top: -60px; right: 10px; z-index: 9999; background: var(--navy); color: #fff; padding: 8px 16px; }
.skip-link:focus { top: 10px; color: #fff; }

/* ============ دکمه‌ها ============ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 10px; font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: all .25s; font-family: var(--font); line-height: 1.6; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: var(--amber-2); color: var(--navy); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 13.5px; }

/* ============ نوار بالایی ============ */
.topbar { background: var(--navy); color: #cfd9ec; font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #cfd9ec; }
.topbar a:hover { color: var(--amber); }
.topbar-contacts { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar-contacts span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-contacts svg { width: 14px; height: 14px; stroke: var(--amber); }
.topbar-info { display: flex; gap: 18px; align-items: center; }
@media (max-width: 768px) { .topbar-info { display: none; } .topbar-inner { justify-content: center; } }

/* ============ هدر ============ */
.site-header { background: #fff; position: sticky; top: 0; z-index: 900; box-shadow: 0 2px 14px rgba(10,29,58,.07); }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(10,29,58,.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand a { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 52px; height: 52px; background: linear-gradient(135deg, var(--blue), var(--navy-3)); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-logo svg { width: 30px; height: 30px; stroke: #fff; }
.brand-name { display: block; font-size: 19px; font-weight: 900; color: var(--navy); line-height: 1.4; }
.brand-sub { display: block; font-size: 11.5px; color: var(--blue); font-weight: 700; letter-spacing: 1.5px; direction: ltr; text-align: right; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav ul li a { display: block; padding: 10px 14px; color: var(--text); font-weight: 700; font-size: 15px; border-radius: 8px; }
.main-nav ul li a:hover, .main-nav ul li.current-menu-item > a, .main-nav ul li.current_page_item > a { color: var(--blue); background: #eef4fe; }
.main-nav ul ul { position: absolute; top: 100%; right: 0; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); min-width: 220px; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; z-index: 50; }
.main-nav ul li { position: relative; }
.main-nav ul li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--navy); }
@media (max-width: 991px) {
    body { overflow-x: hidden; }
    .header-cta { order: -1; }
    .main-nav { position: fixed; top: 0; right: 0; width: 290px; height: 100vh; background: var(--navy); padding: 30px 20px; transform: translateX(100%); transition: transform .3s; overflow-y: auto; z-index: 950; box-shadow: -8px 0 30px rgba(10,29,58,.35); }
    .main-nav.open { transform: translateX(0); }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; }
    .main-nav ul li a { color: #dfe7f5; border-radius: 8px; padding: 12px 14px; }
    .main-nav ul ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.06); min-width: 0; }
    .main-nav ul li.current-menu-item > a { color: var(--amber); background: rgba(255,255,255,.08); }
    .nav-toggle { display: block; }
    .header-cta .btn { display: none; }
}
.nav-overlay { position: fixed; inset: 0; background: rgba(10,29,58,.55); z-index: 940; opacity: 0; visibility: hidden; transition: all .3s; }
.nav-overlay.show { opacity: 1; visibility: visible; }

/* ============ هیرو ============ */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; background: var(--navy); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10,29,58,.94) 0%, rgba(10,29,58,.82) 42%, rgba(16,41,75,.55) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 90px 0; max-width: 780px; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; background: rgba(246,168,33,.15); border: 1px solid rgba(246,168,33,.45); color: var(--amber-2); font-size: 13.5px; font-weight: 700; padding: 7px 16px; border-radius: 50px; margin-bottom: 22px; }
.hero-label svg { width: 15px; height: 15px; stroke: currentColor; }
.hero h1 { color: #fff; font-size: clamp(26px, 4.6vw, 46px); font-weight: 900; line-height: 1.5; margin-bottom: 18px; }
.hero h1 span { color: var(--amber-2); }
.hero p.lead { color: #d6e0f2; font-size: clamp(15px, 2vw, 17.5px); max-width: 640px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-chips .chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); padding: 9px 16px; border-radius: 50px; font-size: 13.5px; font-weight: 500; }
.hero-chips .chip svg { width: 15px; height: 15px; stroke: var(--amber-2); }

/* ============ بخش‌ها ============ */
.section { padding: 84px 0; }
.section-alt { background: var(--bg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-label { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.section-label::before, .section-label::after { content: ''; width: 26px; height: 2px; background: var(--amber); border-radius: 2px; }
.section-head h2 { font-size: clamp(22px, 3.2vw, 32px); font-weight: 900; }
.section-head p { color: var(--muted); }

/* ============ آمار ============ */
.stats { background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); color: #fff; padding: 54px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat h3 { color: var(--amber-2); font-size: clamp(30px, 4vw, 44px); font-weight: 900; margin-bottom: 2px; direction: ltr; }
.stat p { color: #cdd8ec; font-size: 14.5px; margin: 0; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 14px; } }

/* ============ خدمات ============ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; transition: all .3s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.svc-card::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--amber)); opacity: 0; transition: opacity .3s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-card:hover::before { opacity: 1; }
.svc-icon { width: 64px; height: 64px; border-radius: 16px; background: #eaf1fe; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.svc-icon svg { width: 32px; height: 32px; stroke: var(--blue); }
.svc-card h3 { font-size: 18px; margin-bottom: 10px; }
.svc-card h3 a { color: var(--navy); }
.svc-card h3 a:hover { color: var(--blue); }
.svc-card p { color: var(--muted); font-size: 14.5px; flex-grow: 1; }
.svc-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--blue); }
.svc-more svg { width: 16px; height: 16px; transition: transform .2s; }
.svc-more:hover svg { transform: translateX(-4px); }
@media (max-width: 991px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }

/* ============ چرا ما ============ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-media { position: relative; }
.why-media img { border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; }
.why-badge { position: absolute; bottom: -22px; left: 18px; background: var(--amber); color: var(--navy); border-radius: 14px; padding: 16px 22px; box-shadow: var(--shadow-lg); text-align: center; }
.why-badge strong { display: block; font-size: 28px; font-weight: 900; line-height: 1.2; }
.why-badge span { font-size: 13px; font-weight: 700; }
.why-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.why-list li { display: flex; gap: 12px; align-items: flex-start; }
.why-list li svg { width: 22px; height: 22px; stroke: var(--blue); flex-shrink: 0; margin-top: 4px; }
.why-list li strong { color: var(--navy); font-weight: 800; }
.why-list li span { color: var(--muted); font-size: 14.5px; display: block; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 50px; } }

/* ============ پروژه‌ها ============ */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.proj-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; display: block; }
.proj-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.proj-card:hover img { transform: scale(1.07); }
.proj-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,29,58,.92) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; opacity: 0; transition: opacity .3s; }
.proj-card:hover .proj-overlay { opacity: 1; }
.proj-overlay .proj-cat { color: var(--amber-2); font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.proj-overlay h3 { color: #fff; font-size: 16.5px; margin: 0; }
.proj-meta { display: flex; gap: 14px; color: #b9c7e0; font-size: 12.5px; margin-top: 6px; }
@media (max-width: 991px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } }

/* ============ مشتریان ============ */
.clients-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.client-chip { background: #fff; border: 1px solid var(--line); border-radius: 50px; padding: 10px 22px; font-weight: 700; color: var(--text); font-size: 14.5px; transition: all .25s; }
.client-chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ============ CTA فروشگاه ============ */
.shop-cta { background: linear-gradient(135deg, var(--navy-2), var(--blue)); color: #fff; border-radius: 20px; padding: 52px 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.shop-cta h2 { color: #fff; font-size: clamp(20px, 3vw, 28px); font-weight: 900; margin-bottom: 12px; }
.shop-cta p { color: #d6e2f5; font-size: 15px; }
.shop-info { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 22px; }
.shop-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.shop-info li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.shop-info svg { width: 18px; height: 18px; stroke: var(--amber-2); flex-shrink: 0; }
@media (max-width: 900px) { .shop-cta { grid-template-columns: 1fr; padding: 34px 24px; } }

/* ============ CTA پایانی ============ */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(22px, 3.4vw, 34px); font-weight: 900; }
.final-cta .phone-big { font-size: clamp(24px, 3.6vw, 38px); font-weight: 900; color: var(--blue); direction: ltr; display: inline-block; margin: 6px 0 14px; }
.final-cta .phone-big:hover { color: var(--navy); }
.final-cta p { color: var(--muted); }

/* ============ فوتر ============ */
.site-footer { background: var(--navy); color: #b9c6dd; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 64px 0 44px; }
.footer-grid h4 { color: #fff; font-size: 16.5px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-grid h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 34px; height: 3px; background: var(--amber); border-radius: 3px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid ul li a { color: #b9c6dd; font-size: 14.5px; }
.footer-grid ul li a:hover { color: var(--amber-2); }
.footer-about p { font-size: 14.5px; }
.footer-about .brand { margin-bottom: 14px; }
.footer-contact li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; stroke: var(--amber); flex-shrink: 0; margin-top: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13.5px; text-align: center; color: #8fa3c2; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============ صفحات داخلی ============ */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; padding: 64px 0 54px; text-align: center; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 200px at 80% 0%, rgba(47,125,246,.25), transparent 60%); }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(24px, 3.6vw, 36px); font-weight: 900; margin-bottom: 8px; }
.breadcrumb { color: #9fb3d6; font-size: 13.5px; }
.breadcrumb a { color: var(--amber-2); }
.page-body { padding: 64px 0; }
.entry { max-width: 860px; margin: 0 auto; }
.entry h2 { margin-top: 1.6em; font-size: 24px; }
.entry h3 { font-size: 19px; }
.entry ul { padding-right: 22px; }
.entry img { border-radius: 12px; }
.entry blockquote { border-right: 4px solid var(--amber); background: var(--bg); padding: 18px 22px; border-radius: 8px; margin: 1.4em 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.entry table td, .entry table th { border: 1px solid var(--line); padding: 10px 14px; text-align: right; }
.entry table th { background: var(--navy); color: #fff; }

/* ============ قالب‌های خدمات/پروژه ============ */
.cpt-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.sidebar-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.sidebar-card h4 { font-size: 16px; margin-bottom: 14px; }
.sidebar-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sidebar-card ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.sidebar-card ul li svg { width: 17px; height: 17px; stroke: var(--blue); flex-shrink: 0; margin-top: 4px; }
.contact-box { background: linear-gradient(135deg, var(--navy-2), var(--blue)); color: #fff; border-radius: var(--radius); padding: 26px; margin-top: 22px; text-align: center; }
.contact-box h4 { color: #fff; }
.contact-box .btn { margin-top: 12px; }
.project-meta { display: flex; gap: 20px; flex-wrap: wrap; background: var(--bg); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 26px; font-size: 14.5px; }
.project-meta span { display: inline-flex; align-items: center; gap: 8px; }
.project-meta svg { width: 17px; height: 17px; stroke: var(--blue); }
@media (max-width: 900px) { .cpt-layout { grid-template-columns: 1fr; } }

/* ============ فرم تماس ============ */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: start; }
.tqg-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.tqg-form .field { margin-bottom: 18px; }
.tqg-form label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 7px; color: var(--navy); }
.tqg-form input[type="text"], .tqg-form input[type="tel"], .tqg-form input[type="email"], .tqg-form select, .tqg-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px; font-family: var(--font); font-size: 14.5px; background: var(--bg); transition: border .2s; }
.tqg-form input:focus, .tqg-form select:focus, .tqg-form textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.tqg-form textarea { min-height: 140px; resize: vertical; }
.tqg-form .hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-msg { padding: 14px 18px; border-radius: 10px; font-size: 14.5px; font-weight: 700; margin-bottom: 18px; }
.form-msg.ok { background: #e7f6ec; color: #1e7a3f; border: 1px solid #bfe6cc; }
.form-msg.err { background: #fdecec; color: #b02a2a; border: 1px solid #f5c6c6; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; align-items: flex-start; transition: all .25s; }
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.contact-card .cc-icon { width: 46px; height: 46px; border-radius: 12px; background: #eaf1fe; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card .cc-icon svg { width: 22px; height: 22px; stroke: var(--blue); }
.contact-card h4 { font-size: 15px; margin-bottom: 3px; }
.contact-card p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============ آرشیو ============ */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 991px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .archive-grid { grid-template-columns: 1fr; } }

/* ============ هدر بخش صفحات ============ */
.page-intro { text-align: center; max-width: 760px; margin: 0 auto 48px; color: var(--muted); }

/* ============ چراغ ============ */
.to-top { position: fixed; bottom: 24px; left: 24px; width: 46px; height: 46px; border-radius: 12px; background: var(--blue); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .3s; z-index: 800; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; stroke: #fff; }

/* ============ ریسپانسیو عمومی ============ */
@media (max-width: 640px) { .section { padding: 60px 0; } .btn { padding: 11px 20px; } }

/* ============ بهینه‌سازی موبایل ============ */
@media (max-width: 640px) {
	body { font-size: 15px; line-height: 1.85; }
	.header-inner { min-height: 62px; }
	.brand-logo { width: 44px; height: 44px; border-radius: 10px; }
	.brand-logo svg { width: 26px; height: 26px; }
	.brand-name { font-size: 16px; }
	.brand-sub { font-size: 10.5px; }
	.topbar { font-size: 12px; }
	.topbar-contacts { gap: 10px; }
	.topbar-contacts span svg { width: 12px; height: 12px; }

	.hero { min-height: 0; }
	.hero-inner { padding: 34px 0; }
	.hero-label { font-size: 12px; padding: 6px 12px; }
	.hero h1 { font-size: 24px; line-height: 1.6; }
	.hero p.lead { font-size: 14.5px; margin-bottom: 24px; }
	.hero-actions { margin-bottom: 28px; }
	.hero-actions .btn { width: 100%; justify-content: center; padding: 13px 16px; }
	.hero-chips { flex-direction: column; align-items: stretch; }
	.hero-chips .chip { justify-content: flex-start; font-size: 12.5px; }

	.section { padding: 48px 0; }
	.section-head { margin-bottom: 34px; }
	.stats { padding: 38px 0; }
	.stat h3 { font-size: 30px; }

	.svc-card { padding: 24px 18px; }
	.svc-icon { width: 54px; height: 54px; border-radius: 13px; }
	.svc-icon svg { width: 28px; height: 28px; }

	.why-badge { left: 10px; bottom: -16px; padding: 12px 16px; border-radius: 11px; }
	.why-badge strong { font-size: 22px; }

	.proj-overlay { padding: 16px; }
	.proj-overlay h3 { font-size: 14.5px; }

	.page-hero { padding: 44px 0 36px; }
	.page-hero h1 { font-size: 23px; }
	.page-body { padding: 40px 0; }
	.entry h2 { font-size: 20px; }
	.entry h3 { font-size: 17px; }

	.contact-box { padding: 22px 16px; }
	.sidebar-card { padding: 20px 16px; }
	.project-meta { gap: 10px; padding: 14px; font-size: 13.5px; }

	.tqg-form { padding: 22px 16px; }
	.contact-card { padding: 16px; }
	.contact-card .cc-icon { width: 42px; height: 42px; }
	.shop-cta { padding: 28px 18px; }
	.final-cta .phone-big { font-size: 26px; }
	.footer-grid { padding: 44px 0 30px; gap: 28px; }

	.to-top { width: 42px; height: 42px; bottom: 16px; left: 16px; }
}

/* جدول‌ها روی موبایل: اسکرول افقی */
@media (max-width: 768px) {
	.entry table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
	.entry blockquote { padding: 14px 16px; }
}

/* صفحه‌های خیلی کوچک */
@media (max-width: 400px) {
	.brand-sub { display: none; }
	.header-cta .btn { display: none; }
	.hero-chips .chip { font-size: 11.5px; }
	.topbar-contacts span:nth-child(2) { display: none; }
	.client-chip { font-size: 13px; padding: 8px 16px; }
}
