/* Home: "Next-Gen IT Services" tabs (home.php) — layout only; tab JS unchanged
   (.tab-btn[data-target] toggles .tab-pane.active).
   Layout: head + full-width underline tabs, then an edge-to-edge pane:
   photo (left) + dark services panel (right). Pane animates on every tab switch. */
section.services-tab-section.pt-0,
section.services-tab-section {
    padding-top: 110px !important;
    padding-bottom: 0 !important;
    background: #f5f3ef !important;
    overflow: hidden;
}

.services-tab-section .color-container {
    display: block !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
}

.services-tab-section .color-container::before,
.services-tab-section .color-container::after {
    display: none !important;
}

/* ---------- head: title left, intro right ---------- */
.services-tab-section .section-title-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: end;
    gap: 64px;
    max-width: 1320px !important;
    margin: 0 auto 56px !important;
    padding: 0 30px !important;
    border: 0 !important;
    text-align: left !important;
}

.services-tab-section .section-title-wrap .h2 {
    margin: 0 !important;
    color: #111 !important;
    font-family: var(--bold);
    font-weight: normal;
    font-size: 52px;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.services-tab-section .section-title-wrap .body-2 {
    margin: 0 !important;
    color: #55524c !important;
    font-size: 17px;
    line-height: 1.75;
}

/* ---------- tabs: full-width underline row ---------- */
.services-tab-section .services-tab-nav {
    position: static !important;
    display: flex !important;
    flex-wrap: nowrap;
    gap: 0;
    width: auto !important;
    max-width: 1320px;
    margin: 0 auto !important;
    padding: 0 30px !important;
    overflow-x: auto;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    scrollbar-width: none;
}

.services-tab-section .services-tab-nav::-webkit-scrollbar {
    display: none;
}

.services-tab-section .services-tab-nav .tab-btn {
    position: relative;
    flex: 1 1 0;
    width: auto !important;
    margin: 0 !important;
    padding: 0 8px 22px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #d9d4cb !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: #8a867e !important;
    font-family: var(--medium);
    font-size: 17px;
    line-height: 1.25;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: color .3s ease;
}

.services-tab-section .services-tab-nav .tab-btn::before {
    display: none !important;
}

/* animated underline */
.services-tab-section .services-tab-nav .tab-btn::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: auto !important;
    bottom: -1px !important;
    width: 100% !important;
    height: 3px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #ff9f0a !important;
    opacity: 1 !important;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .5s cubic-bezier(.65, 0, .35, 1);
}

.services-tab-section .services-tab-nav .tab-btn:hover {
    color: #111 !important;
}

.services-tab-section .services-tab-nav .tab-btn.active {
    color: #111 !important;
    font-family: var(--bold);
}

.services-tab-section .services-tab-nav .tab-btn.active::after {
    transform: scaleX(1);
}

/* ---------- pane: edge to edge ---------- */
.services-tab-section .services-tab-content {
    margin: 56px 0 0 !important;
    background: #111114;
}

.services-tab-section .services-grid-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) repeat(2, min(33%, 560px));
    gap: 0 !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #111114;
    counter-reset: hsv;
}

.services-tab-section .services-grid-container .side-cards {
    display: contents !important;
}

/* photo: column 1, full height of the panel */
.services-tab-section .services-grid-container .center-image {
    display: block !important;
    grid-column: 1;
    grid-row: 1 / span 3;
    position: relative;
    width: 100% !important;
    height: auto !important;
    min-height: 100%;
    max-width: none !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    background: #1b1b20;
}

.services-tab-section .services-grid-container .center-image img {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

/* soft fade into the panel */
.services-tab-section .services-grid-container .center-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 17, 20, 0) 70%, rgba(17, 17, 20, .55) 100%);
    pointer-events: none;
}

/* service items */
.services-tab-section .service-float-card {
    counter-increment: hsv;
    position: relative;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 46px 48px 48px !important;
    border: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, .08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    text-align: left !important;
    transition: background .35s ease;
}

