/* --- Configurações Gerais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    animation: fadeIn 0.5s ease-in-out;
}

/* ======================================== */
/* ESTILOS DA NAVBAR (ATUALIZADOS)  */
/* ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 8%; /* Padding um pouco menor para ficar mais elegante */
    background-color: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Borda sutil */
    transition: all 0.4s ease-out; /* Transição SUAVE para o scroll */
}

/* --- EFEITO DE SCROLL --- */
.navbar.scrolled {
    padding-top: 15px;
    padding-bottom: 15px; /* Navbar encolhe */
    background-color: rgba(5, 5, 10, 0.85); /* Fundo mais sólido */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom-color: transparent; /* Esconde a borda sutil */
}

.logo { 
    height: 45px; 
    transition: height 0.4s ease-out; /* Transição para o logo */
}

.navbar.scrolled .logo {
    height: 40px; /* Logo encolhe um pouco ao rolar */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 60px; /* Gap um pouco menor */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative; /* Necessário para o pseudo-elemento */
    padding-bottom: 8px; /* Espaço para o underline */
}

/* --- EFEITO DE UNDERLINE MODERNO --- */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #001361; /* Cor da marca! */
    transform: scaleX(0); /* Começa invisível */
    transform-origin: center;
    transition: transform 0.4s ease-out;
}

/* --- EFEITO HOVER E ESTADO ATIVO --- */
.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1); /* Mostra o underline no hover ou se estiver ativo */
}

.nav-links a:hover { 
    color: #ffffff; /* Mantém branco, o underline é o destaque */
}

.nav-links a.active {
    color: #ffffff; /* Garante que o link ativo seja branco */
}

/* --- BOTÃO HAMBURGER ANIMADO --- */
.menu-toggle {
    display: none; /* Escondido no desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Acima do menu */
    margin-left: auto;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* --- ANIMAÇÃO DO HAMBURGER PARA "X" --- */
.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}
.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.close-menu {
    display: none; /* Não precisamos mais deste ícone */
}

/* ======================================== */
/* FIM DOS ESTILOS DA NAVBAR              */
/* ======================================== */


/* --- Hero Section --- */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('soldadorcomqualidade.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    height: 45vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 8%;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    max-width: 800px;
    position: relative;
    z-index: 5;
    margin-top: 80px;
}

/* --- Seção de Contato --- */
.contact-section {
    background-color: #001361;
    padding: 100px 8%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    width: 100%;
}

/* Coluna da Esquerda (Imagens) */
/* Coluna da Esquerda (Imagens) */
.contact-images {
    flex: 1;
    position: relative;
    height: 600px;
}

.image-card {
    position: absolute;
    width: 80%;
    /* --- REMOVIDO/ALTERADO --- */
    /* background-color: #000000; <-- Removido */
    /* padding: 15px;             <-- Removido */
    
    /* --- NOVOS ESTILOS --- */
    border: 4px solid #ffffff; /* Borda branca estilo "foto" */
    overflow: hidden; /* Garante que a imagem não vaze do border-radius */
    
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* Sombra um pouco mais forte */
    aspect-ratio: 4/3;
    
    /* --- NOVA TRANSIÇÃO --- */
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.image-card:hover {
    transform: scale(1.05) translateY(-10px); /* Efeito de "levantar" e crescer */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 10; /* Garante que a imagem clicada venha para frente */
}

.image-card img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 6px;
    /* --- ALTERADO --- */
    object-fit: cover; /* Faz a imagem cobrir o espaço, em vez de "conter" */
}

.card-1 {
    top: 0;
    left: 0;
    z-index: 2;
}

.card-2 {
    bottom: 50px;
    right: 50px;
    z-index: 1;
}

/* Coluna da Direita (Formulário) */
.contact-form-wrapper {
    flex: 1;
    background-color: #000b2e;
    padding: 50px;
    border-radius: 15px;
}

.contact-form-wrapper h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.contact-form-wrapper form input {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: none;
    background-color: #e9e9e9;
    font-size: 16px;
    color: #333;
}

