/**
 * Mihan Roshd Core Frontend Styles
 *
 * این فایل شامل استایل‌های عمومی پلاگین میهن رشد است.
 *
 * تمرکز فعلی:
 * - صفحه پروفایل شرکت: .mr-company-profile
 * - Hero
 * - badges
 * - taxonomy chips
 * - contact list
 * - offering cards grid
 *
 * قواعد طراحی:
 * - تمام کلاس‌ها namespaced هستند.
 * - پیشوند اصلی: mr-company-profile
 * - ساختار نام‌گذاری بر پایه BEM است:
 *   - Block:    .mr-company-profile
 *   - Element:  .mr-company-profile__element
 *   - Modifier: .mr-company-profile__element--modifier
 *
 * هدف:
 * جلوگیری از تداخل CSS پلاگین با قالب وردپرس، Zephyr، Visual Composer یا سایر پلاگین‌ها.
 *
 * @package MihanRoshdCore
 * @since   0.1.0
 */


/* ==========================================================================
   1. Root Variables
   ========================================================================== */

/**
 * متغیرهای طراحی مخصوص صفحه شرکت.
 *
 * این متغیرها داخل خود block تعریف شده‌اند تا از فضای global CSS جدا بمانند.
 * اگر در آینده نیاز به theme customization بود، می‌توان همین مقادیر را override کرد.
 */
.mr-company-profile {
    --mr-company-profile-color-text: #1f2937;
    --mr-company-profile-color-muted: #6b7280;
    --mr-company-profile-color-soft: #f9fafb;
    --mr-company-profile-color-border: #e5e7eb;
    --mr-company-profile-color-card: #ffffff;

    --mr-company-profile-color-primary: #2563eb;
    --mr-company-profile-color-primary-dark: #1d4ed8;
    --mr-company-profile-color-primary-soft: #eff6ff;

    --mr-company-profile-color-success: #059669;
    --mr-company-profile-color-success-soft: #ecfdf5;

    --mr-company-profile-color-warning: #d97706;
    --mr-company-profile-color-warning-soft: #fffbeb;

    --mr-company-profile-color-featured: #7c3aed;
    --mr-company-profile-color-featured-soft: #f5f3ff;

    --mr-company-profile-radius-sm: 8px;
    --mr-company-profile-radius-md: 12px;
    --mr-company-profile-radius-lg: 18px;
    --mr-company-profile-radius-xl: 24px;

    --mr-company-profile-shadow-sm: 0 4px 10px rgba(15, 23, 42, 0.06);
    --mr-company-profile-shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --mr-company-profile-shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);

    --mr-company-profile-container-width: 1180px;
    --mr-company-profile-space-xs: 6px;
    --mr-company-profile-space-sm: 10px;
    --mr-company-profile-space-md: 16px;
    --mr-company-profile-space-lg: 24px;
    --mr-company-profile-space-xl: 36px;
    --mr-company-profile-space-2xl: 56px;

    direction: rtl;
    color: var(--mr-company-profile-color-text);
    background: #ffffff;
    font-size: 16px;
    line-height: 1.8;
}


/* ==========================================================================
   2. Base / Reset داخل namespace
   ========================================================================== */

/**
 * reset محدود فقط برای عناصر داخل صفحه پروفایل شرکت.
 * این کار باعث می‌شود قالب اصلی سایت کمتر روی کارت‌ها و سکشن‌ها اثر بگذارد.
 */
.mr-company-profile *,
.mr-company-profile *::before,
.mr-company-profile *::after {
    box-sizing: border-box;
}

.mr-company-profile img {
    max-width: 100%;
    height: auto;
    display: block;
}

.mr-company-profile a {
    color: var(--mr-company-profile-color-primary);
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mr-company-profile a:hover,
.mr-company-profile a:focus {
    color: var(--mr-company-profile-color-primary-dark);
}

.mr-company-profile :focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 3px;
}


/* ==========================================================================
   3. Layout Container
   ========================================================================== */

/**
 * کانتینر اصلی محتوای صفحه.
 * Hero تمام‌عرض است ولی محتوای بعد از آن داخل container قرار می‌گیرد.
 */
