/* =========================================================
   DNC LOGISTICS
   SERVICES PAGE
========================================================= */

.services-page {
    width: 100%;
    overflow: hidden;
    background: var(--white);
}


/* =========================================================
   HERO
========================================================= */

.services-hero {
    position: relative;
    min-height: 680px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--dark);
}


.services-hero-bg {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            90deg,
            rgba(4, 30, 41, 0.92) 0%,
            rgba(4, 30, 41, 0.72) 42%,
            rgba(4, 30, 41, 0.25) 100%
        ),
        url("../assets/images/hs1.jpg");

    background-size: cover;
    background-position: center;

    transform: scale(1.02);
}


.services-hero-content {
    position: relative;
    z-index: 2;

    width: min(var(--container), 90%);
    margin: 0 auto;

    padding-top: 70px;

    color: var(--white);
}


.services-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 25px;

    color: #55d2c8;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2.5px;
    text-transform: uppercase;
}


.services-label::before {
    content: "";

    width: 32px;
    height: 2px;

    background: #55d2c8;
}


.services-hero h1 {
    max-width: 850px;

    margin: 0;

    font-family: var(--heading-font);

    font-size: clamp(48px, 6vw, 82px);
    line-height: 1.02;

    font-weight: 500;

    letter-spacing: -3px;
}


.services-hero h1 strong {
    display: block;

    color: #55d2c8;

    font-weight: 700;
}


.services-hero-content > p {
    max-width: 610px;

    margin-top: 30px;

    color: rgba(255, 255, 255, 0.76);

    font-size: 16px;
    line-height: 1.8;
}


.services-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 42px;

    font-size: 12px;

    letter-spacing: 1px;
    text-transform: uppercase;
}


.services-breadcrumb span {
    color: rgba(255, 255, 255, 0.55);
}


.services-breadcrumb b {
    color: #55d2c8;

    font-weight: 400;
}


.services-breadcrumb strong {
    color: var(--white);
}


.services-hero-index {
    position: absolute;

    right: 5%;
    bottom: 45px;

    z-index: 2;

    display: flex;
    align-items: flex-end;
    gap: 15px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 11px;

    letter-spacing: 2px;
}


.services-hero-index strong {
    color: #55d2c8;

    font-family: var(--heading-font);

    font-size: 55px;
    line-height: 1;

    letter-spacing: -2px;
}


/* =========================================================
   SHOWCASE
========================================================= */

.services-showcase {
    padding: 125px 0 130px;

    background: var(--white);
}


.services-showcase-header {
    width: min(var(--container), 90%);
    margin: 0 auto 65px;

    display: grid;

    grid-template-columns: 1fr 0.65fr;

    gap: 80px;

    align-items: end;
}


.services-showcase-header h2 {
    max-width: 600px;

    margin-top: 18px;

    font-family: var(--heading-font);

    font-size: clamp(42px, 5vw, 65px);

    line-height: 1.05;

    font-weight: 500;

    letter-spacing: -2.5px;

    color: var(--dark);
}


.services-showcase-header h2 strong {
    display: block;

    color: var(--primary);

    font-weight: 700;
}


.services-showcase-header > p {
    max-width: 470px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.85;
}


/* =========================================================
   SERVICES GRID
========================================================= */

.services-grid {
    width: min(var(--container), 90%);
    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}


/* =========================================================
   SERVICE CARD
========================================================= */

.service-card {
    position: relative;

    min-height: 535px;

    padding: 30px;

    overflow: hidden;

    background: #f4f7f7;

    border: 1px solid rgba(6, 20, 25, 0.07);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        background 0.4s ease;
}


.service-card:hover {
    transform: translateY(-8px);

    background: var(--dark);

    box-shadow:
        0 25px 55px rgba(6, 20, 25, 0.15);
}


/* =========================================================
   CARD IMAGE
   Scroll reveal + hover reveal
========================================================= */

