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

/* =====================================================================
   BusinessCard_v2 — DIAGONAL SPLIT-SCREEN
   وکیل دادگستری — luxury gold (#c8a24a) on deep charcoal (#15171c)
   Left: full-height portrait panel · Right: charcoal info panel,
   separated by a skewed clip-path divider. Gold hairlines throughout.
   ===================================================================== */

.bcv2-root {
    --gold: #c8a24a;
    --gold-soft: #d8bd78;
    --gold-dim: rgba(200, 162, 74, .38);
    --charcoal: #15171c;
    --charcoal-2: #1c1f26;
    --charcoal-3: #23262f;
    --ink: #e8e6e0;
    --ink-dim: #a7a8ac;
    --hair: rgba(200, 162, 74, .22);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--charcoal);
    color: var(--ink);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

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

/* page-card-shell from base is a white card; neutralize for full-bleed */
.bcv2-root { margin: 0; }

/* ---- Stage : the split ---- */
.bcv2-stage {
    position: relative;
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 100vh;
    background: var(--charcoal);
    overflow: hidden;
}

/* ===== Portrait panel ===== */
.bcv2-portrait {
    position: relative;
    overflow: hidden;
    background: #0d0e12;
    /* diagonal cut on the inner (left, since RTL) edge */
    clip-path: polygon(0 0, 100% 0, calc(100% - 90px) 100%, 0 100%);
    margin-left: -1px;
}

.bcv2-portrait-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(18%) contrast(1.04) brightness(.92);
    transition: transform 1.4s cubic-bezier(.16,.84,.34,1), filter .8s ease;
}
.bcv2-portrait:hover .bcv2-portrait-img {
    transform: scale(1.045);
    filter: grayscale(0%) contrast(1.06) brightness(.96);
}

.bcv2-portrait-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13,14,18,.10) 0%, rgba(13,14,18,.05) 40%, rgba(13,14,18,.72) 100%),
        linear-gradient(255deg, rgba(21,23,28,.55) 0%, rgba(21,23,28,0) 38%);
    pointer-events: none;
}

/* gold hairline tracing the diagonal */
.bcv2-portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(255deg, var(--gold) 0 1.5px, transparent 1.5px);
    -webkit-mask: linear-gradient(255deg, #000 0 2px, transparent 2px);
    opacity: 0;
}

.bcv2-monogram {
    position: absolute;
    top: 26px;
    right: 26px;
    z-index: 3;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .02em;
    background: rgba(13,14,18,.35);
    backdrop-filter: blur(2px);
}

.bcv2-portrait-foot {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
}
.bcv2-portrait-rule {
    display: inline-block;
    width: 46px;
    height: 1.5px;
    background: var(--gold);
}
.bcv2-portrait-est {
    color: var(--gold-soft);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ===== Info panel ===== */
.bcv2-info {
    position: relative;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(200,162,74,.06) 0%, transparent 55%),
        linear-gradient(180deg, var(--charcoal-2) 0%, var(--charcoal) 100%);
    display: flex;
    align-items: stretch;
}
/* faint gold vertical hairline along the seam */
.bcv2-info::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--gold-dim) 18%, var(--gold-dim) 82%, transparent);
}

.bcv2-info-inner {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 64px 56px 48px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.16,.84,.34,1);
}
.bcv2-info-inner.bcv2-in { opacity: 1; transform: none; }

/* ---- identity ---- */
.bcv2-id { display: flex; flex-direction: column; }
.bcv2-eyebrow {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.bcv2-name {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 2.85rem);
    font-weight: 800;
    line-height: 1.12;
    color: #fff;
    letter-spacing: -.01em;
}
.bcv2-role {
    margin-top: 12px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--gold-soft);
}
.bcv2-org {
    margin-top: 4px;
    font-size: .9rem;
    color: var(--ink-dim);
    font-weight: 500;
}
.bcv2-tagline {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--hair);
    font-size: .95rem;
    line-height: 1.7;
    color: var(--ink);
    font-style: italic;
}
.bcv2-bio {
    margin-top: 14px;
    font-size: .88rem;
    line-height: 1.85;
    color: var(--ink-dim);
}
.bcv2-bio p { margin: 0 0 .6em; }
.bcv2-bio p:last-child { margin-bottom: 0; }

