/* ==========================================
   Variante 1: Neomorfismo Industrial (Glassmorphism)
========================================== */

:root {
    --color-black: #0a0a0c;        
    --color-darker: #131316;       
    --color-surface: rgba(35, 35, 40, 0.6); 
    --color-accent: #ffcc00;       
    --color-accent-hover: #ffda47;
    --color-text-white: #f8f9fa;
    --color-text-muted: #a0a0a8;   
    --color-border: rgba(255, 255, 255, 0.08); 

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* { 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 88px; 
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-text-white);
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 204, 0, 0.03) 0%, transparent 60%);
}

h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-display); 
    letter-spacing: -0.02em; 
}

.section-padding { 
    padding: 120px 0; 
}

@media (max-width: 768px) { 
    .section-padding { 
        padding: 80px 0; 
    } 
}

/* ==========================================
   Utilitários
========================================== */

.bg-black { 
    background-color: var(--color-black) !important; 
}

.bg-darker { 
    background-color: var(--color-darker) !important; 
}

.text-accent { 
    color: var(--color-accent) !important; 
}

.text-muted-light { 
    color: var(--color-text-muted) !important; 
}

/* ==========================================
   Eyebrow - Indicador Técnico
========================================== */

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.eyebrow-dot {
    width: 8px; 
    height: 8px;
    background: var(--color-accent);
    border-radius: 1px; 
    display: inline-block;
}

/* ==========================================
   Barra de Progresso Superior
========================================== */

.current-meter {
    position: fixed; 
    top: 0; 
    left: 0; 
    height: 4px; 
    width: 0%;
    background: var(--color-accent);
    z-index: 1100;
}

/* ==========================================
   Navbar Glassmorphism
========================================== */

.navbar {
    background: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.4s ease;
}

.navbar.nav-solid {
    background: rgba(10, 10, 12, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.brand-mark { 
    color: var(--color-accent); 
    font-size: 1.5rem; 
}

.brand-word { 
    font-family: var(--font-display); 
    font-weight: 800; 
    font-size: 1.2rem; 
    color: #fff; 
    line-height: 1.1; 
    display: flex; 
    flex-direction: column; 
}

.brand-word small { 
    font-family: var(--font-mono); 
    font-size: 0.6rem; 
    color: var(--color-accent); 
    font-weight: 400; 
    letter-spacing: 0.2em; 
}

.custom-link { 
    color: #fff !important; 
    font-weight: 500; 
    font-size: 0.9rem; 
    margin: 0 10px; 
    transition: color 0.3s; 
}

.custom-link:hover { 
    color: var(--color-accent) !important; 
}

/* ==========================================
   Botões
========================================== */

.btn-accent {
    background-color: var(--color-accent);
    color: #000;
    font-family: var(--font-display);
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.4);
}

.btn-ghost { 
    border: 1px solid var(--color-border); 
    color: #fff; 
    backdrop-filter: blur(5px); 
}

.btn-ghost:hover { 
    background: rgba(255, 255, 255, 0.05); 
    color: #fff; 
    border-color: #fff; 
}

/* ==========================================
   Hero Section
========================================== */

.hero-section {
    background: url('Imgs/hero_usinas_de_solo_5.jpg') center/cover no-repeat;
    min-height: 100vh;
}

.hero-section .overlay {
    position: absolute; 
    inset: 0; 
    z-index: 1;
    background: radial-gradient(circle at center, rgba(10, 10, 12, 0.4) 0%, rgba(10, 10, 12, 0.9) 100%);
}

.hero-content { 
    z-index: 3; 
}

/* Garante o alinhamento centralizado no Desktop */
.hero-text-block {
    text-align: center;
    margin: 0 auto;
}

.hero-title { 
    font-size: clamp(2.5rem, 4vw, 4rem); 
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); 
    line-height: 1.1;
}

.scroll-cue { 
    display: none;
}

@keyframes bounce { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(10px); } 
}

.hero-sub {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
    font-size: 1.15rem !important; 
    opacity: 0.95;
    max-width: 600px;
}

/* --- AJUSTES PARA TABLETS E CELULARES --- */

/* Abaixo de 991px (Tablets e Celulares), centraliza tudo */
@media (max-width: 991px) { 
    .hero-text-block {
        text-align: center !important; 
    }
    
    .hero-content .d-flex {
        justify-content: center !important;
    }
    
    .hero-text-block .eyebrow {
        justify-content: center !important;
        width: 100%;
    }
}

@media (max-width: 768px) { 
    .hero-section {
        min-height: 80vh; 
    }
    
    /* Garante que o container principal tenha espaço nas bordas, mas não esmague o miolo */
    .hero-content {
        padding-left: 15px !important; 
        padding-right: 15px !important; 
        width: 100% !important;
    }
    
    /* LIBERA O BLOCO DE TEXTO: força a usar 100% do espaço disponível */
    .hero-text-block {
        text-align: center !important;
        width: 100% !important; 
        max-width: 100% !important; 
        padding: 0 !important; 
        margin: 0 auto;
    }

    /* Remove qualquer limite de largura que o título puxou do desktop */
    .hero-title { 
        font-size: 2.3rem;
        line-height: 1.2;
        width: 100% !important;
        max-width: 100% !important; 
        margin-bottom: 20px !important;
    } 

    .hero-text-block .eyebrow {
        justify-content: center !important;
        width: 100%;
        margin-bottom: 15px !important;
    }

    /* Remove qualquer limite de largura do parágrafo */
    .hero-sub {
        font-size: 1.05rem !important;
        line-height: 1.4;
        opacity: 0.9;
        width: 100% !important;
        max-width: 100% !important; 
        margin-bottom: 30px !important;
    }
    
    /* ISOLA OS BOTÕES: Recria o bloco quadrado apenas para eles */
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important; 
        gap: 15px !important; 
        width: 100%;
        max-width: 320px !important; /* Limita a largura apenas dos botões */
        margin: 0 auto; /* Centraliza a caixa de botões */
    }
    
    .hero-buttons .btn {
        width: 100%; 
        padding: 14px 0;
    }
}

