/* Estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    position: relative;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Barra superior com navegação */
.top-bar {
    background-color: #2C3E50;
    color: white;
    padding: 15px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Efeito de piscar para telefone e imagem do WhatsApp */
.blink {
    animation: blink 1s steps(1, end) infinite;
    margin-right: 25px;
    /* Aumentado o espaçamento à direita do número de telefone */
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Ícones de redes sociais ao lado do telefone */
.social-media {
    display: flex;
    gap: 10px;
    margin-left: 15px;
    /* Aumentado o espaçamento à esquerda dos ícones sociais */
}

.social-icon {
    color: white;
    transition: color 0.3s;
    font-size: 16px;
}

.social-icon:hover {
    color: #f1c40f;
}

/* Menu de navegação na barra superior */
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #f1c40f;
}

/* Efeito de traço ao passar o mouse */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #f1c40f;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Estilo para o link ativo - CORRIGIDO */
.nav-menu a.active {
    color: #ffffff; /* Branco em vez de amarelo */
    font-weight: bold; /* Deixa em negrito para destacar */
    /* Removido o border-bottom para não mostrar o traço por padrão */
}

/* Efeito de hover no link ativo */
.nav-menu a.active:hover {
    color: #f1c40f; /* Amarelo apenas no hover */
}

/* O traço aparece apenas no hover, mesmo para o link ativo */
.nav-menu a.active::after {
    width: 0; /* Começa sem o traço */
}

.nav-menu a.active:hover::after {
    width: 100%; /* Mostra o traço apenas no hover */
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* Espaçador entre as caixas */
.spacer {
    height: 20px;
    background-color: #f8f9fa;
}

/* Caixa amarela com layout horizontal */
.caixa-amarela {
    background-color: #e2ff08;
    padding: 30px 0;
    position: relative;
    overflow: visible;
    border-radius: 15px;
    margin: 0 15px 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Shrink the main yellow box to match the size of the manutencoes-box variant */
.caixa-amarela:not(.manutencoes-box) {
    /* less vertical padding than default, makes height similar to maintenance section */
    padding-top: 20px;
    padding-bottom: 20px;
}

.yellow-box-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* don't force full height so the box can size naturally */
    height: auto;
}

/* Layout horizontal */
.horizontal-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 30px;
}

/* Imagem do banner ajustada para tamanho menor */
.yellow-box-image {
    flex: 0 0 auto;
    max-width: 40%;
}

.yellow-box-image img {
    width: 100%;
    height: auto;
    display: block;
    background-color: white; /* white background behind logo */
    padding: 10px; /* optional spacing around image */
    border-radius: 10px; /* soften edges */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 200px;
    object-fit: contain;
}

/* Container para barra de pesquisa e botão de catálogo */
.search-catalog-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 55%;
}

/* Barra de pesquisa e botão lado a lado */
.search-button-row {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* Formulário de pesquisa */
.barra-de-pesquisa-form {
    flex: 1;
}

/* Barra de pesquisa atualizada com campo de entrada */
.barra-de-pesquisa {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 30px;
    padding: 12px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
}

.barra-de-pesquisa:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.barra-de-pesquisa i {
    color: #2C3E50;
    font-size: 18px;
    margin-right: 10px;
}

.barra-de-pesquisa input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    padding: 8px 0;
    width: 100%;
    font-family: 'Roboto', sans-serif;
}

.barra-de-pesquisa input::placeholder {
    color: #999;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #2C3E50;
    font-size: 16px;
    padding: 0 5px;
    transition: color 0.3s;
}

.search-button:hover {
    color: #f1c40f;
}

/* Botão Ver Catálogo */
.button-Ver-Catalogo {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 10px;
    color: #ffe600 !important;
    font-size: 16px;
    font-family: 'Ubuntu', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 500 !important;
    background-color: #e40505;
    border: 1px solid #e40505;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 300ms ease 0ms, padding 300ms ease 0ms;
    white-space: nowrap;
    cursor: pointer;
}

.button-Ver-Catalogo:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e40505;
    border-radius: 10px;
    z-index: -2;
}

.button-Ver-Catalogo:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #b30404;
    transition: all 0.3s;
    border-radius: 10px;
    z-index: -1;
}

.button-Ver-Catalogo:hover {
    color: #ffe600 !important;
}

.button-Ver-Catalogo:hover:before {
    width: 100%;
}

/* Imagem do WhatsApp fixa no canto inferior direito da tela */
.whatsapp-float {
    position: fixed;
    /* move the icon further up from the bottom edge */
    bottom:200px;
    right: 20px;
    width: 80px;
    height: 80px;
    z-index: 1000;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.whatsapp-float img:hover {
    transform: scale(1.1);
}

/* Máscara para o fundo quando o formulário estiver visível */
.mascara-formulario {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); /* Fundo escuro semi-transparente */
    z-index: 999; /* Abaixo do formulário, mas acima do resto */
    display: none; /* Inicialmente oculto */
}

/* Formulário de contato */
.formulario-fale-conosco {
    background-color: rgb(10, 212, 235);
    display: flex;
    gap: 20px;
    flex-direction: column;
    position: fixed;
    left: -300px; /* Inicialmente fora da tela */
    top: 30%;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000; /* Acima da máscara */
    transition: left 0.3s ease; /* Animação suave */
    transform: translateX(0);
}

