/*
Theme Name: قالب ۱۴۰۴ (Mombi Minimal)
Author: استودیو مُمبی
Version: 2.0
Description: نسخه مینیمال سیاه و سفید، راست‌چین و مدرن.
*/

@charset "UTF-8";
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* --- پالت رنگی جدید (بدون زرد) --- */
    --primary: #000000;       /* رنگ اصلی: مشکی */
    --primary-hover: #333333; /* هاور: خاکستری تیره */
    --accent: #2563eb;        /* رنگ تاکید: آبی (برای لینک‌ها یا دکمه‌های خاص) */
    
    --bg-body: #ffffff;
    --bg-light: #f9fafb;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    
    --border: #e5e7eb;
    --radius: 20px;           /* گردی گوشه‌ها مطابق طرح HTML */
    --container: 1300px;
    --font: 'Vazirmatn', sans-serif;
    --transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; }

body {
    font-family: var(--font);
    background-color: var(--bg-body);
    color: var(--text-main);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 5%; width: 100%; }

/* --- دکمه‌ها --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 35px; border-radius: 100px;
    font-weight: 800; font-size: 1rem;
    cursor: pointer; transition: var(--transition);
    border: 2px solid var(--primary);
    background: transparent; color: var(--primary);
}

.btn:hover {
    background: var(--primary); color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-filled {
    background: var(--primary); color: #fff;
}
.btn-filled:hover {
    background: var(--primary-hover); border-color: var(--primary-hover);
}

/* --- هدر (Header) --- */
header {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 20px 0; z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar { display: flex; justify-content: space-between; align-items: center; }

/* لوگو و عنوان کنار هم */
.logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.8rem; font-weight: 900; color: var(--primary);
    text-decoration: none;
}
.logo img { height: 40px; width: auto; }
.logo span { padding-top: 4px; /* تراز دقیق متن */ }

/* دکمه منو */
.menu-trigger {
    cursor: pointer; display: flex; align-items: center; gap: 15px;
    font-weight: 800; font-size: 1rem; color: var(--primary);
}
.hamburger-lines { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.hamburger-lines span { background-color: var(--primary); height: 3px; transition: 0.3s; border-radius: 2px; }
.hamburger-lines span:nth-child(1) { width: 35px; }
.hamburger-lines span:nth-child(2) { width: 20px; }
.menu-trigger:hover .hamburger-lines span { width: 35px; background-color: var(--accent); }

/* --- منوی فول اسکرین (Overlay) --- */
.menu-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #000; z-index: 200;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transform: translateY(-100%); transition: transform 0.8s cubic-bezier(0.8, 0, 0.2, 1);
}
.menu-overlay.active { transform: translateY(0); }

.menu-internal-header { position: absolute; top: 0; left: 0; right: 0; padding: 30px 5%; display: flex; justify-content: space-between; align-items: center; }
.close-btn { color: #fff; cursor: pointer; border: 1px solid rgba(255,255,255,0.2); padding: 10px 30px; border-radius: 50px; font-weight: 700; transition: 0.3s; }
.close-btn:hover { background: #fff; color: #000; }

.menu-links { text-align: center; }
.menu-links a {
    display: block; font-size: clamp(2rem, 5vw, 4rem); font-weight: 900;
    color: #fff; margin: 10px 0; transform: translateY(50px); opacity: 0;
    transition: 0.5s;
}
.menu-links a:hover { color: var(--accent); } /* آبی در هاور */
.menu-overlay.active .menu-links a { transform: translateY(0); opacity: 1; }

/* --- بخش هیرو (Hero) - راست‌چین --- */
.hero {
    min-height: 85vh; padding-top: 100px;
    display: flex; flex-direction: column; 
    justify-content: center; align-items: flex-start; /* تراز افقی به راست */
    text-align: right; /* تراز متن به راست */
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 7rem); font-weight: 900;
    line-height: 1.1; letter-spacing: -2px; color: var(--primary);
    margin-bottom: 30px;
}

.hero-sub {
    font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-muted);
    font-weight: 500; margin-bottom: 50px; max-width: 600px;
}

.scroll-down {
    position: absolute; bottom: 40px; left: 5%;
    font-weight: 800; font-size: 0.9rem; cursor: pointer;
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% {transform: translateY(0);} 50% {transform: translateY(-10px);} }

