/* ============================================================
   COMPANY PORTFOLIO — social-profile style, corporate blue accent
   (mirrors lawyer-portfolio.css layout, distinct accent + logo shape)
   ============================================================ */

.cp-page {
    background: #f6f7f9;
    padding-bottom: 4rem;
}

/* ===== COVER ===== */
.cp-cover {
    height: 220px;
    background-color: #ffffff;
    background-image: radial-gradient(rgba(37, 99, 235, 0.5) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f1f3f5;
}

/* ===== PROFILE BAR ===== */
.cp-profile-bar {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    margin-top: -56px;
    padding-bottom: 1.5rem;
    flex-wrap: wrap;
    position: relative;
}

.cp-logo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.cp-logo {
    width: 120px;
    height: 120px;
    border-radius: 22px;
    object-fit: cover;
    border: 5px solid #f6f7f9;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    background: #fff;
    display: block;
}

.cp-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
}

.cp-verified-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    border: 3px solid #f6f7f9;
}

.cp-identity {
    flex: 1;
    min-width: 240px;
    padding-bottom: 0.25rem;
}

.cp-name {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cp-verified-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

.cp-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.1rem;
    margin-bottom: 0.6rem;
}

.cp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.9rem;
}

.cp-meta-item svg {
    color: #2563eb;
    flex-shrink: 0;
}

.cp-meta-highlight {
    color: #1d4ed8;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.1);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
}

.cp-tagline {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.25rem 0 0 0;
    max-width: 560px;
}

/* ===== ACTIONS ===== */
.cp-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding-bottom: 0.25rem;
}

.cp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cp-cta-primary {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: white;
}

.cp-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
}

.cp-follow-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.cp-follow-link:hover {
    color: #1d4ed8;
}

.cp-follow-number {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

/* ===== STATS STRIP ===== */
.cp-stats-strip {
    display: flex;
    align-items: stretch;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1rem 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    flex-wrap: wrap;
}

.cp-stat {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
}

.cp-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

.cp-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cp-stat-divider {
    width: 1px;
    background: #e9ecef;
    margin: 0.25rem 0;
}

.cp-stat-price .cp-stat-value {
    color: #1d4ed8;
}

/* ===== BODY LAYOUT ===== */
.cp-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.cp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 1.5rem;
}

.cp-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cp-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.cp-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f3f5;
}

.cp-info-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cp-info-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.cp-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f8f9fa;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.cp-contact-row > div {
    flex: 1;
    min-width: 0;
}

.cp-contact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Overrides ".cp-contact-row > div { flex: 1; }" above - that generic rule
   is more specific (element + class beats a single class) and was stretching
   the icon box to fill the row, leaving empty space around the small SVG. */
.cp-contact-row > div.cp-contact-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.cp-contact-row-price .cp-info-value {
    color: #1d4ed8;
}

.cp-payout-type-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cp-payout-type-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.1);
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(29, 78, 216, 0.2);
}

.cp-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cp-chip {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.82rem;
}

.cp-about-text {
    color: #374161;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

.cp-empty-hint {
    color: #adb5bd;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== STATS GRID ===== */
.cp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.cp-stat-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.25s ease;
}

.cp-stat-item:hover {
    background: #f1f3f5;
    border-color: #2563eb;
    transform: translateY(-2px);
}

.cp-stat-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: white;
}

.cp-stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cp-stat-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.cp-stat-text {
    font-size: 0.78rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== TEAM ===== */
.cp-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.25rem;
}

.cp-team-card {
    display: block;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.cp-team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: #2563eb;
}

.cp-team-avatar-wrapper {
    margin-bottom: 0.85rem;
}

.cp-team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.cp-team-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
}

.cp-team-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.3rem 0;
}

.cp-team-specialization {
    font-size: 0.85rem;
    color: #1d4ed8;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.cp-team-experience {
    font-size: 0.8rem;
    color: #6c757d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .cp-layout {
        grid-template-columns: 1fr;
    }

    .cp-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .cp-cover {
        height: 150px;
    }

    .cp-profile-bar {
        margin-top: -40px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cp-logo {
        width: 92px;
        height: 92px;
    }

    .cp-identity {
        text-align: center;
    }

    .cp-name {
        justify-content: center;
    }

    .cp-meta-row,
    .cp-tagline {
        justify-content: center;
        text-align: center;
    }

    .cp-actions {
        width: 100%;
        justify-content: center;
    }

    .cp-stats-strip {
        flex-wrap: wrap;
    }

    .cp-stat-divider {
        display: none;
    }

    .cp-team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    .cp-team-grid {
        grid-template-columns: 1fr;
    }
}