.services-tab-section .service-float-card::before {
    content: counter(hsv, decimal-leading-zero) !important;
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 22px;
    background: none !important;
    color: #ff9f0a;
    font-family: var(--bold);
    font-size: 13px;
    letter-spacing: .1em;
    line-height: 1;
}

/* orange line that draws in on hover */
.services-tab-section .service-float-card::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 2px !important;
    background: #ff9f0a !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .45s cubic-bezier(.65, 0, .35, 1);
}

.services-tab-section .service-float-card:hover {
    background: rgba(255, 255, 255, .035) !important;
}

.services-tab-section .service-float-card:hover::after {
    transform: scaleX(1);
}

.services-tab-section .service-float-card .card-info {
    display: block !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    transform: none !important;
    text-align: left !important;
}

.services-tab-section .service-float-card h3 {
    margin: 0 0 12px !important;
    color: #fff !important;
    font-family: var(--bold) !important;
    font-weight: 600 !important;
    font-size: 19px !important;
    line-height: 1.35;
}

.services-tab-section .service-float-card h3 a {
    color: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    text-decoration: none !important;
    transition: color .25s ease;
}

.services-tab-section .service-float-card h3 a[href]:hover {
    color: #ff9f0a !important;
}

.services-tab-section .service-float-card p {
    margin: 0 !important;
    color: rgba(255, 255, 255, .62) !important;
    font-size: 14.5px !important;
    line-height: 1.75 !important;
}

/* ---------- tab-switch animation ---------- */
.services-tab-section .tab-pane.active .center-image {
    animation: hsvReveal .9s cubic-bezier(.65, 0, .35, 1) both;
}

.services-tab-section .tab-pane.active .center-image img {
    animation: hsvZoom 1.6s cubic-bezier(.22, 1, .36, 1) both;
}

.services-tab-section .tab-pane.active .service-float-card {
    animation: hsvUp .7s cubic-bezier(.22, 1, .36, 1) both;
}

/* stagger in reading order: 01 02 / 03 04 / 05 06 */
.services-tab-section .tab-pane.active .side-cards.left .service-float-card:nth-child(1) { animation-delay: .15s; }
.services-tab-section .tab-pane.active .side-cards.left .service-float-card:nth-child(2) { animation-delay: .23s; }
.services-tab-section .tab-pane.active .side-cards.left .service-float-card:nth-child(3) { animation-delay: .31s; }
.services-tab-section .tab-pane.active .side-cards.right .service-float-card:nth-child(1) { animation-delay: .39s; }
.services-tab-section .tab-pane.active .side-cards.right .service-float-card:nth-child(2) { animation-delay: .47s; }
.services-tab-section .tab-pane.active .side-cards.right .service-float-card:nth-child(3) { animation-delay: .55s; }

