/* company-profile.css — Business Profile পেজের ডিজাইন। document.css-এর
   .doc-sheet কাঠামোর উপর বসে থাকে, কিন্তু নিজের একটা স্বতন্ত্র "document"
   ফিল দেয় — জেনারিক পেজ-হেডিং স্টাইল পুনর্ব্যবহার করে না। */

.cp-sheet { max-width: 900px; padding: 0 !important; overflow: hidden; }

/* ---------- Cover block ---------- */
.cp-cover {
    background: var(--c-surface-dark); color: #fff;
    padding: 48px 44px 40px; position: relative; overflow: hidden;
}
.cp-cover::after {
    content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px;
    border-radius: 50%; background: var(--c-primary); opacity: .15;
}
.cp-cover-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-gold, #B8935A); font-weight: 700; }
.cp-cover-brand { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.cp-cover-brand img { height: 46px !important; width: 46px !important; max-width: 46px !important; max-height: 46px !important; object-fit: contain; flex: none; display: block; }
.cp-cover-brand .name { font-family: var(--f-display); font-size: 30px; font-weight: 800; }
.cp-cover-tagline { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 6px; max-width: 46ch; }
.cp-cover-meta { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 18px; }

.cp-cover-founder { display: flex; align-items: center; gap: 16px; margin-top: 32px; position: relative; z-index: 1; }
.cp-cover-founder-photo {
    width: 84px; height: 100px; object-fit: cover; border-radius: 6px;
    border: 2px solid var(--c-gold, #B8935A); flex: none; background: rgba(255,255,255,.08);
}
.cp-cover-founder-name { font-size: 16px; font-weight: 700; }
.cp-cover-founder-title { font-size: 12px; color: var(--c-gold, #B8935A); margin-top: 2px; }

.cp-body { padding: 40px 44px 48px; }

/* ---------- Section headings — colored bar + rule, like a real report ---------- */
.cp-section { margin-bottom: 40px; break-inside: avoid; page-break-inside: avoid; }
.cp-section h3 {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--f-display); font-size: 17px; font-weight: 800; color: var(--c-ink);
    margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--c-line);
}
.cp-section h3::before { content: ''; width: 5px; height: 20px; background: var(--c-primary); border-radius: 2px; flex: none; }

/* সেকশন-গ্রুপের পর প্রিন্টে নতুন পেজ শুরু হয় — একটানা স্ক্রল-ডাম্প এর বদলে
   আসল ডকুমেন্টের মতো পেজ-বাই-পেজ পেসিং তৈরি করে। */
.cp-page-break { break-before: page; page-break-before: always; }

.cp-cap-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.cp-cap-badge {
    background: var(--c-primary-tint, #FBE4E1); color: var(--c-primary-dark, #B4151B);
    font-size: 12px; font-weight: 700; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--c-primary-dark, #B4151B);
}

.cp-intro { font-size: 15px; line-height: 1.85; color: var(--c-ink); }

/* ---------- Company Snapshot — a real table, not a bare flex list ---------- */
.cp-detail-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--c-line); border-radius: 8px; overflow: hidden; }
.cp-detail-row { display: flex; padding: 0; border-bottom: 1px solid var(--c-line); border-right: 1px solid var(--c-line); }
.cp-detail-row:nth-child(odd) { background: var(--c-surface); }
.cp-detail-row span { flex: none; width: 42%; padding: 11px 14px; font-size: 12px; font-weight: 700; color: var(--c-ink-soft); border-right: 1px solid var(--c-line); }
.cp-detail-row strong { flex: 1; padding: 11px 14px; font-size: 13px; text-align: left; }

.cp-location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cp-location { background: var(--c-surface); border-radius: 10px; padding: 18px; border-left: 3px solid var(--c-primary); }
.cp-location h4 { font-size: 14px; margin-bottom: 6px; }
.cp-location p { font-size: 13px; color: var(--c-ink-soft); margin: 0; line-height: 1.6; }

.cp-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cp-product .product-img { aspect-ratio: 1/1; border-radius: 8px; }
.cp-product-name { font-size: 12px; margin-top: 6px; text-align: center; color: var(--c-ink-soft); }

.cp-license-img { max-width: 340px; width: 100%; border-radius: 8px; border: 1px solid var(--c-line); box-shadow: var(--shadow-card); }

/* ---------- Founder Profile (detail section, separate from the cover mini-version) ---------- */
.cp-founder-row { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.cp-founder-photo { width: 120px; height: 144px; object-fit: cover; border-radius: 8px; border: 2px solid var(--c-gold, #B8935A); flex: none; }
.cp-founder-name { display: block; font-size: 18px; font-weight: 800; }
.cp-founder-title { font-size: 13px; color: var(--c-primary); font-weight: 700; margin-top: 2px; }
.cp-highlight-box { margin-top: 14px; background: var(--c-surface); border-radius: 8px; padding: 14px 18px; }
.cp-highlight-box h5 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-ink-soft); margin-bottom: 8px; }
.cp-highlight-list { padding-left: 18px; font-size: 13px; color: var(--c-ink); line-height: 1.9; }

.cp-org-chart { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cp-org-box { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px; padding: 12px 22px; text-align: center; min-width: 240px; }
.cp-org-box.cp-org-lead { border-color: var(--c-primary); background: var(--c-primary-tint, #FBE4E1); }
.cp-org-box strong { display: block; font-size: 14px; }
.cp-org-box div { font-size: 12px; color: var(--c-ink-soft); margin-top: 3px; }
.cp-org-arrow { color: var(--c-primary); font-size: 16px; line-height: 1.4; }

.cp-timeline { border-left: 2px solid var(--c-primary); padding-left: 18px; display: flex; flex-direction: column; gap: 16px; }
.cp-timeline-row { position: relative; }
.cp-timeline-row::before { content: ''; position: absolute; left: -23px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--c-primary); }
.cp-timeline-row strong { display: block; font-size: 12px; color: var(--c-primary); text-transform: uppercase; letter-spacing: .04em; }
.cp-timeline-row span { font-size: 14px; }

.cp-swot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cp-swot-box { border-radius: 8px; padding: 16px; border: 1.5px solid; }
.cp-swot-box h4 { font-size: 12px; letter-spacing: .06em; margin-bottom: 10px; font-family: var(--f-display); }
.cp-swot-box ul { padding-left: 18px; font-size: 13px; line-height: 1.75; }
.cp-swot-st { background: #E4F3E7; border-color: #1E7A34; } .cp-swot-st h4 { color: #1E7A34; }
.cp-swot-we { background: #FBF0DD; border-color: #9A6B1E; } .cp-swot-we h4 { color: #9A6B1E; }
.cp-swot-op { background: #E4EEF3; border-color: #1E5C7A; } .cp-swot-op h4 { color: #1E5C7A; }
.cp-swot-th { background: #FBE4E1; border-color: var(--c-primary-dark, #B4151B); } .cp-swot-th h4 { color: var(--c-primary-dark, #B4151B); }

@media (max-width: 640px) {
    .cp-swot-grid { grid-template-columns: 1fr; }
    .cp-founder-row { flex-direction: column; }
    .cp-detail-grid { grid-template-columns: 1fr; }
    .cp-location-grid { grid-template-columns: 1fr; }
    .cp-product-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-cover { padding: 36px 22px 32px; }
    .cp-body { padding: 28px 22px 36px; }
    .cp-cover-brand .name { font-size: 24px; }
}

@media print {
    .cp-no-print { display: none !important; }
    .cp-cover::after { display: none; }
    .cp-product-grid { grid-template-columns: repeat(4, 1fr); }
    .cp-location-grid { grid-template-columns: 1fr 1fr; }
    .cp-detail-grid { grid-template-columns: 1fr 1fr; }

    /* কিছু PDF-এক্সপোর্ট টুল/ব্রাউজার ব্যাকগ্রাউন্ড কালার প্রিন্ট করে না —
       তখন সাদা টেক্সট সাদা পেজে অদৃশ্য হয়ে যায়। তাই print-এ কভারের গাঢ়
       ব্যাকগ্রাউন্ড+সাদা টেক্সট ডিজাইনের উপর নির্ভর না করে, একটা হালকা
       ব্যাকগ্রাউন্ড + গাঢ় টেক্সট ভার্সনে পাল্টে দেওয়া হয় — ব্যাকগ্রাউন্ড
       আসুক বা না আসুক, টেক্সট সবসময় পড়া যাবে। */
    .cp-cover {
        background: #fff !important; color: var(--c-ink) !important;
        border-bottom: 3px solid var(--c-primary); padding-bottom: 24px !important;
    }
    .cp-cover-tagline { color: var(--c-ink-soft) !important; }
    .cp-cover-meta { color: var(--c-ink-soft) !important; }
    .cp-cover-eyebrow { color: var(--c-primary) !important; }
    .cp-cover-founder-title { color: var(--c-primary) !important; }
    .cp-cover-founder-photo { border-color: var(--c-primary) !important; }
}