/* ==========================================
   Estatísticas
========================================== */

.stats-strip { 
    position: relative; 
    z-index: 10; 
    margin-top: 40px; 
    margin-bottom: 60px; 
}

.stats-panel {
    background: var(--color-surface);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 40px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.stat-number { 
    font-family: var(--font-display); 
    font-size: 2.5rem; 
    font-weight: 700; 
    color: #fff; 
    display: block; 
}

.stat-label { 
    font-family: var(--font-mono); 
    font-size: 0.75rem; 
    color: var(--color-text-muted); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.stat-item { 
    border-right: 1px solid var(--color-border); 
    padding: 15px 10px;
}

.stat-item:last-child { 
    border: none; 
}

@media (max-width: 991px) { 
    .stats-panel {
        padding: 20px 0; 
    }
    
    /* Força um Grid 2x2 no mobile em vez de empilhar 1 em cima do outro */
    .stats-panel .col-6 {
        margin-bottom: 20px;
    }
    
    .stat-item { 
        border-bottom: 1px solid var(--color-border); /* Linha divisória horizontal */
    }
    
    /* Remove a borda dos itens da direita e dos de baixo */
    .stat-item:nth-child(even) { border-right: none; }
    .stat-item:nth-child(n+3) { border-bottom: none; margin-bottom: 0; }
    
    /* Reduz o tamanho da fonte dos números no celular */
    .stat-number {
        font-size: 2rem;
    }
}

/* ==========================================
   Componentes Base (Cards) - Neomorfismo Escuro
========================================== */

.credential-card, 
.service-card, 
.contact-box {
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    transition: all 0.3s;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 10px 20px rgba(0, 0, 0, 0.4);
}

.credential-card:hover, 
.service-card:hover, 
.contact-box:hover {
    border-color: rgba(255, 204, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 15px 30px rgba(0, 0, 0, 0.6);
}

.icon-wrapper { 
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid var(--color-border); 
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper { 
    border-color: var(--color-accent); 
}

.foto-redonda {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================
   Projetos
========================================== */

.project-card { 
    border-radius: 20px; 
    border: 1px solid var(--color-border); 
    position: relative; 
    overflow: hidden; 
}

.project-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s ease; 
    filter: brightness(0.8); 
}

.project-card:hover img { 
    transform: scale(1.05); 
    filter: brightness(1); 
}

.project-overlay {
    position: absolute; 
    inset: 0; 
    z-index: 1;
    background: linear-gradient(to top, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.4) 50%, transparent 100%);
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    padding: 30px;
}

.featured-project { 
    min-height: 450px; 
    max-width: 1100px; 
    margin: 0 auto;    
}

.col-md-6 .project-card, 
.col-md-4 .project-card { 
    min-height: 350px; 
}

/* ==========================================
   Timeline Horizontal (História)
========================================== */

.timeline-container { 
    position: relative; 
    border-left: 2px dashed rgba(255, 204, 0, 0.3); 
    margin-left: 20px; 
    padding-left: 40px; 
}

.timeline-item { 
    position: relative; 
    margin-bottom: 60px; 
}

.timeline-year { 
    font-family: var(--font-mono); 
    color: var(--color-accent); 
    font-weight: 700; 
    font-size: 1.2rem; 
    display: block; 
    margin-bottom: 10px; 
}

.timeline-dot-col { 
    position: absolute; 
    left: -49px; 
    top: 5px; 
}

.timeline-dot { 
    display: block; 
    width: 16px; 
    height: 16px; 
    background: var(--color-black); 
    border: 3px solid var(--color-accent); 
    border-radius: 50%; 
}

.timeline-content h4 { 
    font-size: 1.5rem; 
    color: #fff; 
}

/* ==========================================
   Rodapé e Elementos Menores
========================================== */

.footer-section { 
    background: var(--color-black); 
    border-top: 1px solid var(--color-border); 
}

.footer-links a { 
    color: var(--color-text-muted); 
    text-decoration: none; 
    font-size: 0.9rem; 
}

.footer-links a:hover { 
    color: var(--color-accent); 
}

.social-icon { 
    color: var(--color-text-muted); 
    transition: 0.3s; 
}

.social-icon:hover { 
    color: var(--color-accent); 
    transform: translateY(-3px); 
}

.drop-glow { 
    filter: drop-shadow(0 0 15px rgba(255, 204, 0, 0.6)); 
}

/* ==========================================
   Back to Top
========================================== */

.back-to-top {
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    width: 50px; 
    height: 50px;
    background: var(--color-surface); 
    border: 1px solid var(--color-border); 
    color: var(--color-accent);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    visibility: hidden; 
    transition: 0.3s; 
    z-index: 999; 
    backdrop-filter: blur(10px);
}

.back-to-top.visible { 
    opacity: 1; 
    visibility: visible; 
}

.back-to-top:hover { 
    background: var(--color-accent); 
    color: #000; 
}