/* --- Configurações Globais e Body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    background-color: rgb(226, 226, 226);
    color: #333;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: -1;
}

#container {
    max-width: 990px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header --- */
header {
    width: 100%;
    background-color: rgba(22, 22, 22, 0.95);
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 40px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
    position: relative;
    top: 20px;
    background: white;
    border-radius: 50%;
    overflow: visible; /* PERMITE A LOGO FICAR COM A BORDA PARA FORA */
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    width: 90px;
    height: auto;
    object-fit: contain;
    z-index: 6;
}

/* --- Menu Desktop --- */
nav.desktop-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 35px; /* Espaçamento ajustado */
    margin-top: 5px;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.menu a:hover {
    color: #ffc107;
    transform: translateY(-2px);
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffc107;
    transition: width 0.3s ease-out;
}

.menu a:hover::after {
    width: 100%;
}

/* --- Submenu (Ex: Produtos) --- */
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    background-color: rgba(22, 22, 22, 0.95);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 10px 0;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.has-submenu:hover .submenu {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.submenu li {
    margin: 0;
}

.submenu a {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.submenu a:hover {
    background-color: #3a3a3a;
    color: #ffc107;
    transform: none;
}

.submenu-arrow {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.has-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
}


/* --- Botão CTA (Baixar Catálogo) --- */
.cta-button {
    background-color: #ffc107;
    color: #000;
    font-weight: 600;
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.cta-button i {
    font-size: 16px;
}

/* --- Menu Hamburger (Mobile) --- */
.hamburger {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 25px;
    z-index: 1000;
}

/* --- Menu em Tela Cheia (Mobile) --- */
.fullscreen-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(22, 22, 22, 0.98);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fullscreen-menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.fullscreen-menu ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

.fullscreen-menu ul li {
    margin: 25px 0;
    opacity: 0;
    animation: slideIn 0.4s ease-out forwards;
}

/* Animações dos itens do menu mobile */
.fullscreen-menu ul li:nth-child(1) { animation-delay: 0.3s; }
.fullscreen-menu ul li:nth-child(2) { animation-delay: 0.4s; }
.fullscreen-menu ul li:nth-child(3) { animation-delay: 0.5s; }
.fullscreen-menu ul li:nth-child(4) { animation-delay: 0.6s; }
.fullscreen-menu ul li:nth-child(5) { animation-delay: 0.7s; }

.fullscreen-menu ul li a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.fullscreen-menu ul li a:hover {
    color: #ffc107;
}

.fullscreen-menu .cta-button {
    margin-top: 40px;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 0.8s;
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 35px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-menu:hover {
    transform: rotate(90deg);
}

/* --- Conteúdo Principal (Main) --- */
main {
    padding: 50px 15px; /* Padding unificado */
    background-color: rgba(245, 245, 245, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin-top: 30px;
    min-height: 500px;
}

main h2 {
    text-align: center;
    color: #000;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
}

main p {
    margin-bottom: 10px;
    text-align: justify;
    color: rgba(0, 0, 0, 0.9);
    font-size: 16px;
    line-height: 1.6; /* Melhor legibilidade */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

main strong {
    color: #000;
}

img.responsive {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Estilos do Mapa (Página de Localização) --- */
.map-container {
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 30px auto 0;
    max-width: 800px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Rodapé (Footer) --- */
footer {
    background-color: rgba(22, 22, 22, 0.95);
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #bbb;
    margin-top: 30px;
}

/* --- Botão Flutuante do WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

.whatsapp-float a {
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

.whatsapp-float a:hover {
    background-color: #1ebe5d;
    transform: scale(1.1);
}

/* --- Divisor Horizontal --- */
hr.divisor {
    border: none;
    border-top: 5px solid #818181ff;
    margin: 0;
}

/* --- Animações Keyframes --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- Estilos da Página de Contato e Formulário --- */
.contact-details {
    max-width: 800px;
    margin: 30px auto 0;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-info {
    text-align: left;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.contact-info p {
    text-align: left; /* Sobrescreve o 'justify' herdado */
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info p i {
    color: #ffc107;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

.form-submit {
    background-color: #ffc107;
    color: #000;
    font-weight: 600;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    align-self: center; /* Centraliza o botão */
    margin-top: 10px;
}

.form-submit:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- Estilos da Página de Redirecionamento (enviado.php) --- */
.redirect-page-body {
    background: #f4f4f4; /* Um fundo neutro para a página de status */
}

.redirect-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

.redirect-icon {
    font-size: 80px;
    color: #28a745; /* Verde para sucesso */
    margin-bottom: 20px;
    animation: pop-in 0.5s ease-out;
}

.redirect-container h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.redirect-container p {
    font-size: 18px;
    color: #555;
    max-width: 450px;
}

.redirect-notice {
    margin-top: 30px;
    font-size: 14px;
    color: #888;
}

/* Animação para o ícone */
@keyframes pop-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Media Queries (Responsividade) --- */

@media (max-width: 768px) {
    .contact-details {
        padding: 20px;
    }
}

@media (max-width: 900px) {
    header {
        padding: 0 25px;
    }

    nav.desktop-menu {
        gap: 25px;
    }

    .menu ul {
        gap: 18px;
    }

    .cta-button {
        padding: 8px 20px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav.desktop-menu {
        display: none;
    }
    
    header {
        justify-content: flex-start;
        padding: 0 20px;
        height: 60px;
    }

    .logo-container {
        width: 80px;
        height: 80px;
        top: 10px;
        left: 0;
        transform: none;
    }

    .logo {
        width: 70px;
    }

    main {
        padding: 40px 20px;
    }

    main h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    main p {
        font-size: 15px;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float a {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0 15px;
    }

    .logo-container {
        width: 70px;
        height: 70px;
    }

    .logo {
        width: 60px;
    }

    .hamburger {
        right: 15px;
        font-size: 26px;
    }

    .close-menu {
        right: 20px;
        font-size: 30px;
    }

    .fullscreen-menu ul li a {
        font-size: 20px;
    }

    main {
        padding: 30px 15px;
    }

    main h2 {
        font-size: 22px;
    }
}