/* ==========================================================
   company-profile — ملف الشركة: بيانات الترخيص + الأنشطة + العنوان + نسخة الرخصة (صور قابلة للتكبير + PDF)
   ========================================================== */

:root {
    --ebmnt1-company-profile-block-background: var(--ebmnt1-color-white);
    --ebmnt1-company-profile-block-border-color: var(--ebmnt1-color-helper-pink-soft);
    --ebmnt1-company-profile-block-shadow-color: var(--ebmnt1-color-shadow);
    --ebmnt1-company-profile-kicker-background: var(--ebmnt1-color-helper-mint);
    --ebmnt1-company-profile-kicker-text-color: var(--ebmnt1-color-helper-mint-strong);
    --ebmnt1-company-profile-title-color: var(--ebmnt1-color-helper-purple);
    --ebmnt1-company-profile-text-color: var(--ebmnt1-color-text);
    --ebmnt1-company-profile-block-title-color: var(--ebmnt1-color-helper-purple);
    --ebmnt1-company-profile-block-title-icon-color: var(--ebmnt1-color-primary);
    --ebmnt1-company-profile-fact-background: var(--ebmnt1-color-helper-pink-softer);
    --ebmnt1-company-profile-fact-icon-background: var(--ebmnt1-color-white);
    --ebmnt1-company-profile-fact-icon-color: var(--ebmnt1-color-secondary);
    --ebmnt1-company-profile-fact-label-color: var(--ebmnt1-color-text-soft);
    --ebmnt1-company-profile-fact-value-color: var(--ebmnt1-color-helper-purple-deep);
    --ebmnt1-company-profile-activity-icon-color: var(--ebmnt1-color-helper-mint-strong);
    --ebmnt1-company-profile-doc-border-color: var(--ebmnt1-color-helper-lavender);
    --ebmnt1-company-profile-doc-background: var(--ebmnt1-color-helper-pink-softer);
    --ebmnt1-company-profile-doc-zoom-background: var(--ebmnt1-color-primary);
    --ebmnt1-company-profile-doc-zoom-icon-color: var(--ebmnt1-color-white);
    --ebmnt1-company-profile-caption-color: var(--ebmnt1-color-text-soft);
    --ebmnt1-company-profile-lightbox-background: var(--ebmnt1-color-overlay);
    --ebmnt1-company-profile-lightbox-close-background: var(--ebmnt1-color-white);
    --ebmnt1-company-profile-lightbox-close-icon-color: var(--ebmnt1-color-primary);
    --ebmnt1-company-profile-font-size-title: clamp(1.5rem, 1.1rem + 2vw, 2.4rem);
    --ebmnt1-company-profile-font-size-block-title: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
    --ebmnt1-company-profile-font-size-text: clamp(0.9rem, 0.85rem + 0.3vw, 1.05rem);
    --ebmnt1-company-profile-font-size-small: clamp(0.78rem, 0.74rem + 0.25vw, 0.92rem);
}

.ebmnt1-company-profile__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7em;
}

.ebmnt1-company-profile__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.3em 1em;
    border-radius: 999px;
    background-color: var(--ebmnt1-company-profile-kicker-background);
    color: var(--ebmnt1-company-profile-kicker-text-color);
    font-size: var(--ebmnt1-company-profile-font-size-small);
    font-weight: 700;
}

.ebmnt1-company-profile__kicker i {
    color: var(--ebmnt1-company-profile-kicker-text-color);
}

.ebmnt1-company-profile__title {
    font-size: var(--ebmnt1-company-profile-font-size-title);
    color: var(--ebmnt1-company-profile-title-color);
}

.ebmnt1-company-profile__subtitle {
    max-width: 38rem;
    font-size: var(--ebmnt1-company-profile-font-size-text);
    color: var(--ebmnt1-company-profile-text-color);
}

.ebmnt1-company-profile__block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.1em;
    padding: clamp(1rem, 0.8rem + 1.4vw, 1.8rem);
    border-radius: 1.4rem;
    background-color: var(--ebmnt1-company-profile-block-background);
    border: 2px dashed var(--ebmnt1-company-profile-block-border-color);
    box-shadow: 0 0.9rem 1.6rem -1.2rem var(--ebmnt1-company-profile-block-shadow-color);
    text-align: start;
}

