@import url(../css/global.css);

/* HERO */
.hero-idx{
    height: 100dvh;
    min-height: fit-content;
    background: linear-gradient(to right, oklch(13% 0.028 261.962),#0d2035); 
    display: flex;
    align-items: center;
    justify-content: center;
}

.soldador{
    max-width: 600px;
    max-height: 800px;
    border-radius: 20px;
    width: 600px;
    height: 800px;
}

.hero-overlay{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content-idx {
    display: block;
    width: 100%;
    text-align: center;
    padding: 2rem;
}

.hero-content-idx h2{
    font-size: 3rem; /*FONTE*/
    margin-bottom: 15px;
}

.hero-content-idx p{
    font-size: 1.5rem;
    color: #d1d1d1;
    margin-bottom: 2rem;
}

.hero-buttons{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-direction: column;
}

.btn-primary, .btn-secondary {
  text-decoration: none;
  padding: 1rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  gap: 10px;
  transition: background 0.3s, color 0.3s;
  font-size: 1.3rem;
}

.btn-primary {
  background-color: #f5f4f5;
  color: #0e0e10;
}

.btn-primary:hover {
  background-color: #0090c0;
  color: #f5f4f5;
}

.btn-secondary {
  border: 2px solid #f5f4f5;
  color: #f5f4f5;
}

.btn-secondary:hover {
  background-color: black;
  color: #f5f4f5;
}

@media (max-width: 1580px) {
    
    .hero-idx{
        height: 70dvh;
    }

    .hero-overlay{
        flex-direction: column;
        text-align: center;
    }

    .hero-content-idx{
        max-width: 100%;
        min-height: fit-content;
        text-align: center;
        justify-content: center;
        width: 100%;
        font-size: 2rem;
    }

    .hero-content-idx h2{
        font-size: 2.5rem;
        width: 100%;
    }

    .hero-content-idx p{
        font-size: 1.35rem;
    }

    .btn-primary, .btn-secondary {
        font-size: 1.25rem;
    }

    .soldador{
        padding: 2rem;
        border-radius: 20px;
        width: 500px;
        height: 700px;
    }

    .cards{
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .cards-resumo{
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .nossos-servicos{
        font-size: 1.5rem;
        padding: 1rem 1rem;
    }
    
}

@media (max-width: 480px) {

    .hero-idx{
        height: 80vh;
    }

    .hero-overlay{
        flex-direction: column;
        text-align: center;
    }

    .hero-content-idx h2{
        font-size: 2.25rem;
        width: 100%;
    }

    .hero-content-idx p{
        font-size: 1.25rem;
    }

    .soldador{
        width: 400px;
        height: 600px;
    }
}

/* SERVIÇOS */

.nossos-servicos{
    background: var(--background);
    color: white;
    min-height: fit-content;
    height: 25vh;
    align-content: center;
    padding: 2rem;
}

.nossos-servicos h6{
    font-size: 2rem;
    font-weight: 400;
}

.nossos-servicos p{
    margin-top: 1rem;
    font-size: 3rem;
    font-weight: 600;
}

.cards-servicos{
    background: #344151;
    align-items: center;
}

.todos-servicos{
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    min-height: 70vh;
    padding: 2rem;
    gap: 20px;
    flex-wrap: wrap;
}

.segmento{
    grid-template-columns: repeat(2, 1fr);
    display: flex;
    border: 1px solid;
    padding: 1rem;
    gap: 10px;
    background-color: #081422;
    border-radius: 10px;
}

.segmento h2{
    width: 30%;
    padding-left: 1rem;
    font-size: 2.5rem;
}

.segmento ul {
    list-style-type: none;
    padding-left: 1.5rem;
    margin-top: 1.5rem;
}

.segmento ul li{
    padding: 0.2rem;
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .todos-servicos{
        justify-content: center;
        height: 100%;
        width: auto;
        grid-template-columns: repeat(1, 1fr);
        display: grid;
    }

    .nossos-servicos h6{
        font-size: 1.75rem;
        font-weight: 500;
    }

    .nossos-servicos p{
        font-size: 2.75rem;
        font-weight: 600;
    }

    .segmento{
        text-align: left;
        padding: 1rem;
    }

    .segmento h2{
        font-size: 2.25rem;
    }

    .segmento ul li{
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {

    .nossos-servicos h6{
        font-size: 1.5rem;
        font-weight: 500;
    }

    .nossos-servicos p{
        font-size: 2.5rem;
        font-weight: 600;
    }

    .segmento h2{
        font-size: 2rem;
    }

    .segmento ul li{
        font-size: 1.5rem;
    }
}

/* NORMAS DE SEGURANÇA */

.normas{
    background: #344151;
    padding: 1rem;
}

.nr{
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    padding: 1rem;
    gap: 20px;
}

.card-nr{
    height: 100%;
    padding: 0.5rem;
    background: #081422;
    border-radius: 10px;
    border: 1px solid;
}

.card-nr h2{
    width: 95%;
    font-size: 2.5rem;
    align-content: center;
    margin: 1rem;
}

.caracteristicas{
    padding: 0 0 1rem 2.2rem;
    width: 100%;
    font-size: 1.5rem;
}

.caracteristicas ul{
    list-style: square;
}

@media (max-width: 1024px) {
    .nr{
        grid-template-columns: repeat(1, 1fr);
        display: grid;
        height: 100%;
        justify-content: center;
    }

    .card-nr h2{
        font-size: 2.25rem;
    }

    .caracteristicas{
        font-size: 1.5rem;
    }
    
}

/*ALUGUEL EQUIPAMENTOS */

.secao-aluguel{
    background-color: #344151;
    padding: 1rem;
}

.equipamentos{
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 15px;
    padding: 1rem;
}

.cards-equipamentos{
    display: flex;
    border: 0.5px solid;
    border-radius: 20px;
    padding: 1rem;
    background:#0d2035;
    min-height: fit-content;
    object-fit: cover;
}

.aluguel{
    grid-template-columns: repeat(1, 1fr);
    display: flex;
    justify-content: left;
    gap: 15px;
    width: 100%;
}

.aluguel ul{
    border: 1px solid;
    border-radius: 20px;
    background:  #081422;
    width: 100%;
    padding: 2rem;
}

.aluguel ul li{
    margin-left: 2rem;
    margin-right: 1rem;
    font-size: 1.5rem;
    list-style: none;
    padding-top: 1rem;
}

@media (max-width: 1580px) {
    .equipamentos{
        grid-template-columns: 1fr;
        display: grid;
    }

    .aluguel h2{
        font-size: 2.25rem;
    }

    .aluguel ul li{
        font-size: 1.25rem;
    }
}

@media (max-width: 780px) {
    .aluguel{
        grid-template-columns: 1fr;
        display: grid;
    }

    .aluguel h2{
        font-size: 2rem;
    }

    .aluguel ul li{
        font-size: 1.5rem;
    }
}

/* SECAO CLIENTES RESUMO */

.resumo{
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}
.cards-resumo{
    grid-template-columns: repeat(3, 1fr);
    display: grid;
    align-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 2rem;
}   

.card-resumo{
    background: var(--background-banner);
    text-align: center;
    border-radius: 7px;
    height: 100%;
    align-content: center;
    width: 100%;
    padding: 1rem
}

.card-resumo h2{
    font-size: 2.5rem;
}

.card-resumo p{
    font-size: 1.5rem;
}

@media (max-width: 780px) {
    .cards-resumo{
        grid-template-columns: 1fr;
        display: grid;
    }

    .card-resumo h2{
        font-size: 2.25rem;
    }

    .card-resumo p{
        font-size: 1.5rem;
    }
}

/* SECAO GERAL */

.fale-conosco {
    background: var(--background);
    color: white;
    text-align: center;
    align-content: center;
    font-size: 2rem;
    padding: 4rem 0;
}
.fale-conosco p {
    color: white;
    margin-top: 15px;
    margin-bottom: 30px;
    font-size: 1.5rem;
}
.fale-conosco .btn-primary {
    background: white;
    color: #0e0e10;
    margin-top: 20px;
}

.fale-conosco .btn-primary a{
    margin-top: 20px;
    font-size: 1.5rem;
}

.fale-conosco .btn-primary:hover {
    background:oklch(63.94% 0.151 219.57);
    color: #f5f5f5;
}

@media (max-width: 1024px) {
    .fale-conosco h2{
        font-size: 2.5rem;
    }

    .fale-conosco p{
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .fale-conosco h2{
        font-size: 2.25rem;
    }

    .fale-conosco p{
        font-size: 1.25rem;
    }
}
/* CARROSSEL */

/* --- Carrossel --- */

.cards-equipamentos img,
.aluguel img,
.slider img,
.slide {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
}

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    object-fit: cover;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    cursor: pointer;
    display: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.slide.active {
    display: block;
}

.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(31, 41, 55, 0.7);
    border: none;
    color: #f5f5f5;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 5px;
    justify-content: center;
}

.btn:hover {
    background: var(--background-banner);
}

.prev {
    left: -0.1rem; 
}

.next { 
    right: -0.1rem; 
}

/* --- Modal --- */
/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    /* max-width: 700px; */
    height: 80vh;
    /* max-height: 500px; */
    background-color: #111827;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    padding: 1rem;
    justify-content: center;
    align-items: center;
}

.modal-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #f5f5f5;
    cursor: pointer;
}

.prev-modal, .next-modal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(31,41,55,0.7);
    border: none;
    color: #f5f5f5;
    font-size: 2rem;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    border-radius: 5px;
}

.prev-modal { left: 10px; }
.next-modal { right: 10px; }

/* FUNDO DESFOCADO DO MODAL */
.modal-overlay {
    display: none; /* escondido por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* escurece um pouco */
    backdrop-filter: blur(8px); /* desfoca */
    z-index: 999; /* abaixo do modal (1000) */
}
