@import url('/templates/_shared/fonts/fonts.css');

/* ============================================================
   BusinessCard_v6 — دندان‌پزشک
   Fixed vertical sidebar + scrolling detail column.
   Clinical white + calm teal / mint. Rounded medical-grade UI.
   ============================================================ */

.bc6-root {
    --bc6-teal: #0f9b8e;
    --bc6-teal-deep: #0a766c;
    --bc6-mint: #d9f3ef;
    --bc6-mint-soft: #eefaf8;
    --bc6-ink: #103a3a;
    --bc6-muted: #5d7574;
    --bc6-line: #e4eeec;
    --bc6-bg: #f4f8f7;
    --bc6-white: #ffffff;
    --bc6-shadow: 0 18px 50px rgba(15, 58, 58, .10);
    --bc6-shadow-sm: 0 8px 24px rgba(15, 58, 58, .07);
    --bc6-side-w: 320px;

    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    color: var(--bc6-ink);
    background:
        radial-gradient(1100px 600px at 100% -5%, var(--bc6-mint-soft), transparent 60%),
        var(--bc6-bg);
    line-height: 1.85;
    min-height: 100%;
}

.bc6-root *,
.bc6-root *::before,
.bc6-root *::after { box-sizing: border-box; }

.bc6-shell {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 0;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 100vh;
}

/* ===================== SIDEBAR ===================== */
.bc6-sidebar {
    flex: 0 0 var(--bc6-side-w);
    width: var(--bc6-side-w);
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    padding: 34px 26px;
    display: flex;
    flex-direction: column;
}

.bc6-sidebar-inner {
    background: var(--bc6-white);
    border: 1px solid var(--bc6-line);
    border-radius: 30px;
    box-shadow: var(--bc6-shadow);
    padding: 30px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.bc6-sidebar-inner::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 116px;
    background: linear-gradient(135deg, var(--bc6-teal), var(--bc6-teal-deep));
}

.bc6-monogram {
    position: relative;
    z-index: 2;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, .92);
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50px;
    margin-bottom: 18px;
}

.bc6-avatar-frame {
    position: relative;
    z-index: 2;
    width: 132px;
    height: 132px;
    margin-bottom: 16px;
}

.bc6-avatar {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bc6-white);
    box-shadow: 0 12px 28px rgba(15, 58, 58, .18);
    position: relative;
    z-index: 2;
}

.bc6-avatar-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed rgba(15, 155, 142, .35);
    animation: bc6-spin 22s linear infinite;
}

@keyframes bc6-spin { to { transform: rotate(360deg); } }

.bc6-avatar-badge {
    position: absolute;
    bottom: 4px;
    left: 6px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bc6-white);
    color: var(--bc6-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    box-shadow: 0 6px 16px rgba(15, 58, 58, .18);
}

.bc6-side-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 6px 0 4px;
    color: var(--bc6-ink);
}

.bc6-side-role {
    font-size: .92rem;
    font-weight: 700;
    color: var(--bc6-teal-deep);
}

.bc6-side-org {
    font-size: .82rem;
    color: var(--bc6-muted);
    margin-top: 2px;
}

.bc6-save-btn {
    margin-top: 22px;
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 13px 18px;
    border-radius: 16px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--bc6-teal), var(--bc6-teal-deep));
    box-shadow: 0 12px 26px rgba(15, 155, 142, .32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.bc6-save-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(15, 155, 142, .42); }
.bc6-save-btn:active { transform: translateY(0); }

.bc6-rail {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.bc6-rail-link {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bc6-teal-deep);
    background: var(--bc6-mint-soft);
    border: 1px solid var(--bc6-line);
    font-size: 1rem;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.bc6-rail-link:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--bc6-teal), var(--bc6-teal-deep));
    color: #fff;
}

/* ===================== DETAIL COLUMN ===================== */
.bc6-detail {
    flex: 1 1 auto;
    min-width: 0;
    padding: 34px 30px 40px 8px;
}

.bc6-cover {
    position: relative;
    height: 188px;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--bc6-shadow-sm);
    margin-bottom: 24px;
}

.bc6-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bc6-cover-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 118, 108, .58), rgba(15, 155, 142, .18));
}

/* intro */
.bc6-intro {
    background: var(--bc6-white);
    border: 1px solid var(--bc6-line);
    border-radius: 24px;
    box-shadow: var(--bc6-shadow-sm);
    padding: 26px 28px;
    margin-bottom: 22px;
}

.bc6-eyebrow {
    display: inline-block;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--bc6-teal-deep);
    background: var(--bc6-mint);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.bc6-tagline {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.6;
    margin: 0 0 12px;
    color: var(--bc6-ink);
}

.bc6-bio {
    font-size: .98rem;
    color: var(--bc6-muted);
    margin-bottom: 16px;
}

.bc6-quick { display: flex; flex-wrap: wrap; gap: 10px; }

