/* --- RESET E VARIÁVEIS GLOBAIS --- */
:root {
    --primary-color: #f1c40f;
    /* Amarelo Industrial */
    --secondary-color: #3498db;
    /* Azul Metálico */
    --dark-bg: #1a1a1a;
    --dark-gray: #2c3e50;
    --light-gray: #f4f4f4;
    --text-color: #ffffff;
    --text-dark: #333;
    --font-title: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* --- ESTILOS GERAIS (BOTÕES, TÍTULOS) --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: #ffdd57;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--light-gray);
    color: var(--dark-bg);
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.8rem;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    color: #666;
}

.text-center {
    text-align: center;
    margin-top: 40px;
}

section {
    padding: 80px 0;
}

/* --- 1. CABEÇALHO --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: background-color 0.3s ease;
}

#main-header.scrolled {
    background-color: var(--dark-bg);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
}

.logo img {
    width: 80px;
    height: auto;
    border-radius: 5px;
}

#main-nav ul {
    list-style: none;
    display: flex;
}

#main-nav li {
    margin-left: 25px;
}

#main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
}

#main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

#main-nav a:hover::after {
    width: 100%;
}

#menu-btn {
    display: none;
    /* Escondido em desktop */
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- 2. SEÇÃO HERO --- */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

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

.hero h1 {
    font-family: var(--font-title);
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* --- 3. SOBRE NÓS --- */
.about {
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.about-text .highlight {
    font-weight: bold;
    color: var(--dark-gray);
    font-size: 1.2rem;
    margin-top: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

/* --- 4. SERVIÇOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

/* Sessão de Projetos de Estruturas Metálicas */
.projects-showcase {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.projects-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.showcase-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.showcase-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.1);
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.1), rgba(26, 26, 26, 0.9));
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-item:hover .showcase-overlay {
    opacity: 1;
}

.showcase-content h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
}

.showcase-content p {
    color: #ddd;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.showcase-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Estatísticas */
.projects-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 80px 0 50px;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--dark-gray);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}



/* --- 5. PROJETOS --- */
.projects {
    background-color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 40px 20px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
}

/* --- 6. DIFERENCIAIS --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
}

.feature-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* --- 8. CONTATO --- */
.contact {
    background-color: var(--dark-gray);
    color: var(--text-color);
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--text-color);
}

#contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #3c526a;
    color: white;
    font-family: var(--font-body);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #ccc;
}

#contact-form button {
    justify-self: center;
    width: 200px;
}

/* --- 7. LOCALIZAÇÃO --- */
.location {
    background-color: #fff;
}

.location-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.location-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.location-info h3 {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.location-info p {
    margin-bottom: 30px;
    color: #555;
}

.contact-details {
    list-style: none;
    margin-bottom: 30px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1rem;
}

.contact-details i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
    width: 25px;
    text-align: center;
}

.contact-details a {
    text-decoration: none;
    color: var(--dark-bg);
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* --- 9. RODAPÉ --- */
#main-footer {
    background-color: var(--dark-bg);
    color: #ccc;
    padding: 50px 0 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-social a {
    color: white;
    font-size: 1.8rem;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
}

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

.footer-bottom a {
    text-decoration: none;
    color: #3498db;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* --- ANIMAÇÕES DE SCROLL --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para o botão flutuante do WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-button i {
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    padding: 15px;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease-in-out;
}

/* Efeito ao passar o mouse */
.whatsapp-button:hover i {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* --- ESTILOS PARA DESKTOP --- */
@media (min-width: 769px) {
    .close-menu-container {
        display: none;
        /* Esconde o botão Fechar no desktop */
    }

    /* Garante que o menu normal funcione no desktop */
    #menu {
        display: flex !important;
        position: static;
        height: auto;
        background: none;
        transform: none;
        padding: 0;
        flex-direction: row;
    }

    #main-nav li {
        margin-left: 25px;
        opacity: 1 !important;
        transform: none !important;
    }

    #main-nav a {
        font-size: 1rem;
        padding: 5px 0;
        display: inline;
        text-align: left;
    }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .location-map {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    #main-header .container {
        position: relative;
    }

    #main-header .btn-primary {
        display: none;
    }

    #menu-btn {
        display: block;
        z-index: 1001;
        background: none;
        border: none;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
        padding: 5px;
    }

    #main-nav {
        position: static;
    }

    #menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        padding-top: 80px;
        z-index: 999;
        overflow-y: auto;
    }

    #menu.active {
        transform: translateX(0);
    }

    /* Estilos para o botão de fechar - APENAS NO MOBILE */
    .close-menu-container {
        position: absolute;
        top: 20px;
        right: 20px;
        margin: 0 !important;
        z-index: 1000;
        display: block;
    }

    #close-menu-btn {
        background: var(--primary-color);
        color: var(--dark-bg);
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
        font-size: 1rem;
    }

    #close-menu-btn:hover {
        background: #ffdd57;
        transform: scale(1.05);
    }

    #close-menu-btn i {
        font-size: 1.2rem;
    }

    /* Itens do menu principais */
    #main-nav li:not(.close-menu-container) {
        margin: 15px 0;
        opacity: 1;
        transform: translateY(0);
        transition: all 0.3s ease;
        width: 100%;
        text-align: center;
    }

    /* Animações apenas quando o menu está ativo */
    #menu:not(.active) #main-nav li:not(.close-menu-container) {
        opacity: 0;
        transform: translateY(20px);
    }

    #menu.active #main-nav li:not(.close-menu-container) {
        opacity: 1;
        transform: translateY(0);
    }

    /* Delay para animação dos itens do menu */
    #menu.active #main-nav li:nth-child(2) {
        transition-delay: 0.1s;
    }

    #menu.active #main-nav li:nth-child(3) {
        transition-delay: 0.2s;
    }

    #menu.active #main-nav li:nth-child(4) {
        transition-delay: 0.3s;
    }

    #menu.active #main-nav li:nth-child(5) {
        transition-delay: 0.4s;
    }

    #menu.active #main-nav li:nth-child(6) {
        transition-delay: 0.5s;
    }

    #menu.active #main-nav li:nth-child(7) {
        transition-delay: 0.6s;
    }

    #main-nav a {
        font-size: 1.5rem;
        font-weight: 500;
        color: white;
        text-decoration: none;
        padding: 15px 25px;
        display: block;
        text-align: center;
        transition: all 0.3s ease;
        border-radius: 5px;
        width: 100%;
    }

    #main-nav a:hover {
        color: var(--primary-color);
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.05);
    }

    #main-nav a::after {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-social {
        margin-top: 20px;
    }

    .footer-social a {
        margin: 0 15px;
    }

    /* Prevenir scroll quando menu está aberto */
    body.menu-open {
        overflow: hidden;
    }


    .projects-showcase-grid {
        grid-template-columns: 1fr;
    }

    .projects-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}