@keyframes hsvReveal {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes hsvRevealDown {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes hsvZoom {
    from { transform: scale(1.18); }
    to { transform: scale(1); }
}

@keyframes hsvUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .services-tab-section .section-title-wrap .h2 {
        font-size: 42px;
    }

    .services-tab-section .services-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-tab-section .services-grid-container .center-image {
        grid-column: 1 / -1;
        grid-row: auto;
        order: -1;
        min-height: 0;
        aspect-ratio: 16 / 7;
    }

    .services-tab-section .services-grid-container .center-image::after {
        background: linear-gradient(180deg, rgba(17, 17, 20, 0) 65%, rgba(17, 17, 20, .6) 100%);
    }

    .services-tab-section .service-float-card {
        padding: 38px 36px 40px !important;
    }

    .services-tab-section .tab-pane.active .center-image {
        animation-name: hsvRevealDown;
    }
}

@media (max-width: 991px) {
    section.services-tab-section.pt-0,
    section.services-tab-section {
        padding-top: 80px !important;
    }

    .services-tab-section .section-title-wrap {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 36px !important;
        padding: 0 20px !important;
    }

    .services-tab-section .section-title-wrap .h2 {
        font-size: 34px;
    }

    .services-tab-section .services-tab-nav {
        gap: 28px;
        padding: 0 20px !important;
    }

    .services-tab-section .services-tab-nav .tab-btn {
        flex: 0 0 auto;
        padding: 0 0 16px !important;
        font-size: 16px;
    }

    .services-tab-section .services-tab-content {
        margin-top: 36px !important;
    }
}

@media (max-width: 767px) {
    .services-tab-section .services-grid-container {
        grid-template-columns: 1fr;
    }

    .services-tab-section .services-grid-container .center-image {
        aspect-ratio: 16 / 10;
    }

    .services-tab-section .service-float-card {
        padding: 30px 20px 32px !important;
        border-left: 0 !important;
    }
}

@media (max-width: 575px) {
    section.services-tab-section.pt-0,
    section.services-tab-section {
        padding-top: 56px !important;
    }

    .services-tab-section .section-title-wrap .h2 {
        font-size: 27px;
    }

    .services-tab-section .section-title-wrap .body-2 {
        font-size: 15px;
    }

    .services-tab-section .services-tab-nav {
        gap: 22px;
    }

    .services-tab-section .services-tab-nav .tab-btn {
        font-size: 15px;
    }

    .services-tab-section .service-float-card h3 {
        font-size: 17px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-tab-section .tab-pane.active .center-image,
    .services-tab-section .tab-pane.active .center-image img,
    .services-tab-section .tab-pane.active .service-float-card {
        animation: none !important;
    }
}

/* full width: undo legacy max-widths on pane/grid */
.services-tab-section .services-tab-content,
.services-tab-section .tab-pane,
.services-tab-section .services-grid-container {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* tabs sized to their text, one shared baseline line */
.services-tab-section .services-tab-nav {
    gap: 52px !important;
    background: linear-gradient(#d9d4cb, #d9d4cb) center bottom / calc(100% - 60px) 1px no-repeat !important;
}

.services-tab-section .services-tab-nav .tab-btn {
    flex: 0 0 auto !important;
    padding: 0 0 22px !important;
    border-bottom: 0 !important;
}

.services-tab-section .services-tab-nav .tab-btn::after {
    bottom: 0 !important;
}

@media (max-width: 991px) {
    .services-tab-section .services-tab-nav {
        gap: 30px !important;
        background-size: calc(100% - 40px) 1px !important;
    }

    .services-tab-section .services-tab-nav .tab-btn {
        padding-bottom: 16px !important;
    }
}

/* icons instead of 01-06 numbers */
.services-tab-section .service-float-card::before {
    content: none !important;
    display: none !important;
}

.services-tab-section .hsv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 0 24px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    color: #ff9f0a;
    font-size: 26px;
    line-height: 1;
    transition: background .35s ease, border-color .35s ease, color .35s ease, transform .35s ease;
}

.services-tab-section .hsv-icon .ti {
    line-height: 1;
}

.services-tab-section .service-float-card:hover .hsv-icon {
    background: #ff9f0a;
    border-color: #ff9f0a;
    color: #111114;
    transform: translateY(-3px);
}

@media (max-width: 575px) {
    .services-tab-section .hsv-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 18px;
        border-radius: 12px;
        font-size: 23px;
    }
}

/* glyphs not in the home icon subset (full tabler font is the fallback) */
.services-tab-section .ti-world-www:before{content:"\f38f"}
.services-tab-section .ti-app-window:before{content:"\efe6"}
.services-tab-section .ti-package:before{content:"\eaff"}
.services-tab-section .ti-search:before{content:"\eb1c"}
.services-tab-section .ti-cube:before{content:"\fa97"}
.services-tab-section .ti-versions:before{content:"\ed52"}
.services-tab-section .ti-speakerphone:before{content:"\ed61"}
.services-tab-section .ti-cloud-upload:before{content:"\ea75"}
.services-tab-section .ti-presentation-analytics:before{content:"\eec3"}