.bc6-quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--bc6-teal-deep);
    background: var(--bc6-mint-soft);
    border: 1px solid var(--bc6-line);
    padding: 7px 15px;
    border-radius: 50px;
}

.bc6-quick-pill i { color: var(--bc6-teal); }

/* blocks */
.bc6-block {
    background: var(--bc6-white);
    border: 1px solid var(--bc6-line);
    border-radius: 24px;
    box-shadow: var(--bc6-shadow-sm);
    padding: 24px 28px 28px;
    margin-bottom: 22px;
}

.bc6-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--bc6-ink);
    margin: 0 0 20px;
}

.bc6-block-title i { color: var(--bc6-teal); }

.bc6-tline {
    width: 26px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--bc6-teal), var(--bc6-teal-deep));
    flex: 0 0 auto;
}

/* contact grid */
.bc6-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.bc6-contact {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--bc6-mint-soft);
    border: 1px solid var(--bc6-line);
    text-decoration: none;
    color: var(--bc6-ink);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.bc6-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--bc6-shadow-sm);
    border-color: rgba(15, 155, 142, .4);
}

.bc6-contact-ico {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bc6-teal), var(--bc6-teal-deep));
    color: #fff;
    font-size: 1.05rem;
}

.bc6-contact-meta { display: flex; flex-direction: column; min-width: 0; }
.bc6-contact-meta small { font-size: .72rem; color: var(--bc6-muted); font-weight: 700; }
.bc6-contact-meta b {
    font-size: .92rem;
    font-weight: 700;
    color: var(--bc6-ink);
    direction: ltr;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* services */
.bc6-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bc6-service {
    padding: 22px 20px;
    border-radius: 18px;
    background: var(--bc6-white);
    border: 1px solid var(--bc6-line);
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bc6-service::before {
    content: "";
    position: absolute;
    top: 0; right: 22px;
    width: 46px; height: 4px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, var(--bc6-teal), var(--bc6-teal-deep));
}

.bc6-service:hover {
    transform: translateY(-4px);
    box-shadow: var(--bc6-shadow);
    border-color: rgba(15, 155, 142, .38);
}

.bc6-service-ico {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bc6-mint);
    color: var(--bc6-teal-deep);
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.bc6-service-title { font-size: 1rem; font-weight: 800; margin: 0 0 6px; color: var(--bc6-ink); }
.bc6-service-text { font-size: .87rem; color: var(--bc6-muted); margin: 0; line-height: 1.8; }

/* links */
.bc6-links { display: flex; flex-direction: column; gap: 12px; }

.bc6-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--bc6-mint-soft);
    border: 1px solid var(--bc6-line);
    text-decoration: none;
    color: var(--bc6-ink);
    font-weight: 700;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.bc6-link:hover {
    transform: translateX(-4px);
    box-shadow: var(--bc6-shadow-sm);
    background: #fff;
}

.bc6-link-ico {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bc6-teal), var(--bc6-teal-deep));
    color: #fff;
    font-size: .98rem;
    flex: 0 0 auto;
}

.bc6-link-title { flex: 1; font-size: .95rem; }
.bc6-link-arrow { color: var(--bc6-teal); opacity: .65; transition: transform .16s ease; }
.bc6-link:hover .bc6-link-arrow { transform: translateX(-4px); opacity: 1; }

/* gallery */
.bc6-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.bc6-gitem {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--bc6-line);
    box-shadow: var(--bc6-shadow-sm);
    aspect-ratio: 1 / 1;
}

.bc6-gitem img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.bc6-gitem:hover img { transform: scale(1.07); }

.bc6-gitem figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px 12px 10px;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(to top, rgba(10, 118, 108, .85), transparent);
}

/* footer */
.bc6-foot {
    text-align: center;
    color: var(--bc6-muted);
    font-size: .85rem;
    font-weight: 700;
    padding: 18px 0 6px;
}

.bc6-foot-dot { margin: 0 6px; color: var(--bc6-teal); }

/* reveal on scroll */
.bc6-block, .bc6-intro {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease;
}

.bc6-block.bc6-in, .bc6-intro.bc6-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .bc6-shell { flex-direction: column; }
    .bc6-sidebar {
        position: static;
        width: 100%;
        flex-basis: auto;
        height: auto;
        padding: 20px 18px 0;
    }
    .bc6-sidebar-inner { width: 100%; }
    .bc6-rail { margin-top: 22px; }
    .bc6-detail { width: 100%; padding: 22px 18px 36px; }
}

@media (max-width: 560px) {
    .bc6-contact-grid,
    .bc6-services { grid-template-columns: 1fr; }
    .bc6-gallery { grid-template-columns: repeat(2, 1fr); }
    .bc6-tagline { font-size: 1.25rem; }
    .bc6-cover { height: 150px; }
}
