/* =========================================
   TARGET IT — IT AS A SERVICE PAGE
   ========================================= */

.target-itaas {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;

    background: #2e2e2e;
    color: #fff;
    font-family: "Syne", Arial, Helvetica, sans-serif;
}

.target-itaas>* {
    margin-block-start: 0;
}

.target-itaas h1,
.target-itaas h2,
.target-itaas h3,
.target-itaas p {
    margin: 0;
}

/* =========================================
   HERO
   ========================================= */

.target-itaas .target-itaas__hero {
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 0;
    width: 100%;
    min-height: 500px;
    padding: 95px 24px 105px;
    margin: 0;

    background: #2e2e2e;
    text-align: center;
}

.target-itaas__hero-title {
    color: #fff;
    font-size: clamp(42px, 3.5vw, 58px);
    font-weight: 600;
    line-height: 1.15;
}

.target-itaas__hero-subtitle {
    max-width: 850px;
    margin-top: 34px !important;

    color: #fff;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.3;
}

.target-itaas__hero-description {
    max-width: 800px;
    margin-top: 13px !important;

    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
}

.target-itaas .target-itaas__hero-actions {
    justify-content: center;
    margin-top: 30px;
}

.target-itaas__hero-button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 11px 13px;

    border: 1px solid #fff;
    border-radius: 13px 0 13px 0;

    background: transparent;
    color: #fff;

    font-family: "Syne", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;

    transition:
        background-color 200ms ease,
        color 200ms ease,
        transform 200ms ease;
}

.target-itaas__hero-button .wp-block-button__link::after {
    content: "+";
    font-weight: 400;
    font-size: 14px;
}

.target-itaas__hero-button .wp-block-button__link:hover,
.target-itaas__hero-button .wp-block-button__link:focus-visible {
    background: #fff;
    color: #2e2e2e;
    transform: translateY(-2px);
}

/* =========================================
   TECHNICAL SUPPORT
   ========================================= */

.target-itaas-support {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    box-sizing: border-box;
    width: 100%;
    padding: 50px 0 115px;

    background: #2e2e2e;
    color: #fff;
}

/* Original wireframe background */

.target-itaas-support::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;

    width: 100%;
    height: 350px;

    background-image:
        url("../design/Desktop/1.Homepage/bg_dark.webp");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 350px;

    opacity: 0.7;
    pointer-events: none;
}

.target-itaas-support__inner {
    width: min(1620px, calc(100% - 48px));
    margin: 0 auto;
}

.target-itaas-support__title {
    margin: 0 0 88px;

    color: #fff;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    padding-bottom: 70px;
}

/* Three equal columns */

.target-itaas-support__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;

    width: 100%;
    margin: 0;
}

/* Individual technical support card */

.target-itaas-support__card {
    box-sizing: border-box;
    min-width: 0;
    min-height: 325px;

    padding: 30px 30px 28px;

    border: 1px solid rgba(255, 255, 255, 0.7);
    background: #2e2e2e;
    color: #fff;

    transition:
        background-color 200ms ease,
        border-color 200ms ease;
}

.target-itaas-support__card+.target-itaas-support__card {
    border-left: 0;
}

.target-itaas-support__card:hover {
    position: relative;
    z-index: 1;
    background: #343434;
    border-color: #9ec857;
}

/* Animated designer MP4s */

.target-itaas-support__video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 642;

    margin: 0;
    object-fit: cover;
    background: #050505;
}

.target-itaas-support__card h3 {
    margin: 29px 0 15px;

    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.target-itaas-support__card p {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
}

/* =========================================
   IT CONSULTING — DESKTOP
   ========================================= */

.target-itaas .target-itaas-consult {
    position: relative;
    isolation: isolate;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;

    width: 100%;
    min-height: 900px;
    max-width: none;
    margin: 0;

    background: #fff;
    color: #2e2e2e;
}

/* Green light effect from the Figma composition */

.target-itaas-consult::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -170px;
    right: -200px;

    width: 730px;
    height: 540px;

    background: radial-gradient(ellipse at center,
            rgba(158, 200, 87, 0.27) 0%,
            rgba(158, 200, 87, 0.10) 38%,
            transparent 72%);

    pointer-events: none;
}

