/* ============================================================
   V2 Service Spotlight Block
   Single-section block: stats counter bar with optional CTA
   ============================================================ */

/* ═══════════════════════════════════════════════════════════
   1. STATS BAR
   ═══════════════════════════════════════════════════════════ */
.hsb-stats {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    background-attachment: fixed;
}

.hsb-stats__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

/* Stats Header — icon + heading */
.hsb-stats__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.hsb-stats__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.hsb-stats__icon--default svg {
    display: block;
    width: 48px;
    height: 48px;
}

.hsb-stats__heading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hsb-stats__heading {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

/* Dark text theme */
.hsb-stats--dark .hsb-stats__heading {
  color: #002e5b;
}

.hsb-stats--dark .hsb-stats__number {
    color: #ea580c;
}

.hsb-stats--dark .hsb-stats__label {
    color: #040404;
}

.hsb-stats--dark .hsb-stats__description {
    color: #777777;
}

/* Decorative line under heading */
.hsb-stats__decorative-line {
    display: block;
    width: 35px;
    height: 6px;
    background-color: var(--secondary-clr, #ea580c);
    margin: 0 auto 20px;
    border-radius: 6px;
}

/* Stats Grid */
.hsb-stats__grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.hsb-stats__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    flex: 1;
    max-width: 280px;
}

.hsb-stats__number {
    font-size: 40px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.1;
    font-family: var(--heading-font, inherit);
}

.hsb-stats__label {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
}

.hsb-stats__description {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 4px 0 0;
    text-align: center;
    max-width: 240px;
}

/* CTA Button in Stats */
.hsb-stats__cta {
    margin-top: 40px;
}

.hsb-btn {
    display: inline-block;
    background-color: var(--hsb-btn-bg, #e8612d);
    color: var(--hsb-btn-text, #ffffff);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 40px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hsb-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: var(--hsb-btn-text, #ffffff);
}

/* ═══════════════════════════════════════════════════════════
   2. SIDE-TITLE LAYOUT
   ═══════════════════════════════════════════════════════════ */

/* Title left, counters right */
.hsb-stats--side-title .hsb-stats__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.hsb-stats--side-title .hsb-stats__header {
    flex: 0 0 auto;
    max-width: 200px;
    margin-bottom: 0;
    justify-content: flex-start;
}

.hsb-stats--side-title .hsb-stats__heading-wrapper {
    align-items: flex-start;
}

.hsb-stats--side-title .hsb-stats__decorative-line {
    margin: 0;
}

.hsb-stats--side-title .hsb-stats__grid {
    flex: 1;
}

/* Title Right Icon */
.hsb-stats__icon--right {
    flex-shrink: 0;
    width: 50px;
    height: 90px;
    object-fit: contain;
}

/* ═══════════════════════════════════════════════════════════
   3. RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Large desktop (≤1200px) */
@media (max-width: 1200px) {
    .hsb-stats__heading {
        font-size: 34px;
    }

    .hsb-stats__number {
        font-size: 46px;
    }
}

/* Tablet (≤1024px) */
@media (max-width: 1024px) {

    .hsb-stats__header {
        gap: 12px;
        margin-bottom: 36px;
    }

    .hsb-stats__heading {
        font-size: 28px;
    }

    .hsb-stats__icon,
    .hsb-stats__icon--default svg {
        width: 40px;
        height: 40px;
    }

    .hsb-stats__icon--right {
        width: 40px;
        height: 40px;
    }

    .hsb-stats__grid {
        gap: 40px;
    }

    .hsb-stats__number {
        font-size: 42px;
    }

    .hsb-stats__item {
        min-width: 150px;
    }

    .hsb-stats--side-title .hsb-stats__header {
        max-width: 260px;
    }

    .hsb-stats--side-title .hsb-stats__inner {
        gap: 30px;
    }
    .hsb-stats--side-title .hsb-stats__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .hsb-btn {
        padding: 14px 32px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }

    .hsb-stats__header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
    }

    .hsb-stats__heading {
        font-size: 24px;
    }

    .hsb-stats__decorative-line {
        width: 35px;
        height: 6px;
    }

    .hsb-stats__grid {
        gap: 30px;
    }

    .hsb-stats__item {
        min-width: 130px;
    }

    .hsb-stats__number {
        font-size: 36px;
    }

    .hsb-stats__label {
        font-size: 14px;
    }

    .hsb-stats__description {
        font-size: 13px;
        margin: 0 auto;
    }

    /* Side-title stacks vertically on mobile */
    .hsb-stats--side-title .hsb-stats__inner {
        flex-direction: column;
        text-align: center;
    }

    .hsb-stats--side-title .hsb-stats__header {
        max-width: 100%;
        justify-content: center;
    }

    .hsb-stats--side-title .hsb-stats__heading-wrapper {
        align-items: center;
    }

    .hsb-stats--side-title .hsb-stats__decorative-line {
        margin: 0 auto;
    }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
    .hsb-btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    .hsb-stats__heading {
        font-size: 20px;
    }

    .hsb-stats__grid {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .hsb-stats__item {
        min-width: auto;
        width: 100%;
        max-width: none;
    }

    .hsb-stats__number {
        font-size: 32px;
    }

    .hsb-stats__label {
        font-size: 13px;
    }
}
