/* ═══════════════════════════════════════════════════
   هیرو سکشن گالری بابونه — hero-atom-babune.css
   ═══════════════════════════════════════════════════ */

.hab-hero {
    padding: 80px 0;
    direction: rtl;
    color: #2f2f2f;
    line-height: 1.55;
}

.hab-wrap {
    width: 100%;
    margin: 0;
    padding: 0 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 60px;
    box-sizing: border-box;
}

/* ── Content ── */
.hab-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hab-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    background: #ffffff;
    border: 1px solid #ece7df;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #6e6a62;
}

.hab-title {
    font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem);
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 16px;
    color: #2f2f2f;
}

.hab-title span {
    display: block;
    margin-top: 8px;
    line-height: 1.2;
    color: #b5874d;
    font-size: 0.88em;
}

.hab-text {
    font-size: 0.85rem;
    color: #6e6a62;
    max-width: 440px;
    margin-bottom: 28px;
}

.hab-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 15px 26px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
    box-sizing: border-box;
}

.hab-btn:focus-visible {
    outline: 3px solid rgba(181, 135, 77, .45);
    outline-offset: 3px;
}

.hab-btn.primary {
    background: #b5874d;
    color: #fff;
}

.hab-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(181, 135, 77, .22);
}

.hab-btn.secondary {
    background: #ffffff;
    color: #2f2f2f;
    border: 1px solid #e7dfd5;
}

.hab-btn.secondary:hover {
    background: #faf5ee;
}

/* ── Image ── */
.hab-image {
    display: flex;
    justify-content: center;
}

.hab-frame {
    position: relative;
    width: 100%;
}

.hab-frame img {
    width: 100%;
    border-radius: 22px;
    display: block;
}

/* ════════════════════════════════════════
   POINTERS
   ساختار: ● —— متن
   .pin  → position:absolute روی .hab-frame
           top/left = مرکز نقطه
   ════════════════════════════════════════ */

.pin {
    position: absolute;
    display: flex;
    flex-direction: row;
    /* ● — متن */
    align-items: center;
    gap: 0;
    z-index: 10;
    transform: translateY(-50%);
    left: var(--pin-left);
    top: var(--pin-top);
}

/* نقطه */
.pin .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b5874d;
    box-shadow: 0 0 0 3px rgba(181, 135, 77, .22);
    flex-shrink: 0;
    position: relative;
}

.pin .dot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px solid rgba(181, 135, 77, .38);
    animation: hab-pulse 2.4s ease-out infinite;
}

@keyframes hab-pulse {
    0% {
        transform: scale(1);
        opacity: .6;
    }

    70% {
        transform: scale(2.2);
        opacity: 0;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* خط */
.pin .line {
    width: 28px;
    height: 1px;
    background: #b5874d;
    flex-shrink: 0;
}

/* متن */
.pin .tag {
    background: #ffffff;
    border: 1px solid #ece7df;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #2f2f2f;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.pin:hover .tag {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(181, 135, 77, .14);
}

.pin:hover .dot {
    box-shadow: 0 0 0 5px rgba(181, 135, 77, .2);
}

/* ── flip: متن —— ● (label به چپ نقطه) ── */
.pin.pin--flip {
    flex-direction: row-reverse;
    /* متن | خط | ● */
    transform: translate(-100%, -50%);
    /* -100% کل عرض را به چپ می‌برد تا ● روی left باقی بماند */
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .hab-wrap {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hab-content {
        align-items: center;
    }

    .hab-title {
        font-size: 2.2rem;
    }

    .hab-text {
        font-size: 0.85rem;
        margin: 0 auto 24px;
    }
}

@media (max-width: 680px) {
    .hab-hero {
        padding: 44px 0;
    }

    .hab-wrap {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }

    .hab-image {
        order: -1;
    }

    .hab-title {
        font-size: 1.85rem;
        margin-bottom: 12px;
    }

    .hab-text {
        font-size: 0.82rem;
        max-width: 100%;
        margin: 0 auto 18px;
    }

    .hab-buttons {
        justify-content: center;
        flex-wrap: nowrap;
    }

    .hab-btn {
        min-width: 0;
        width: auto;
        padding: 13px 18px;
    }

    .pin {
        left: var(--pin-left-mobile, var(--pin-left));
        top: var(--pin-top-mobile, var(--pin-top));
        gap: 8px;
    }
}