/* ---- contact rows ---- */
.bcv2-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bcv2-contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 4px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: color .25s ease, padding-right .25s ease;
}
.bcv2-contact-row:last-child { border-bottom: none; }
a.bcv2-contact-row:hover { color: var(--gold-soft); padding-right: 8px; }
.bcv2-contact-ico {
    flex: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: .9rem;
    border: 1px solid var(--hair);
    border-radius: 8px;
}
.bcv2-contact-val {
    font-size: .9rem;
    font-weight: 500;
    word-break: break-word;
}
.bcv2-contact-row[dir="ltr"] .bcv2-contact-val { font-family: 'Vazirmatn', Tahoma, sans-serif; }

/* ---- block titles (gold rule) ---- */
.bcv2-block { display: flex; flex-direction: column; gap: 16px; }
.bcv2-block-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-soft);
}
.bcv2-block-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-dim), transparent);
}

/* ---- highlights : gold-underlined list ---- */
.bcv2-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bcv2-hl {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--hair);
    transition: background .25s ease;
}
.bcv2-hl:last-child { border-bottom: none; }
.bcv2-hl:hover { background: rgba(200,162,74,.05); }
.bcv2-hl-ico {
    flex: none;
    color: var(--gold);
    font-size: 1rem;
    margin-top: 2px;
}
.bcv2-hl-body { display: flex; flex-direction: column; gap: 4px; }
.bcv2-hl-title {
    font-size: .96rem;
    font-weight: 700;
    color: #fff;
}
.bcv2-hl-text {
    font-size: .82rem;
    line-height: 1.7;
    color: var(--ink-dim);
}

/* ---- links : understated rows ---- */
.bcv2-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bcv2-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--ink);
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.bcv2-link:hover {
    border-color: var(--gold-dim);
    background: rgba(200,162,74,.06);
    transform: translateX(-3px);
    color: #fff;
}
.bcv2-link-ico { color: var(--gold); font-size: .95rem; width: 18px; text-align: center; }
.bcv2-link-title { flex: 1; font-size: .92rem; font-weight: 600; }
.bcv2-link-arrow { color: var(--ink-dim); font-size: .72rem; transition: transform .25s ease, color .25s ease; }
.bcv2-link:hover .bcv2-link-arrow { color: var(--gold); transform: translateX(-3px); }

/* ---- gallery ---- */
.bcv2-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.bcv2-gitem {
    position: relative;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--hair);
    aspect-ratio: 4 / 3;
}
.bcv2-gitem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(15%);
    transition: transform .6s cubic-bezier(.16,.84,.34,1), filter .4s ease;
}
.bcv2-gitem:hover img { transform: scale(1.07); filter: grayscale(0%); }
.bcv2-gitem figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 18px 12px 8px;
    font-size: .74rem;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(13,14,18,.85));
}

/* ---- footer : save-contact + socials anchored bottom ---- */
.bcv2-foot {
    margin-top: auto;
    padding-top: 26px;
    border-top: 1px solid var(--hair);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.bcv2-save {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 700;
    color: #15171c;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    box-shadow: 0 8px 22px rgba(200,162,74,.28);
    transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
}
.bcv2-save i { font-size: 1rem; }
.bcv2-save:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(200,162,74,.4); filter: brightness(1.04); }
.bcv2-save:active { transform: translateY(0); }

.bcv2-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bcv2-social {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gold-soft);
    border: 1px solid var(--hair);
    text-decoration: none;
    font-size: 1rem;
    transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
.bcv2-social:hover {
    color: #15171c;
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* =====================================================================
   Responsive — stack the diagonal: portrait on top, info below
   ===================================================================== */
@media (max-width: 900px) {
    .bcv2-stage {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .bcv2-portrait {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
        min-height: 56vh;
        margin-left: 0;
        margin-bottom: -1px;
    }
    .bcv2-portrait-img { object-position: center 22%; }
    .bcv2-info::before { display: none; }
    .bcv2-info-inner {
        padding: 40px 28px 44px;
        max-width: 620px;
    }
}

@media (max-width: 480px) {
    .bcv2-portrait { min-height: 48vh; }
    .bcv2-info-inner { padding: 34px 20px 38px; gap: 26px; }
    .bcv2-gallery { grid-template-columns: 1fr 1fr; }
    .bcv2-foot { flex-direction: column; align-items: stretch; }
    .bcv2-save { justify-content: center; }
    .bcv2-socials { justify-content: center; }
    .bcv2-monogram { width: 48px; height: 48px; font-size: 1.05rem; top: 18px; right: 18px; }
}