.target-itaas-consult__image {
    display: block;
    width: 100%;
    min-height: 900px;
    overflow: hidden;

    border-radius: 0 80px 80px 0;
    border: 1px solid rgba(46, 46, 46, 0.65);
    box-sizing: border-box;
}

/* Straight vertical divider behind the curved image edge */

.target-itaas .target-itaas-consult::after {
    content: "";
    position: absolute;
    z-index: 3;

    top: 0;
    bottom: 0;
    left: 50%;

    width: 1px;
    background: rgba(46, 46, 46, 0.65);

    pointer-events: none;
}

.target-itaas-consult__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 900px;

    object-fit: cover;
    object-position: center;
}

.target-itaas .target-itaas-consult__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;

    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    margin: 0;

    padding:
        90px clamp(45px, 7.8vw, 150px);
}

.target-itaas-consult__title {
    margin-bottom: 31px !important;

    color: #2e2e2e;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.15;
}

.target-itaas-consult__lead {
    margin-bottom: 38px !important;

    color: #2e2e2e;
    font-size: 15px;
    line-height: 1.35;
}

.target-itaas .target-itaas-consult__topic {
    margin: 0;
}

.target-itaas-consult__topic+.target-itaas-consult__topic {
    margin-top: 52px !important;
}

.target-itaas-consult__topic h3 {
    margin-bottom: 18px;

    color: #2e2e2e;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.target-itaas-consult__topic p {
    color: #2e2e2e;
    font-size: 15px;
    line-height: 1.3;
}

/* =========================================
   CLOUD SUPPORT STRIP
   ========================================= */

.target-itaas-cloud {
    width: 100%;
    margin: 0;
    background: #2e2e2e;
}

.target-itaas-cloud__track {
    display: grid;
    grid-template-columns: 18.5% repeat(4, minmax(0, 1fr));
    min-height: 200px;
}

.target-itaas-cloud__heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    box-sizing: border-box;
    padding: 28px clamp(30px, 4.7vw, 90px);

    background: #9ec857;
    color: #2e2e2e;
}

.target-itaas-cloud__heading h2 {
    margin: 0;

    color: #2e2e2e;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.2;
}

.target-itaas-cloud__cell {
    display: grid;
    place-items: center;

    border-left: 1px solid rgba(255, 255, 255, 0.7);
    background: #2e2e2e;
}

.target-itaas-cloud__cell .target-company-partners__seal {
    width: 82px;
    height: 82px;
}

/* =========================================
   TABLET
   ========================================= */

