* {
    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              */
/* ======================================== */


.page-header {
    height: 60vh;
    background-image: url('imagemsoldador.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}

.page-header h1 {
    color: white;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    max-width: 800px;
}

.produtos-grid-section {
    background-color: #e9e9e9;
    padding: 80px 20px;
}

.carousel-wrapper {
    position: relative;
    max-width: 1020px;
    margin: auto;
}

.produtos-container {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 40px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 20px;
}

.produto-card {
    background-color: #001361;
    color: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    min-width: 300px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.card-imagem-container {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-imagem-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.card-texto {
    padding-top: 20px;
}

.card-texto p {
    font-size: 16px;
    line-height: 1.4;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #001361;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-button:hover:not(:disabled) {
    background-color: #0025a0;
}

.carousel-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.prev { left: -70px; }
.next { right: -70px; }

.carousel-dots {
    text-align: center;
    padding: 25px 0 10px 0;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #b0c4de;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot:hover { background-color: #778899; }
.dot.active { background-color: #001361; }

.carousel-wrapper::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000000;
    margin-top: 80px;
}

.expertise-section {
    background-color: #ffffff;
    padding: 100px 8%;
}

.expertise-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
    flex-direction: row;
}

.expertise-text { flex: 1; }
.expertise-text h2 { color: #001361; font-size: 32px; margin-bottom: 20px; }
.expertise-text p { color: #000000; font-size: 20px; line-height: 1.6; }
.expertise-image {
    flex: 1;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.expertise-image img {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 2;
    object-fit: cover;
}
.expertise-image::after {
    content: '';
    position: absolute;
    z-index: 1;
    background-color: #001361;
    inset: 0;
    transform: translate(20px, 20px);
}

.maintenance-section {
    background-color: #e9e9e9;
    padding: 100px 8%;
}

.maintenance-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
    flex-direction: row-reverse;
}

.maintenance-text { flex: 1; }
.maintenance-text h2 { color: #001361; font-size: 32px; margin-bottom: 20px; }
.maintenance-text p { color: #333333; font-size: 20px; line-height: 1.6; }
.maintenance-image {
    flex: 1;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.maintenance-image img {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 2;
    object-fit: cover;
}
.maintenance-image::after {
    content: '';
    position: absolute;
    z-index: 1;
    background-color: #001361;
    inset: 0;
    transform: translate(-20px, 20px);
}

.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 (ATUALIZADAS)    */
/* ======================================== */

@media (max-width: 1024px) {
    /* --- Estilos da Navbar para 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 */
    }

    /* --- Outros Estilos Mobile (Originais) --- */
    .page-header { height: 40vh; padding: 0 4%; }
    .page-header h1 { font-size: 36px; }
    .produtos-grid-section { padding: 60px 0; }
    .carousel-wrapper { max-width: 90%; padding: 0 20px; }
    .produtos-container { justify-content: flex-start; overflow-x: scroll; padding-left: 20px; padding-right: 20px; gap: 20px; }
    .produto-card { min-width: 280px; max-width: 90%; margin: 0 auto; }
    .carousel-button { display: none; }
    .carousel-wrapper::after { margin-top: 60px; }
    .expertise-section, .maintenance-section { padding: 60px 5%; }
    .expertise-container, .maintenance-container { flex-direction: column; gap: 40px; text-align: center; }
    .expertise-text h2, .maintenance-text h2 { font-size: 28px; }
    .expertise-text p, .maintenance-text p { font-size: 18px; }
    .expertise-image::after { transform: translate(10px, 10px); }
    .maintenance-image::after { transform: translate(-10px, 10px); }
    .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 { padding: 15px 4%; }
    .logo { height: 40px; }
    /* .menu-toggle é controlado pelo flex, não precisa de font-size */
    
    .nav-links a { font-size: 24px; }
    .page-header h1 { font-size: 30px; }
    .produtos-grid-section { padding: 40px 0; }
    .produto-card { min-width: 250px; }
    .expertise-section, .maintenance-section, .site-footer { padding: 40px 4%; }
    .expertise-text h2, .maintenance-text h2 { font-size: 24px; }
    .expertise-text p, .maintenance-text p { font-size: 16px; }
}

@media (max-height: 500px) and (max-width: 800px) and (orientation: landscape) {
    .page-header { height: 70vh; }
    .page-header h1 { font-size: 32px; }
    .nav-links a { font-size: 20px; }
}

@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;
}