﻿/* ===== استایل صفحه پروفایل شرکت ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #f8fafc;
    color: #1E2B37;
    line-height: 1.7;
}

a {
    text-decoration: none;
}

.company-profile {
    background: #f8fafc;
    min-height: 100vh;
}

/* ===== هدر شرکت ===== */
.company-header {
    background: linear-gradient(135deg, #0B4F6C 0%, #1A6D8A 100%);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

    .company-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 500px;
        height: 500px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

    .company-header::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -5%;
        width: 400px;
        height: 400px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 50%;
    }

.company-header-content {
    position: relative;
    z-index: 1;
}

.company-logo-wrapper {
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin: 0 auto 1.5rem;
    padding: 1.5rem;
    border: 4px solid #F4B400;
}

    .company-logo-wrapper i {
        font-size: 4rem;
        color: #0B4F6C;
    }

.company-name {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.company-type-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .company-type-badge a {
        color: white;
    }

        .company-type-badge a:hover {
            color: #F4B400;
        }

.company-stats-header {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.stat-item-header {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

    .stat-item-header .number {
        font-size: 1.5rem;
        font-weight: 700;
        color: #F4B400;
        display: block;
    }

    .stat-item-header .label {
        font-size: 0.85rem;
        opacity: 0.8;
    }

/* ===== Breadcrumb ===== */
.breadcrumb-wrapper {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin: 0;
}

    .breadcrumb-custom .breadcrumb-item a {
        color: #0B4F6C;
        text-decoration: none;
    }

    .breadcrumb-custom .breadcrumb-item.active {
        color: #1E2B37;
        font-weight: 600;
    }

/* ===== بخش اصلی ===== */
.profile-main {
    padding: 40px 0 60px;
}

/* ===== کارت اطلاعات ===== */
.info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

    .info-card:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    }

.info-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0B4F6C;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f0f4f8;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .info-card-title i {
        color: #F4B400;
        font-size: 1.3rem;
    }

    .info-card-title .badge {
        background: #0B4F6C;
        color: white;
        font-size: 0.8rem;
        padding: 0.2rem 0.8rem;
        border-radius: 50px;
    }

/* ===== جدول اطلاعات ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 0.8rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .info-item:hover {
        background: #f0f4f8;
    }

    .info-item .label {
        font-size: 0.8rem;
        font-weight: 600;
        color: #7a8a9e;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .info-item .value {
        font-size: 1rem;
        font-weight: 500;
        color: #1E2B37;
        margin-top: 0.2rem;
        word-break: break-word;
    }

        .info-item .value a {
            color: #0B4F6C;
            text-decoration: none;
        }

            .info-item .value a:hover {
                color: #F4B400;
            }

    .info-item.grid-full {
        grid-column: 1 / -1;
    }

/* ===== توضیحات شرکت ===== */
.company-description {
    line-height: 1.9;
    color: #3d4f60;
    font-size: 1.05rem;
}

    .company-description p {
        margin-bottom: 1rem;
    }

/* ===== برچسب‌ها ===== */
.product-tag {
    background: #f0f4f8;
    color: #546E7A;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin: 2px;
}

/* ===== دکمه تماس ===== */
.contact-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-contact {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.btn-contact-primary {
    background: linear-gradient(135deg, #0B4F6C, #1A6D8A);
    color: white;
}

    .btn-contact-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(11, 79, 108, 0.3);
        color: white;
    }

.btn-contact-secondary {
    background: #f1f4f9;
    color: #1E2B37;
}

    .btn-contact-secondary:hover {
        background: #e2e8f0;
        transform: translateY(-3px);
    }

.btn-contact-whatsapp {
    background: #25D366;
    color: white;
}

    .btn-contact-whatsapp:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
        color: white;
    }

/* ===== محصولات ===== */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(11, 79, 108, 0.12);
    }

.product-image {
    height: 200px;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image .no-image {
    font-size: 3rem;
    color: #cbd5e1;
}

.product-body {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E2B37;
    margin-bottom: 0.5rem;
}

.product-preview {
    color: #7a8a9e;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1rem;
}

.product-footer-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1rem;
}

.product-price {
    font-weight: 700;
    color: #0B4F6C;
    font-size: 1.1rem;
}

    .product-price .text-success {
        color: #27AE60;
    }

    .product-price .text-muted {
        color: #7a8a9e;
    }

.product-link {
    color: #0B4F6C;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .product-link:hover {
        color: #F4B400;
        gap: 10px;
    }

/* ===== تیم مدیریت (درختی) ===== */
.org-chart {
    padding: 1rem 0;
}

.org-node {
    position: relative;
    padding-right: 2rem;
    margin-bottom: 1.5rem;
    border-right: 3px solid #0B4F6C;
    padding-right: 1.5rem;
}

    .org-node::before {
        content: '';
        position: absolute;
        right: -3px;
        top: 0;
        width: 12px;
        height: 12px;
        background: #F4B400;
        border-radius: 50%;
        border: 3px solid #0B4F6C;
        transform: translateX(-50%);
    }

    .org-node.level-1 {
        border-right-color: #0B4F6C;
    }

        .org-node.level-1::before {
            background: #F4B400;
            border-color: #0B4F6C;
        }

    .org-node.level-2 {
        border-right-color: #1A6D8A;
        padding-right: 2rem;
    }

        .org-node.level-2::before {
            background: #F4B400;
            border-color: #1A6D8A;
            width: 10px;
            height: 10px;
        }

    .org-node.level-3 {
        border-right-color: #3498DB;
        padding-right: 2.5rem;
    }

        .org-node.level-3::before {
            background: #F4B400;
            border-color: #3498DB;
            width: 8px;
            height: 8px;
        }

.org-person {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .org-person:hover {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
        transform: translateX(-5px);
    }

.org-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0B4F6C, #1A6D8A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

    .org-avatar.small {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .org-avatar.blue {
        background: #3498DB;
    }

    .org-avatar.gray {
        background: #7a8a9e;
    }

.org-info h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #1E2B37;
}

.org-info .position {
    font-size: 0.85rem;
    color: #0B4F6C;
    font-weight: 600;
}

.org-info .desc {
    font-size: 0.85rem;
    color: #7a8a9e;
    margin: 0;
}

.org-children {
    padding-right: 2rem;
    margin-top: 1rem;
}

.org-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* ===== گالری تصاویر ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f0f4f8;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gallery-item:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery-item .no-image {
        font-size: 2rem;
        color: #cbd5e1;
    }

/* ===== نقشه ===== */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f0f4f8;
    border: 1px solid #e2e8f0;
}

    .map-container iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .company-name {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .company-name {
        font-size: 1.8rem;
    }

    .company-logo-wrapper {
        width: 120px;
        height: 120px;
    }

    .company-stats-header {
        gap: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .org-node {
        padding-right: 1rem;
    }

        .org-node.level-2 {
            padding-right: 1.5rem;
        }

        .org-node.level-3 {
            padding-right: 2rem;
        }

    .org-children {
        padding-right: 1rem;
    }

    .org-person {
        flex-direction: column;
        text-align: center;
    }

    .contact-actions {
        flex-direction: column;
    }

        .contact-actions .btn-contact {
            width: 100%;
            justify-content: center;
        }
}

@media (max-width: 576px) {
    .company-header {
        padding: 40px 0 30px;
    }

    .company-name {
        font-size: 1.5rem;
    }

    .company-logo-wrapper {
        width: 100px;
        height: 100px;
    }

        .company-logo-wrapper i {
            font-size: 3rem;
        }

    .profile-main {
        padding: 20px 0 40px;
    }

    .info-card {
        padding: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
