/*cores da empresa

AZUL: color: #015eae;
Laranja: color: #f48222;
*/

*, body, html {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body{
    background-color: #252525;
    color: #fff;
}
head {
    padding: 0;
    margin: 0;
    justify-self: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

/* header */

header {
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: space-between;  
    align-items: center;  
    top: 20px;
    left: 20px;
    right: 20px;
    height: 50px;
    overflow-y: hidden;
    z-index: 1000;
}

.menu-toggle {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1000;
}
.menu-bar {
    width: 100%;
    height: 4px;
    background-color: #f48222;
    transition: transform 0.3s ease;
}
.menu {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #000000e8;
    width: 250px;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}
.menu.open {
    transform: translateX(0);
    -webkit-box-shadow: 1px 0px 14px -8px rgba(255,255,255,1);
    -moz-box-shadow: 1px 0px 14px -8px rgba(255,255,255,1);
    box-shadow: 1px 0px 14px -8px rgba(255,255,255,1);
}
.menu ul {
    list-style-type: none;
    padding: 0;
    margin: 20px;
    text-align: right;
}
.menu ul li {
    margin-bottom: 10px;
}
.menu ul li a {
    text-decoration: none;
    color: #f48222;
    font-size: 18px;
    transition: 0.5s;
}
.menu ul li a:hover {
    color: #015eae;
    transition: 0.5s;
}
.menu-toggle.open .menu-bar:first-child {
    transform: translateY(10px) rotate(45deg);
}
.menu-toggle.open .menu-bar:last-child {
    transform: translateY(-10px) rotate(-45deg);
}
.menu-toggle.open .menu-bar:nth-child(2) {
    opacity: 0;
}

.social-icons a img {
    height: 50px;
}
.social-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.social-icons a:not(:first-child) {
    margin-left: 20px;
}

.fale-conosco {
    position: fixed;
    bottom: 30px;
    right: 20px;
    animation: pulse 1.5s infinite ease-in-out;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
}
.fale-conosco p {
    opacity: 0;
    visibility: hidden;
    background-color: #252525;
    color: #fff;
    padding: 3px;
    font-size: 10px;
    font-weight: 600;
    width: 10vw;
    border: 2px #f48222 solid;
    border-radius: 5px;
    margin-right: 15px;
    transition: opacity 0.5s ease, visibility 0.5s;
    display: none;
}
.fale-conosco p.show {
    opacity: 1;
    visibility: visible;
    display: block;
}
@keyframes pulse {
    0% {
        transform: scale(1.0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.0);
    }
}
.fale-conosco img {
    width: 40px;
}

/*Serviços*/
section {
    min-height: 60vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 80px auto 0px;
}
.quality-desc {
    display: flex;
    align-items: center;
    flex-direction: row;
    width: 35vw;
    color: #f48222;
}
.quality-desc span {
    color: #015eae;
}
.quality-desc img {
    width: 100px;
}
.quality-desc h2 {
    margin-left: 10px;
}
.quality-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-width: 400px;
}
.quality-gallery-box {
    width: 190px;
    height: 190px;
    background-color: #015eae;
    color: #fff;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.quality-gallery-box img {
    width: 100%;
    height: 100%;
}
.quality-gallery .desc {
    display: flex;
    justify-content: space-evenly;
    text-align: center;
}
.quality-gallery-box div {
    padding: 3px;
    background-color: #f48222;
    width: 70%;
    text-align: center;
}
.quality-gallery-box a{
    text-decoration: none;
    color: #fff;
}

main {
    margin: 0 auto;
    min-height: 100vh;
    max-width: 950px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#sector-filter {
    margin-bottom: 20px;
}
#services {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 5px;
    gap: 5px;
}
.service {
    
    display: flex;
    flex-direction: column; 
    flex-wrap: wrap;
    height: auto;
    justify-content: flex-start;
    height: 500px;
    width: 300px;
    padding: 10px;
    transition: transform 0.5s ease-in-out;
    border-radius: 5px;
    box-shadow: 5px 4px 12px 5px rgba(0,0,0,0.66);
    -webkit-box-shadow: 5px 4px 12px 5px rgba(0,0,0,0.66);
    -moz-box-shadow: 5px 4px 12px 5px rgba(0,0,0,0.66);
}
.service:hover {
    transform: scale(1.01);
}
.service-img{
    min-width: 250px;
    display: flex;
    justify-content: center;
    border-radius: 10px;
}
.service-img img { 
    width: 70%;
}
.service-desc {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    margin-top: 10px;
    gap: 20px;
}
.service h2 {
    font-size: 22px;
    margin: 0;
    color: #fff;    
}
.service p {
    font-weight: 400;
    font-size: 14px;
}

