/* Services page (views/services/_list.php, assets/js/services-page.js) */

/* ---- hero additions ---- */
.srv-hero-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-top: 44px;
    padding: 14px;
    border-radius: 24px;
    background:
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 16px 16px,
        linear-gradient(135deg, #110E2D, #241E58);
    box-shadow: 0 20px 44px -24px rgba(17, 14, 45, .7);
}
.srv-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
}
.srv-stat strong {
    font-size: 24px;
    line-height: 1.2;
    text-shadow: 0 0 18px rgba(238, 93, 56, .55);
}
.srv-stat span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .6);
}
.srv-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-inline-start: auto;
}
.srv-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #EE5D38, #FF7A4C);
    font-size: 13.5px;
    font-weight: 700;
    transition: transform .2s;
}
.srv-jump:hover {
    transform: translateY(-2px);
}
.srv-jump span {
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    font-size: 12px;
}

/* ---- groups along a spine that fills as the page scrolls ---- */
.srv-group {
    margin-top: 90px;
    scroll-margin-top: 90px;
}
.srv-group-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 28px;
    color: #110E2D;
}
.srv-group-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #EE5D38;
    box-shadow: 0 0 0 6px rgba(238, 93, 56, .18);
}
.srv-spine-wrap {
    position: relative;
    margin-top: 70px;
    padding-bottom: 80px;
}
.srv-spine {
    position: absolute;
    top: -40px;
    bottom: 0;
    left: 50%;
    width: 4px;
    margin-left: -2px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(17, 14, 45, .07);
}
.srv-spine span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #FF9A6B, #EE5D38);
    box-shadow: 0 0 14px rgba(238, 93, 56, .6);
    transform: scaleY(var(--f, 1));
    transform-origin: top;
}
.srv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 96px;
}

/* ---- service card ---- */
.srv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 20px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 0 120px rgba(0, 0, 0, .08);
    scroll-margin-top: 100px;
}
.srv-card--b {
    translate: 0 80px;
}
.srv-node {
    position: absolute;
    top: 46px;
    inset-inline-end: -57px;
    z-index: 2;
    width: 18px;
    height: 18px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #D7D9E2;
    box-shadow: 0 0 0 1px rgba(17, 14, 45, .08);
    transition: background .4s, box-shadow .4s;
}
.srv-card--b .srv-node {
    inset-inline-end: auto;
    inset-inline-start: -57px;
}
.srv-card.is-lit .srv-node {
    background: #EE5D38;
    box-shadow: 0 0 0 6px rgba(238, 93, 56, .2), 0 0 18px rgba(238, 93, 56, .7);
}
.srv-card-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-inline-end: 130px;
    min-height: 74px;
}
.srv-num {
    position: absolute;
    top: -40px;
    inset-inline-start: 0;
    padding: 3px 12px;
    border-radius: 999px;
    color: #fff;
    background: #110E2D;
    font-size: 12px;
    line-height: 1.7;
}
.srv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: #FFF1EC;
}
.srv-icon svg {
    width: 34px;
    height: 34px;
}
.srv-en {
    color: #EE5D38;
    font-family: Montserrat, MontserratBold, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
[dir="rtl"] .srv-en {
    text-align: right;
}
.srv-title {
    margin-top: 2px;
    font-size: 22px;
    line-height: 1.5;
    color: #110E2D;
}
.srv-art {
    position: absolute;
    top: -78px;
    inset-inline-end: -12px;
    width: 150px;
    height: auto;
    filter: drop-shadow(0 18px 18px rgba(17, 14, 45, .2));
    animation: srvFloat 6s ease-in-out infinite;
}
@keyframes srvFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

/* tabs */
.srv-tabs {
    display: flex;
    gap: 4px;
    margin-top: 20px;
    padding: 4px;
    border-radius: 15px;
    background: #F2F4F9;
}
.srv-tab {
    flex: 1;
    padding: 9px 8px;
    border: 0;
    border-radius: 11px;
    color: rgba(17, 14, 45, .55);
    background: transparent;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s, background .2s, box-shadow .2s;
}
.srv-tab:hover {
    color: #110E2D;
}
.srv-tab.is-active {
    color: #110E2D;
    background: #fff;
    box-shadow: 0 6px 14px -8px rgba(17, 14, 45, .45);
    font-weight: 700;
}
.srv-tab:focus-visible {
    outline: 2px solid #EE5D38;
    outline-offset: 1px;
}
.srv-panels {
    margin-top: 16px;
    min-height: 150px;
}
.srv-panel + .srv-panel {
    margin-top: 18px;
}
.srv-ready .srv-panel {
    display: none;
}
.srv-ready .srv-panel + .srv-panel {
    margin-top: 0;
}
.srv-ready .srv-panel.is-active {
    display: block;
    animation: srvPanelIn .4s cubic-bezier(.2, .8, .2, 1);
}
@keyframes srvPanelIn {
    from { opacity: 0; translate: 0 8px; }
    to { opacity: 1; translate: 0 0; }
}

/* what it is: the lead sentence and the rest as a checklist */
.srv-lead {
    font-size: 15.5px;
    line-height: 1.95;
    color: #110E2D;
}
.srv .srv-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}
.srv .srv-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(17, 14, 45, .7);
    font-size: 14px;
    line-height: 1.95;
}
.srv .srv-points li::before {
    content: none;
}
.srv-ready .srv-panel.is-active .srv-points li {
    animation: srvRowIn .45s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(var(--n) * 90ms + 120ms);
}
@keyframes srvRowIn {
    from { opacity: 0; translate: 0 8px; }
    to { opacity: 1; translate: 0 0; }
}
.srv-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 4px;
    border-radius: 50%;
    color: #EE5D38;
    background: #FFF1EC;
}