.mr-company-profile__container {
    width: min(100% - 32px, var(--mr-company-profile-container-width));
    margin-inline: auto;
    padding-block: var(--mr-company-profile-space-xl) var(--mr-company-profile-space-2xl);
}


/* ==========================================================================
   4. Hero Section
   ========================================================================== */

/**
 * Hero صفحه شرکت.
 *
 * شامل:
 * - تصویر کاور
 * - لوگوی شرکت
 * - عنوان شرکت
 * - شعار
 * - badges
 */
.mr-company-profile__hero {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 32%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--mr-company-profile-color-border);
    overflow: hidden;
}

/**
 * ناحیه تصویر کاور.
 * ارتفاع کنترل‌شده برای جلوگیری از بهم‌ریختگی layout در تصاویر خیلی بزرگ.
 */
.mr-company-profile__hero-cover {
    position: relative;
    width: 100%;
    height: clamp(180px, 26vw, 340px);
    background: #e5e7eb;
    overflow: hidden;
}

/**
 * تصویر کاور به‌صورت cover نمایش داده می‌شود.
 */
.mr-company-profile__hero-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/**
 * گرادیان روی کاور برای بهتر دیده شدن لایه پایین Hero.
 */
.mr-company-profile__hero-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.42)),
        linear-gradient(90deg, rgba(37, 99, 235, 0.18), transparent);
    pointer-events: none;
}

/**
 * محتوای Hero.
 *
 * اگر کاور وجود داشته باشد، این بخش با margin منفی کمی روی کاور می‌نشیند.
 */
.mr-company-profile__hero-inner {
    width: min(100% - 32px, var(--mr-company-profile-container-width));
    margin-inline: auto;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: var(--mr-company-profile-space-lg);
    padding-block: var(--mr-company-profile-space-xl);
}

/**
 * اگر قبل از hero-inner کاور وجود داشته باشد،
 * Hero content کمی به سمت بالا کشیده می‌شود تا حالت profile card پیدا کند.
 */
.mr-company-profile__hero-cover + .mr-company-profile__hero-inner {
    margin-top: -58px;
    padding-top: 0;
}

/**
 * باکس لوگو.
 */
.mr-company-profile__logo-wrapper {
    flex: 0 0 auto;
    width: 116px;
    height: 116px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--mr-company-profile-color-border);
    border-radius: var(--mr-company-profile-radius-xl);
    box-shadow: var(--mr-company-profile-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/**
 * تصویر لوگو.
 * object-fit contain برای حفظ نسبت اصلی لوگو استفاده شده است.
 */
.mr-company-profile__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: calc(var(--mr-company-profile-radius-xl) - 8px);
}

/**
 * باکس متن Hero.
 */
.mr-company-profile__hero-content {
    min-width: 0;
    flex: 1 1 auto;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: var(--mr-company-profile-radius-xl);
    box-shadow: var(--mr-company-profile-shadow-sm);
    padding: var(--mr-company-profile-space-lg);
}

/**
 * عنوان شرکت.
 */
.mr-company-profile__title {
    margin: 0;
    color: var(--mr-company-profile-color-text);
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

/**
 * شعار شرکت.
 */
.mr-company-profile__tagline {
    margin: var(--mr-company-profile-space-sm) 0 0;
    color: var(--mr-company-profile-color-muted);
    font-size: 1.05rem;
    line-height: 1.9;
}


/* ==========================================================================
   5. Badges
   ========================================================================== */

/**
 * لیست badgeها.
 */
.mr-company-profile__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mr-company-profile-space-sm);
    margin-top: var(--mr-company-profile-space-md);
}

/**
 * badge عمومی.
 */
.mr-company-profile__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

/**
 * badge ویژه.
 */
.mr-company-profile__badge--featured {
    color: var(--mr-company-profile-color-featured);
    background: var(--mr-company-profile-color-featured-soft);
    border-color: rgba(124, 58, 237, 0.18);
}

/**
 * badge تأیید.
 */
