/* ============================================================
   Company Profile Page
   ============================================================ */

/* Heading wrapper — provides the anchor for the country badge */
.company-profile__header-wrap {
    position: relative;
}

/* Country / flag badge — top-right of the heading area */
.company-profile__country-badge {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.company-profile__flag {
    width: 24px;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
}

.company-profile__country {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary, #555);
}

/* Content section */
.company-profile {
    padding-block: var(--space-lg, 2rem);
}

/* Centred column for all profile content */
.company-profile__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 680px;
    margin: 0 auto;
}

/* Individual sections */
.company-profile__section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.company-profile__section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-heading, #1a1a2e);
    border-bottom: 2px solid var(--color-brand, #0057a8);
    padding-bottom: 0.4rem;
}

/* Profile body text */
.company-profile__body {
    line-height: 1.7;
    color: var(--color-text, #333);
}

/* Inline CTA (contact details gate) */
.page-cta--inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    background: var(--color-surface-alt, #f5f7fa);
    border: 1px solid var(--color-border, #dde3ec);
    border-radius: var(--border-radius, 8px);
    padding: 1.25rem 1.5rem;
    margin: 0;
}

.page-cta--inline .page-cta__text {
    margin: 0;
}

/* On small screens: stack country badge, stack inline CTA */
@media (max-width: 600px) {
    .company-profile__country-badge {
        position: static;
        margin-top: 0.5rem;
    }

    .page-cta--inline {
        flex-direction: column;
        align-items: flex-start;
    }
}