/* what you get */
.srv-gets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.srv-get {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(238, 93, 56, .2);
    border-radius: 16px;
    color: #110E2D;
    background: #FFF8F5;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}
.srv-get-num {
    color: #EE5D38;
    font-size: 26px;
    line-height: 1;
}
.srv-ready .srv-panel.is-active .srv-get {
    animation: srvRowIn .45s cubic-bezier(.3, 1.4, .5, 1) both;
    animation-delay: calc(var(--n) * 110ms + 80ms);
}

/* process */
.srv .srv-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}
.srv .srv-steps::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(270deg, #EE5D38, #FF9A6B);
}
[dir="ltr"] .srv .srv-steps::before {
    background: linear-gradient(90deg, #EE5D38, #FF9A6B);
}
.srv .srv-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.srv .srv-steps li::before {
    content: none;
}
.srv-step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #EE5D38;
    box-shadow: 0 0 0 4px rgba(238, 93, 56, .15), 0 8px 16px -6px rgba(238, 93, 56, .7);
    font-size: 14px;
}
.srv-step-label {
    color: #110E2D;
    font-size: 13px;
    line-height: 1.6;
}
.srv-ready .srv-panel.is-active .srv-steps li {
    animation: srvRowIn .45s cubic-bezier(.3, 1.4, .5, 1) both;
    animation-delay: calc(var(--n) * 160ms + 80ms);
}

/* projects */
.srv-works {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 12px 8px 4px;
}
.srv-work {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 80px;
    margin-inline-start: -14px;
    border: 3px solid #fff;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 22px -12px rgba(17, 14, 45, .6);
    transform: rotate(calc((var(--n) - 2.5) * 3deg));
    transition: transform .3s cubic-bezier(.3, 1.5, .5, 1);
}
.srv-work:first-child {
    margin-inline-start: 0;
}
.srv-work img {
    width: 100%;
    height: 100%;
    border-radius: 9px;
    object-fit: cover;
}
.srv-work img.is-logo {
    width: 72%;
    height: auto;
    object-fit: contain;
}
.srv-work:hover,
.srv-work:focus-visible {
    z-index: 5;
    transform: translateY(-10px) rotate(0) scale(1.1);
    outline: none;
}
.srv-work::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    padding: 4px 10px;
    border-radius: 8px;
    color: #fff;
    background: #110E2D;
    font-size: 11px;
    line-height: 1.6;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}
.srv-work:hover::after,
.srv-work:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}
.srv-ready .srv-panel.is-active .srv-work {
    animation: srvRowIn .45s cubic-bezier(.3, 1.4, .5, 1) both;
    animation-delay: calc(var(--n) * 70ms + 60ms);
}

