/*
 * // File: /assets/css/company.css
 *
 * Developed by Noor United Est.
 *
 * Website: www.noor-united.com
 *
 * Kuwait
 * Tel: +965-22280990
 * Mobile: +965-60005677
 *
 * Bahrain
 * Tel: +973-16612020 / +973-16613030
 * Mobile: +973-37616010
 *
 * Copyright (c) Noor United Est.
 * All rights reserved.
 */

:root {
    --primary: #c7922b;
    --primary-dark: #9f6f18;
    --primary-soft: #f8edd6;
    --dark: #111111;
    --muted: #667085;
    --bg: #f7f5f1;
    --card: #ffffff;
    --border: #eadfca;
}

.profile-table-list {
    display: grid;
    gap: 10px;
}

.profile-table-row {
    display: grid;
    grid-template-columns: 95px 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fbf7ee;
}

.profile-table-row span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.profile-table-row strong {
    color: var(--dark);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.7;
}

.company-profile-page {
    padding-top: 28px;
    padding-bottom: 50px;
}

.business-profile-card,
.profile-section,
.company-question-box,
.company-profile-hero {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 30px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.business-cover,
.company-profile-cover,
.company-gallery-item {
    background: #fbf7ee;
    overflow: hidden;
}

.business-cover {
    height: 230px;
}

.company-profile-cover {
    width: 100%;
    height: 260px;
}

.business-cover img,
.company-profile-cover img,
.company-gallery-item img,
.profile-gallery-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.business-main,
.company-profile-main {
    position: relative;
    padding: 64px 24px 28px;
    text-align: center;
}

.business-logo,
.company-profile-logo {
    position: absolute;
    top: -52px;
    left: 50%;
    width: 104px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    overflow: hidden;
    border: 6px solid #ffffff;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-dark);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.business-logo img,
.company-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-logo span,
.company-profile-logo span {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    font-size: 38px;
    font-weight: 900;
}

.business-badge,
.company-profile-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 900;
}

.business-main h1,
.company-profile-main h1 {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.3;
}

.business-main p,
.company-profile-main p,
.profile-section p {
    margin: 0 auto 22px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.business-actions,
.company-profile-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.business-actions a,
.company-profile-actions a {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 900;
}

.business-actions a.primary,
.business-actions a:hover,
.company-profile-actions a.primary,
.company-profile-actions a:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
}

.profile-section {
    margin-top: 18px;
    padding: 24px;
}

.profile-section h2,
.company-question-box h2 {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: 25px;
    font-weight: 900;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list span {
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.tag-list.light span {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.details-grid,
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.details-grid div,
.profile-info-card {
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.details-grid small,
.profile-info-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
}

.details-grid strong,
.profile-info-card strong {
    color: var(--dark);
    font-size: 16px;
    line-height: 1.7;
}

.company-question-box,
.company-ask-box {
    margin-top: 22px;
    padding: 24px;
    background: linear-gradient(135deg, #111111, #050505);
    border: 1px solid rgba(199, 146, 43, 0.45);
    color: #ffffff;
}

.company-question-box {
    text-align: center;
}

.company-question-box h2,
.company-ask-box h2 {
    color: #ffffff;
}

.company-question-box p,
.company-ask-box p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.company-question-box a,
.company-ask-box a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 16px;
    background: #ffffff;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 900;
}

.company-ask-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-radius: 28px;
}

.profile-gallery-list,
.company-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.profile-gallery-list img,
.company-gallery-item {
    height: 210px;
    border-radius: 22px;
}

.company-gallery-section {
    margin-top: 28px;
}

.profile-cover-fallback {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 72px;
    font-weight: 900;
}

.company-logo-card {
    display: flex;
    flex-direction: column;
    min-height: 430px;
    height: 100%;
}

.company-logo-card .company-info {
    min-height: 430px;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    text-align: center;
    padding: 34px 22px 22px;
}

.company-logo-card .company-logo-only {
    position: static !important;
    transform: none !important;
    width: 105px !important;
    height: 105px !important;
    margin: 0 auto 22px !important;
    border-radius: 50% !important;
    background: var(--primary-soft);
    overflow: hidden;
}

.company-logo-card .company-logo-only img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-logo-card .company-logo-only span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 34px;
    font-weight: 700;
    color: var(--primary-dark);
}

.company-logo-card .company-info p {
    flex: 1 1 auto;
}

.company-logo-card .company-actions {
    margin-top: auto !important;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 18px;
}

@media (max-width: 600px) {
    .profile-table-row {
        grid-template-columns: 82px 1fr;
        padding: 13px 14px;
    }

    .profile-table-row span {
        font-size: 12px;
    }

    .profile-table-row strong {
        font-size: 14px;
    }

    .company-profile-cover,
    .profile-cover-fallback {
        height: 220px;
    }

    .company-profile-main,
    .business-main {
        padding: 58px 20px 24px;
    }

    .company-profile-main h1,
    .business-main h1 {
        font-size: 28px;
    }

    .company-profile-actions,
    .business-actions,
    .profile-info-grid,
    .details-grid,
    .company-gallery-grid,
    .profile-gallery-list {
        grid-template-columns: 1fr;
    }

    .company-ask-box {
        display: block;
        text-align: center;
    }

    .company-ask-box a {
        width: 100%;
        margin-top: 18px;
    }

    .company-gallery-item {
        height: 210px;
    }
}