.service-card-image {
    position: absolute;
    inset: 0;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    clip-path: inset(12% 0 12% 0);

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease,
        clip-path 0.65s ease;

    /*
       Image reveals automatically as the card enters
       the viewport while scrolling.
       No JavaScript is required.
    */
    animation: serviceImageScrollReveal linear both;
    animation-timeline: view(block 8% 65%);
    animation-range: entry 0% entry 45%;
}


@keyframes serviceImageScrollReveal {
    0% {
        opacity: 0;
        visibility: hidden;
        clip-path: inset(12% 0 12% 0);
    }

    100% {
        opacity: 1;
        visibility: visible;
        clip-path: inset(0 0 0 0);
    }
}


.service-card-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(4, 30, 41, 0.35) 0%,
            rgba(4, 30, 41, 0.93) 100%
        );
}


.service-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.7s ease;
}


.service-card:hover .service-card-image {
    opacity: 1;
    visibility: visible;
    clip-path: inset(0 0 0 0);
}


.service-card:hover .service-card-image img {
    transform: scale(1.08);
}


/* =========================================================
   CARD TOP
========================================================= */

.service-card-top {
    position: relative;
    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: space-between;

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;
}


.service-arrow {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border:
        1px solid rgba(11, 130, 123, 0.25);

    border-radius: 50%;

    font-size: 18px;

    transition: 0.35s ease;
}


.service-card:hover .service-card-top {
    color: #55d2c8;
}


.service-card:hover .service-arrow {
    border-color: rgba(85, 210, 200, 0.5);

    transform: rotate(45deg);
}


/* =========================================================
   CARD ICON
========================================================= */

.service-card-icon {
    position: relative;
    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-top: 95px;
    margin-bottom: 28px;

    color: var(--primary);

    background: rgba(11, 130, 123, 0.09);

    border-radius: 8px;

    font-size: 26px;

    transition: 0.35s ease;
}


.service-card:hover .service-card-icon {
    color: #55d2c8;

    background: rgba(85, 210, 200, 0.13);
}


/* =========================================================
   CARD TITLE
========================================================= */

.service-card h3 {
    position: relative;
    z-index: 2;

    max-width: 330px;

    margin: 0;

    font-family: var(--heading-font);

    font-size: 29px;

    line-height: 1.1;

    font-weight: 500;

    color: var(--dark);

    letter-spacing: -1px;
}


.service-card h3 strong {
    display: block;

    color: var(--primary);

    font-weight: 700;
}


.service-card:hover h3 {
    color: var(--white);
}


.service-card:hover h3 strong {
    color: #55d2c8;
}


/* =========================================================
   CARD DESCRIPTION
========================================================= */

.service-card p {
    position: relative;
    z-index: 2;

    max-width: 360px;

    margin-top: 20px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.75;

    transition: color 0.35s ease;
}


.service-card:hover p {
    color: rgba(255, 255, 255, 0.68);
}


/* =========================================================
   CARD LINK
========================================================= */

.service-card > a {
    position: absolute;

    z-index: 2;

    left: 30px;
    bottom: 30px;

    display: inline-flex;

    align-items: center;

    gap: 12px;

    color: var(--dark);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    transition: 0.35s ease;
}


.service-card > a span {
    font-size: 17px;

    transition: transform 0.35s ease;
}


.service-card > a:hover span {
    transform: translateX(5px);
}


.service-card:hover > a {
    color: #55d2c8;
}


/* =========================================================
   FEATURED CARD
========================================================= */

.service-card-featured {
    background: var(--dark);
}


.service-card-featured .service-card-image {
    opacity: 1;
    visibility: visible;
    clip-path: inset(0 0 0 0);
    animation: none;
}


.service-card-featured .service-card-top {
    color: #55d2c8;
}


.service-card-featured .service-card-icon {
    color: #55d2c8;

    background: rgba(85, 210, 200, 0.13);
}


.service-card-featured h3 {
    color: var(--white);
}


