/* =========================================
   VARIÁVEIS E RESET
========================================= */
:root {
    --primary-color: #1E293B; /* Cinza Chumbo / Azul Escuro */
    --accent-color: #D4AF37;  /* Amarelo Industrial / Laranja */
    --accent-hover:#B5952F;
    --bg-light: #F8FAFC;      /* Fundo claro para seções alternadas */
    --text-dark: #334155;
    --text-light: #F1F5F9;
    --white: #FFFFFF;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth; /* Comportamento nativo de fallback */
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 4rem 0;
}

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

.bg-light {
    background-color: var(--bg-light);
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 1rem 0 2rem 0;
}

.divider.center {
    margin: 1rem auto 2rem auto;
}

/* =========================================
   BOTÕES GERAIS
========================================= */
.cta-btn {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

/* =========================================
   HEADER & NAVBAR (MOBILE FIRST)
========================================= */
header {
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: -100%;
    width: 100%;
    background-color: var(--primary-color);
    text-align: center;
    transition: 0.4s;
    list-style: none;
    padding: 1rem 0;
}

.nav-menu.active {
    left: 0;
}

.nav-item {
    margin: 1rem 0;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: block;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: block;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--white);
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1541888086425-d81bb19240f5?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px; /* Compensa a navbar fixa */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.75); /* Overlay escuro Chumbo */
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

/* =========================================
   SERVIÇOS (CSS GRID)
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* =========================================
   PORTFÓLIO (CSS GRID)
========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.portfolio-item img:hover {
    transform: scale(1.03);
}

/* =========================================
   FOOTER / CONTATO
========================================= */
.footer-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0 1rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-contact h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    font-size: 0.9rem;
}

/* =========================================
   MEDIA QUERIES (DESKTOP)
========================================= */
@media (min-width: 768px) {
    .nav-menu {
        position: static;
        flex-direction: row;
        width: auto;
        padding: 0;
        background: transparent;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .nav-link {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

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

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================
   FORMULÁRIO DE CONTATO (FORMSPREE)
========================================= */
.contact-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-form-container h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-form-container p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.btn-form {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.footer-info-map {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* =========================================
   NOVOS BOTÕES DO HERO SECTION
========================================= */
.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    text-decoration: none;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px; 
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.logo-img {
    height: 40px; 
    width: auto;  
}

/* =========================================
   BOTÃO FLUTUANTE DO WHATSAPP
========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; /* Verde oficial do WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E; /* Verde mais escuro no hover */
    transform: scale(1.1); /* Dá uma leve crescida quando passa o mouse */
    color: #FFF;
}

/* Ajuste para o celular (deixa o botão um pouco menor e mais perto da borda) */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}

/* =========================================
   AVISO DE COOKIES (LGPD) - CORREÇÃO MOBILE
========================================= */
.cookie-banner {
    position: fixed;
    bottom: -200px; /* Aumentado para garantir que fique 100% escondido antes de subir */
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    /* O "env(safe-area-inset-bottom)" é a mágica que impede o iPhone de cortar o banner */
    padding: 1rem 2rem calc(1rem + env(safe-area-inset-bottom)) 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    gap: 1rem;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.85rem; /* Fonte um pingo menor para não ocupar tanta tela */
    flex: 1;
    line-height: 1.5;
}

/* Ajustes específicos para as telas de celular */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom)) 1rem;
    }
    
    .cookie-banner .cta-btn {
        width: 100%; /* Faz o botão "Entendi" ocupar a largura inteira */
        padding: 0.8rem;
        justify-content: center;
    }
}