/* =====================================================
   BAGHASHTAG HOMEPAGE
===================================================== */

.bh-homepage,
.bh-homepage * {
    box-sizing: border-box;
}

.bh-homepage {
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    color: #1e272e;
}

.bh-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 36px 20px 70px;
}

/* HERO */
.bh-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f6f7f9 100%);
    border: 1px solid #eeeeee;
    border-radius: 28px;
    padding: 56px 36px;
    text-align: center;
    margin-bottom: 34px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.04);
}

.bh-title {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.065em;
    color: #111111;
}

.bh-highlight {
    color: #ff4757;
}

.bh-desc {
    max-width: 820px;
    margin: 0 auto 28px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.75;
}

/* SWITCH */
.bh-switch {
    display: inline-flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.bh-btn {
    border: none;
    background: transparent;
    color: #111111;
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.22s ease;
    font-family: 'Poppins', sans-serif;
}

.bh-btn:hover,
.bh-btn.active {
    background: #ff4757;
    color: #ffffff;
}

/* PANELS */
.bh-panel {
    animation: bhFadeIn 0.25s ease;
}

.bh-panel[hidden] {
    display: none !important;
}

@keyframes bhFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* COUNTER */
.bh-counter-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    background: #111111;
    color: #ffffff;
    border-radius: 26px;
    padding: 28px 32px;
    margin-bottom: 24px;
}

.bh-counter-copy strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.bh-counter-copy span {
    color: #d1d5db;
    line-height: 1.6;
}

.bh-counter-num {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    color: #ff4757;
    white-space: nowrap;
}

/* STATS */
.bh-stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.bh-stat-box {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 22px;
    padding: 24px;
    text-align: center;
}

.bh-stat-val {
    display: block;
    color: #ff4757;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
}

.bh-stat-lbl {
    display: block;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
}

/* TICKER */
.bh-ticker-wrap {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 999px;
    margin: 24px 0;
}

.bh-ticker-content {
    display: flex;
    gap: 24px;
    white-space: nowrap;
    padding: 14px 20px;
    animation: bhTicker 32s linear infinite;
}

.bh-ticker-item {
    font-weight: 700;
    color: #1e272e;
}

.bh-ticker-dot {
    color: #ff4757;
    margin-right: 10px;
}

@keyframes bhTicker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* SECTION */
.bh-section-title {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.05em;
    font-weight: 800;
    margin: 0 0 14px;
    color: #111111;
}

.bh-section-desc {
    max-width: 780px;
    color: #4b5563;
    line-height: 1.75;
    margin: 0 0 24px;
}

.bh-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* SERVICE CARDS */
.bh-services-grid,
.bh-home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 26px 0 38px;
}

.bh-service-card,
.bh-home-category-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    padding: 22px;
    transition: 0.22s ease;
    overflow: hidden;
}

.bh-service-card:hover,
.bh-home-category-card:hover {
    transform: translateY(-4px);
    border-color: #ff4757;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.bh-service-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.bh-service-title,
.bh-home-category-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800;
    color: #111111;
}

.bh-service-desc,
.bh-home-category-desc {
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
}

.bh-home-category-image {
    margin: -22px -22px 16px;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    overflow: hidden;
}

.bh-home-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA */
.bh-cta-box {
    background: #111111;
    color: #ffffff;
    border-radius: 28px;
    padding: 34px;
    margin: 34px 0;
    text-align: center;
}

.bh-cta-box h2 {
    color: #ffffff;
    margin: 0 0 12px;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.bh-cta-box p {
    color: #d1d5db;
    max-width: 760px;
    margin: 0 auto 18px;
    line-height: 1.75;
}

.bh-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff4757;
    color: #ffffff !important;
    border-radius: 14px;
    padding: 14px 20px;
    font-weight: 800;
    text-decoration: none !important;
    border: none;
}

.bh-cta-outline {
    background: #ffffff;
    color: #111111 !important;
    border: 1px solid #eeeeee;
}

