/* ---- Pain-point gradient cards ---- */
.hs-pain-card {
    height: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px 28px;
    position: relative;
    overflow: hidden;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

.hs-pain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wc-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.hs-pain-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(131, 7, 222, .12);
    border-color: var(--color-primary);
}

.hs-pain-card:hover::before {
    transform: scaleX(1);
}

.hs-pain-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.hs-pain-card__num {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .95rem;
    color: #fff;
    background: var(--wc-grad);
    box-shadow: 0 6px 18px rgba(131, 7, 222, .25);
}

.hs-pain-card__tag {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--wc-grad-soft);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

[data-bs-theme="dark"] .hs-pain-card:hover {
    box-shadow: 0 20px 50px rgba(152, 16, 250, .18);
}

/* ---- Location feature split (big card + 2 stacked) ---- */

/* Floating decorative orbs */
.hs-loc-big::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .12) 50%, transparent 100%);
    pointer-events: none;
}

/* Dotted grid pattern */
.hs-loc-big__dots {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: radial-gradient(ellipse at 80% 20%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 80% 20%, black 20%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Top eyebrow pill */
.hs-loc-big__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
    width: fit-content;
    position: relative;
    z-index: 1;
}

.hs-loc-big__pill svg {
    width: 12px;
    height: 12px;
}

.hs-loc-big h3 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.hs-loc-big>p {
    font-size: .95rem;
    opacity: .85;
    margin: 0 0 22px;
    position: relative;
    z-index: 1;
    max-width: 560px;
}

/* Frosted glass checkmark list */
.hs-loc-big__checks {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    position: relative;
    z-index: 1;
}

.hs-loc-big__checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    font-weight: 500;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    transition: background .25s;
    margin-bottom: 10px;
}

.hs-loc-big__checks li:hover {
    background: rgba(255, 255, 255, .14);
}

.hs-loc-big__checks li svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #fff;
}

/* Mini cards inside the big card */
.hs-loc-big .row {
    position: relative;
    z-index: 1;
}

.hs-loc-mini {
    background: var(--color-white, #fff);
    border-radius: 16px;
    padding: 26px 24px;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.hs-loc-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--wc-grad);
    border-radius: 4px 0 0 4px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.hs-loc-mini:hover::before {
    transform: scaleY(1);
}

.hs-loc-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(131, 7, 222, .15);
}

.hs-loc-mini__ic {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    background: var(--wc-grad-soft);
    color: var(--color-primary);
    transition: all .3s;
}

.hs-loc-mini:hover .hs-loc-mini__ic {
    background: var(--wc-grad);
    color: #fff;
    box-shadow: 0 6px 18px rgba(131, 7, 222, .3);
    transform: scale(1.05);
}

.hs-loc-mini__ic svg {
    width: 22px;
    height: 22px;
}

.hs-loc-mini h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-heading);
}

.hs-loc-mini p {
    font-size: .85rem;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.55;
}

[data-bs-theme="dark"] .hs-loc-big {
    background: linear-gradient(135deg, #2a1060 0%, #1a0a40 100%);
    border: 1px solid rgba(152, 16, 250, .2);
}

[data-bs-theme="dark"] .hs-loc-mini {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

[data-bs-theme="dark"] .hs-loc-mini:hover {
    box-shadow: 0 12px 36px rgba(152, 16, 250, .15);
}


/* ---- Evidence feature cards (gradient top bar) ---- */
.hs-ev-card {
    height: 100%;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--wc-ease);
}

.hs-ev-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wc-shadow);
}

.hs-ev-card__bar {
    height: 5px;
    background: var(--wc-grad);
}

.hs-ev-card__body {
    padding: 26px 24px;
}

.hs-ev-card__ic {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    background: var(--wc-grad-soft);
    color: var(--color-primary);
}

.hs-ev-card__ic svg {
    width: 24px;
    height: 24px;
}

/* ---- How-it-works numbered timeline ---- */
.hs-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.hs-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), rgba(131, 7, 222, .15));
    border-radius: 4px;
    z-index: 0;
}

.hs-tl-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 12px;
}

.hs-tl-step__n {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    background: var(--wc-grad);
    margin: 0 auto 18px;
    box-shadow: 0 8px 28px rgba(131, 7, 222, .3);
    position: relative;
}

.hs-tl-step:nth-child(1) .hs-tl-step__n,
.hs-tl-step:nth-child(2) .hs-tl-step__n,
.hs-tl-step:nth-child(3) .hs-tl-step__n {
    background: linear-gradient(135deg, #d6b4fc 0%, #b07df7 100%);
    box-shadow: 0 6px 20px rgba(131, 7, 222, .2);
}

.hs-tl-step__n::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(131, 7, 222, .2);
}

.hs-tl-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-heading);
}

