
/* =========================================================
   RM ENGENHARIA — PÁGINA DE SERVIÇOS
   Visual baseado na versão aprovada da página Serviços.
   Compatível com o servico.html enviado.
========================================================= */

/* =========================================================
   AJUSTE DO CABEÇALHO
========================================================= */

.cabecalho {
    min-height: 96px !important;
}

.cabecalho-conteudo {
    height: 96px !important;
}

.logo img {
    max-width: 185px !important;
}

.menu {
    gap: 34px !important;
}

.menu a {
    font-size: 14px !important;
}

.botao-orcamento {
    font-size: 10.5px !important;
    padding: 14px 24px !important;
}

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

.servicos-container {
    width: min(100% - 120px, 1160px);
    margin: 0 auto;
    position: relative;
}

.servicos-hero,
.lista-servicos,
.servico-detalhes,
.diferenciais {
    position: relative;
}

/* =========================================================
   HERO
========================================================= */

.servicos-hero {
    min-height: 285px;
    background:
        linear-gradient(90deg, rgba(5,16,25,.98) 0%, rgba(5,16,25,.92) 30%, rgba(5,16,25,.48) 70%, rgba(5,16,25,.25) 100%),
        url("imagens/banner.png") center center / cover no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.servicos-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 0 55%, rgba(255,115,0,.10) 55.2%, transparent 55.6%),
        linear-gradient(135deg, transparent 0 72%, rgba(255,115,0,.09) 72.2%, transparent 72.6%);
    pointer-events: none;
}

.servicos-hero-linhas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .75;
    background:
        linear-gradient(132deg, transparent 0 77%, rgba(255,115,0,.9) 77.15%, transparent 77.4%),
        linear-gradient(132deg, transparent 0 84%, rgba(255,115,0,.75) 84.1%, transparent 84.35%);
}

.servicos-hero-conteudo {
    position: relative;
    z-index: 2;
    padding: 50px 0 46px;
    max-width: 540px;
}

.servicos-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ff7100;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.servicos-label span {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #ff7100;
}

.servicos-label i {
    width: 40px;
    height: 2px;
    background: #ff7100;
    display: block;
    margin-left: 2px;
}

.servicos-hero h1 {
    margin: 0;
    padding-left: 16px;
    border-left: 4px solid #ff7100;
    color: #f7f7f7;
    font-size: 40px;
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.5px;
}

.servicos-hero h1 strong {
    color: #ff7100;
}

.servicos-hero p {
    margin: 18px 0 0 20px;
    color: rgba(255,255,255,.88);
    font-size: 15px;
    line-height: 1.45;
    max-width: 450px;
}

/* =========================================================
   LISTA DE SERVIÇOS
========================================================= */

.lista-servicos {
    background: #f4f7f9;
    padding: 32px 0 34px;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card-servico {
    position: relative;
    min-height: 250px;
    border-radius: 6px;
    overflow: hidden;
    background: #0b1822;
    isolation: isolate;
    box-shadow: 0 8px 22px rgba(8,20,30,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.card-servico:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(8,20,30,.15);
}

.card-imagem {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.card-imagem img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            to bottom,
            rgba(5,16,25,.04) 0%,
            rgba(5,16,25,.20) 25%,
            rgba(5,16,25,.80) 67%,
            rgba(5,16,25,.98) 100%
        );
}

.card-conteudo {
    min-height: 250px;
    padding: 24px 24px 19px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-icone {
    color: #ff7100;
    font-size: 31px;
    line-height: 1;
    margin-bottom: 9px;
}

.card-conteudo h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 17px;
    line-height: 1.15;
    font-weight: 750;
}

.card-conteudo p {
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 13px;
    line-height: 1.35;
    max-width: 270px;
}

.card-link {
    align-self: flex-start;
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: none;
    color: #ff7100;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link span {
    font-size: 18px;
    line-height: 10px;
    transition: transform .2s ease;
}

.card-link:hover span {
    transform: translateX(4px);
}

/* =========================================================
   DETALHES DO SERVIÇO
========================================================= */

.servico-detalhes {
    min-height: 470px;
    padding: 38px 0 46px;
    background:
        linear-gradient(120deg, #08151f 0%, #0a1822 58%, #0d1c27 100%);
    color: #fff;
    overflow: hidden;
}

.detalhes-fundo {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .55;
    background:
        linear-gradient(135deg, transparent 0 68%, rgba(255,113,0,.09) 68.2%, transparent 68.5%),
        linear-gradient(135deg, transparent 0 83%, rgba(255,113,0,.06) 83.2%, transparent 83.5%);
}

.detalhes-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    gap: 62px;
    align-items: center;
}

.detalhes-conteudo {
    min-width: 0;
}

.voltar-servicos {
    display: inline-block;
    margin-bottom: 19px;
    color: rgba(255,255,255,.68);
    font-size: 11px;
    text-decoration: none;
}

.voltar-servicos:hover {
    color: #ff7100;
}

.detalhes-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 11px;
}

