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

/* ============================================================
   BusinessCard_v1 — معمار / استودیو معماری
   Physical landscape card on a studio backdrop with a 3D flip.
   Minimal monochrome (ink black / warm grey) + one accent (terracotta).
   ============================================================ */

.bcv1-root {
    --ink: #16140f;
    --ink-soft: #3b372f;
    --paper: #f4f1ea;
    --paper-2: #eae5da;
    --line: #d7d0c2;
    --grey: #8c8475;
    --accent: #b9532e;       /* warm terracotta */
    --accent-deep: #8f3d20;
    --card-front: #1b1916;   /* ink card */
    --card-back: #f6f3ec;    /* paper card */
    --radius: 18px;
    --shadow: 0 30px 60px -22px rgba(22,20,15,.55);

    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(120% 80% at 50% -10%, #fbf9f4 0%, var(--paper) 42%, var(--paper-2) 100%);
    direction: rtl;
    min-height: 100%;
    padding: 0 0 56px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===================== STUDIO STAGE ===================== */
.bcv1-stage {
    position: relative;
    padding: 60px 18px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1600px;
}

/* soft studio floor / spotlight */
.bcv1-stage::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 64px;
    width: min(620px, 86%);
    height: 60px;
    transform: translateX(-50%);
    background: radial-gradient(60% 100% at 50% 50%, rgba(22,20,15,.22), transparent 70%);
    filter: blur(6px);
    z-index: 0;
}

.bcv1-cardwrap {
    position: relative;
    z-index: 1;
    width: min(560px, 92vw);
    aspect-ratio: 1.66 / 1;     /* credit-card landscape */
    cursor: pointer;
    transform-style: preserve-3d;
    outline: none;
}

.bcv1-cardwrap:focus-visible {
    box-shadow: 0 0 0 3px rgba(185,83,46,.35);
    border-radius: var(--radius);
}

/* the actual flipping element */
.bcv1-card {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform .9s cubic-bezier(.7,.03,.2,1);
    will-change: transform;
}

.bcv1-card.is-flipped {
    transform: rotateY(180deg);
}

.bcv1-face {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* ---------- FRONT ---------- */
.bcv1-front {
    background:
        linear-gradient(155deg, #211e19 0%, var(--card-front) 60%, #100e0b 100%);
    color: var(--paper);
}

.bcv1-front-grid {
    position: relative;
    height: 100%;
    padding: clamp(20px, 4.5vw, 34px);
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.bcv1-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1.5px solid rgba(244,241,234,.32);
}
.bcv1-corner-tl { top: 16px; right: 16px; border-left: none; border-bottom: none; }
.bcv1-corner-br { bottom: 16px; left: 16px; border-right: none; border-top: none; }

.bcv1-mono {
    position: absolute;
    top: clamp(18px, 4vw, 30px);
    left: clamp(20px, 4.5vw, 34px);
    width: clamp(46px, 11vw, 64px);
    height: clamp(46px, 11vw, 64px);
    display: grid;
    place-items: center;
    border: 1.5px solid var(--accent);
    border-radius: 14px;
    color: var(--accent);
    background: rgba(185,83,46,.08);
}
.bcv1-mono-mark {
    font-weight: 800;
    font-size: clamp(1.2rem, 3.6vw, 1.7rem);
    letter-spacing: .02em;
}

.bcv1-front-id {
    align-self: center;
    margin-top: 8px;
}
.bcv1-eyebrow {
    display: inline-block;
    font-size: .68rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.bcv1-name {
    margin: 0;
    font-size: clamp(1.5rem, 5.6vw, 2.3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
}
.bcv1-role {
    margin-top: 8px;
    font-size: clamp(.85rem, 2.6vw, 1rem);
    color: rgba(244,241,234,.82);
    font-weight: 500;
}
.bcv1-org {
    margin-top: 4px;
    font-size: .82rem;
    color: var(--grey);
    letter-spacing: .04em;
}

.bcv1-front-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(244,241,234,.12);
    padding-top: 14px;
}
.bcv1-tagline {
    font-size: .76rem;
    color: rgba(244,241,234,.6);
    max-width: 64%;
    line-height: 1.5;
}
.bcv1-flip-hint {
    font-size: .68rem;
    color: var(--accent);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: .9;
}
.bcv1-flip-hint i { animation: bcv1-spin 6s linear infinite; }
@keyframes bcv1-spin { to { transform: rotate(360deg); } }

/* ---------- BACK ---------- */
.bcv1-back {
    background:
        linear-gradient(160deg, #fdfbf6 0%, var(--card-back) 70%, #ece6da 100%);
    color: var(--ink);
    transform: rotateY(180deg);
}
.bcv1-back-grid {
    height: 100%;
    padding: clamp(20px, 4.5vw, 30px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 6px;
}
.bcv1-back-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}
.bcv1-back-name { font-weight: 800; font-size: clamp(1.05rem, 3.4vw, 1.3rem); }
.bcv1-back-role { font-size: .78rem; color: var(--accent); letter-spacing: .04em; }

.bcv1-contacts {
    list-style: none;
    margin: 0;
    padding: 10px 0 0;
    display: grid;
    gap: clamp(7px, 1.8vw, 11px);
    align-content: center;
}
.bcv1-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(.78rem, 2.3vw, .92rem);
}
.bcv1-contact i {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(22,20,15,.05);
    color: var(--accent);
    font-size: .8rem;
}
.bcv1-contact a, .bcv1-contact span { color: var(--ink-soft); text-decoration: none; word-break: break-all; }
.bcv1-contact a:hover { color: var(--accent); }

.bcv1-back-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    flex-wrap: wrap;
}
.bcv1-save {
    appearance: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: var(--paper);
    font-family: inherit;
    font-weight: 700;
    font-size: .82rem;
    padding: 11px 18px;
    border-radius: 50px;
    transition: background .2s, transform .2s;
}
.bcv1-save:hover { background: var(--accent); transform: translateY(-1px); }
.bcv1-save i { color: var(--accent); }
.bcv1-save:hover i { color: var(--paper); }

.bcv1-back-socials { display: inline-flex; gap: 8px; }
.bcv1-bsocial {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    text-decoration: none;
    transition: all .2s;
}
.bcv1-bsocial:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* ---------- flip CTA below the card ---------- */
.bcv1-flip-cta {
    margin-top: 26px;
    appearance: none;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(4px);
    color: var(--ink-soft);
    font-family: inherit;
    font-weight: 700;
    font-size: .82rem;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
}
.bcv1-flip-cta:hover { border-color: var(--accent); color: var(--accent); }
.bcv1-flip-cta i { color: var(--accent); }

/* ===================== PANEL ===================== */
.bcv1-panel {
    width: min(720px, 92vw);
    margin: 8px auto 0;
    display: grid;
    gap: clamp(28px, 5vw, 44px);
}

.bcv1-intro {
    text-align: center;
    color: var(--ink-soft);
    font-size: clamp(.92rem, 2.5vw, 1.05rem);
    line-height: 2;
    max-width: 56ch;
    margin: 4px auto 0;
}
.bcv1-intro :is(p) { margin: 0 0 .6em; }

/* portrait + cover strip */
.bcv1-strip {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 14px;
}
.bcv1-portrait, .bcv1-coverfig {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px -20px rgba(22,20,15,.4);
    background: var(--paper-2);
}
.bcv1-portrait { aspect-ratio: 3/4; }
.bcv1-coverfig { aspect-ratio: 16/10; }
.bcv1-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.bcv1-strip figure:hover img { transform: scale(1.05); }

/* block titles */
.bcv1-block-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .02em;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.bcv1-tindex {
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .1em;
}

/* highlights */
.bcv1-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.bcv1-hcard {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 18px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bcv1-hcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -22px rgba(22,20,15,.45);
    border-color: var(--accent);
}
.bcv1-hicon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(185,83,46,.1);
    color: var(--accent);
    font-size: 1.05rem;
    margin-bottom: 14px;
}
.bcv1-htitle { margin: 0 0 6px; font-size: .98rem; font-weight: 700; }
.bcv1-htext { margin: 0; font-size: .82rem; line-height: 1.8; color: var(--grey); }

/* links */
.bcv1-links { display: grid; gap: 10px; }
.bcv1-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    transition: all .22s;
}
.bcv1-link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateX(-3px); }
.bcv1-link-ico {
    width: 40px; height: 40px;
    flex: 0 0 40px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: rgba(22,20,15,.05);
    color: var(--accent);
}
.bcv1-link:hover .bcv1-link-ico { background: rgba(244,241,234,.12); }
.bcv1-link-title { flex: 1; font-weight: 600; font-size: .92rem; }
.bcv1-link-arrow { color: var(--grey); transition: transform .22s; }
.bcv1-link:hover .bcv1-link-arrow { color: var(--accent); transform: translateX(-4px); }

/* gallery */
.bcv1-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.bcv1-gitem {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--paper-2);
    box-shadow: 0 12px 28px -18px rgba(22,20,15,.4);
}
.bcv1-gitem img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; transition: transform .5s; }
.bcv1-gitem:hover img { transform: scale(1.07); }
.bcv1-gitem figcaption {
    padding: 9px 12px;
    font-size: .76rem;
    color: var(--ink-soft);
    background: #fff;
}

/* footer */
.bcv1-foot {
    text-align: center;
    color: var(--grey);
    font-size: .8rem;
    letter-spacing: .04em;
    padding-top: 8px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}
.bcv1-foot-dot { color: var(--accent); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 480px) {
    .bcv1-strip { grid-template-columns: 1fr; }
    .bcv1-back-actions { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .bcv1-card { transition: none; }
    .bcv1-flip-hint i { animation: none; }
    .bcv1-strip img, .bcv1-gitem img { transition: none; }
}
