/* =========================================
   VARIÁVEIS DE CORES E FONTES
   ========================================= */
:root {
    --primary-color: #e63946; /* Vermelho/Laranja vibrante */
    --dark-bg: #121212;
    --dark-card: #1e1e1e;
    --light-text: #f1faee;
    --gray-text: #a8dadc;
    --font-main: 'Montserrat', sans-serif;
}

/* =========================================
   RESET GERAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 { font-weight: 800; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   BOTÕES PADRÃO
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}
.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}
.btn-whatsapp:hover {
    background-color: #1ebe57;
}

/* =========================================
   NAVBAR (CABEÇALHO ATUALIZADO)
   ========================================= */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease; /* Transição mais suave */
}

header.scrolled {
    background-color: rgba(18, 18, 18, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    padding: 5px 0; /* Diminui levemente ao rolar */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex; 
    align-items: center;
}
.logo a img {
    max-height: 50px; 
    width: auto;
    max-width: 100%; 
    display: block;
    transition: transform 0.3s ease;
}
.logo a:hover img {
    transform: scale(1.05); /* Leve animação na logo */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

/* Efeito de Destaque Animado (Linha que expande) */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Classe para destacar a página/seção ativa */
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

.mobile-menu { display: none; cursor: pointer; }
.mobile-menu div {
    width: 25px; height: 3px;
    background-color: var(--light-text);
    margin: 5px; transition: all 0.3s ease;
}

/* Animação do Menu Mobile (X) */
.nav-active .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.nav-active .line2 { opacity: 0; }
.nav-active .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* =========================================
   SEÇÃO HERO (INÍCIO)
   ========================================= */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(18,18,18,0.9) 0%, rgba(18,18,18,0.5) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}
.hero h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 30px;
}

/* =========================================
   SEÇÕES GLOBAIS
   ========================================= */
.section-padding { padding: 100px 0; }
.divider {
    width: 60px; height: 4px;
    background-color: var(--primary-color);
    margin: 15px 0 25px 0;
}
.divider.center { margin: 15px auto 25px auto; }
.section-title h2 { text-align: center; font-size: 2.5rem; }

/* =========================================
   SOBRE
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 20px 20px 0px rgba(230, 57, 70, 0.2);
}

/* =========================================
   SERVIÇOS (ESPECIALIDADES)
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.service-card {
    background-color: var(--dark-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-10px); }
.card-img img { width: 100%; height: 250px; object-fit: cover; }
.card-content { padding: 25px; }
.card-content h3 { color: var(--primary-color); margin-bottom: 10px; }

/* =========================================
   RODAPÉ (FOOTER)
   ========================================= */
.footer {
    background-color: #0a0a0a;
    text-align: center;
    padding: 60px 0 20px;
}
.cta-section { margin-bottom: 50px; }
.cta-section h2 { font-size: 2.5rem; margin-bottom: 10px; }
.cta-section p { margin-bottom: 30px; color: var(--gray-text); }
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* =========================================
   ANIMAÇÕES DE ROLAGEM
   ========================================= */
.animate-up, .scroll-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   BOTÕES FLUTUANTES (WHATSAPP E TOPO)
   ========================================= */
.btn-floating {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
}

.btn-whatsapp-float {
    left: 30px;
    background-color: #25D366;
    animation: pulse-whatsapp 2s infinite; 
}

.btn-whatsapp-float:hover {
    background-color: #1ebd5a;
    transform: scale(1.1);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-back-to-top {
    right: 30px;
    background-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* =========================================
   RESPONSIVIDADE (MOBILE)
   ========================================= */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed; /* Mudado para fixed para cobrir a tela */
        right: 0; 
        top: 0;
        background-color: rgba(18, 18, 18, 0.98);
        height: 100vh; 
        width: 70%;
        flex-direction: column; 
        align-items: center; 
        justify-content: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    
    .nav-links.nav-active { 
        transform: translateX(0); 
    }
    
    .mobile-menu { 
        display: block; 
        z-index: 1001;
    }

    .hero h1 { font-size: 2.8rem; }
    .about-grid { grid-template-columns: 1fr; }
}