.mr-company-profile__badge--verified {
    color: var(--mr-company-profile-color-success);
    background: var(--mr-company-profile-color-success-soft);
    border-color: rgba(5, 150, 105, 0.18);
}

/**
 * badge وضعیت.
 */
.mr-company-profile__badge--status {
    color: var(--mr-company-profile-color-warning);
    background: var(--mr-company-profile-color-warning-soft);
    border-color: rgba(217, 119, 6, 0.18);
}


/* ==========================================================================
   6. Generic Sections
   ========================================================================== */

/**
 * سکشن عمومی.
 */
.mr-company-profile__section {
    background: var(--mr-company-profile-color-card);
    border: 1px solid var(--mr-company-profile-color-border);
    border-radius: var(--mr-company-profile-radius-xl);
    box-shadow: var(--mr-company-profile-shadow-sm);
    padding: var(--mr-company-profile-space-xl);
    margin-bottom: var(--mr-company-profile-space-lg);
}

/**
 * آخرین سکشن margin-bottom نداشته باشد.
 */
.mr-company-profile__section:last-child {
    margin-bottom: 0;
}

/**
 * هدر سکشن.
 */
.mr-company-profile__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--mr-company-profile-space-md);
    margin-bottom: var(--mr-company-profile-space-lg);
    padding-bottom: var(--mr-company-profile-space-md);
    border-bottom: 1px solid var(--mr-company-profile-color-border);
}

/**
 * عنوان سکشن.
 */
.mr-company-profile__section-title {
    position: relative;
    margin: 0;
    color: var(--mr-company-profile-color-text);
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.5;
}

/**
 * خط تزئینی کنار عنوان سکشن.
 */
.mr-company-profile__section-title::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 22px;
    margin-left: 10px;
    border-radius: 999px;
    background: var(--mr-company-profile-color-primary);
    vertical-align: -5px;
}

/**
 * محتوای عمومی سکشن.
 */
.mr-company-profile__section-content {
    color: var(--mr-company-profile-color-text);
}


/* ==========================================================================
   7. About / Content
   ========================================================================== */

/**
 * متن معرفی.
 */
.mr-company-profile__content {
    max-width: 900px;
}

/**
 * خلاصه شرکت.
 */
.mr-company-profile__excerpt {
    margin-bottom: var(--mr-company-profile-space-md);
    padding: var(--mr-company-profile-space-md) var(--mr-company-profile-space-lg);
    background: var(--mr-company-profile-color-soft);
    border-right: 4px solid var(--mr-company-profile-color-primary);
    border-radius: var(--mr-company-profile-radius-md);
    color: var(--mr-company-profile-color-text);
    font-weight: 600;
}

/**
 * پاراگراف خلاصه.
 */
.mr-company-profile__excerpt p {
    margin: 0;
}

/**
 * متن کامل معرفی.
 */
.mr-company-profile__description {
    color: var(--mr-company-profile-color-text);
}

/**
 * فاصله پاراگراف‌ها در متن معرفی.
 */
.mr-company-profile__description p {
    margin-top: 0;
    margin-bottom: 1em;
}

.mr-company-profile__description p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   8. Facts / Meta List
   ========================================================================== */

/**
 * لیست اطلاعات پایه.
 */
.mr-company-profile__meta-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--mr-company-profile-space-md);
}

/**
 * آیتم اطلاعات پایه.
 */
.mr-company-profile__meta-item {
    min-width: 0;
    padding: var(--mr-company-profile-space-lg);
    background: var(--mr-company-profile-color-soft);
    border: 1px solid var(--mr-company-profile-color-border);
    border-radius: var(--mr-company-profile-radius-lg);
}

/**
 * label اطلاعات پایه.
 */
.mr-company-profile__meta-label {
    display: block;
    margin-bottom: var(--mr-company-profile-space-xs);
    color: var(--mr-company-profile-color-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

/**
 * مقدار اطلاعات پایه.
 */
.mr-company-profile__meta-value {
    display: block;
    color: var(--mr-company-profile-color-text);
    font-size: 1.05rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}


/* ==========================================================================
   9. Taxonomy Chips
   ========================================================================== */

/**
 * گروه‌بندی taxonomyها.
 */
.mr-company-profile__taxonomy-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--mr-company-profile-space-lg);
}

