/* ================================================================ */
/* صفحه پروژه‌ها                                                    */
/* ================================================================ */

/* ---------------------------------------------------------------- */
/* 1. هیرو                                                          */
/* ---------------------------------------------------------------- */
.page-hero {
    min-height: 45vh;
    position: relative;
    background: url('/image/project-background.png') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 72px;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 100%);
}
.page-hero-content { position: relative; z-index: 2; padding: 1rem; }
.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    color: var(--accent-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}
.page-hero-title .text-accent {
    color: var(--accent);
}
.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}
.page-hero-breadcrumb a { color: var(--accent); text-decoration: none; transition: var(--transition); }
.page-hero-breadcrumb a:hover { color: var(--accent-light); }

/* ---------------------------------------------------------------- */
/* 2. آمار (شمارنده)                                                */
/* ---------------------------------------------------------------- */
.stats-section {
    padding: 60px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-box i {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}
.stat-box .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
    font-family: 'Vazirmatn', sans-serif;
}
.stat-box span:last-child {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------- */
/* 3. بخش پروژه‌ها                                                   */
/* ---------------------------------------------------------------- */
.projects-list-section {
    padding: 80px 0;
    background: var(--bg-light);
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.about-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.section-title .text-accent {
    color: var(--accent);
}
.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------------------------------------------------------------- */
/* 4. فیلترها                                                       */
/* ---------------------------------------------------------------- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.filter-btn {
    background: transparent;
    border: 2px solid var(--border-light);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
}

/* ================================================================ */
/* 5. کارت‌های پروژه (مدرن و شیک)                                   */
/* ================================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid var(--border-light);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: var(--bg-light);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

/* برچسب روی عکس */
.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.2);
}

/* اوورلی */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.overlay-content p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.6rem;
    line-height: 1.6;
}
.overlay-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}
.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}
.btn-detail:hover {
    gap: 14px;
    color: var(--accent-light);
}

/* بدنه کارت */
.project-body {
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
}

.project-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.project-location {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.project-location i {
    color: var(--accent);
    margin-left: 4px;
}

/* ---------------------------------------------------------------- */
/* 6. ریسپانسیو                                                    */
/* ---------------------------------------------------------------- */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
@media (max-width: 768px) {
    .page-hero { margin-top: 65px; min-height: 35vh; }
    .projects-list-section { padding: 50px 0; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-image { height: 200px; }
    .filter-btn { padding: 0.3rem 1rem; font-size: 0.7rem; }
}
@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .stat-box .stat-number {
        font-size: 1.8rem;
    }
    .project-image { height: 180px; }
}

/* =========================================================
   FIX: هم‌تراز شدن فوتر تمام کارت‌های محصولات
   ========================================================= */

.products-list-section .row {
    align-items: stretch !important;
}

.products-list-section .row > [class*="col-"] {
    display: flex !important;
    flex-direction: column !important;
}

.product-card-wrapper {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.product-card {
    height: 100% !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-content {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-footer {
    margin-top: auto !important;
}