/* --- 1. CONFIGURAÇÕES GERAIS E VARIÁVEIS --- */
:root {
    --primary: #FFB400;      /* Amarelo Segurança (O "Ouro" da construção) */
    --primary-hover: #e6a200;
    --dark: #111111;         /* Preto quase total */
    --gray-dark: #1f1f1f;    /* Cinza Chumbo */
    --gray-light: #f4f4f4;   /* Cinza Concreto */
    --text: #555555;         /* Texto corpo */
    --white: #ffffff;
    
    --font-head: 'Oswald', sans-serif;   /* Fonte Títulos (Forte, Alta) */
    --font-body: 'Manrope', sans-serif;  /* Fonte Corpo (Técnica, Limpa) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--dark);
    text-transform: uppercase;
    line-height: 1.2;
    font-weight: 700;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section { padding: 100px 0; }
.bg-light { background-color: var(--gray-light); }

/* --- 2. COMPONENTES E BOTÕES --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--dark);
    padding: 14px 35px;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary);
}
.btn-primary:hover {
    background: transparent;
    color: var(--primary); /* O texto fica amarelo no hover */
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--white);
    padding: 14px 35px;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-dark {
    display: inline-flex;
    background: var(--dark);
    color: var(--white);
    padding: 14px 35px;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--dark);
}
.btn-dark:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.tag {
    display: inline-block;
    color: #333;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 45px;
}
.tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 35px;
    height: 3px;
    background: var(--primary);
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 3rem; margin-bottom: 15px; }
.bar { width: 60px; height: 4px; background: var(--primary); margin: 0 auto; }

/* --- 3. TOPBAR & NAVBAR --- */
.topbar {
    background: #161616;
    color: #999;
    padding: 4px 0;
    font-size: 0.85rem;
}
.topbar i { color: var(--primary); margin-right: 5px; }
.contact-info span { margin-right: 20px; }
.socials a { color: #999; margin-left: 15px; }
.socials a:hover { color: var(--primary); }

.navbar {
    background: #161616;
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    transition: 0.3s;
}
.navbar.scrolled { padding: 5px 0; background: rgba(22, 22, 22, 0.95); backdrop-filter: blur(5px); }

/* Botão mais compacto especificamente para o menu */
.navbar .btn-primary { padding: 8px 25px; font-size: 0.85rem; }

.logo {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}
.icon-logo { color: var(--primary); font-size: 1.8rem; }
.text-primary { color: var(--primary); }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    color: #e0e0e0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-family: var(--font-head);
    letter-spacing: 0.5px;
}
.nav-links a:hover { color: var(--primary); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- 4. HERO SECTION (Cabeçalho) --- */
.hero {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg .overlay {
    position: absolute;
    inset: 0;
    /* Gradiente forte da esquerda para a direita para destacar o texto */
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.content-wrapper {
    max-width: 650px; /* Limita o texto à esquerda */
}

.subtitle {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary);
}

.hero h1 {
    color: var(--white);
    font-size: clamp(3rem, 5vw, 5.5rem); /* Fonte gigante */
    margin-bottom: 20px;
    line-height: 1.1;
}

.text-outline {
    color: var(--primary);
}

.hero p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns { display: flex; gap: 20px; }

/* Faixa amarela decorativa */
.hero-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 10px;
    background: var(--primary);
    z-index: 2;
}

/* --- 5. SERVIÇOS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border: 1px solid #eee;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--white);
}
/* Linha amarela no topo ao passar o mouse */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.3s;
}
.service-card:hover::before { transform: scaleX(1); }

.icon-box {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-card p { margin-bottom: 25px; color: #666; font-size: 0.95rem; }

.read-more {
    color: var(--dark);
    font-weight: 800;
    font-family: var(--font-head);
    font-size: 0.9rem;
    text-transform: uppercase;
}
.read-more i { margin-left: 5px; font-size: 0.8rem; transition: 0.3s; }
.read-more:hover { color: var(--primary); }
.read-more:hover i { margin-left: 10px; }

/* --- 6. QUEM SOMOS --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image { position: relative; }
.about-image img {
    border-radius: 4px;
    box-shadow: 20px 20px 0 var(--gray-light), 20px 20px 0 2px var(--primary); /* Efeito de borda deslocada */
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--primary);
    padding: 30px;
    color: var(--dark);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.experience-badge .number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-head);
}
.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.about-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.about-text .lead {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
}
.check-list { margin: 30px 0; }
.check-list li {
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.check-list i { color: var(--primary); }

/* --- 7. ESTATÍSTICAS --- */
.stats-section {
    background: var(--dark);
    padding: 80px 0;
    color: var(--white);
    border-bottom: 5px solid var(--primary);
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat-item h2 {
    color: var(--primary);
    font-size: 3.5rem;
    margin-bottom: 5px;
}
.stat-item p {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 8. PROJETOS --- */
.projects-grid { margin-bottom: 40px; }

.project-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}
.project-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.project-card:hover img { transform: scale(1.1); }

.project-info {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white);
    transform: translateY(20px);
    transition: 0.4s;
    opacity: 0;
}
.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-info span {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.project-info h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-top: 5px;
}
.project-info a {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* --- 9. CTA --- */
.cta-section {
    background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=2031&auto=format&fit=crop') no-repeat center/cover fixed;
    position: relative;
    padding: 120px 0;
    text-align: center;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(17, 17, 17, 0.85);
}
.cta-content { position: relative; z-index: 2; color: var(--white); }
.cta-content h2 { font-size: 3.5rem; margin-bottom: 20px; color: var(--white); }
.cta-content p { font-size: 1.2rem; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- 10. FOOTER --- */
.footer {
    background: #0b0b0b;
    color: #777;
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}
.logo-footer {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 20px;
}
.logo-footer span { color: var(--primary); }
.footer h4 { color: var(--white); margin-bottom: 25px; font-size: 1.2rem; }
.footer ul li { margin-bottom: 12px; }
.footer a { color: #777; }
.footer a:hover { color: var(--primary); padding-left: 5px; }

.contact-list li { display: flex; gap: 15px; margin-bottom: 20px; }
.contact-list i { color: var(--primary); margin-top: 5px; }

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    /* Ajustes para Tablets (Grids em 2 colunas) */
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .hero h1 { font-size: 3.5rem; }
    
    /* Menu Mobile */
    .nav-links, .topbar { display: none; }
    .menu-toggle { display: block; color: var(--white); }
    .navbar .btn-primary { display: none; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--white);
        padding: 30px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 15px;
        border-top: 2px solid var(--primary);
    }
    
    .hero-content { text-align: center; }
    .content-wrapper { margin: 0 auto; }
    .hero-btns { justify-content: center; }
    .about-image { margin-bottom: 40px; }
    .experience-badge { left: 0; bottom: -20px; }
}

@media (max-width: 768px) {
    /* Ajustes para Celulares (Grids em 1 coluna) */
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    
    .section-header h2 { font-size: 2.2rem; }
    .stat-item h2 { font-size: 2.5rem; }
    .cta-content h2 { font-size: 2rem; }
    
    /* Logo menor no mobile */
    .logo { font-size: 1.5rem; }
    .icon-logo { font-size: 1.4rem; }
}