@import url('https://fonts.googleapis.com/css2?family=Allerta+Stencil&family=Special+Elite&display=swap');

:root {
    --cor-fundo: #161412;        
    --cor-madeira: #2b1a10;      
    --cor-metal: #b87333;        
    --cor-texto: #e8dcc7;        
    --cor-sombra: rgba(0, 0, 0, 0.9);
    --fonte-titulo: 'Allerta Stencil', sans-serif;
    --fonte-falhada: 'Special Elite', cursive;
    --fonte-texto: 'Special Elite', cursive;
    --header-height: 90px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    font-family: var(--fonte-texto);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--header-height); 
}

/* =========================================
   HEADER E NAVEGAÇÃO
   ========================================= */
.fixed-header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    background: rgba(22, 20, 18, 0.95); backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--cor-metal); z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem; box-shadow: 0 4px 15px var(--cor-sombra);
}
.logo-container img { max-width: 60px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.8)); transition: transform 0.3s; }
.logo-container img:hover { transform: scale(1.1); }

.nav-links { list-style: none; display: flex; gap: 1.5rem; align-items: center; }
.nav-links li a {
    color: var(--cor-texto); text-decoration: none; font-family: var(--fonte-titulo);
    font-size: 1.1rem; text-transform: uppercase; transition: color 0.3s;
}
.nav-links li a:hover, .nav-links li a[aria-current="page"] { color: var(--cor-metal); }
#menu-banda { display: none; } 

/* Botão Hambúrguer (Escondido no Desktop) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-menu { display: block; }

/* =========================================
   FOOTER
   ========================================= */
.fixed-footer {
    background-color: #0a0908; padding: 2rem; text-align: center;
    border-top: 2px solid var(--cor-madeira); color: #8c8273; margin-top: auto;
    z-index: 900; position: relative;
}
.fixed-footer strong { color: var(--cor-texto); font-family: var(--fonte-titulo); font-size: 1.4rem; display: block; margin-bottom: 0.8rem;}

.link-whatsapp {
    color: #25d366; 
    text-decoration: none; 
    font-weight: bold;
    transition: color 0.2s ease; 
}
.link-whatsapp:hover { color: #149449; text-decoration: underline; }

.btn-rota {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    margin: 1.5rem auto 2rem; padding: 10px 24px; background-color: transparent;
    color: var(--cor-metal); border: 2px solid var(--cor-metal); font-family: var(--fonte-titulo);
    font-size: 1rem; text-transform: uppercase; text-decoration: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); border-radius: 2px;
}
.btn-rota svg { width: 20px; height: 20px; fill: currentColor; transition: transform 0.4s ease; }
.btn-rota:hover { background-color: var(--cor-metal); color: var(--cor-fundo); transform: translateY(-3px); }
.btn-rota:hover svg { transform: scale(1.2) translateY(-2px); }

.redes-sociais { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; }
.redes-sociais a { color: var(--cor-texto); transition: 0.3s; display: flex; align-items: center; }
.redes-sociais a:hover { color: var(--cor-metal); transform: scale(1.15) translateY(-5px); }
.redes-sociais svg { width: 32px; height: 32px; fill: currentColor; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); transition: filter 0.4s ease; }
.redes-sociais a:hover svg { filter: drop-shadow(0 10px 15px rgba(184, 115, 51, 0.4)); }

/* =========================================
   RUIDO VINIL
   ========================================= */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9999; opacity: 0.04;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* =========================================
   INDEX: HERO & GALERIA
   ========================================= */
.hero {
    display: grid; grid-template-columns: 200px 1fr 200px; align-items: center;
    width: 100%; min-height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(43, 26, 16, 0.85)), url('./imagens/sebo1.jpg') center/cover fixed;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    transition: clip-path 0.8s ease-in-out; margin-bottom: 2rem;
}
.hero:hover { clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%); }
.hero-centro { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.logo-hero { max-width: 150px; margin: 0 auto; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8)); transition: transform 0.4s;}
.hero h1 { font-family: var(--fonte-falhada); font-size: clamp(3.5rem, 5vw, 6rem); color: var(--cor-metal); text-shadow: 4px 4px 10px var(--cor-sombra); }
.hero h2 { font-family: var(--fonte-falhada); font-size: clamp(1.5rem, 2vw, 3rem); color: var(--cor-texto); opacity: 0.8; margin-top: 1rem; }

/* REGRAS RESPONSIVAS (MOBILE) */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 2rem 0; }
    
    /* Configuração do Menu Hambúrguer */
    .menu-toggle { display: block; }
    
    .nav-menu {
        display: none; /* Escondido por padrão */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(22, 20, 18, 0.98);
        border-bottom: 2px solid var(--cor-metal);
        padding: 1.5rem 0;
        box-shadow: 0 10px 20px var(--cor-sombra);
    }
    .nav-menu.active {
        display: block; /* Mostra quando a classe for adicionada via JS */
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1.2rem;
    }
}