/**
 * باکس هر گروه taxonomy.
 */
.mr-company-profile__taxonomy-group {
    min-width: 0;
    padding: var(--mr-company-profile-space-lg);
    background: var(--mr-company-profile-color-soft);
    border: 1px solid var(--mr-company-profile-color-border);
    border-radius: var(--mr-company-profile-radius-lg);
}

/**
 * عنوان گروه taxonomy.
 */
.mr-company-profile__taxonomy-title {
    margin: 0 0 var(--mr-company-profile-space-md);
    color: var(--mr-company-profile-color-text);
    font-size: 1rem;
    font-weight: 800;
}

/**
 * لیست termها.
 */
.mr-company-profile__terms {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mr-company-profile-space-sm);
}

/**
 * Chip هر term.
 */
.mr-company-profile__term {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 12px;
    color: var(--mr-company-profile-color-primary-dark);
    background: var(--mr-company-profile-color-primary-soft);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}


/* ==========================================================================
   10. Contact List
   ========================================================================== */

/**
 * لیست اطلاعات تماس.
 */
.mr-company-profile__contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--mr-company-profile-space-md);
}

/**
 * آیتم تماس.
 */
.mr-company-profile__contact-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: var(--mr-company-profile-space-md);
    padding: var(--mr-company-profile-space-md) var(--mr-company-profile-space-lg);
    background: var(--mr-company-profile-color-soft);
    border: 1px solid var(--mr-company-profile-color-border);
    border-radius: var(--mr-company-profile-radius-lg);
}

/**
 * آدرس ممکن است طولانی باشد، پس تمام عرض گرید را بگیرد.
 */
.mr-company-profile__contact-item--address {
    grid-column: 1 / -1;
    align-items: start;
}

/**
 * label اطلاعات تماس.
 */
.mr-company-profile__contact-label {
    color: var(--mr-company-profile-color-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

/**
 * مقدار اطلاعات تماس.
 */
.mr-company-profile__contact-value {
    min-width: 0;
    color: var(--mr-company-profile-color-text);
    font-weight: 700;
    overflow-wrap: anywhere;
}

/**
 * لینک‌های تماس.
 */
.mr-company-profile__contact-value a {
    font-weight: 800;
    overflow-wrap: anywhere;
}

.mr-company-profile__contact-value a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* ==========================================================================
   11. Offerings Grid
   ========================================================================== */

/**
 * گرید کارت‌های Offering.
 *
 * کلاس اصلی مورد نظر:
 * .mr-company-profile__offerings
 */
.mr-company-profile__offerings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--mr-company-profile-space-lg);
}

/**
 * کارت Offering.
 */
.mr-company-profile__offering-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--mr-company-profile-color-border);
    border-radius: var(--mr-company-profile-radius-xl);
    box-shadow: var(--mr-company-profile-shadow-sm);
    overflow: hidden;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

/**
 * تعامل کارت Offering.
 */
.mr-company-profile__offering-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mr-company-profile-shadow-md);
    border-color: rgba(37, 99, 235, 0.25);
}

/**
 * ناحیه تصویر کارت Offering.
 */
.mr-company-profile__offering-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--mr-company-profile-color-soft);
    overflow: hidden;
}

/**
 * تصویر Offering.
 */
.mr-company-profile__offering-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
}

/**
 * زوم ملایم تصویر هنگام hover.
 */
.mr-company-profile__offering-card:hover .mr-company-profile__offering-image {
    transform: scale(1.035);
}

/**
 * بدنه کارت Offering.
 */
.mr-company-profile__offering-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: var(--mr-company-profile-space-lg);
}

/**
 * نوع Offering: خدمت، محصول، راهکار.
 */
.mr-company-profile__offering-type {
    align-self: flex-start;
    margin-bottom: var(--mr-company-profile-space-sm);
    padding: 4px 10px;
    color: var(--mr-company-profile-color-primary-dark);
    background: var(--mr-company-profile-color-primary-soft);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.4;
}

/**
 * عنوان Offering.
 */
