/* ================= CSS VARIABLES & RESET ================= */
:root {
    --bg-color: #070B14;
    --bg-secondary: #0D1424;
    --bg-card: #111A2E;
    --bg-white: #FFFFFF;
    --primary-color: #00E5FF;
    --primary-dark: #008B99;
    --text-light: #F0F4F8;
    --text-muted: #A0AEC0;
    --text-dark: #1A202C;
    --transition: all 0.3s ease-in-out;
    --shadow-neon: 0 0 15px rgba(0, 229, 255, 0.4);
    --shadow-light: 0 10px 20px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
}

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

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #fff;
    text-transform: uppercase;
}

.section-title span {
    color: var(--primary-color);
}


/* ================= ICONS (SVGs) ================= */
.svg-icon {
    width: 45px;
    height: 45px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
    margin-bottom: 15px;
}

.service-item .svg-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover, .btn-solid {
    background: var(--primary-color);
    color: var(--bg-color) !important;
    box-shadow: var(--shadow-neon);
}

.btn-solid:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* ================= HEADER & MENU RESPONSIVO ================= */
header {
    position: sticky !important;
    top: 0;
    width: 100%;
    background: rgba(7, 11, 20, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-height: 60px;
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.3));
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--primary-color);
    text-shadow: var(--shadow-neon);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* ================= HERO SECTION ================= */
.hero {
    padding: 150px 20px 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(7, 11, 20, 0.8), rgba(7, 11, 20, 0.9)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* ================= FEATURES ================= */
.features {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 229, 255, 0.1);
    padding: 40px 20px;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ================= PRODUTOS (CARDS BRANCOS) ================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 1rem;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.3);
    transform: translateY(-8px);
}

.product-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    border-bottom: 4px solid var(--primary-color);
}

.product-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #000;
    font-weight: 800;
}

.product-content p {
    color: #4A5568;
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.product-content .btn {
    width: 100%;
    border-color: var(--text-dark);
    color: var(--text-dark);
}

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

/* ================= SPLIT SECTIONS ================= */
.split-section {
    background-color: var(--bg-secondary);
}

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

.split-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.split-text h2 span {
    color: var(--primary-color);
}

.split-text p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.check-list {
    margin-bottom: 30px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-light);
}

.check-list li::before {
    content: '✔';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: var(--shadow-neon);
}

.service-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    align-items: flex-start;
}

.service-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.service-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ================= GALERIA ================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    aspect-ratio: 4/3;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 229, 255, 0.2);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* ================= CLIENTES (NOVA SESSÃO) ================= */
.clients {
    background-color: var(--bg-card);
}

.clients-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.clients-grid img {
    max-width: 150px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition);
}