.detalhes-label span {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #ff7100;
}

.detalhes-label strong {
    color: #ff7100;
    font-size: 12px;
    letter-spacing: 1.3px;
}

.detalhes-conteudo h2 {
    margin: 0;
    padding-left: 15px;
    border-left: 3px solid #ff7100;
    color: #f7f7f7;
    font-size: 30px;
    line-height: 1.08;
    font-weight: 750;
}

.detalhes-conteudo h2 strong {
    color: #ff7100;
}

.detalhes-linha {
    width: 48px;
    height: 2px;
    background: #ff7100;
    margin: 14px 0 15px 18px;
}

.detalhes-conteudo p {
    margin: 0 0 8px 18px;
    max-width: 410px;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    line-height: 1.48;
}

.detalhes-lista {
    list-style: none;
    margin: 17px 0 21px 18px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.detalhes-lista li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.88);
    font-size: 12px;
}

.detalhes-lista li span {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ff7100;
    color: #07141e;
    font-size: 10px;
    font-weight: 900;
}

.detalhes-botao {
    margin-left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 19px;
    border: 1px solid #ff7100;
    border-radius: 4px;
    color: #ff7100;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.detalhes-botao:hover {
    background: #ff7100;
    color: #07141e;
}

.detalhes-botao span {
    font-size: 15px;
}

/* =========================================================
   GALERIA
========================================================= */

.detalhes-galeria {
    position: relative;
    min-width: 0;
}

.foto-principal {
    position: relative;
    height: 258px;
    border-radius: 6px;
    overflow: hidden;
    background: #101f2a;
}

.foto-principal img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.foto-marca {
    position: absolute;
    left: 18px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,113,0,.9);
    background: rgba(5,16,25,.76);
    color: #ff7100;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
}

.galeria-miniaturas {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.miniatura {
    width: 92px;
    height: 60px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    opacity: .78;
    transition: .2s ease;
}

.miniatura img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.miniatura:hover,
.miniatura.ativa {
    border-color: #ff7100;
    opacity: 1;
}

.seta-foto {
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(7,20,30,.82);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
}

.seta-foto span {
    font-size: 22px;
    line-height: 1;
}

.seta-carrossel {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 30px;
    opacity: .9;
}

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

.diferenciais {
    min-height: 125px;
    padding: 30px 0;
    background:
        linear-gradient(rgba(5,16,25,.91), rgba(5,16,25,.94)),
        url("imagens/execucao.jpeg") center / cover no-repeat;
    border-top: 1px solid rgba(255,255,255,.16);
    overflow: hidden;
}

.diferenciais-fundo {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, transparent 0 75%, rgba(255,113,0,.45) 75.15%, transparent 75.45%),
        linear-gradient(135deg, transparent 0 86%, rgba(255,113,0,.75) 86.15%, transparent 86.45%);
}

.diferenciais-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.diferencial {
    min-height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid rgba(255,113,0,.65);
}

.diferencial:last-child {
    border-right: 0;
}

.diferencial-icone {
    margin-bottom: 7px;
    color: #ff7100;
    font-size: 25px;
    line-height: 1;
}

.diferencial strong,
.diferencial span {
    display: block;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
}

.diferencial span {
    color: rgba(255,255,255,.83);
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 1000px) {

    .servicos-container {
        width: min(100% - 70px, 900px);
    }

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

    .detalhes-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .detalhes-galeria {
        max-width: 720px;
        width: 100%;
        margin: 0 auto;
    }

    .servico-detalhes {
        padding-bottom: 65px;
    }
}