/* Classe para centralizar o formulário */
.formulario-fale-conosco.ativo {
    left: 50%; /* Centraliza horizontalmente */
    transform: translateX(-50%); /* Ajusta para centralização perfeita */
}

.fechar-formulario {
    align-self: flex-end;
    background: transparent !important;
    border: none;
    color: #2C3E50 !important;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    padding: 0 !important;
}

.fechar-formulario:hover {
    background: transparent !important;
    color: #000000 !important;
}

/* Estilos para os campos do formulário */
.formulario-fale-conosco input,
.formulario-fale-conosco textarea {
    width: 100%;
    border-radius: 5px;
    border: 1px solid gray;
    padding-left: 10px;
    outline-color: #18D80F;
    font-family: 'Roboto', sans-serif;
}

.formulario-fale-conosco input {
    height: 40px;
}

.formulario-fale-conosco textarea {
    height: 100px;
    padding-top: 10px;
    resize: none;
}

.formulario-fale-conosco button {
    background-color: #e40505;
    color: #ffe600;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.formulario-fale-conosco button:hover {
    background-color: #b30404;
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .top-bar-content {
        flex-direction: column;
        gap: 15px;
    }
    .contact-info {
        justify-content: center;
    }
    .nav-menu {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
    }
    /* Ajustes para layout responsivo */
    .horizontal-layout {
        flex-direction: column;
        gap: 20px;
    }
    .yellow-box-image,
    .search-catalog-container {
        max-width: 100%;
    }
    .yellow-box-image img {
        max-height: 180px;
        margin: 0 auto;
    }
    .caixa-amarela {
        padding: 25px 15px;
    }
    /* Ajuste para barra de pesquisa e botão em telas menores */
    .search-button-row {
        flex-direction: column;
        gap: 15px;
    }
    .button-Ver-Catalogo {
        width: 100%;
    }
    /* Ajuste da imagem do WhatsApp em telas menores */
    .whatsapp-float {
        width: 70px;
        height: 70px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .contact-item {
        flex-wrap: wrap;
        justify-content: center;
    }
    .social-media {
        margin-top: 5px;
    }
    .caixa-amarela {
        padding: 20px 15px;
    }
    /* Imagem do WhatsApp ainda menor em telas muito pequenas */
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 10px;
        right: 10px;
    }
    /* Ajuste do formulário em telas pequenas */
    .formulario-fale-conosco {
        width: 90%;
        max-width: 300px;
    }
}

/* Estilos para a seção de Manutenções */
.manutencoes-box {
    margin-top: 30px;
}

.manutencoes-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.manutencoes-title {
    font-size: 28px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.manutencoes-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #e40505;
    border-radius: 2px;
}

.manutencoes-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    width: 100%;
}

/* Estilo para os botões de manutenção - similar ao botão "Pedir orçamento" */
.button-manutencao {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 10px;
    color: #ffe600 !important;
    font-size: 16px;
    font-family: 'Ubuntu', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 500 !important;
    background-color: #e40505;
    border: 1px solid #e40505;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 300ms ease 0ms, padding 300ms ease 0ms;
    white-space: nowrap;
    cursor: pointer;
}

.button-manutencao:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e40505;
    border-radius: 10px;
    z-index: -2;
}

.button-manutencao:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #b30404;
    transition: all 0.3s;
    border-radius: 10px;
    z-index: -1;
}

.button-manutencao:hover {
    color: #ffe600 !important;
}

.button-manutencao:hover:before {
    width: 100%;
}

/* Estilos responsivos para a seção de manutenções */
@media (max-width: 768px) {
    .manutencoes-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .button-manutencao {
        width: 100%;
    }
    
    .manutencoes-title {
        font-size: 24px;
    }
}
/* Estilos para o rodapé */
.site-footer {
    background-color: #1d20f0;
    color: #ffffff;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center; /* Centraliza o texto */
}

.copyright-text {
    font-size: 14px;
    margin: 0 auto; /* Centraliza o elemento */
    text-align: center; /* Garante que o texto esteja centralizado */
    max-width: 100%; /* Garante que o texto não ultrapasse a largura da tela */
}

/* Opcional: adicionar um pequeno efeito de hover */
.copyright-text:hover {
    color: #f1c40f;
}

/* Destaque pulsante do botão Pedir orçamento */
.button-Ver-Catalogo {
    outline: 0 solid rgba(228, 5, 5, 0.55);
    animation: pulsar-orcamento 2s ease-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 300ms ease;
}

.button-Ver-Catalogo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.button-Ver-Catalogo:active {
    transform: scale(0.98);
}

@keyframes pulsar-orcamento {
    0% {
        outline: 0 solid rgba(228, 5, 5, 0.65);
        outline-offset: 0;
    }
    75% {
        outline: 8px solid rgba(228, 5, 5, 0);
        outline-offset: 5px;
    }
    100% {
        outline: 0 solid rgba(228, 5, 5, 0);
        outline-offset: 5px;
    }
}