@media (min-width: 768px) and (max-width: 1100px) {

    .target-itaas-support__title {
        font-size: 31px;
    }

    .target-itaas-support__card {
        min-height: 280px;
        padding: 22px;
    }

    .target-itaas-support__card h3 {
        font-size: 15px;
        margin-top: 23px;
    }

    .target-itaas-support__card p {
        font-size: 12px;
    }

    .target-itaas .target-itaas-consult {
        min-height: 700px;
    }

    .target-itaas-consult__image,
    .target-itaas-consult__image img {
        min-height: 700px;
    }

    .target-itaas .target-itaas-consult__content {
        padding: 55px 45px;
    }

    .target-itaas-consult__title {
        font-size: 29px;
    }

    .target-itaas-consult__lead,
    .target-itaas-consult__topic p {
        font-size: 13px;
    }

    .target-itaas-cloud__heading h2 {
        font-size: 15px;
    }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    /* Hero */

    .target-itaas .target-itaas__hero {
        min-height: 410px;
        padding: 68px 25px 75px;
    }

    .target-itaas__hero-title {
        font-size: 35px;
    }

    .target-itaas__hero-subtitle {
        max-width: 350px;
        margin-top: 30px !important;

        font-size: 15px;
        line-height: 1.3;
    }

    .target-itaas__hero-description {
        max-width: 350px;
        margin-top: 18px !important;

        font-size: 14px;
        line-height: 1.35;
    }

    .target-itaas .target-itaas__hero-actions {
        margin-top: 28px;
    }

    .target-itaas__hero-button .wp-block-button__link {
        font-size: 11px;
    }

    /* Technical support cards */

    .target-itaas-support {
        padding: 0 0 70px;
    }

    .target-itaas-support::before {
        height: 170px;
        background-image:
            url("../design/Mobile/1.Homepage/bg_dark.webp");
        background-size: cover;
    }

    .target-itaas-support__inner {
        width: 100%;
    }

    .target-itaas .target-itaas-support__title {
        display: flex;
        align-items: center;
        justify-content: center;

        box-sizing: border-box;
        width: 100%;
        min-height: 170px;

        margin: 0 0 35px;
        padding: 20px 24px;

        color: #fff;
        font-size: 27px;
        line-height: 1.2;
        text-align: center;
    }

    .target-itaas-support__grid {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .target-itaas-support__card {
        min-height: 0;
        padding: 28px 25px 34px;

        border: 1px solid rgba(255, 255, 255, 0.65);
    }

    .target-itaas-support__card+.target-itaas-support__card {
        border-left: 1px solid rgba(255, 255, 255, 0.65);
        border-top: 0;
    }

    .target-itaas-support__video {
        aspect-ratio: 280 / 160;
    }

    .target-itaas-support__card h3 {
        margin: 25px 0 14px;

        font-size: 17px;
    }

    .target-itaas-support__card p {
        font-size: 14px;
        line-height: 1.3;
    }

    /* Consulting: image followed by text */

    .target-itaas .target-itaas-consult {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    /* No desktop column divider on mobile */

    .target-itaas .target-itaas-consult::after {
        display: none;
    }

    .target-itaas-consult::before {
        top: 260px;
        right: -160px;
        width: 400px;
        height: 380px;
    }

    .target-itaas-consult__image {
        width: 100%;
        min-height: 0;
        aspect-ratio: 403 / 377;

        border-radius: 0 70px 70px 0;
    }

    .target-itaas-consult__image img {
        width: 100%;
        height: 100%;
        min-height: 0;

        object-fit: cover;
    }

    .target-itaas .target-itaas-consult__content {
        padding: 55px 27px 70px;
    }

    .target-itaas-consult__title {
        margin-bottom: 26px !important;
        font-size: 27px;
    }

    .target-itaas-consult__lead {
        margin-bottom: 33px !important;

        font-size: 14px;
        line-height: 1.3;
    }

    .target-itaas-consult__topic h3 {
        margin-bottom: 18px;

        font-size: 16px;
    }

    .target-itaas-consult__topic p {
        font-size: 14px;
        line-height: 1.3;
    }

    .target-itaas-consult__topic+.target-itaas-consult__topic {
        margin-top: 36px !important;
    }

    /* Horizontally scrollable Cloud strip */

    .target-itaas-cloud__track {
        display: flex;
        min-height: 165px;

        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .target-itaas-cloud__track::-webkit-scrollbar {
        display: none;
    }

    .target-itaas-cloud__heading {
        flex: 0 0 210px;
        padding: 25px 28px;

        scroll-snap-align: start;
    }

    .target-itaas-cloud__heading h2 {
        font-size: 16px;
    }

    .target-itaas-cloud__cell {
        flex: 0 0 160px;
        scroll-snap-align: start;
    }

    .target-itaas-cloud__cell .target-company-partners__seal {
        width: 64px;
        height: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .target-itaas__hero-button .wp-block-button__link,
    .target-itaas-support__card {
        transition: none;
    }

    .target-itaas__hero-button .wp-block-button__link:hover {
        transform: none;
    }
}

/* Real certification badges — Cloud support strip */

.target-itaas-cloud__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100% - 28px);
    max-height: 82px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 767px) {
    .target-itaas-cloud__logo {
        max-height: 76px;
    }
}