.contact-form-wrapper form input::placeholder { color: #888; }

.contact-form-wrapper form button {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    border: none;
    background-color: #002bc4;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form-wrapper form button:hover { background-color: #003cfc; }

#success-message {
    padding: 20px;
    border: 2px solid #28a745;
    background-color: #f0fff4;
    text-align: center;
    color: #155724;
    border-radius: 8px;
}

#success-message h3 { margin-top: 0; }

/* --- Rodapé --- */
.site-footer {
    background-color: #001361;
    color: #ffffff;
    padding: 70px 8%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap; 
}

.footer-column { flex: 1; min-width: 280px; }
.footer-column h3 { font-size: 16px; font-weight: bold; margin-bottom: 25px; letter-spacing: 1px; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 15px; }
.footer-column ul li a { color: #ffffff; text-decoration: none; transition: color 0.3s ease; }
.footer-column ul li a:hover { color: #a9a9a9; }
.footer-column p { font-size: 15px; line-height: 1.8; }
.map-container iframe { border-radius: 8px; border: none; }


/* ========================================================================== */
/* --- MEDIA QUERIES PARA RESPONSIVIDADE (ATUALIZADO) --- */
/* ========================================================================== */

@media (max-width: 1024px) {
    /* --- Navbar Mobile --- */
    .navbar {
        padding: 20px 5%;
        background-color: #001361; /* Usando a cor da marca no mobile! */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none;
    }

    .navbar.scrolled {
        background-color: #000b3a; /* Um tom mais escuro da marca ao rolar */
        padding: 15px 5%;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #001361; /* Fundo do menu mobile */
        gap: 20px; /* Gap menor para os links */
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s;
        z-index: 1000;
        padding-top: 0;
    }

    .nav-links.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 10px 0;
        padding: 0;
        /* --- ANIMAÇÃO STAGGERED (CASCATA) --- */
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Atraso para cada link aparecer */
    .nav-links.open li:nth-child(1) { transition-delay: 0.2s; }
    .nav-links.open li:nth-child(2) { transition-delay: 0.3s; }
    .nav-links.open li:nth-child(3) { transition-delay: 0.4s; }

    .nav-links.open li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links a { 
        font-size: 28px; 
        color: white; 
        font-weight: normal; 
        padding-bottom: 0;
    }
    
    /* Remove o efeito de underline no menu mobile */
    .nav-links a::after { 
        display: none; 
    }

    .menu-toggle { 
        display: flex; /* Mostra o hamburger no mobile */
    }

    /* --- Hero Section --- */
    .hero-section { height: 35vh; padding: 0 4%; }
    .hero-section h1 { font-size: 36px; margin-top: 60px; }

    /* --- Seção de Contato --- */
    .contact-section { padding: 60px 5%; }
    .contact-container { flex-direction: column; gap: 0; } /* Remove o gap pois as imagens somem */

    /* ALTERAÇÃO AQUI: Esconde a coluna de imagens no mobile */
    .contact-images {
        display: none;
    }

    .contact-form-wrapper { width: 100%; padding: 40px; }
    .contact-form-wrapper h2 { font-size: 24px; margin-bottom: 20px; }
    .contact-form-wrapper form input, .contact-form-wrapper form button { padding: 14px; font-size: 15px; }

    /* --- Rodapé --- */
    .site-footer { padding: 50px 5%; }
    .footer-container { flex-direction: column; gap: 30px; text-align: center; }
    .footer-column { min-width: auto; width: 100%; }
    .footer-column h3 { margin-bottom: 15px; }
}

@media (max-width: 767px) {
    /* --- Navbar Mobile --- */
    .navbar { padding: 15px 4%; }
    .logo { height: 40px; }
    /* .menu-toggle é controlado pelo flex */
    .nav-links a { font-size: 24px; }

    /* --- Hero Section --- */
    .hero-section { height: 25vh; }
    .hero-section h1 { font-size: 30px; margin-top: 40px; }

    /* --- Seção de Contato --- */
    .contact-section { padding: 40px 4%; }
    .contact-form-wrapper { padding: 30px; }
    .contact-form-wrapper h2 { font-size: 20px; }
    .contact-form-wrapper form input, .contact-form-wrapper form button { padding: 12px; font-size: 14px; }

    /* --- Rodapé --- */
    .site-footer { padding: 40px 4%; }
}

@media (max-height: 500px) and (max-width: 800px) and (orientation: landscape) {
    /* --- Hero Section --- */
    .hero-section { height: 70vh; }
    .hero-section h1 { font-size: 32px; margin-top: 20px; }
    .nav-links a { font-size: 20px; }
}

/* ========================================================================== */
/* --- ANIMAÇÕES DE TRANSIÇÃO DE PÁGINA --- */
/* ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

body.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}