/* foot */
.srv-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed rgba(17, 14, 45, .1);
}
.srv-panels + .srv-foot {
    margin-top: 18px;
}
.srv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 13px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.6;
    transition: transform .2s, background .2s, color .2s;
}
.srv-btn:hover {
    transform: translateY(-2px);
}
.srv-btn-main {
    color: #fff;
    background: linear-gradient(135deg, #EE5D38, #FF7A4C);
    box-shadow: 0 12px 24px -12px rgba(238, 93, 56, .95);
}
.srv-btn-ghost {
    color: #110E2D;
    border: 1px solid rgba(17, 14, 45, .12);
    background: #fff;
}
.srv-btn-ghost:hover {
    border-color: #EE5D38;
    color: #EE5D38;
}
.srv-btn-text {
    margin-inline-start: auto;
    padding-inline: 6px;
    color: #EE5D38;
}

/* entrance as cards reach the screen (only with JS) */
.srv-ready .srv-card {
    opacity: 0;
}
.srv-ready .srv-card.is-in {
    animation: srvCardIn .7s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes srvCardIn {
    from { opacity: 0; transform: translateY(40px) scale(.97); }
    to { opacity: 1; transform: none; }
}

/* ---- one consultation box for the whole page ---- */
.srv-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 24px;
    margin-top: 60px;
    padding: 34px 38px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(360px circle at 0 0, rgba(238, 93, 56, .35), transparent),
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 16px 16px,
        linear-gradient(135deg, #110E2D, #241E58);
    box-shadow: 0 30px 60px -28px rgba(17, 14, 45, .8);
}
[dir="rtl"] .srv-cta {
    background:
        radial-gradient(360px circle at 100% 0, rgba(238, 93, 56, .35), transparent),
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 16px 16px,
        linear-gradient(225deg, #110E2D, #241E58);
}
.srv-cta-title {
    font-size: 24px;
    line-height: 1.6;
}
.srv-cta-sub {
    margin-top: 6px;
    color: rgba(255, 255, 255, .65);
    font-size: 14.5px;
}
.srv-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.srv-btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}
.srv-cta-phone {
    color: #fff;
    font-family: Montserrat, MontserratBold, sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .04em;
}

/* ---- floating index of every service ---- */
.srv-nav {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-120%);
    transition: opacity .35s, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.srv-nav.is-on {
    opacity: 1;
    transform: none;
}
.srv-nav-bar {
    position: relative;
    width: 100%;
    max-width: 1180px;
    padding: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: rgba(17, 14, 45, .9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px -16px rgba(17, 14, 45, .6);
    pointer-events: auto;
}
.srv-nav-track {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    padding: 0 10px;
}
.srv-nav-track::-webkit-scrollbar {
    display: none;
}
.srv-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, .7);
    font-size: 12.5px;
    white-space: nowrap;
    transition: color .2s, background .2s;
}
.srv-nav-link span {
    color: rgba(255, 255, 255, .35);
    font-size: 11px;
}
.srv-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}
.srv-nav-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, #EE5D38, #FF7A4C);
}
.srv-nav-link.is-active span {
    color: rgba(255, 255, 255, .75);
}
.srv-nav-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(255, 255, 255, .06);
}
.srv-nav-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #EE5D38, #FF9A6B);
}
[dir="rtl"] .srv-nav-progress span {
    margin-left: auto;
}

/* ---- tablet and phone: one column, the spine on the side ---- */
@media (max-width: 1023px) {
    .srv-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 90px;
    }
    .srv-card {
        margin-inline-start: 34px;
    }
    .srv-card--b {
        translate: none;
    }
    .srv-spine {
        left: auto;
        right: auto;
        inset-inline-start: 8px;
        margin-left: 0;
    }
    .srv-node,
    .srv-card--b .srv-node {
        inset-inline-end: auto;
        inset-inline-start: -35px;
    }
    .srv-spine-wrap {
        padding-bottom: 0;
    }
}
@media (max-width: 640px) {
    .srv-hero-bar {
        padding: 10px;
    }
    .srv-stat {
        flex: 1;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 8px;
        text-align: center;
    }
    .srv-stat strong {
        font-size: 20px;
    }
    .srv-stat span {
        font-size: 10.5px;
    }
    .srv-jumps {
        width: 100%;
        margin: 0;
    }
    .srv-jump {
        flex: 1;
        justify-content: center;
    }
    .srv-group-title {
        font-size: 22px;
    }
    .srv-card {
        padding: 22px 16px 16px;
        border-radius: 22px;
    }
    .srv-card-head {
        padding-inline-end: 90px;
    }
    .srv-art {
        top: -60px;
        width: 104px;
    }
    .srv-icon {
        width: 48px;
        height: 48px;
    }
    .srv-icon svg {
        width: 28px;
        height: 28px;
    }
    .srv-title {
        font-size: 18px;
    }
    .srv-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }
    .srv-tabs::-webkit-scrollbar {
        display: none;
    }
    .srv-tab {
        flex: 1 0 auto;
        font-size: 11.5px;
        padding: 8px 10px;
    }
    .srv-gets {
        grid-template-columns: minmax(0, 1fr);
    }
    .srv-step-label {
        font-size: 11px;
    }
    .srv-btn-text {
        margin-inline-start: 0;
    }
    .srv-cta {
        padding: 24px 20px;
    }
    .srv-cta-title {
        font-size: 19px;
    }
    .srv-nav {
        top: 8px;
        padding: 0 8px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .srv-art,
    .srv-ready .srv-card.is-in,
    .srv-ready .srv-panel.is-active,
    .srv-ready .srv-panel.is-active * {
        animation: none !important;
    }
    .srv-ready .srv-card {
        opacity: 1;
    }
}