.clients-grid img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ================= CTA / FOOTER ================= */
.cta-footer {
    background: linear-gradient(135deg, #070B14 0%, #003340 100%);
    border-top: 2px solid var(--primary-color);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.cta-content h2 span {
    color: var(--primary-color);
}

.contact-box {
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    border-radius: 50px;
    border: 1px solid var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 30px 0;
    box-shadow: var(--shadow-neon);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* ================= ANIMATIONS ================= */
.hidden-el {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.show-el {
    opacity: 1;
    transform: translateY(0);
}

/* --- Estilo da Linha Única de Contatos --- */
.top-contacts-row {
    background: #000;
    border-bottom: 1px solid #222;
    padding: 8px 0;
    width: 100%;
}

.contacts-flex {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
}

.contact-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 400; /* Alterado para normal */
}

.contact-item-row .label {
    color: var(--text-muted);
    text-transform: uppercase;
}

.contact-item-row .value {
    color: var(--primary-color);
}

/* --- Estilo do Sub-menu --- */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    width: 220px;
    padding: 15px 0;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 999;
    border-radius: 1rem;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    padding: 10px 20px !important;
    display: block;
    text-transform: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.submenu li a:hover {
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary-color);
    text-shadow: var(--shadow-neon);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    /* Top contacts responsivo ajustado para aparecer */
    .contacts-flex {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .contact-item-row {
        justify-content: center;
    }
    
    /* Ajuste Sub-menu Mobile */
    .submenu { 
        display: none; /* Escondido por padrão na tela pequena */
        position: static; 
        background: transparent; 
        box-shadow: none; 
        width: 100%;
    }
    .submenu.active {
        display: block; /* Revelado no click via JS */
        opacity: 1; 
        visibility: visible; 
        transform: none; 
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 75px;
        right: -100%;
        flex-direction: column;
        background: rgba(7, 11, 20, 0.98);
        width: 100%;
        text-align: center;
        padding: 30px 0;
        transition: right 0.4s ease-in-out;
        border-bottom: 2px solid var(--primary-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .contact-box { font-size: 1.5rem; padding: 15px 25px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center;}
}



/* --- Configuração do Slide no Header (Hero) --- */
.hero {
    padding: 150px 20px 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent; /* Remove o bg antigo que estava direto na tag */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-bg.active {
    opacity: 1;
}

/* Coloque aqui os links das imagens que deseja no Slide */
.slide-1 { background-image: url('https://www.vejaportas.com.br/_antigo25/images/destaques/14042016094735p.jpg'); }
.slide-2 { background-image: url('https://www.vejaportas.com.br/_antigo25/images/destaques/05082017202548p.jpg'); }
.slide-3 { background-image: url('https://www.vejaportas.com.br/_antigo25/images/destaques/05082017201953p.jpg'); }

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(7, 11, 20, 0.8), rgba(7, 11, 20, 0.8));
    z-index: 0;
}

/* --- Seções com Fundo Claro --- */
.light-section {
    background-color: #F8FAFC; /* Cinza bem claro */
    color: var(--text-dark);
}

.light-section .section-title {
    color: var(--text-dark);
}

.light-section p {
    color: #4A5568;
}

.light-section .feature-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.light-section .feature-card h3 {
    color: var(--text-dark);
}

.light-section .feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.2);
}

.light-section .split-text h2 {
    color: var(--text-dark);
}

.light-section .service-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.light-section .service-item h3 {
    color: var(--text-dark);
}

/* --- Slider Automático de Clientes --- */
.clients {
    background-color: var(--bg-card);
    overflow: hidden; /* Esconde o que passa para fora */
}

.clients-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* O Track tem que ter espaço para os itens duplicados passarem */
.clients-track {
    display: flex;
    width: calc(200px * 10); /* 10 é o num total de logos (originais + repetidos) */
    animation: scroll 25s linear infinite;
    align-items: center;
}

.clients-track:hover {
    animation-play-state: paused; /* Pausa ao passar o mouse */
}

.clients-track img {
    width: 150px;
    height: auto;
    margin: 0 25px; /* Espaço entre as logos */
    opacity: 0.5;
    filter: grayscale(100%);
    transition: var(--transition);
}

.clients-track img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 5)); } /* Translada a metade (os originais) */
}

/* --- Efeito do Botão de WhatsApp no Footer --- */
.btn-pulse-wpp {
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 30px 0;
    box-shadow: var(--shadow-neon);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Brilho passando pelo botão */
.btn-pulse-wpp::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), transparent);
    transition: all 0.6s ease;
}

.btn-pulse-wpp:hover {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.6);
}

.btn-pulse-wpp:hover::before {
    left: 100%;
}

.btn-pulse-wpp:active {
    transform: scale(0.98) translateY(0);
}
/* --- Ajuste para forçar fundo claro no bloco de Clientes --- */
.clients.light-section {
    background-color: #F8FAFC;
}

/* --- Lightbox (Galeria Flutuante) --- */
.gallery-item {
    cursor: pointer;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    animation: zoomIn 0.3s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Setas de Navegação do Lightbox --- */
.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px 20px;
    color: white;
    font-weight: bold;
    font-size: 35px;
    transition: 0.3s ease;
    user-select: none;
    background-color: rgba(0,0,0,0.4);
    z-index: 2001;
}

.lightbox-prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.lightbox-next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* Oculta as setas em telas muito pequenas onde arrastar com o dedo é mais comum, 
   ou as ajusta para ficarem menores. Aqui vamos ajustá-las. */
@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        font-size: 25px;
        padding: 12px 15px;
    }
}

/* --- Novo Layout do Footer Bottom --- */
.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* Laterais ocupam 1 porção, centro ocupa 2 */
    align-items: center;
    gap: 20px;
}

.footer-block {
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-block img {
    max-width: 140px; /* Controla o tamanho da logo da Bláva */
    height: auto;
    border-radius: 0 !important;
}

.footer-block p a {
    transition: var(--transition);
}

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

/* --- Botões Flutuantes --- */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza um botão abaixo do outro */
    gap: 15px;
    z-index: 1000;
}

.float-wpp {
    background-color: #25D366;
    color: #FFF;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: var(--transition);
}

.float-wpp:hover {
    transform: scale(1.1);
    background-color: #1EBE5D;
    color: #FFF;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

.float-totop {
    background-color: var(--bg-card);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.float-totop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.float-totop:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}


/* Responsividade do Rodapé */
@media (max-width: 768px) {
    .footer-bottom {
        grid-template-columns: 1fr; /* Empilha os blocos no celular */
        gap: 15px;
    }
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    .float-wpp {
        width: 55px;
        height: 55px;
    }
    .float-wpp svg {
        width: 26px;
        height: 26px;
    }
    .btn-pulse-wpp {
        font-size: 25px !important;
    }
}