@media (max-width: 700px) {

    .cabecalho {
        height: 80px;
        min-height: 80px !important;
    }

    .cabecalho-conteudo {
        height: 80px !important;
    }

    .logo img {
        width: 170px;
        max-width: 170px !important;
    }

    .menu {
        display: none;
    }

    .botao-orcamento {
        display: none;
    }

    .servicos-container {
        width: calc(100% - 40px);
    }

    .servicos-hero {
        min-height: 430px;
        align-items: flex-end;
    }

    .servicos-hero-conteudo {
        padding: 65px 0 55px;
    }

    .servicos-hero h1 {
        font-size: 34px;
    }

    .servicos-hero p {
        font-size: 14px;
        margin-left: 19px;
    }

    .lista-servicos {
        padding: 28px 0 35px;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card-servico,
    .card-conteudo {
        min-height: 300px;
    }

    .card-conteudo {
        padding: 27px 24px 22px;
    }

    .servico-detalhes {
        padding: 35px 0 55px;
    }

    .detalhes-conteudo h2 {
        font-size: 29px;
    }

    .foto-principal {
        height: 270px;
    }

    .galeria-miniaturas {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .miniatura {
        flex: 0 0 82px;
    }

    .seta-foto {
        right: 10px;
    }

    .seta-carrossel {
        display: none;
    }

    .diferenciais {
        padding: 28px 0;
    }

    .diferenciais-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 22px;
    }

    .diferencial:nth-child(2) {
        border-right: 0;
    }

    .diferencial:nth-child(3),
    .diferencial:nth-child(4) {
        border-top: 1px solid rgba(255,113,0,.4);
        padding-top: 18px;
    }
}

@media (max-width: 450px) {

    .servicos-container {
        width: calc(100% - 28px);
    }

    .servicos-hero h1 {
        font-size: 30px;
    }

    .servicos-hero p {
        font-size: 13px;
    }

    .card-servico,
    .card-conteudo {
        min-height: 285px;
    }

    .detalhes-conteudo h2 {
        font-size: 26px;
    }

    .foto-principal {
        height: 230px;
    }

    .diferencial strong,
    .diferencial span {
        font-size: 11px;
    }
}
/* CORREÇÃO — HERO ABAIXO DO CABEÇALHO */

.servicos-hero {
    margin-top: 96px !important;
}

/* =========================================================
   TÍTULO — ÚLTIMOS TRABALHOS E PROJETOS
========================================================= */

.ultimos-trabalhos-titulo {
    position: relative;
    margin: 0 0 24px;
    padding-left: 18px;
    border-left: 3px solid #ff7100;
}

.ultimos-trabalhos-titulo span {
    display: block;
    margin-bottom: 7px;
    color: #ff7100;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.ultimos-trabalhos-titulo h2 {
    margin: 0;
    color: #17263a;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
}

.ultimos-trabalhos-titulo h2 strong {
    color: #ff7100;
    font-weight: 800;
}

@media (max-width: 700px) {
    .ultimos-trabalhos-titulo {
        margin-bottom: 18px;
        padding-left: 14px;
    }

    .ultimos-trabalhos-titulo h2 {
        font-size: 23px;
        line-height: 1.2;
    }

    .ultimos-trabalhos-titulo span {
        font-size: 9px;
        letter-spacing: 2px;
    }
}


/* =========================================================
   AJUSTE SOLICITADO — CARDS DE SERVIÇOS SEM ÍCONES
   Mantém toda a estrutura, tamanhos e posicionamento dos cards.
========================================================= */
.lista-servicos .card-icone {
    display: none !important;
}

/* Marca correta na galeria legada: usa a logo oficial, sem o bloco "RM". */
.foto-marca {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    display: block;
}

.foto-marca img {
    display: block;
    width: 128px;
    max-width: 28vw;
    height: auto;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.35));
}

@media (max-width: 700px) {
    .foto-marca img {
        width: 112px;
        max-width: 42vw;
    }
}

/* =========================================================
   CORREÇÃO FINAL — TOQUE DO MENU MOBILE
   Somente o link controla a navegação; a seta é visual.
   Não altera dimensões, cores ou posicionamento.
   ========================================================= */
@media (max-width: 700px) {
    .cabecalho .menu.menu-aberto .menu-servicos .seta {
        pointer-events: none !important;
    }
}

