@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --red: #e11919;
  --red-dark: #a90e0e;
  --black: #0c0c0e;
  --charcoal: #17171a;
  --gray: #68686f;
  --light: #f4f4f5;
  --white: #fff;
  --shadow: 0 14px 35px rgba(0,0,0,.10);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    background-color: rgb(245, 238, 238);
    color: black;
    font-family: 'Poppins', sans-serif;
}


/* HEADER */

header{
    background-color: rgb(15, 9, 9);
    height: 95px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    padding: 10px 30px;
}

header img{
    width: 220px;
    height: auto;

    position: absolute;
    left: 30px;

    filter: drop-shadow(0px 0px 8px rgba(207, 13, 13, 0.35));

    transition: 0.3s;
}

header img:hover{
    transform: scale(1.04);
}


/* NAV */

nav{
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 45px;
}

nav a{
    position: relative;

    font-size: 17px;
    font-weight: bold;

    text-decoration: none;
    color: white;

    padding: 8px 3px;

    transition: 0.3s;
}

nav a::after{
    content: "";

    position: absolute;

    width: 0;
    height: 2px;

    left: 50%;
    bottom: 0;

    background-color: rgb(207, 13, 13);

    transform: translateX(-50%);

    transition: 0.3s;
}

nav a:hover{
    color: rgb(207, 13, 13);
}

nav a:hover::after{
    width: 100%;
}


/* INÍCIO */

.inicio{
    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 40px 20px;

    background:
        linear-gradient(
            rgba(0,0,0,0.65),
            rgba(0,0,0,0.65)
        ),
        url("oficina-fundo.jpg");

    background-size: cover;
    background-position: center;

    color: white;
}

.inicio-texto{
    max-width: 700px;
}

.inicio h1{
    font-size: 39px;
    margin-bottom: 35px;
}

.inicio p{
    font-size: 17px;
    margin-bottom: 10px;
}


/* BOTÕES */

button{
    margin-top: 20px;

    background-color: rgb(207, 13, 13);
    color: white;

    border-radius: 20px;

    height: 45px;
    width: 180px;

    border: none;

    cursor: pointer;

    font-weight: bold;
    font-size: 15px;

    transition: 0.2s;
}

button:hover{
    transform: scale(1.05);

    box-shadow:
        0px 0px 12px
        rgba(207, 13, 13, 0.6);
}


/* BOTÃO MAPS */

.contato .maps{
    background-color: rgb(207, 13, 13);
    color: white;

    box-shadow:
        0px 0px 12px
        rgba(207, 13, 13, 0.6);
}

.contato .maps:hover{
    transform: scale(1.05);

    box-shadow:
        0px 0px 15px
        rgba(207, 13, 13, 0.7);
}

/* SERVIÇOS */

.servicos{
    padding: 70px 20px;

    text-align: center;
}

.servicos h2,
.galeria h2,
.sobre h2,
.contato h2{
    font-size: 32px;
    margin-bottom: 15px;
}

.subtitulo{
    margin-bottom: 40px;
}


/* CARDS */

.servicos-container{
    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.servico{
    background-color: white;

    padding: 30px 20px;

    border-radius: 12px;

    box-shadow:
        0px 3px 10px
        rgba(0,0,0,0.12);

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    cursor: pointer;
}

.servico:hover{
    transform: translateY(-3px);
}

.servico h3{
    margin-bottom: 15px;

    color: rgb(180, 10, 10);
}

.servico p{
    line-height: 1.5;
}

/* GALERIA */

.galeria{
    padding: 70px 20px;

    background-color: rgb(25, 20, 20);

    color: white;

    text-align: center;
}

.fotos{
    max-width: 1100px;

    margin: 40px auto 0;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.fotos img{
    width: 100%;
    height: 250px;

    object-fit: cover;

    border-radius: 10px;

    transition: 0.3s;

    cursor: pointer;
}

.fotos img:hover{
    transform: scale(1.03);
}


/* SOBRE */

.sobre{
    padding: 70px 20px;

    text-align: center;
}

.sobre p{
    max-width: 700px;

    margin: auto;
}

.sobre p{
    line-height: 1.6;

    margin-top: 15px;
}


/* LOCAL */

.local{
    padding: 70px 20px;

    background-color: rgb(87, 79, 79);

    color: white;

    text-align: center;
}


/* FOOTER */

footer{
    background-color: rgb(15, 9, 9);

    color: white;

    text-align: center;

    padding: 25px;
}

.carrossel {
    max-width: 1100px;
    margin: 40px auto 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.carrossel-janela {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.fotos {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    margin: 0;
    max-width: none;
}

.fotos img {
    flex: 0 0 calc((100% - 40px) / 3);
    width: calc((100% - 40px) / 3);
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.fotos img:hover {
    transform: scale(1.03);
}

/* SETAS */

.seta {
    flex-shrink: 0;
    width: 45px;
    height: 50px;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    background-color: rgb(207, 13, 13);
    color: white;
    font-size: 25px;
    cursor: pointer;
    border: none;
}

.seta:hover {
    transform: scale(1.05);
}

/* ========================= */
/* MODAL DA IMAGEM */
/* ========================= */

.modal-imagem {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.modal-imagem.ativo {
    display: flex;
}

.modal-imagem img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.fechar {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 45px;
    height: 45px;
    margin: 0;
    padding: 0;
    background: transparent;
    color: white;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    border: none;
}

.fechar:hover {
    transform: scale(1.1);
    box-shadow: none;
}

/* ========================= */
/* RESPONSIVIDADE */
/* ========================= */

@media (max-width: 700px) {

    .carrossel {
        gap: 0;
    }

    .fotos {
        gap: 0;
        touch-action: pan-y;
        cursor: grab;
    }

    .fotos img {
        flex: 0 0 100%;
        width: 100%;
        height: 280px;
        border-radius: 10px;
    }

    .seta {
        display: none;
    }

    .modal-imagem {
        padding: 40px 10px;
    }

    .modal-imagem img {
        max-width: 100%;
        max-height: 80vh;
    }

    .fechar {
        top: 10px;
        right: 15px;
    }

}


/* RESPONSIVIDADE */

@media (max-width: 700px){

    header{
        height: auto;
        min-height: 130px;

        flex-direction: column;

        gap: 15px;

        padding: 15px;
    }

    header img{
        position: static;

        width: 150px;
    }

    nav{
        gap: 18px;

        flex-wrap: wrap;

        justify-content: center;
    }

    nav a{
        font-size: 14px;
    }


    .inicio{
        min-height: 450px;
    }

    .inicio h1{
        font-size: 34px;
    }

    .inicio p{
        font-size: 17px;
    }


    .servicos-container{
        grid-template-columns: 1fr;
    }


    .fotos{
        grid-template-columns: 1fr;
    }


    .fotos img{
        height: 220px;
    }

}