.service-card-featured h3 strong {
    color: #55d2c8;
}


.service-card-featured p {
    color: rgba(255, 255, 255, 0.68);
}


.service-card-featured > a {
    color: #55d2c8;
}


/* =========================================================
   CTA
========================================================= */

.services-cta {
    position: relative;

    min-height: 500px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background: var(--dark);
}


.services-cta-bg {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 30, 41, 0.96) 0%,
            rgba(4, 30, 41, 0.78) 55%,
            rgba(4, 30, 41, 0.45) 100%
        ),
        url("../assets/images/img7.jpg");

    background-size: cover;

    background-position: center;
}


.services-cta-content {
    position: relative;
    z-index: 2;

    width: min(var(--container), 90%);
    margin: 0 auto;

    padding: 100px 0;
}


.services-cta-content .section-label {
    color: #55d2c8;
}


.services-cta-content .section-label::before {
    background: #55d2c8;
}


.services-cta-content h2 {
    max-width: 760px;

    margin-top: 20px;

    color: var(--white);

    font-family: var(--heading-font);

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.04;

    font-weight: 500;

    letter-spacing: -2.5px;
}


.services-cta-content h2 strong {
    display: block;

    color: #55d2c8;

    font-weight: 700;
}


.services-cta-content p {
    max-width: 540px;

    margin-top: 22px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 15px;

    line-height: 1.8;
}


.services-cta-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    min-height: 55px;

    margin-top: 35px;

    padding: 0 30px;

    color: var(--white);

    background: var(--primary);

    border-radius: 5px;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.7px;

    text-transform: uppercase;

    transition: 0.3s ease;
}


.services-cta-button span {
    font-size: 18px;

    transition: transform 0.3s ease;
}


.services-cta-button:hover {
    background: var(--primary-light);

    transform: translateY(-3px);
}


.services-cta-button:hover span {
    transform: translateX(5px);
}



/* =========================================================
   SCROLL ANIMATION FALLBACK
========================================================= */

@supports not (animation-timeline: view()) {

    .service-card-image {
        animation: none;
        visibility: hidden;
        opacity: 0;
        clip-path: inset(12% 0 12% 0);
    }

    .service-card:hover .service-card-image,
    .service-card-featured .service-card-image {
        visibility: visible;
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .services-hero {
        min-height: 620px;
    }


    .services-showcase {
        padding: 90px 0;
    }


    .services-showcase-header {
        grid-template-columns: 1fr;

        gap: 25px;

        margin-bottom: 45px;
    }


    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .service-card {
        min-height: 510px;
    }


    .services-cta {
        min-height: 450px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .services-hero {
        min-height: 570px;
    }


    .services-hero-content {
        padding-top: 45px;
    }


    .services-hero h1 {
        font-size: clamp(40px, 11vw, 55px);

        letter-spacing: -2px;
    }


    .services-hero-content > p {
        font-size: 14px;

        line-height: 1.7;
    }


    .services-hero-index {
        right: 5%;

        bottom: 25px;
    }


    .services-hero-index strong {
        font-size: 40px;
    }


    .services-showcase {
        padding: 75px 0;
    }


    .services-showcase-header h2 {
        font-size: 42px;

        letter-spacing: -1.5px;
    }


    .services-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .service-card {
        min-height: 500px;
    }


    .service-card-icon {
        margin-top: 90px;
    }


    .services-cta {
        min-height: 500px;
    }


    .services-cta-content {
        padding: 80px 0;
    }


    .services-cta-content h2 {
        font-size: 43px;

        letter-spacing: -1.5px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .services-hero {
        min-height: 540px;
    }


    .services-hero h1 {
        font-size: 37px;
    }


    .services-showcase-header h2 {
        font-size: 36px;
    }


    .service-card {
        padding: 25px;

        min-height: 480px;
    }


    .service-card > a {
        left: 25px;

        bottom: 25px;
    }


    .services-cta-content h2 {
        font-size: 37px;
    }

}