/* ====================
   1. VARIÁVEIS E RESET GLOBAL
   ==================== */

/* Importa a fonte do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* Cores (baseado nas imagens) */
    --color-bg-dark: #1e1e1e;
    --color-bg-card: #2a2a2a;
    --color-primary: #f37d21; /* Laranja principal */
    --color-primary-hover: #e06f1a;
    --color-text-light: #f0f0f0;
    --color-text-dark: #333;
    --color-border: #444;

    /* Fontes */
    --font-family-main: 'Poppins', sans-serif;

    /* Layout */
    --header-height: 80px;
    --container-width: 1140px;
    --border-radius: 8px;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: var(--color-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-text-light);
}

/* ====================
   2. BOTÕES (REUTILIZÁVEIS)
   ==================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: var(--font-family-main);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ====================
   3. HEADER E NAVEGAÇÃO
   ==================== */
.header {
    width: 100%;
    position: fixed; /* Fixo no topo */
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(30, 30, 30, 0.9); /* Fundo semi-transparente */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 70px;
}

.logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-light);
}

.nav-menu {
    height: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-text-light);
    font-weight: 500;
    padding: 0 0.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.btn-header {
    padding: 0.5rem 1rem;
}

/* ====================
   4. MENU MOBILE (HAMBURGER)
   ==================== */
.menu-toggle {
    display: none; /* Escondido no desktop */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger {
    width: 25px;
    height: 2px;
    background-color: var(--color-text-light);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: var(--color-text-light);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Estilos do Menu Mobile Ativo (via JS) */
.nav-open .hamburger {
    background-color: transparent; /* Some o traço do meio */
}

.nav-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-open .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}


/* ====================
   5. SEÇÃO HERO (PRINCIPAL)
   ==================== */
main {
    /* Garante que o conteúdo principal comece abaixo do header fixo */
    margin-top: var(--header-height);
}

.hero {
    position: relative;
    height: 80vh; /* 80% da altura da tela */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Alinhado à esquerda como na imagem */
    
    /* IMPORTANTE: 
      Substitua este 'background-image' pela sua foto (hero-bg.jpg).
      A foto dos produtos 3D no fundo.
    */
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://via.placeholder.com/1920x1080/1e1e1e/444?text=Substitua+pela+imagem+HERO+BG');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative; /* Para ficar acima do overlay */
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color-text-light);
    opacity: 0.9;
}

/* ====================
   6. SEÇÃO DE SERVIÇOS
   ==================== */
.services {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas */
    gap: 2rem;
}

.service-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.service-icon {
    height: 60px;
    margin: 0 auto 1.5rem auto;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase; /* Como na imagem */
}

.service-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ====================
   7. FOOTER (RODAPÉ)
   ==================== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 3rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Para quebrar em telas menores */
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    height: 35px;
}

.footer-logo span {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--color-text-light);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social img {
    height: 30px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-social a:hover img {
    opacity: 1;
}

/* ====================
   8. RESPONSIVIDADE (MOBILE)
   ==================== */

/* Tablet (ex: iPads) */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas */
    }
}

/* Mobile (até 768px) - Baseado em 'site_versao_modile.jpg' */
@media (max-width: 768px) {
    body.nav-open {
        /* Impede o scroll do body quando o menu mobile está aberto */
        overflow: hidden; 
    }

    .btn-header {
        display: none; /* Esconde o botão "Orçamento" do header no mobile */
    }

    .menu-toggle {
        display: block; /* Mostra o botão hamburger */
    }

    .nav-menu {
        /* Ocupa a tela toda */
        position: fixed;
        top: var(--header-height); /* Começa abaixo do header */
        left: -100%; /* Começa fora da tela */
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg-dark);
        transition: left 0.4s ease;
        padding-top: 2rem;
    }

    /* Classe .nav-open é adicionada via JS */
    .nav-open .nav-menu {
        left: 0; /* Traz o menu para a tela */
    }

    .nav-links {
        flex-direction: column; /* Links em coluna */
        height: auto;
        align-items: center;
        gap: 0;
    }
    
    .nav-link {
        color: var(--color-text-light);
        font-size: 1.5rem;
        font-weight: 500;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--color-primary);
        background-color: var(--color-bg-card);
        border-bottom: 1px solid var(--color-border); /* Remove borda laranja no mobile */
    }

    /* Ajustes da Seção Hero */
    .hero {
        height: 70vh;
        text-align: center;
        justify-content: center; /* Centraliza no mobile */
    }

    .hero h1 {
        font-size: 2.5rem; /* Fonte menor */
    }

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

    /* Ajustes da Seção Serviços */
    .services-grid {
        grid-template-columns: 1fr; /* 1 coluna */
    }
    
    .section-title {
        font-size: 2rem;
    }

    /* Ajustes do Footer */
    .footer-container {
        flex-direction: column; /* Empilha tudo */
        text-align: center;
    }
}

