/* ==========================================
   SERVICES
========================================== */

.services {
    padding: 120px 0;
    background: #19263B;
}

.services .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================
   HEADER
========================================== */

.services-header {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-tag {
    display: block;
    margin-bottom: 20px;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;

    color: rgba(255, 255, 255, .7);
}

.services-header h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;

    color: #fff;

    margin-bottom: 20px;
}

.services-header h2 span {
    color: #FF5B57;
}

.services-header p {
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
    line-height: 1.7;
}

/* ==========================================
   LISTA
========================================== */

#services-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ==========================================
   CARD BASE
========================================== */

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;

    transition: .3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .6s ease;
}

.service-card:hover img {
    transform: scale(1.03);
}

/* ==========================================
   OVERLAY
========================================== */

.service-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(to top,
            rgba(4, 18, 37, .90) 0%,
            rgba(4, 18, 37, .50) 35%,
            rgba(4, 18, 37, .15) 65%,
            rgba(4, 18, 37, 0) 100%);
}

.service-overlay::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 120px;

    background:
        linear-gradient(to top,
            rgba(4, 18, 37, .90) 0%,
            rgba(4, 18, 37, .50) 35%,
            rgba(4, 18, 37, .15) 65%,
            rgba(4, 18, 37, 0) 100%);
}

/* ==========================================
   CONTEÚDO GERAL
========================================== */

.service-content {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 40px;

    z-index: 2;
}

/* ==========================================
   CARD PRINCIPAL
========================================== */

.service-card.featured {
    min-height: 520px;
}

.service-card.featured .service-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;

    gap: 60px;

    padding: 0 60px;
}

.service-card.featured .service-left {
    display: flex;
    align-items: flex-end;
}

.service-card.featured .service-left h3 {
    margin: 0;

    font-size: 52px;
    font-weight: 700;
    line-height: 1;

    color: #fff;
}

.service-card.featured .service-right {
    max-width: 540px;
    justify-self: end;
}

.service-card.featured .service-right p {
    margin-bottom: 24px;

    color: rgba(255, 255, 255, .9);

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

/* ==========================================
   DIFERENCIAIS
========================================== */

.service-highlights {
    list-style: none;

    display: flex;
    flex-direction: column;

    gap: 10px;
}

.service-highlights li {
    position: relative;

    padding-left: 18px;

    color: #fff;
    font-size: 15px;
    line-height: 1.5;
}

.service-highlights li::before {
    content: "➜";

    position: absolute;
    left: 0;

    color: #FF5B57;
}

/* ==========================================
   CARDS SECUNDÁRIOS
========================================== */

.service-card:not(.featured) {
    min-height: 300px;
}

.service-card:not(.featured) .service-content {
    display: grid;
    grid-template-columns: 280px 1fr;

    gap: 50px;

    padding: 0 60px;
}

.service-card:not(.featured) .service-left {
    display: flex;
    align-items: flex-end;
}

.service-card:not(.featured) .service-left h3 {
    margin: 0;

    color: #fff;

    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

.service-card:not(.featured) .service-right {
    max-width: 540px;
    justify-self: end;
}

.service-card:not(.featured) .service-right p {
    margin: 0;

    color: rgba(255, 255, 255, .9);

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

.service-card:not(.featured) .service-highlights {
    display: none;
}

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

@media (max-width: 991px) {

    .services {
        padding: 80px 0;
    }

    .services-header h2 {
        font-size: 38px;
    }

    .service-card.featured {
        min-height: 650px;
    }

    .service-card.featured .service-content {
        grid-template-columns: 1fr;
        gap: 25px;

        padding: 0 40px;
    }

    .service-card.featured .service-right {
        max-width: 100%;
    }

    .service-card:not(.featured) {
        min-height: 250px;
    }

    .service-card:not(.featured) .service-content {
        grid-template-columns: 1fr;
        gap: 10px;

        padding: 0 40px;
    }
}

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

@media (max-width: 768px) {

    .services .container {
        padding: 0 20px;
    }

    .services-header h2 {
        font-size: 32px;
    }

    .service-content {
        bottom: 25px;
    }

    .service-card.featured {
        min-height: 760px;
    }

    .service-card.featured .service-content {
        padding: 0 25px;
    }

    .service-card.featured .service-left h3 {
        font-size: 34px;
    }

    .service-card.featured .service-right p {
        font-size: 14px;
    }

    .service-card:not(.featured) {
        min-height: 220px;
    }

    .service-card:not(.featured) .service-content {
        padding: 0 25px;
    }

    .service-card:not(.featured) .service-left h3 {
        font-size: 24px;
    }

    .service-card:not(.featured) .service-right {
        max-width: 100%;
    }
}