@import url("style.css");

.service-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    padding: 128px 0 70px;
    color: var(--branco);
    overflow: hidden;
    background: var(--azul-forja);
}

.service-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--service-image) center / cover no-repeat;
    opacity: .62;
    filter: saturate(.9) contrast(1.08);
}

.service-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 35, 55, .98), rgba(15, 35, 55, .72), rgba(25, 25, 28, .42)),
        linear-gradient(0deg, rgba(25, 25, 28, .95), transparent 48%);
}

.service-hero-content {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.service-hero h1 {
    margin: 16px 0 18px;
    font-size: clamp(2.25rem, 5vw, 5rem);
}

.service-hero p {
    max-width: 760px;
    color: rgba(235, 235, 235, .82);
    font-size: 1.15rem;
}

.service-main {
    background: #f6f7f8;
}

.service-overview {
    padding: 86px 0;
}

.service-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 50px;
    align-items: start;
}

.service-content {
    padding: 38px;
    background: var(--branco);
    box-shadow: var(--sombra);
}

.service-content h2 {
    margin-bottom: 18px;
    color: var(--azul-forja);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.service-content h3 {
    margin: 34px 0 16px;
    color: var(--azul-forja);
    font-size: 1.2rem;
}

.service-content p {
    color: #4f5962;
    margin-bottom: 16px;
}

.service-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    list-style: none;
}

.service-list li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    color: #39444d;
    line-height: 1.55;
}

.service-list li::before {
    content: "";
    width: 9px;
    height: 9px;
    margin-top: 8px;
    background: var(--azul-tecnologico);
}

.service-aside {
    position: sticky;
    top: 105px;
    display: grid;
    gap: 14px;
}

.aside-card {
    padding: 24px;
    background: var(--azul-forja);
    color: var(--branco-polido);
}

.aside-card h3 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.aside-card span {
    display: block;
    padding: 12px 0;
    border-top: 1px solid rgba(235, 235, 235, .14);
    color: rgba(235, 235, 235, .78);
    font-weight: 700;
}

.aside-card .btn {
    width: 100%;
    margin-top: 18px;
}

.service-gallery {
    padding: 0 0 92px;
}

.service-gallery .section-heading {
    margin-bottom: 30px;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-masonry button {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 0;
    background: var(--preto-fornalha);
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-masonry button:nth-child(3n + 1) {
    grid-row: auto;
}

.gallery-masonry button:nth-child(5n + 2) {
    grid-column: auto;
}

.gallery-masonry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}

.gallery-masonry button:hover img {
    opacity: .78;
    transform: scale(1.06);
}

.gallery-masonry span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 13px 15px;
    background: linear-gradient(0deg, rgba(15, 35, 55, .94), rgba(15, 35, 55, .08));
    color: var(--branco);
    font-weight: 800;
    text-align: left;
}

@media (max-width: 980px) {
    .service-layout {
        grid-template-columns: 1fr;
    }

    .service-aside {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .service-hero {
        min-height: auto;
        padding: 118px 0 50px;
    }

    .service-overview {
        padding: 58px 0;
    }

    .service-content {
        padding: 24px;
    }

    .service-aside,
    .gallery-masonry {
        grid-template-columns: 1fr;
    }

    .gallery-masonry button {
        height: auto;
    }
}
