/* ========================================
   Service Page Cards — strictly scoped
   ======================================== */

/* Scope variables to this component only */
.service-page-cards{
    --bg:#0b0b0d;
    --ink:#222;
    --muted:#6f757a;
    --card-r:14px;

    position:relative;
    overflow:hidden;
    padding-bottom:130px;
    color:var(--ink);
    background:#fff;
}

/* ===== header band ===== */
.service-page-cards > .spc-head{
    position:relative;
    background:var(--bg);
    color:#fff;
    padding: 50px 0;
    margin-right:-24px;
}
.service-page-cards > .spc-head > .container{
    position:relative;
    z-index:2;
}

/* ===== dots (scoped + explicit) ===== */
.service-page-cards .dots{
    pointer-events:none;
    color:currentColor; /* circles inherit this */
    filter:none;        /* remove blue halo */
}
.service-page-cards > .spc-head > .dots.dots-top-right {
    position:relative;
    z-index: 0;
    color: #ffffff;
    transform: scaleX(-1);
}
.service-page-cards > .spc-cards > .dots.dots-bottom-left{
    position:absolute;
    left:0;
    bottom:-50px;
    width:min(56vw, 760px);
    z-index:1;          /* still under cards (cards z-index:2) */
    color:#000000;      /* BOTTOM DOTS = BLACK */
}

/* ===== headings (no eyebrow) ===== */
.service-page-cards .headline{
    margin:14px 0 0;
    text-align:left;
    line-height:1.15;
    text-transform:uppercase;
    font-weight:100;
    letter-spacing:.08em;
    font-size:3rem;
}
.service-page-cards .headline .accent{
    color:#ffffff;      /* ACCENT = WHITE */
    font-style:italic;
    letter-spacing:.14em;
}
.service-page-cards .headline .sub{
    display:inline;
    margin-top:.35rem;
    font-style:italic;
    font-weight:100;
    color:#ffffff;      /* SUB = WHITE */
}

/* ===== cards ===== */
.service-page-cards > .spc-cards{
    position:relative;
    z-index:2; /* above dots */
    padding:0 0 clamp(80px, 10vw, 140px);
    background:#fff;
}
.service-page-cards .service-card{
    position:relative;
    background:#fff;
    border-radius:var(--card-r);
    box-shadow:0 14px 28px rgba(0,0,0,.16);
    padding:24px 24px 30px;
    min-height:224px;
    margin-top:-54px;
    margin-bottom:54px;
    overflow:hidden;
}
.service-page-cards .service-icon {
    position: absolute;
    right: -25px;
    bottom: 0;
    width: 125px;
    padding: 0;
}
.service-page-cards .service-icon-img{
    display:block;
    width:125px;
    height:125px;
}

.service-page-cards .service-title{
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.14em;
    font-size:1.05rem;
    margin-bottom:.35rem;
}

/* Only the title link gets the alternating color; everything else stays neutral */
.service-page-cards .service-title > a{
    color:inherit;          /* default (overridden per-card below) */
    text-decoration:none;
}
.service-page-cards .service-title > a:hover{
    text-decoration:underline;
}

/* Children stay neutral */
.service-page-cards .service-list{
    margin:0;
    padding-left:1.15rem;   /* keep outside bullets */
    font-size:.94rem;
}
.service-page-cards .service-list li{
    margin:.2rem 0;
    color:var(--muted);
}
.service-page-cards .service-list li::marker{
    font-size:.55rem;
    color:#1d1d1d;          /* smaller bullets */
}
.service-page-cards .service-list a{
    color:inherit;
    text-decoration:none;
}
.service-page-cards .service-list a:hover{
    color:#111;
    text-decoration:underline;
}
/* ===== Alternating LINK-ONLY colors per card (cycle 4) ===== */
.spc-cards .row > .col:nth-child(4n + 1) .service-title a { color:#09BFF2; }
.spc-cards .row > .col:nth-child(4n + 2) .service-title a { color:#EB3273; }
.spc-cards .row > .col:nth-child(4n + 3) .service-title a { color:#ffdd00; }
.spc-cards .row > .col:nth-child(4n + 4) .service-title a { color:#0E0E0E; }

/* Icon (user-uploaded) - keep natural coloring */
.service-icon-img{ display:block; width:100%; height:auto; }
/* ===== Filter Header (optional band above cards) ===== */
.spc-filter {
    background: #fff;
    padding: clamp(24px, 4vw, 40px) 0 clamp(28px, 5vw, 44px);
    text-align: center;
}
.spc-filter .filter-title {
    margin: 0 0 .35rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
    font-size: clamp(22px, 3vw, 32px);
}
.spc-filter .filter-sub {
    margin: 0 auto 1.25rem;
    color: #444;
    max-width: 720px;
}
.spc-filter .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem 1.25rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.spc-filter .filter-btn {
    appearance: none;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    border-radius: 999px;
    padding: .7rem 1.4rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .12s ease;
}
.spc-filter .filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.spc-filter .filter-btn.is-active {
    background: #000;
    color: #fff;
}
.spc-filter .filter-note {
    margin: 1rem 0 -2rem;
    color: #666;
    font-style: italic;
}

/* Make sure the grid items can animate transforms smoothly (FLIP will set inline styles) */
.service-page-cards .spc-cards .row > .col {
    will-change: transform;
}
.spc-filter .v-rule {
    width: 1px;
    height: 100px;
    margin-inline: auto;
    background-color: #000;
    margin-top:50px;
}
/* Filter placed inside the dark header band */
.spc-head .spc-filter--inhead {
    background: transparent;
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.spc-head .spc-filter--inhead .filter-title {
    color: #fff;
    margin: 0 0 .35rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 100;
    font-size: 20px;
}

.spc-head .spc-filter--inhead .filter-sub,
.spc-head .spc-filter--inhead .filter-note {
    color: rgba(255,255,255,.85);
}

.spc-head .spc-filter--inhead .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem 1.25rem;
    justify-content: center;
    margin: .75rem 0 0;
}

/* Pills: outline on dark, solid when active */
.spc-head .spc-filter--inhead .filter-btn {
    appearance: none;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: .7rem 1.4rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .12s ease, border-color .25s ease;
}
.spc-head .spc-filter--inhead .filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    border-color: #fff;
}
.spc-head .spc-filter--inhead .filter-btn.is-active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* optional thin divider below filter when in header (if you like the v-rule) */
.spc-head .spc-filter--inhead .v-rule {
    width: 1px;
    height: 84px;
    margin: 24px auto 0;
    background-color: rgba(255,255,255,.9);
}

/* === NEW: No-bottom-dots mode — remove bottom padding on wrapper + cards band === */
.service-page-cards.no-bottom-dots{
    padding-bottom:0 !important;
}
.service-page-cards.no-bottom-dots > .spc-cards{
    padding-bottom:0 !important;
}

@media screen and (max-width: 1200px){
    .service-page-cards .headline{
        font-size:2.5rem;
    }
}
@media screen and (max-width: 1000px){
    .service-page-cards .headline{
        font-size:1.6rem;
    }
    .spc-head .spc-filter--inhead .filter-title {
        font-size: 18px;
        text-align: left;
    }
    .spc-head .spc-filter--inhead .filter-btn {
        width: calc(50% - .75rem);
    }
    .spc-filter .filter-note {
        margin: 1rem 0 -1rem;
    }
}
@media screen and (max-width: 768px){
    .spc-head .spc-filter--inhead .filter-btn {
        width: calc(45% - .75rem);
        font-size: 22px;
        line-height: 24px;
    }
    .spc-filter .filter-note{
        padding: 1rem;
    }
}