/* --- بخش‌ها (General Sections) --- */
section { padding: 100px 0; }
.section-header { 
    display: flex; justify-content: space-between; align-items: flex-end; 
    margin-bottom: 60px; border-bottom: 2px solid var(--primary); padding-bottom: 20px; 
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -1px; }
.section-count { font-size: 1.2rem; font-weight: 700; color: var(--text-muted); }

/* --- کارت پروژه‌ها (Projects) --- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; }
.project-card { cursor: pointer; width: 100%; transition: var(--transition); }

.project-media {
    width: 100%; aspect-ratio: 4/3; border-radius: var(--radius);
    overflow: hidden; position: relative; background-color: #eee;
}
.project-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    filter: grayscale(100%);
}
.project-card:hover .project-media img { transform: scale(1.05); filter: grayscale(0%); }

/* باکس گوشه (نام پروژه) */
.project-corner-box {
    position: absolute; bottom: 0; right: 0;
    background-color: #fff; padding: 20px 30px 20px 40px;
    border-top-left-radius: 30px; border-bottom-right-radius: var(--radius);
    z-index: 10;
}
/* انحنای معکوس */
.project-corner-box::before {
    content: ''; position: absolute; bottom: 100%; right: 0; width: 20px; height: 20px;
    box-shadow: 10px 10px 0 #fff; border-bottom-right-radius: 50%;
}
.project-corner-box::after {
    content: ''; position: absolute; bottom: 0; right: 100%; width: 20px; height: 20px;
    box-shadow: 10px 10px 0 #fff; border-bottom-right-radius: 50%;
}

.project-text h3 { font-size: 1.1rem; font-weight: 900; margin: 0; }
.project-text p { font-size: 0.85rem; color: var(--text-muted); margin-top: 5px; }

/* --- تعرفه‌ها (Pricing) --- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: center; }
.pricing-card {
    background: var(--bg-light); padding: 40px; border-radius: var(--radius);
    display: flex; flex-direction: column; transition: 0.4s; border: 1px solid transparent;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

.pricing-card.featured {
    background: var(--primary); color: #fff; transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.pricing-card.featured:hover { transform: scale(1.08); }

.plan-name { font-size: 1.4rem; font-weight: 900; margin-bottom: 10px; }
.plan-price { font-size: 2.5rem; font-weight: 900; margin-bottom: 20px; letter-spacing: -1px; }
.plan-features li { margin-bottom: 12px; font-size: 0.9rem; opacity: 0.8; display: flex; align-items: center; gap: 8px; }
.plan-features li::before { content: '•'; font-weight: bold; font-size: 1.2rem; }

.btn-pricing {
    margin-top: 30px; padding: 12px; border: 2px solid var(--primary);
    text-align: center; border-radius: 50px; font-weight: 700;
}
.btn-pricing:hover { background: var(--primary); color: #fff; }
.featured .btn-pricing { border-color: #fff; color: #fff; }
.featured .btn-pricing:hover { background: #fff; color: var(--primary); }

/* --- وبلاگ --- */
.blog-list { margin-top: 40px; }
.blog-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 30px 0; border-bottom: 1px solid var(--border);
    cursor: pointer; transition: 0.3s;
}
.blog-item:hover { border-bottom-color: var(--primary); padding-right: 20px; }
.blog-title { font-size: 1.4rem; font-weight: 700; }
.blog-date { font-size: 0.9rem; color: var(--text-muted); }

/* --- فوتر --- */
footer { padding: 100px 5% 40px; }
footer h2 {
    font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 1;
    letter-spacing: -2px; margin-bottom: 50px; text-align: right;
}
.footer-bottom {
    display: flex; justify-content: space-between; align-items: flex-end;
    border-top: 2px solid var(--primary); padding-top: 30px; flex-wrap: wrap; gap: 30px;
}
.email-link { font-size: 1.5rem; font-weight: 900; border-bottom: 2px solid currentColor; }

/* ریسپانسیو */
@media (max-width: 992px) {
    .projects-grid, .pricing-grid { grid-template-columns: 1fr; gap: 40px; }
    .project-card[style] { margin-top: 0 !important; } /* حذف افست زیگزاگی در موبایل */
    .pricing-card.featured { transform: scale(1); }
}
@media (max-width: 768px) {
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .hero { align-items: flex-start; text-align: right; } /* اطمینان از راست‌چینی در موبایل */
}