/* ==========================================================================
   Ecopetro - Portal Serviços
   Estilos customizados para o body.php do portal Ecopetro
   ========================================================================== */

/* --------------------------------------------------------------------------
   Título da Seção (.s-title)
   -------------------------------------------------------------------------- */
h1.s-title {
    text-align: left;
    font-family: 'Ubuntu', sans-serif;
    font-size: 32px;
    font-size: 3rem;
    font-weight: 300;
    color: #7B8795;
    letter-spacing: -1px;
    padding: 20px 0;
}

h1.s-title strong {
    font-weight: 700;
    color: #4A5568;
}

/* --------------------------------------------------------------------------
   Card de Serviço (.box-servico)
   -------------------------------------------------------------------------- */
article.box-servico {
    box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.18);
    display: block;
    text-align: center;
    margin-bottom: 40px;
    overflow: hidden;
    background: #fff;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Thumbnail / Imagem do Serviço (.thumb, figure, .mask)
   -------------------------------------------------------------------------- */
article.box-servico a.thumb {
    display: block;
    position: relative;
    overflow: hidden;
}

article.box-servico a.thumb figure {
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    line-height: 0;
}

article.box-servico a.thumb figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 400ms ease-in-out, opacity 400ms ease-in-out;
}

article.box-servico a.thumb:hover figure img {
    transform: scale(1.05);
    opacity: 0.85;
}

article.box-servico a.thumb figure span.mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 400ms ease-in-out;
}

article.box-servico a.thumb:hover figure span.mask {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Imagem Responsiva (.img-fluid)
   -------------------------------------------------------------------------- */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Conteúdo do Card (.content)
   -------------------------------------------------------------------------- */
article.box-servico .content {
    padding: 0 30px 30px;
}

article.box-servico .content img.ico {
    margin: 20px 0 10px;
    max-height: 60px;
}

article.box-servico .content h2 {
    margin: 0 0 10px;
    color: #7B8795;
    letter-spacing: -0.24px;
    line-height: 28px;
    font-size: 22px;
    font-size: 2.3rem;
    font-weight: 300;
    font-family: 'Ubuntu', sans-serif;
}

article.box-servico .content p {
    margin: 0 0 30px;
    color: #808B99;
    letter-spacing: -0.5px;
    line-height: 20px;
    font-weight: 300;
    font-size: 15px;
    font-size: 1.5rem;
}

article.box-servico .content a.btn-classic {
    margin: 0 auto;
    width: 200px;
}

/* --------------------------------------------------------------------------
   Botão Clássico (.btn-classic)
   -------------------------------------------------------------------------- */
a.btn-classic {
    font-family: 'Ubuntu', sans-serif;
    font-size: 18px;
    font-size: 1.5rem;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    border-radius: 2px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 200px;
    height: 60px;
    color: white;
    margin: 0;
    padding: 0 30px;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
    background: linear-gradient(to right, #31B8D8 0%, #2BA8D0 100%);
    transition: background-color 200ms ease-in-out;
}

a.btn-classic:hover {
    color: white;
    text-decoration: none;
    background-color: linear-gradient(to right, #31B8D8 0%, #2BA8D0 100%);
}

a.btn-classic.more {
    background-color: linear-gradient(to right, #31B8D8 0%, #2BA8D0 100%);
}

a.btn-classic.more:hover {
    background-color: linear-gradient(to right, #31B8D8 0%, #2BA8D0 100%);
}

a.btn-classic span {
    position: absolute;
    right: 20px;
    top: 12px;
    display: block;
    width: 39px;
    height: 39px;
}

a.btn-classic span i {
    display: block;
    position: absolute;
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-image: url(../ecopetro/img/sprite.png);
    background-position: -63px -7px;
    transition: all 150ms ease-in-out;
}

a.btn-classic:hover span i {
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-image: url(../ecopetro/img/sprite.png);
    background-position: -9px -7px;
    transition: all 150ms ease-in-out;
}

/* --------------------------------------------------------------------------
   Responsivo (Desktop ≥ 992px)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    h1.s-title {
        font-size: 38px;
        font-size: 2.375rem;
    }

    article.box-servico .content {
        padding: 0 2t5px 25px;
    }

    article.box-servico .content h2 {
        margin: 0 0 20px;
        letter-spacing: -1px;
        line-height: 32px;
        font-size: 28px;
        font-size: 1.75rem;
    }
}