/* TIMELINE */
.bh-chat-wrapper {
    position: relative;
    margin: 44px 0;
    padding: 34px 0;
}

.bh-chat-header {
    text-align: center;
    margin-bottom: 34px;
}

.bh-chat-title {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.bh-chat-subtitle {
    color: #4b5563;
    margin: 0;
}

.bh-timeline-line {
    position: absolute;
    left: 50%;
    top: 130px;
    bottom: 30px;
    width: 2px;
    background: #eeeeee;
    transform: translateX(-50%);
}

.bh-msg-row {
    position: relative;
    display: flex;
    margin: 22px 0;
    opacity: 0;
    transform: translateY(14px);
    transition: 0.4s ease;
}

.bh-msg-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.bh-msg-row.customer {
    justify-content: flex-start;
}

.bh-msg-row.brand {
    justify-content: flex-end;
}

.bh-msg-box {
    width: min(520px, 46%);
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.bh-msg-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #ff4757;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.bh-msg-title {
    font-size: 19px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 8px;
}

.bh-msg-desc {
    color: #4b5563;
    line-height: 1.65;
}

.bh-tag {
    display: inline-flex;
    margin-top: 14px;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
}

/* REFERENCE GALLERY */
.bh-home-refs {
    margin: 40px 0;
}

.bh-ref-toggle {
    margin-bottom: 22px;
}

.bh-ref-actions {
    text-align: center;
    margin-top: 22px;
}

.baghashtag-gallery-container {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 28px;
    padding: 28px;
    margin: 34px 0;
}

.baghashtag-intro-title {
    margin: 0 0 12px;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.baghashtag-intro-text {
    color: #4b5563;
    line-height: 1.75;
}

.baghashtag-highlight {
    color: #ff4757;
    font-weight: 800;
}

.baghashtag-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.baghashtag-tab-btn {
    border: 1px solid #eeeeee;
    background: #fafafa;
    color: #111111;
    border-radius: 999px;
    padding: 10px 15px;
    font-weight: 800;
    cursor: pointer;
}

.baghashtag-tab-btn.active,
.baghashtag-tab-btn:hover {
    background: #ff4757;
    color: #ffffff;
    border-color: #ff4757;
}

.baghashtag-grid,
#gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.baghashtag-item {
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f4f6;
}

.baghashtag-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RETAIL */
#bh-retail-results {
    margin-top: 24px;
}

.bh-loading-box {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    color: #4b5563;
    font-weight: 700;
}

/* DIVIDER */
.bh-divider {
    border: 0;
    height: 1px;
    background: #eeeeee;
    margin: 44px 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .bh-services-grid,
    .bh-home-category-grid,
    .baghashtag-grid,
    #gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bh-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bh-counter-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bh-msg-box {
        width: min(620px, 90%);
    }

    .bh-timeline-line {
        left: 18px;
    }

    .bh-msg-row,
    .bh-msg-row.customer,
    .bh-msg-row.brand {
        justify-content: flex-start;
        padding-left: 38px;
    }
}

@media (max-width: 768px) {
    .bh-wrapper {
        padding: 22px 14px 90px;
    }

    .bh-hero {
        padding: 34px 20px;
        border-radius: 22px;
    }

    .bh-desc {
        font-size: 15px;
    }

    .bh-switch {
        display: grid;
        width: 100%;
        border-radius: 20px;
    }

    .bh-btn {
        width: 100%;
        border-radius: 14px;
    }

    .bh-services-grid,
    .bh-home-category-grid,
    .baghashtag-grid,
    #gallery-grid,
    .bh-stats-row {
        grid-template-columns: 1fr;
    }

    .bh-counter-num {
        white-space: normal;
    }

    .bh-cta-box {
        padding: 26px 18px;
        border-radius: 22px;
    }

    .baghashtag-gallery-container {
        padding: 20px;
        border-radius: 22px;
    }

    .bh-msg-row {
        padding-left: 28px;
    }

    .bh-msg-box {
        width: 100%;
    }

    .bh-timeline-line {
        left: 10px;
    }
}