.galeria-container { max-width: 1200px; margin: 0 auto; padding: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.card { position: relative; background-color: var(--cor-madeira); overflow: hidden; border: 2px solid #3a3a3a; border-radius: 4px; box-shadow: 0 10px 20px var(--cor-sombra); transition: all 0.5s ease-out; cursor: pointer; }
.card:hover { transform: translateY(-15px) scale(1.03); border-color: var(--cor-metal); border-radius: 40px 0 40px 0; }
.card img { width: 100%; height: 350px; object-fit: cover; opacity: 0.7; filter: grayscale(40%); transition: all 0.6s ease; }
.card:hover img { opacity: 1; filter: grayscale(0%); transform: scale(1.15); }
.card-conteudo { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem 1.5rem 1.5rem; background: linear-gradient(to top, var(--cor-madeira) 30%, transparent); transform: translateY(20px); transition: transform 0.4s ease; }
.card:hover .card-conteudo { transform: translateY(0); }
.card-conteudo h3 { font-family: var(--fonte-titulo); color: var(--cor-metal); font-size: 1.4rem; text-shadow: 2px 2px 4px var(--cor-sombra);}

/* =========================================
   CONTATO & FORMS GERAIS
   ========================================= */
.contato-wrapper { max-width: 1200px; margin: 4rem auto; display: flex; flex-wrap: wrap; }
.contato-imagem { flex: 1; min-width: 300px; min-height: 400px; background: url('./imagens/sebo2.jpg') center/cover; display: flex; align-items: center; justify-content: center; mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0.1) 70%); -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0.1) 70%); }
.contato-imagem h2 { font-family: var(--fonte-falhada); font-size: 4rem; color: var(--cor-texto); text-shadow: 3px 3px 10px #000; transform: rotate(-3deg); }
.contato-form-container { flex: 1; min-width: 300px; padding: 3rem; display: flex; flex-direction: column; justify-content: center; }

form { display: flex; flex-direction: column; gap: 1.5rem; }
input, textarea, select { width: 100%; padding: 10px; background: transparent; border: none; border-bottom: 2px solid #4a4a4a; color: var(--cor-texto); font-family: var(--fonte-texto); font-size: 1.1rem; outline: none; transition: 0.3s;}
input:focus, textarea:focus, select:focus { border-bottom-color: var(--cor-metal); background: rgba(184, 115, 51, 0.05); }
select option { background-color: var(--cor-fundo); color: var(--cor-texto); }
button { padding: 15px; font-family: var(--fonte-titulo); font-size: 1.2rem; color: var(--cor-fundo); background-color: var(--cor-metal); border: none; cursor: pointer; text-transform: uppercase; transition: 0.3s;}
button:hover:not(:disabled) { background-color: transparent; color: var(--cor-metal); border: 2px solid var(--cor-metal); transform: translate(-2px, -2px); }
button:disabled { background-color: #2a2a2a; color: #555; cursor: not-allowed; }

.input--hidden, [type="hidden"] { display: none; }
.cf-container { margin: 10px 0; display: flex; justify-content: center; }

/* =========================================
   CARROSSEL (Páginas Internas)
   ========================================= */
.carrossel-wrapper { position: relative; max-width: 100%; margin: auto; padding: 2rem 0; display: flex; align-items: center; justify-content: center; flex: 1; overflow: hidden;}
.carrossel-container { display: flex; align-items: center; justify-content: center; overflow: hidden; width: 100%; max-width: 1300px; height: 600px; position: relative; touch-action: pan-y; }
.carrossel-track { display: flex; align-items: center; justify-content: center; position: relative; gap: 15px; width: 100%; }
.carrossel-item { flex-shrink: 0; background-color: var(--cor-madeira); border: 2px solid #3a3a3a; border-radius: 6px; overflow: hidden; box-shadow: 0 15px 30px var(--cor-sombra); transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.carrossel-item.inativo-2 { width: 120px; height: 180px; opacity: 0.15; filter: grayscale(90%) blur(4px); transform: scale(0.6); }
.carrossel-item.inativo-1 { width: 200px; height: 300px; opacity: 0.4; filter: grayscale(60%); transform: scale(0.8); }
.carrossel-item.ativo { width: 580px; height: 540px; opacity: 1; filter: grayscale(0%); transform: scale(1); border-color: var(--cor-metal); z-index: 10; box-shadow: 0 25px 50px rgba(184, 115, 51, 0.4); }
.carrossel-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.carrossel-item.ativo:hover img { transform: scale(1.02); }

.btn-nav { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(22, 20, 18, 0.9); color: var(--cor-metal); border: 2px solid var(--cor-metal); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 20; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.btn-nav:hover { background-color: var(--cor-metal); color: var(--cor-fundo); transform: translateY(-50%) scale(1.1); }
.btn-nav svg { width: 24px; height: 24px; fill: currentColor; }
.btn-prev { left: 20px; } .btn-next { right: 20px; }

@media (max-width: 768px) {
    .carrossel-container { height: 450px; }
    .carrossel-item.ativo { width: 310px; height: 400px; }
    .carrossel-item.inativo-1 { width: 110px; height: 180px; }
    .carrossel-item.inativo-2 { display: none; }
    .btn-nav { display: none; }
}

/* =========================================
   MODAL
   ========================================= */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); z-index: 1000; justify-content: center; align-items: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-content-aviso { background-color: var(--cor-fundo); border: 1px solid var(--cor-metal); padding: 24px; border-radius: 4px; width: 90%; max-width: 400px; text-align: center; box-shadow: 0 10px 20px var(--cor-sombra); }
.modal-content-aviso h3 { color: var(--cor-metal); font-family: var(--fonte-titulo); margin-bottom: 1rem; margin-top: 0;}
.modal-content-aviso p { margin-bottom: 20px; font-family: var(--fonte-texto); color: var(--cor-texto); }
#modalOkBtn { background-color: var(--cor-metal); color: var(--cor-fundo); border: none; padding: 10px 24px; border-radius: 2px; font-size: 16px; cursor: pointer; transition: 0.3s; font-family: var(--fonte-titulo); text-transform: uppercase;}
#modalOkBtn:hover { background-color: transparent; color: var(--cor-metal); border: 2px solid var(--cor-metal); }