.ebmnt1-company-profile__block-title {
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-size: var(--ebmnt1-company-profile-font-size-block-title);
    color: var(--ebmnt1-company-profile-block-title-color);
}

.ebmnt1-company-profile__block-title i {
    color: var(--ebmnt1-company-profile-block-title-icon-color);
}

.ebmnt1-company-profile__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7em;
}

.ebmnt1-company-profile__fact {
    flex: 1 1 14rem;
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.7em 0.9em;
    border-radius: 1rem;
    background-color: var(--ebmnt1-company-profile-fact-background);
}

.ebmnt1-company-profile__fact-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background-color: var(--ebmnt1-company-profile-fact-icon-background);
    color: var(--ebmnt1-company-profile-fact-icon-color);
}

.ebmnt1-company-profile__fact-icon i {
    color: var(--ebmnt1-company-profile-fact-icon-color);
}

.ebmnt1-company-profile__fact-text {
    display: flex;
    flex-direction: column;
}

.ebmnt1-company-profile__fact-label {
    font-size: var(--ebmnt1-company-profile-font-size-small);
    color: var(--ebmnt1-company-profile-fact-label-color);
}

.ebmnt1-company-profile__fact-value {
    font-size: var(--ebmnt1-company-profile-font-size-text);
    color: var(--ebmnt1-company-profile-fact-value-color);
}

.ebmnt1-company-profile__columns {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.ebmnt1-company-profile__columns > .ebmnt1-company-profile__block {
    flex: 1;
}

.ebmnt1-company-profile__activities {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.ebmnt1-company-profile__activity {
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-size: var(--ebmnt1-company-profile-font-size-text);
    color: var(--ebmnt1-company-profile-text-color);
}

.ebmnt1-company-profile__activity i {
    color: var(--ebmnt1-company-profile-activity-icon-color);
}

.ebmnt1-company-profile__address {
    font-size: var(--ebmnt1-company-profile-font-size-text);
    color: var(--ebmnt1-company-profile-text-color);
}

.ebmnt1-company-profile__doc-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8em;
}

.ebmnt1-company-profile__note {
    font-size: var(--ebmnt1-company-profile-font-size-small);
    color: var(--ebmnt1-company-profile-caption-color);
}

.ebmnt1-company-profile__docs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2em;
}

.ebmnt1-company-profile__doc {
    width: min(100%, 22rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

.ebmnt1-company-profile__doc-frame {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 0.8rem;
    border: 2px dashed var(--ebmnt1-company-profile-doc-border-color);
    background-color: var(--ebmnt1-company-profile-doc-background);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.ebmnt1-company-profile__doc-frame:hover {
    transform: translateY(-0.25rem) rotate(-0.5deg);
}

.ebmnt1-company-profile__doc-image {
    width: 100%;
    height: auto;
}

.ebmnt1-company-profile__doc-zoom {
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background-color: var(--ebmnt1-company-profile-doc-zoom-background);
    color: var(--ebmnt1-company-profile-doc-zoom-icon-color);
}

.ebmnt1-company-profile__doc-zoom i {
    color: var(--ebmnt1-company-profile-doc-zoom-icon-color);
}

.ebmnt1-company-profile__caption {
    font-size: var(--ebmnt1-company-profile-font-size-small);
    color: var(--ebmnt1-company-profile-caption-color);
}

/* ---------- lightbox ---------- */

.ebmnt1-company-profile__lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ebmnt1-company-profile-lightbox-background);
    overflow: auto;
}

.ebmnt1-company-profile__lightbox[hidden] {
    display: none;
}

.ebmnt1-company-profile__lightbox-image {
    max-width: min(94vw, 60rem);
    max-height: 94vh;
    width: auto;
    height: auto;
    border-radius: 0.6rem;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
}

.ebmnt1-company-profile__lightbox-close {
    position: fixed;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background-color: var(--ebmnt1-company-profile-lightbox-close-background);
    color: var(--ebmnt1-company-profile-lightbox-close-icon-color);
    font-size: 1.2rem;
}

.ebmnt1-company-profile__lightbox-close i {
    color: var(--ebmnt1-company-profile-lightbox-close-icon-color);
}

@media (min-width: 768px) {
    .ebmnt1-company-profile__columns {
        flex-direction: row;
    }

    .ebmnt1-company-profile__docs {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }
}
