/* =========================================
   1. CONFIGURAÇÕES GERAIS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fdfdfd;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
    padding-top: 85px;
}

/* =========================================
   2. HEADER (CABEÇALHO FIXO)
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    z-index: 1000;
}

.logo img {
    width: 170px; /* Tamanho equilibrado para o menu */
    height: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav a {
    color: #003366;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

nav a:hover {
    color: #ff6600; /* Laranja AT Cards */
}

/* =========================================
   3. HERO (BANNER COM TROCA DE IMAGENS)
   ========================================= */
.hero {
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #003366;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45); /* Escurece para o texto branco brilhar */
    z-index: 1;
    animation: slideFundo 15s infinite ease-in-out;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    color: #eeeeee;
    max-width: 750px;
    margin: 0 auto 35px;
}

/* ANIMAÇÃO DE TROCA DE FUNDO (Ajuste os nomes das fotos aqui) */
@keyframes slideFundo {
    0%, 30% { 
        background-image: url('../imagens/banner-crachas.jpg'); 
    }
    33%, 63% { 
        background-image: url('../imagens/banner-oficina.jpg'); 
    }
    66%, 100% { 
        background-image: url('../imagens/banner-oficina2.png'); 
    }

}

/* =========================================
   4. SEÇÕES (SOBRE, PRODUTOS, CONTATO)
   ========================================= */
section {
    padding: 100px 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #ff6600;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

#sobre { background-color: #f8f9fa; }
#sobre p { max-width: 850px; font-size: 1.1rem; color: #555; line-height: 1.8; }

/* =========================================
   5. GRID E CARDS DE PRODUTOS (AJUSTE PNG)
   ========================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    width: 100%;
}

.card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.img-container {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card img {
    max-width: 90%; /* Respiro para os PNGs */
    max-height: 90%;
    object-fit: contain;
}

/* =========================================
   6. FORMULÁRIO DE CONTATO
   ========================================= */
#formContato {
    width: 100%;
    max-width: 550px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus { border-color: #0077ff; outline: none; }

button[type="submit"] {
    background: #003366;
    color: #fff;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

button[type="submit"]:hover { background: #ff6600; }

/* =========================================
   7. COMPONENTES EXTRAS (WHATSAPP E MODAL)
   ========================================= */
.btn {
    padding: 15px 40px;
    background: #ff6600;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
}

.whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1001;
}

.produto-detalhe {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    padding: 40px;
    border-radius: 25px;
    width: 90%; max-width: 450px;
    z-index: 2000;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    opacity: 0;
    transition: 0.3s;
}

.produto-detalhe.show { opacity: 1; transform: translate(-50%, -50%) scale(1); display: block; }
.produto-detalhe img { width: 100%; border-radius: 15px; margin-bottom: 20px; }
.close { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; }

footer { padding: 40px; text-align: center; color: #888; border-top: 1px solid #eee; }