/* =========================================================
   DOTS MEDIA
   WHAT WE DO — SERVICES GRID
   ========================================================= */

.services-wrap {
    position: relative;

    background: #0a0705;

    padding: 10px 60px 60px;

    overflow: hidden;
}


/* =========================================================
   HEADER
   ========================================================= */

.services-tag {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #cfcfcf;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;

    margin-bottom: 22px;

    /* Scroll reveal — fades/slides up first. */
    opacity: 5;
    transform: translateY(14px);

    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.services-title {
    max-width: 900px;

    font-size: 44px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
    color: #ffffff;

    margin-bottom: 16px;

    /* Scroll reveal — starts ~0.12s after the tag. */
    opacity: 5;
    transform: translateY(14px);

    transition:
        opacity 0.5s ease 0.12s,
        transform 0.5s ease 0.12s;
}

.services-subtitle {
    max-width: 640px;

    color: #a9a9a9;

    font-size: 16px;
    line-height: 1.6;

    margin-bottom: 56px;

    /* Scroll reveal — starts ~0.1s after the title. */
    opacity: 5;
    transform: translateY(14px);

    transition:
        opacity 0.5s ease 0.22s,
        transform 0.5s ease 0.22s;
}

/* Toggled by animations.js the moment the section scrolls into view. */
.services-wrap.in-view .services-tag,
.services-wrap.in-view .services-title,
.services-wrap.in-view .services-subtitle {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   GRID
   ========================================================= */

.services-grid {
    position: relative;
    z-index: 2;

    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


/* =========================================================
   CARD
   ========================================================= */

.service-card {
    position: relative;

    display: block;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    overflow: hidden;

    text-decoration: none;

    transition: border-color 0.35s ease;
}

.service-card:hover,
.service-card.tap-active {
    border-color: #ff7a1a;
}


/* =========================================================
   CARD IMAGE
   ========================================================= */

.service-image {
    position: relative;

    height: 150px;

    overflow: hidden;

    background: #14100c;
}

.service-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    transition: transform 0.5s ease;
}

.service-card:hover .service-image img,
.service-card.tap-active .service-image img {
    transform: scale(1.06);
}

.service-num {
    position: absolute;
    top: 14px;
    left: 18px;
    z-index: 2;

    color: #ff7a1a;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* =========================================================
   CARD BODY
   ========================================================= */

.service-body {
    padding: 20px 22px 22px;
}

.service-title {
    color: #ffffff;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;

    margin-bottom: 8px;
}

.service-desc {
    color: #9a9a9a;

    font-size: 13px;
    line-height: 1.55;

    margin-bottom: 18px;
}

.service-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #7a7a7a;

    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    transition: color 0.3s ease;
}

.service-explore .arrow {
    color: #7a7a7a;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.service-card:hover .service-explore,
.service-card.tap-active .service-explore {
    color: #ffffff;
}

.service-card:hover .service-explore .arrow,
.service-card.tap-active .service-explore .arrow {
    color: #ff7a1a;
    transform: translateX(4px);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-title {
        font-size: 32px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .services-tag,
    .services-title,
    .services-subtitle {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

}