/* ====================
   9. PÁGINA DE PRODUTOS
   ==================== */

/* Layout principal da página */
.page-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 1rem;
}

.products-page-layout {
    display: flex;
    gap: 2.5rem;
}

/* Sidebar de Filtros */
.products-sidebar {
    flex: 0 0 280px; /* Largura fixa para o sidebar */
}

.filter-group {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    overflow: hidden; /* Para o radius funcionar */
}

.filter-group h3 {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    background-color: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--color-border);
}

.filter-group ul {
    padding: 1rem 1.5rem;
}

.filter-group li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--color-text-light);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.filter-group li a:hover {
    opacity: 1;
    color: var(--color-primary);
}

/* O "quadrado" laranja */
.filter-group li a::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
}

/* Grid de Produtos */
.products-main {
    flex: 1; /* Ocupa o resto do espaço */
}

.products-list {
    display: grid;
    /* 3 colunas no desktop */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.product-card img {
    width: 100%;
    aspect-ratio: 4/3; /* Proporção da imagem */
    object-fit: cover;
    border-bottom: 1px solid var(--color-border);
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Faz o card crescer por igual */
}

.product-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.product-content p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Empurra o botão para baixo */
}


/* ====================
   10. PÁGINA DE CONTATO
   ==================== */
.contact-layout {
    display: grid;
    /* 2 colunas */
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form h3,
.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Formulário */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-family: var(--font-family-main);
    font-size: 1rem;
    color: var(--color-text-light);
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

/* Info de Contato */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--color-bg-card);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.contact-info-item .icon {
    /* Placeholder para o ícone */
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background-color: var(--color-primary);
    border-radius: 50%;
    /* No seu site, use <img src="icon.svg"> ou uma fonte de ícones */
    display: grid;
    place-items: center;
    font-weight: 600;
}

.contact-info-item span {
    font-size: 1rem;
    font-weight: 500;
    word-break: break-word;
}

/* Mapa */
.map-section {
    margin-top: 3rem;
}

.map-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.map-embed {
    width: 100%;
    height: 300px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    filter: grayscale(1) invert(0.9); /* Estilo dark mode para o mapa */
}


/* ====================
   11. PÁGINAS PLACEHOLDER
   ==================== */
.placeholder-page {
    padding: 5rem 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.placeholder-page h2 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.placeholder-page p {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* ====================
   12. RESPONSIVIDADE ADICIONAL
   ==================== */

/* Tablet (ex: iPads) */
@media (max-width: 992px) {
    .products-list {
        /* 2 colunas no tablet */
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        /* 1 coluna no tablet */
        grid-template-columns: 1fr;
    }
}

/* Mobile (até 768px) */
@media (max-width: 768px) {
    .products-page-layout {
        flex-direction: column;
    }

    .products-sidebar {
        flex: 0 0 auto; /* Reseta a largura fixa */
    }
    
    .products-list {
        /* 1 coluna no mobile */
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Transforma os itens de contato em links clicáveis */
a.contact-info-item {
    color: var(--color-text-light); /* Garante que o texto não fique laranja */
    transition: all 0.3s ease;
}

/* Adiciona um efeito de hover sutil */
a.contact-info-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
}