.mr-company-profile__offering-title {
    margin: 0;
    color: var(--mr-company-profile-color-text);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.65;
}

/**
 * توضیح کوتاه Offering.
 */
.mr-company-profile__offering-description {
    margin-top: var(--mr-company-profile-space-sm);
    color: var(--mr-company-profile-color-muted);
    font-size: 0.94rem;
    line-height: 1.9;
}

.mr-company-profile__offering-description p {
    margin: 0;
}

/**
 * قیمت Offering.
 */
.mr-company-profile__offering-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--mr-company-profile-space-xs);
    margin-top: var(--mr-company-profile-space-md);
    padding-top: var(--mr-company-profile-space-md);
    border-top: 1px dashed var(--mr-company-profile-color-border);
}

/**
 * نوع قیمت.
 */
.mr-company-profile__offering-price-type {
    color: var(--mr-company-profile-color-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

/**
 * مقدار قیمت.
 */
.mr-company-profile__offering-price-value {
    color: var(--mr-company-profile-color-success);
    font-size: 0.98rem;
    font-weight: 900;
}

/**
 * بخش اکشن کارت.
 */
.mr-company-profile__offering-actions {
    margin-top: auto;
    padding-top: var(--mr-company-profile-space-lg);
}

/**
 * لینک مشاهده جزئیات Offering.
 */
.mr-company-profile__offering-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    color: #ffffff;
    background: var(--mr-company-profile-color-primary);
    border: 1px solid var(--mr-company-profile-color-primary);
    border-radius: var(--mr-company-profile-radius-md);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.4;
}

/**
 * hover لینک جزئیات.
 */
.mr-company-profile__offering-link:hover,
.mr-company-profile__offering-link:focus {
    color: #ffffff;
    background: var(--mr-company-profile-color-primary-dark);
    border-color: var(--mr-company-profile-color-primary-dark);
    transform: translateY(-1px);
}


/* ==========================================================================
   12. Share Box
   ========================================================================== */

/**
 * باکس لینک پروفایل.
 */
.mr-company-profile__share-box {
    padding: var(--mr-company-profile-space-md) var(--mr-company-profile-space-lg);
    background: var(--mr-company-profile-color-soft);
    border: 1px solid var(--mr-company-profile-color-border);
    border-radius: var(--mr-company-profile-radius-lg);
    overflow: hidden;
}

/**
 * لینک مستقیم پروفایل.
 */
.mr-company-profile__share-link {
    display: inline-block;
    max-width: 100%;
    color: var(--mr-company-profile-color-primary);
    font-weight: 800;
    direction: ltr;
    text-align: left;
    overflow-wrap: anywhere;
}


/* ==========================================================================
   13. Responsive - Tablet
   ========================================================================== */

@media (max-width: 1024px) {
    /**
     * در تبلت، اطلاعات پایه به دو ستون کاهش می‌یابد.
     */
    .mr-company-profile__meta-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /**
     * کارت‌های Offering در تبلت دو ستونه شوند.
     */
    .mr-company-profile__offerings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================================
   14. Responsive - Mobile
   ========================================================================== */

@media (max-width: 768px) {
    /**
     * فاصله container در موبایل کمتر می‌شود.
     */
    .mr-company-profile__container {
        width: min(100% - 24px, var(--mr-company-profile-container-width));
        padding-block: var(--mr-company-profile-space-lg) var(--mr-company-profile-space-xl);
    }

    /**
     * Hero در موبایل ستونی می‌شود.
     */
    .mr-company-profile__hero-inner {
        width: min(100% - 24px, var(--mr-company-profile-container-width));
        flex-direction: column;
        align-items: stretch;
        gap: var(--mr-company-profile-space-md);
        padding-block: var(--mr-company-profile-space-lg);
    }

    /**
     * در موبایل، لوگو روی content بهتر نمایش داده شود.
     */
    .mr-company-profile__hero-cover + .mr-company-profile__hero-inner {
        margin-top: -48px;
    }

    /**
     * لوگو در موبایل کمی کوچک‌تر می‌شود.
     */
    .mr-company-profile__logo-wrapper {
        width: 96px;
        height: 96px;
        border-radius: var(--mr-company-profile-radius-lg);
    }

    /**
     * محتوای Hero در موبایل.
     */
    .mr-company-profile__hero-content {
        padding: var(--mr-company-profile-space-lg);
        border-radius: var(--mr-company-profile-radius-lg);
    }

    /**
     * سکشن‌ها در موبایل padding کمتر دارند.
     */
    .mr-company-profile__section {
        padding: var(--mr-company-profile-space-lg);
        border-radius: var(--mr-company-profile-radius-lg);
    }

    /**
     * هدر سکشن در موبایل.
     */
    .mr-company-profile__section-header {
        margin-bottom: var(--mr-company-profile-space-md);
    }

    /**
     * گریدهای مختلف در موبایل تک‌ستونه می‌شوند.
     */
    .mr-company-profile__meta-list,
    .mr-company-profile__taxonomy-groups,
    .mr-company-profile__contact-list,
    .mr-company-profile__offerings {
        grid-template-columns: 1fr;
    }

    /**
     * آیتم تماس در موبایل ستونی شود.
     */
    .mr-company-profile__contact-item {
        grid-template-columns: 1fr;
        gap: var(--mr-company-profile-space-xs);
    }

    /**
     * آدرس هم همان تک‌ستون باقی بماند.
     */
    .mr-company-profile__contact-item--address {
        grid-column: auto;
    }
}


/* ==========================================================================
   15. Responsive - Small Mobile
   ========================================================================== */

@media (max-width: 480px) {
    /**
     * عنوان شرکت در موبایل کوچک کمی فشرده‌تر شود.
     */
    .mr-company-profile__title {
        font-size: 1.55rem;
    }

    /**
     * Hero cover کوتاه‌تر شود.
     */
    .mr-company-profile__hero-cover {
        height: 180px;
    }

    /**
     * badgeها و termها همچنان wrap شوند.
     */
    .mr-company-profile__badges,
    .mr-company-profile__terms {
        gap: 8px;
    }

    /**
     * دکمه Offering تمام‌عرض شود.
     */
    .mr-company-profile__offering-link {
        width: 100%;
    }
}


/* ==========================================================================
   16. Print Styles
   ========================================================================== */

/**
 * نسخه چاپی ساده‌تر.
 */
@media print {
    .mr-company-profile {
        background: #ffffff;
        color: #000000;
    }

    .mr-company-profile__hero,
    .mr-company-profile__section,
    .mr-company-profile__offering-card {
        box-shadow: none;
    }

    .mr-company-profile__offering-link {
        color: #000000;
        background: transparent;
        border-color: #000000;
    }
}

/** ==========================================================================
    17. * شبکه خدمات و محصولات شرکت
 * Namespace: mr-company-profile
 */

.mr-company-profile__offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.mr-company-profile__offering-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7e9ed;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(20, 35, 50, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.mr-company-profile__offering-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(20, 35, 50, 0.1);
}

.mr-company-profile__offering-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f5f7;
    text-decoration: none;
}

.mr-company-profile__offering-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mr-company-profile__offering-card:hover
.mr-company-profile__offering-image {
    transform: scale(1.035);
}

.mr-company-profile__offering-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #99a2ad;
    background:
        linear-gradient(
            135deg,
            #f7f8fa 0%,
            #edf0f3 100%
        );
}

.mr-company-profile__offering-placeholder .dashicons {
    width: 48px;
    height: 48px;
    font-size: 48px;
}

.mr-company-profile__offering-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.mr-company-profile__offering-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.7;
}

.mr-company-profile__offering-title a {
    color: #1d2939;
    text-decoration: none;
}

.mr-company-profile__offering-title a:hover {
    color: #087f5b;
}

.mr-company-profile__offering-excerpt {
    margin-bottom: 16px;
    color: #667085;
    font-size: 14px;
    line-height: 1.9;
}

.mr-company-profile__offering-link {
    margin-top: auto;
    color: #087f5b;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 991px) {
    .mr-company-profile__offerings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .mr-company-profile__offerings-grid {
        grid-template-columns: 1fr;
    }
}