.service-buttons{
    display: flex;
    gap: 3px;
}
.service a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 150px;
    text-align: center;
    padding: 4px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    box-sizing: border-box;
    overflow: hidden;
}
.service-btn1 {
    background-color: #f48222;
}
.service-btn2 {
    background-color: #015eae;
}
.service-btn2:hover {
    color: #f48222;
}
.service-btn1:hover {
    color: #015eae;
}

/* Estilo do overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s; 
    z-index: 999;
}

/* Quando o overlay estiver ativo */
.overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

/* Estilo do modal */
.service-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: fixed;
    max-width: 600px;
    width: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    background-color: #f48222;
    color: #fff;
    border-radius: 8px;
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease; 
    z-index: 1000; 
}

/* Quando o modal estiver ativo */
.service-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1); 
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #000;
    width: 100%;
    height: 50px;
    background-color: #fff;
}
.modal-title {
    text-align: center;
    font-size: 18px;
    margin-left: 10px;
}
.close-modal-btn {
    padding-right: 15px ;
    font-size: 20px;
    font-weight: bold;
    color: #f83c3c;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.close-modal-btn:hover {
    transform: scale(1.05);
    transition: 0.3s ease-in-out;
}

.modal-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 5px;
}
.modal-image img {
    max-height: 180px;
    max-width: 180px;
}
.modal-advantages{
    font-size: 14px;
    padding: 0px 20px 10px 20px;
}
.modal-service-btn1 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 150px;
    text-align: center;
    padding: 4px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #015eae;
    margin-bottom: 10px;
}
.modal-service-btn1:hover {
    color: #f48222;
}

footer {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
}
footer a {
    text-decoration: none;
    color: #8822ff;
}

/*Até 4k*/
@media (max-width: 2057px) {
    .service {
        margin: 10px;
    }
}

/*Notebook*/
@media (max-width: 1025px) {
    
}

/*Tablet*/
@media (max-width: 769px) {
    section {
        justify-content: space-evenly;
    }
    main {
        min-width: 700px;
    }
    .service {
        max-width: 100%;
        padding: 1px;
        margin: 1px 10px;
    }
    .service-modal {
        width: 80%; 
    }
}

/*Mobile*/
@media (max-width: 481px) {
    .menu {
        width: 180px;
    }
    .fale-conosco {
        align-items: flex-end;
        flex-direction: column;
    }
    .fale-conosco p {
        margin-right: 0px;
        margin-bottom: 5px;
        width: 20vw;
    }
    section {
        flex-direction: column;
    }
    .quality-desc {
        margin-bottom: 20px;
        width: 80vw;
        flex-direction: row;
    }
    main {
        min-width: 10px;
    }
    .service{
        flex-wrap: wrap;
        flex-direction: column;
        height: 100%;
    }
    .service {
        flex-direction: column;
        height: auto;
        align-items: center;
        width: 300px;
        margin: 10px 2px;
    }
    .service-img {
        justify-content: center;
        margin-top: 10px;
    }
    .service-desc {
        align-items: center;
        justify-content: center;
        margin: 0 0 30px 10px;
        gap: 10px;
    }

    .service-desc h2 {
        text-align: center;
    }
    .service-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
}

/*Epecífico*/
@media (max-width: 382px) {
    .quality {
        flex-direction: column-reverse;
        gap: 20px;
    }
    .quality-gallery {
        justify-content: center;
    }
}