.hs-tl-step p {
    font-size: .85rem;
    color: var(--color-muted);
    margin: 0 auto;
    max-width: 220px;
    line-height: 1.5;
}

/* ---- Case study stat cards (pricing-tier style) ---- */
.hs-case-card {
    height: 100%;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--wc-ease);
    border: 1px solid var(--color-border);
    background: var(--color-card);
}

.hs-case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wc-shadow-lg);
}

.hs-case-card--plumbing {
    background: linear-gradient(160deg, var(--color-white) 30%, #e8d4ff 100%);
}

.hs-case-card--hvac {
    background: linear-gradient(160deg, var(--color-white) 30%, #d4e8ff 100%);
}

.hs-case-card--landscaping {
    background: linear-gradient(160deg, var(--color-white) 30%, #d4ffe8 100%);
}

[data-bs-theme="dark"] .hs-case-card--plumbing {
    background: linear-gradient(160deg, rgba(255, 255, 255, .04) 30%, rgba(131, 7, 222, .1) 100%);
}

[data-bs-theme="dark"] .hs-case-card--hvac {
    background: linear-gradient(160deg, rgba(255, 255, 255, .04) 30%, rgba(72, 132, 255, .1) 100%);
}

[data-bs-theme="dark"] .hs-case-card--landscaping {
    background: linear-gradient(160deg, rgba(255, 255, 255, .04) 30%, rgba(25, 135, 84, .1) 100%);
}

/* Service Area Coverage Hero Card Component */
.sac-card {
    background: rgba(18, 16, 38, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 40px rgba(99, 102, 241, 0.12);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.sac-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.sac-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.sac-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.sac-map-container {
    position: relative;
    width: 100%;
    height: 250px;
    background: rgba(13, 11, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
}

.sac-grid {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: repeat(7, 1fr);
    width: 100%;
    height: 100%;
    padding: 16px 12px;
    box-sizing: border-box;
}

.sac-grid-dot {
    width: 3px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    justify-self: center;
    align-self: center;
}

/* Base Nodes (Simple clean glowing dots by default) */
.sac-node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.sac-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
    z-index: 3;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.sac-node--cyan .sac-dot {
    background: #00f2c3;
    box-shadow: 0 0 10px rgba(0, 242, 195, 0.5);
}

.sac-node--purple .sac-dot {
    background: #b57edc;
    box-shadow: 0 0 10px rgba(181, 126, 220, 0.5);
}

/* Highlight Ring Elements (Hidden by default, smooth opacity transition) */
.sac-active-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sac-node--cyan .sac-active-ring {
    border: 1.5px solid rgba(0, 242, 195, 0.45);
    background: radial-gradient(circle, rgba(0, 242, 195, 0.12) 0%, rgba(0, 242, 195, 0) 70%);
}

.sac-node--purple .sac-active-ring {
    border: 1.5px solid rgba(181, 126, 220, 0.45);
    background: radial-gradient(circle, rgba(181, 126, 220, 0.12) 0%, rgba(181, 126, 220, 0) 70%);
}

.sac-active-ring--sm {
    width: 44px;
    height: 44px;
}

.sac-active-ring--lg {
    width: 72px;
    height: 72px;
}

/* Dynamic Keyframe Sequence - Activating rings smoothly location by location */
/* Sequence Timing (Total 15s loop):
                       0s - 3s  : Location 1 Active
                       3s - 6s  : Location 3 Active
                       6s - 9s  : Location 5 Active
                       9s - 12s : Location 2 Active
                       12s - 15s: Location 4 Active
                    */

/* Consolidated Keyframe Sequences for 5 sequential steps */
.loc-1 .sac-active-ring {
    animation: sacRippleWave 15s ease-in-out infinite 0s;
    --ring-color: rgba(0, 242, 195, 0.6);
}

.loc-1 .sac-dot {
    animation: sacDotHighlight 15s ease-in-out infinite 0s;
    --active-glow: #00f2c3;
    --active-glow-rgba: rgba(0, 242, 195, 0.7);
    --default-glow-rgba: rgba(0, 242, 195, 0.4);
}

.loc-3 .sac-active-ring {
    animation: sacRippleWave 15s ease-in-out infinite 3s;
    --ring-color: rgba(181, 126, 220, 0.6);
}

.loc-3 .sac-dot {
    animation: sacDotHighlight 15s ease-in-out infinite 3s;
    --active-glow: #b57edc;
    --active-glow-rgba: rgba(181, 126, 220, 0.7);
    --default-glow-rgba: rgba(181, 126, 220, 0.4);
}

.loc-5 .sac-active-ring {
    animation: sacRippleWave 15s ease-in-out infinite 6s;
    --ring-color: rgba(0, 242, 195, 0.6);
}

.loc-5 .sac-dot {
    animation: sacDotHighlight 15s ease-in-out infinite 6s;
    --active-glow: #00f2c3;
    --active-glow-rgba: rgba(0, 242, 195, 0.7);
    --default-glow-rgba: rgba(0, 242, 195, 0.4);
}

.loc-2 .sac-active-ring {
    animation: sacRippleWave 15s ease-in-out infinite 9s;
    --ring-color: rgba(0, 242, 195, 0.6);
}

.loc-2 .sac-dot {
    animation: sacDotHighlight 15s ease-in-out infinite 9s;
    --active-glow: #00f2c3;
    --active-glow-rgba: rgba(0, 242, 195, 0.7);
    --default-glow-rgba: rgba(0, 242, 195, 0.4);
}

.loc-4 .sac-active-ring {
    animation: sacRippleWave 15s ease-in-out infinite 12s;
    --ring-color: rgba(0, 242, 195, 0.6);
}

.loc-4 .sac-dot {
    animation: sacDotHighlight 15s ease-in-out infinite 12s;
    --active-glow: #00f2c3;
    --active-glow-rgba: rgba(0, 242, 195, 0.7);
    --default-glow-rgba: rgba(0, 242, 195, 0.4);
}

/* Ripple Wave Animation (Expanding ring effect) */
@keyframes sacRippleWave {
    0% {
        opacity: 0.9;
        transform: scale(0.3);
        box-shadow: 0 0 0 0 var(--ring-color);
    }

    12% {
        opacity: 0.8;
        transform: scale(1.1);
        box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
    }

    18% {
        opacity: 0;
        transform: scale(1.4);
        box-shadow: 0 0 0 28px rgba(0, 0, 0, 0);
    }

    23%,
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

@keyframes sacDotHighlight {

    0%,
    18% {
        transform: scale(1.25);
        box-shadow: 0 0 18px var(--active-glow), 0 0 30px var(--active-glow-rgba);
    }

    23%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px var(--default-glow-rgba);
    }
}

/* Legend styling */
.sac-legend {
    display: flex;
    gap: 24px;
    margin-top: 18px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.sac-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sac-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.sac-legend-dot--cyan {
    background: #00f2c3;
    box-shadow: 0 0 6px rgba(0, 242, 195, 0.6);
}

.sac-legend-dot--purple {
    background: #b57edc;
    box-shadow: 0 0 6px rgba(181, 126, 220, 0.6);
}

@media (max-width: 991px) {
    .hs-loc-split {
        grid-template-columns: 1fr;
    }

    .hs-timeline {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .hs-timeline::before {
        display: none;
    }
}

@media (max-width: 575px) {
    .hs-timeline {
        grid-template-columns: 1fr;
    }

    .hs-loc-big__checks {
        display: block;
    }
}

.hs-case-card__tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--wc-grad-soft);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
    align-self: center;
}

.hs-case-card__stat {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--color-heading);
    margin-bottom: 6px;
}

.hs-case-card__label {
    font-size: .92rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 10px;
}

.hs-case-card p {
    font-size: .87rem;
    color: var(--color-muted);
    line-height: 1.55;
    margin-bottom: 20px;
    flex: 1;
}

/* ---- Revamped Locations Manager Section ---- */
.loc-feat-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary-light2);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.loc-mgr-card {
    background: var(--color-card);
    border-radius: var(--radius-xl, 20px);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md, 0 15px 40px rgba(0, 0, 0, 0.06));
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}

.loc-mgr-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.loc-mgr-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0;
}

.loc-mgr-tabs {
    display: flex;
    gap: 8px;
}

.loc-tab-btn.nav-link {
    background: var(--color-primary-light2);
    color: var(--color-primary);
    border: 1px solid var(--color-border-primary-light) !important;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: var(--radius-sm, 6px) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.loc-tab-btn.nav-link:hover,
.loc-tab-btn.nav-link:focus {
    color: var(--color-primary);
    background: var(--color-primary-light2);
    border-color: var(--color-border-primary-light) !important;
}

.loc-tab-btn.nav-link.active {
    opacity: 1;
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 4px 12px rgba(134, 14, 223, 0.3);
}

.loc-mgr-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loc-mgr-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-lg, 12px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: background 0.2s;
}

.loc-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loc-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md, 8px);
    background: var(--color-primary-light2);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loc-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-heading);
}

.loc-stat-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 200px;
    justify-content: flex-end;
}

.loc-bar-container {
    width: 100px;
    height: 10px;
    background: var(--color-primary-light2);
    border-radius: var(--radius-pill, 5px);
    overflow: hidden;
}

.loc-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-pill, 5px);
}

.loc-stat-val {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 80px;
    text-align: right;
}

.loc-stat-val strong {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-heading);
    font-style: italic;
}

.loc-stat-val span {
    font-size: 0.72rem;
    color: var(--color-muted);
    font-style: italic;
}