@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

:root {
    --primary: #B11116; 
    --primary-dark: #8C0D11; 
    --icon-color: #08255C; 
    --bg-main: #FFFFFF; 
    --bg-sec: #F4F7F9; 
    --text-dark: #1A1A1A; 
    --text-muted: #55606B; 
    --glass-border: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative; 
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 0px;
    overflow: hidden; /* IMPEDE A IMAGEM DE VAZAR PARA BAIXO */
    background-color: var(--bg-main);
}

/* Fundo Fixo apenas na primeira seção */
.hero::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;    
    width: 100%; 
    height: 100%;
    background-image: url('fundo2.png?v=3'); /* O ?v=3 força a atualizar o cache! */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed; /* Efeito Parallax no PC */
    opacity: 0.18;
    z-index: 1;
    pointer-events: none;
}

/* Garante que o texto fique legível por cima da imagem */
.hero-content {
    position: relative;
    z-index: 2;
}

h1, h2, h3, h4 { color: var(--text-dark); }
span { color: var(--primary); }

/* NAVBAR */
.navbar {
    position: fixed; top: 0; width: 100%; 
    height: 85px; 
    padding: 0 50px;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img { 
    height: 310px;
    width: auto; 
    object-fit: contain; 
    transform: none; 
    transition: transform 0.3s ease; 
}
.logo:hover img { 
    transform: scale(1.05); 
}

/* IMAGENS DOS GRÃOS (O Que Entregamos) */
.grao-img-box {
    width: 100%;
    height: 200px; 
    border-radius: 10px; 
    overflow: hidden; 
    margin-bottom: 20px;
}

.grao-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

/* Efeito de zoom na foto do grão ao passar o mouse no card */
.card:hover .grao-img-box img {
    transform: scale(1.1);
}

.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-dark); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--primary); }
.btn-nav { background: var(--primary); color: #FFF !important; padding: 10px 20px; border-radius: 30px; }

/* BURGER MENU */
.burger-menu { display: none; cursor: pointer; width: 30px; height: 21px; position: relative; z-index: 1001; }
.burger-menu .bar { width: 100%; height: 3px; background: var(--text-dark); border-radius: 3px; position: absolute; transition: all 0.3s ease; }
.burger-menu .bar:nth-child(1) { top: 0; }
.burger-menu .bar:nth-child(2) { top: 9px; }
.burger-menu .bar:nth-child(3) { top: 18px; }
.burger-menu.toggle .bar:nth-child(1) { top: 9px; transform: rotate(45deg); background: var(--primary); }
.burger-menu.toggle .bar:nth-child(2) { opacity: 0; }
.burger-menu.toggle .bar:nth-child(3) { top: 9px; transform: rotate(-45deg); background: var(--primary); }

/* HERO */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.hero-content { position: relative; z-index: 2; }
.hero-content h1 { font-size: 4rem; margin-bottom: 20px; line-height: 1.2; }
.hero-content p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; margin: 0 auto 40px; }
.btn-primary { background: var(--primary); color: #FFF; padding: 15px 40px; font-weight: 800; border-radius: 50px; text-decoration: none; transition: 0.3s; display: inline-block; }
.btn-primary:hover { transform: translateY(-5px); background: var(--primary-dark); box-shadow: 0 10px 20px rgba(177, 17, 22, 0.3); }

/* SECTIONS BASE */
.section { padding: 120px 30px; padding-bottom: 150px; position: relative; z-index: 2; }
.dark-bg { background-color: rgba(244, 247, 249, 0.85); } 
.container { max-width: 1200px; margin: 0 auto;padding: 0 20px; width: 100%; }
.text-center { text-align: center; }
.subtitle { color: var(--text-muted); margin-bottom: 50px; font-size: 1.1rem; }

/* LAYOUTS & CARDS */
.layout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.stats { display: flex; gap: 30px; margin-top: 30px; }
.stat-item h3 { font-size: 2.5rem; color: var(--primary); }

.glass-card { background: var(--bg-main); border: 1px solid var(--glass-border); border-radius: 20px; padding: 50px; text-align: center; box-shadow: 0 15px 35px rgba(0,0,0,0.05); }
.glass-card h3 { margin-top: 20px; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; justify-content: center;align-items: center; }
.card { background: var(--bg-main); padding: 40px; border-radius: 20px; border: 1px solid var(--glass-border); transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.card:hover { transform: translateY(-10px); border-color: var(--icon-color); box-shadow: 0 15px 30px rgba(8, 37, 92, 0.1); }
.card i { font-size: 3rem; color: var(--icon-color); margin-bottom: 20px; }

/* TIMELINE */
.timeline { display: flex; justify-content: space-between; flex-wrap: wrap; position: relative; }
.timeline::before { content: ''; position: absolute; top: 60px; left: 12.5%; width: 75%; height: 2px; background: var(--glass-border); z-index: 1; }
.timeline-item { position: relative; z-index: 2; flex: 1; min-width: 200px; margin: 20px; text-align: center; }
.timeline-item .icon { width: 80px; height: 80px; background: var(--bg-main); border: 2px solid var(--icon-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; color: var(--icon-color); box-shadow: 0 0 15px rgba(8, 37, 92, 0.1); }

/* MATERIAIS - MARCA */
.brand-bg { background-color: var(--icon-color); overflow: hidden; }
.brand-bg::before { 
    content: "\f1b8"; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    position: absolute; 
    right: 15px; 
    top: 10%; 
    font-size: 350px; 
    color: rgba(255, 255, 255, 0.12); 
    z-index: 0; 
    animation: flutuarEgirar 8s ease-in-out infinite;    
    pointer-events: none; 
}
.brand-bg .subtitle-light { color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; }
.brand-bg .title-white { color: #FFF; font-size: 2.5rem; margin-bottom: 60px; }

.materiais-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; max-width: 1000px; margin: 0 auto; }
.material-card { background: #FFF; border-radius: 15px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.2); transition: 0.3s; }
.material-card:hover { transform: translateY(-10px); }

.material-img-box { background-color: var(--bg-sec); height: 250px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.material-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.material-card:hover .material-img-box img { transform: scale(1.1); }

.material-info { padding: 25px 20px; background-color: #FFFFFF; }
.material-info h3 { color: var(--primary); font-size: 1.5rem; margin-bottom: 5px; }
.material-info p { color: var(--text-dark); font-size: 1rem; font-weight: 400; }

/* CONTATOS */
.contact-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 40px 0; }
.contact-block { background: var(--bg-main); border: 1px solid var(--glass-border); border-radius: 20px; padding: 40px 20px; text-decoration: none; color: var(--text-dark); transition: 0.3s; display: flex; flex-direction: column; align-items: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.contact-block h3 { margin: 15px 0 5px; font-size: 1.3rem; }
.contact-block p { color: var(--text-muted); margin-bottom: 15px; font-size: 0.85rem; }
.contact-block span { font-weight: 600; font-size: 0.85rem; white-space: nowrap; word-break: normal;}
.contact-block i { font-size: 3rem; margin-bottom: 10px; color: var(--icon-color); transition: 0.3s; }

.wpp-block:hover { transform: translateY(-10px); border-color: #25D366; }
.wpp-block:hover i { color: #25D366; }
.email-block:hover { transform: translateY(-10px); border-color: var(--primary); }
.email-block:hover i { color: var(--primary); }
.insta-block:hover { transform: translateY(-10px); border-color: #E1306C; }
.insta-block:hover i { color: #E1306C; }
.linkedin-block:hover { transform: translateY(-10px); border-color: #0A66C2; }
.linkedin-block:hover i { color: #0A66C2; }

.location-card { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 15px; background: var(--bg-main); border: 1px solid var(--icon-color); border-radius: 20px; padding: 30px 20px; color: var(--text-dark); margin: 40px auto 0; text-decoration: none; transition: 0.3s; max-width: 600px; cursor: pointer; box-shadow: 0 10px 25px rgba(8, 37, 92, 0.1); }
.location-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.location-card > i { color: var(--icon-color); font-size: 2.5rem; transition: 0.3s; }
.location-card:hover > i { transform: scale(1.1); color: var(--primary); }
.location-card p { font-weight: 500; font-size: 1.05rem; line-height: 1.5; }
.map-hint { font-size: 0.95rem; color: var(--primary); margin-top: 5px; display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* FOOTER */
footer { text-align: center; padding: 40px 20px; background: var(--bg-sec); border-top: 1px solid var(--glass-border); color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 20px; position: relative; z-index: 2; }
.btn-back-top { display: inline-flex; align-items: center; gap: 8px; background: var(--icon-color); color: #FFFFFF; padding: 12px 25px; border-radius: 30px; text-decoration: none; font-weight: 600; transition: 0.3s; box-shadow: 0 5px 15px rgba(8, 37, 92, 0.15); }
.btn-back-top:hover { background: var(--primary); transform: translateY(-5px); }

/* ANIMAÇÕES */
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes float-loop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-loop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes drive-loop { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes fluidezCores {0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; }}
@keyframes flutuarEgirar {0% { transform: translateY(0) rotate(15deg); } 50% { transform: translateY(-20px) rotate(0deg); }100% { transform: translateY(0) rotate(15deg); }
}

.anim-spin { animation: spin-slow 8s linear infinite; }
.anim-float { animation: float-loop 3s ease-in-out infinite; }
.anim-pulse { animation: pulse-loop 2.5s ease-in-out infinite; }
.anim-drive { animation: drive-loop 2s ease-in-out infinite; }


.js-liberado .reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.js-liberado .reveal.active { opacity: 1; transform: translateY(0); }

/* =========================================
   DIVISOR DE SEÇÕES (Curvas Perfeitas e Sobreposição)
   ========================================= */

/* 1. Z-Index Atualizado: Ordem exata de cima para baixo */
.hero { z-index: 20; position: relative; }
#quem-somos { z-index: 19; position: relative; }
#materiais { z-index: 18; position: relative; }
#oque-buscamos { z-index: 17; position: relative; }
#oque-entregamos { z-index: 16; position: relative; }
#quem-atendemos { z-index: 15; position: relative; }
#cta-especialista { z-index: 14; position: relative; }
#processo { z-index: 13; position: relative; }
#contatos { z-index: 12; position: relative; }

/* Garante que os fundos sejam 100% sólidos para esconder a seção debaixo */
.hero, .section { background-color: var(--bg-main); }
.dark-bg { background-color: var(--bg-sec) !important; }
.brand-bg { background-color: var(--icon-color) !important; }

/* 2. Esculpindo a Curva da Seção */
.hero, .section {
    border-bottom-left-radius: 50% 50px;
    border-bottom-right-radius: 50% 50px;
    margin-bottom: -50px; 
    padding-bottom: 150px; 
}

/* 3. A Linha Animada (Efeito Máscara) */
.hero::after,
.section::after {
    content: "";
    position: absolute;
    bottom: -5px; 
    left: 0;
    width: 100%;
    height: 60px; 
    
    /* O lençol de cores bem largo (300%) para poder deslizar */
    background: linear-gradient(90deg, #001830 0%, #a80019 50%, #001830 100%);
    background-size: 200% 100%;
    
    /* O motor da animação que joga as cores de um lado pro outro */
    animation: fluidezCores 5s ease-in-out infinite alternate;
    
    /* A máscara SVG atuando como o molde de corte da curva */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M 0 5 Q 50 20 100 5 L 100 12 Q 50 27 0 12 Z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M 0 5 Q 50 20 100 5 L 100 12 Q 50 27 0 12 Z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    
    z-index: 10;
    pointer-events: none;
}
/* 4. Reset do Contato (Para o Rodapé não bugar) */
#contatos {
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-bottom: 100px; 
}
#contatos::after {
    display: none; 
}

/* 4. Reset do Contato (Para o Rodapé não bugar) */
#contatos {
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-bottom: 100px; 
}
#contatos::after {
    display: none; 
}

/* 4. Reset do Contato (Para o Rodapé continuar normal) */
#contatos {
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-bottom: 100px; 
}
#contatos::after {
    display: none; 
}

/* CAIXAS DE CONTATO (Forçando a Fileira no PC) */
.contact-blocks {
    display: flex !important;
    flex-direction: row !important; /* Obriga a ficar em linha (horizontal) */
    justify-content: center !important;
    gap: 20px !important;
    width: 100% !important;
}

.contact-block {
    flex: 1 !important; /* Faz todas dividirem a tela em 4 partes exatas */
    min-height: 160px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Esconde os textos vermelhos (span) */
.contact-block span {
    display: none !important;
}


/* RESPONSIVO */
@media (max-width: 900px) {
    .layout-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.8rem; }
    .timeline::before { display: none;  }
}

/* Ajustes Finos para Celulares */
@media (max-width: 768px) {
    /* Menu Hamburger */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px; 
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    .nav-links.active { display: flex; }
    .burger-menu { display: block; }
    
    /* Textos Proporcionais */
    .hero-content h1 { font-size: 2.2rem; }
    .section h2 { font-size: 2rem; }
    .subtitle, .brand-bg .subtitle-light { margin-bottom: 30px; font-size: 1rem; }
    .brand-bg .title-white { font-size: 1.8rem; margin-bottom: 30px; }
    
    /* Fundo do Hero (Efeito Azulejo e Fix iOS) */
   .hero::before {
        background-attachment: scroll !important;
        background-position: center center;
        background-size: cover !important;
        background-repeat: no-repeat !important;
    }
    
    /* Espaçamento Seguro das Seções (Não esmaga os cards com a curva) */
    .section { 
        padding: 60px 20px 110px 20px; 
    }
    #contatos {
        padding-bottom: 60px; /* Tira o excesso de curva do rodapé */
    }
    
    /* Alinhamento dos Cards (Um em cima do outro) */
    .cards-grid, .materiais-grid, .contact-blocks { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    
    /* Altura das Fotos */
    .material-img-box, .grao-img-box { height: 200px; } 
    
    /* O truque do e-mail (Mantém em uma linha e diminui só no celular) */
    .contact-block span { 
        font-size: 0.75rem; 
        white-space: nowrap; 
    }
}

/*  REGRA MESTRE DE ESPAÇAMENTO E CENTRO (PC) */
.hero { 
    padding: 150px 20px !important; 
}

.section { 
    padding: 120px 0 150px 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%;
}

#contatos { padding-bottom: 60px !important; }

.process-desc {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px 20px;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
    box-shadow: 0 10px 25px rgba(8, 37, 92, 0.05);
    position: relative;
    line-height: 1.5;
}

.process-desc::before {
    content: '';
    position: absolute;
    top: -8px; 
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 15px;
    height: 15px;
    background: #FFFFFF;
    border-top: 1px solid var(--glass-border);
    border-left: 1px solid var(--glass-border);
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); } 
}

.anim-float-slow {
    animation: float-slow 5s ease-in-out infinite;
}
.timeline-item:nth-child(1) .anim-float-slow { animation-delay: 0s; }
.timeline-item:nth-child(2) .anim-float-slow { animation-delay: 1.5s; }
.timeline-item:nth-child(3) .anim-float-slow { animation-delay: 3s; }
.timeline-item:nth-child(4) .anim-float-slow { animation-delay: 4.5s; }

.timeline-item .icon { 
    width: 130px !important; 
    height: 130px !important; 
    font-size: 3.2rem !important; 
    margin: 0 auto 25px !important; 
}

.timeline::before { 
    top: 85px !important; 
}

.timeline-item h4 {
    font-size: 1.15rem !important;
}

footer { 
    padding: 25px 20px !important;
    gap: 15px !important; 
}

.developer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 5px auto 0;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.developer-credit a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.developer-credit span {
    font-size: 0.75rem; 
    color: var(--text-muted); 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.developer-credit img {
    height: 100px; 
    width: auto;
    filter: grayscale(100%) opacity(0.6); 
    transition: all 0.3s ease;
}

.developer-credit a:hover img {
    filter: grayscale(0%) opacity(1); 
    transform: scale(1.05); 
}

/* AJUSTES FINAIS E ESPAÇAMENTO (CELULARES) */
@media (max-width: 768px) {
    /* Devolve o respiro pro celular com perfeito alinhamento */
    .hero { padding: 120px 20px !important; }
    .section { padding: 80px 0 110px 0 !important; }
    #contatos { padding-bottom: 50px !important; }

    /* Ajustes protegidos para mobile */
    .nav-links.active { display: flex; }
    .burger-menu { display: block; }
    .section h2 { font-size: 2rem; }
    .subtitle, .brand-bg .subtitle-light { margin-bottom: 30px; font-size: 1rem; }
    .brand-bg .title-white { font-size: 2rem; margin-bottom: 40px; }
    
    /* Ajustes nos Grids e Cards */
    .cards-grid { gap: 20px; } 
    .materiais-grid { gap: 20px; }
    .contact-blocks { flex-direction: column !important; }
    
    /* Ajuste de Altura das Imagens no Mobile */
    .material-img-box { height: 200px; } 
    .grao-img-box { height: 180px; }        
}

/* Ajuste extremo para celulares muito pequenos (ex: iPhone SE) */
@media (max-width: 380px) {
    .contact-block span { font-size: 0.65rem; }
    .hero-content h1 { font-size: 1.9rem; }
}