/* CORREÇÃO FINAL — CABEÇALHO PADRÃO RM */
.cabecalho { height:96px !important; min-height:96px !important; max-height:96px !important; box-sizing:border-box !important; }
.cabecalho-conteudo { height:96px !important; min-height:96px !important; box-sizing:border-box !important; }
.cabecalho .logo { display:flex !important; align-items:center !important; }
.cabecalho .logo img { width:185px !important; max-width:185px !important; height:auto !important; display:block !important; }
.cabecalho .menu { gap:34px !important; }
.cabecalho .menu > a, .cabecalho .menu-dropdown > a { font-size:14px !important; }
.cabecalho .botao-orcamento { font-size:10.5px !important; padding:14px 24px !important; }
@media (max-width:700px) {
  .cabecalho, .cabecalho-conteudo { height:96px !important; min-height:96px !important; max-height:96px !important; }
  .cabecalho .logo img { width:185px !important; max-width:185px !important; }
}



/* =====================================================
   RM ENGENHARIA — REMOVER LINHA BRANCA NO CELULAR
===================================================== */

@media only screen and (max-width: 700px) {

    header.cabecalho > .container.cabecalho-conteudo::before {
        content: none !important;
        display: none !important;
        visibility: hidden !important;
    }

}

/* TESTE — IDENTIFICAR TEXTO EXIBIDO NOS CARDS DINÂMICOS */
@media screen and (max-width: 700px) {

    .servicos-grid [data-rm-dynamic="true"] .card-conteudo p,
    .servicos-grid [data-rm-dynamic="true"] .card-conteudo span,
    .servicos-grid [data-rm-dynamic="true"] .card-conteudo small {
        display: none !important;
    }

}


/* =====================================================
   RM ENGENHARIA — FAIXA DE CLIENTES
   Inserida abaixo da grade de serviços.
===================================================== */

.clientes-faixa {
    width: 100%;
    padding: 38px 0;
    background: #fff;
    overflow: hidden;
}

.clientes-faixa-conteudo {
    width: min(96%, 1840px);
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.clientes-titulo {
    flex: 0 0 350px;
    min-height: 80px;
    padding: 0 24px 0 20px;
    display: flex;
    align-items: center;
    border-left: 7px solid #ff7100;
    border-right: 1px solid #c9c9c9;
}

.clientes-titulo h2 {
    margin: 0;
    color: #101d31;
    font-size: 26px;
    line-height: 1.18;
    font-weight: 800;
}

.clientes-lista {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.cliente-logo {
    flex: 1 1 0;
    min-width: 0;
    height: 80px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #c9c9c9;
}

.cliente-logo:last-child {
    border-right: 0;
}

.cliente-logo img {
    display: block;
    width: 100%;
    max-width: 155px;
    max-height: 66px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1100px) {
    .clientes-faixa-conteudo {
        width: 98%;
    }

    .clientes-titulo {
        flex-basis: 260px;
        padding-right: 14px;
    }

    .clientes-titulo h2 {
        font-size: 21px;
    }

    .cliente-logo {
        padding: 0 9px;
    }

    .cliente-logo img {
        max-width: 125px;
    }
}

@media (max-width: 700px) {
    .clientes-faixa {
        padding: 28px 0;
    }

    .clientes-faixa-conteudo {
        width: 100%;
        display: block;
    }

    .clientes-titulo {
        width: calc(100% - 40px);
        min-height: 60px;
        margin: 0 20px 20px;
        padding-left: 15px;
        border-right: 0;
    }

    .clientes-titulo h2 {
        font-size: 21px;
    }

    .clientes-lista {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 8px 20px 14px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .cliente-logo {
        flex: 0 0 145px;
        height: 72px;
        padding: 0 18px;
    }

    .cliente-logo img {
        max-width: 115px;
        max-height: 54px;
    }
}

/* LOGOTIPOS — DESKTOP */
.cliente-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 12px 16px;
}

.cliente-logo img {
    display: block;
    width: 100%;
    max-width: 155px;
    height: 65px;
    object-fit: contain;
}

/* TABLET */
@media (max-width: 1000px) {
    .cliente-logo img {
        max-width: 140px;
        height: 60px;
    }
}

/* CELULAR */
@media (max-width: 700px) {
    .clientes-lista {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cliente-logo {
        min-height: 90px;
        padding: 12px;
        border: 1px solid #eeeeee;
        border-radius: 5px;
    }

    .cliente-logo img {
        width: 100%;
        max-width: 130px;
        height: 58px;
        object-fit: contain;
    }
}

/* CELULAR PEQUENO */
@media (max-width: 380px) {
    .cliente-logo {
        min-height: 78px;
        padding: 8px;
    }

    .cliente-logo img {
        height: 48px;
    }
}

