/* Importando fontes de impacto */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@1,900&family=Inter:wght@400;700&display=swap');

:root {
    --mkar-green: #28a745;
    --mkar-red: #dc3545;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    scroll-behavior: smooth;
}

/* Tipografia */
.fw-black { font-weight: 900; font-family: 'Archivo', sans-serif; }
.italic { font-style: italic; }

/* Navbar Custom */
.mkar-nav {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px); /* Efeito de vidro embaçado */
    padding: 12px 0;
    transition: 0.4s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--mkar-green);
    transition: 0.3s;
}

.nav-logo { height: 40px; }
.nav-link {
    font-size: 0.75rem !important;
    letter-spacing: 2px;
    margin: 0 10px;
    font-weight: 700;
    position: relative;
    color: #eee !important;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn-contato {
    border: 1px solid var(--mkar-red);
    padding: 5px 15px !important;
    border-radius: 3px;
    color: var(--mkar-red) !important;
}

.nav-btn-contato:hover {
    background: var(--mkar-red);
    color: white !important;
}

.nav-identity-line {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 3px;
    display: flex;
}
.line-green { width: 50%; background: var(--mkar-green); }
.line-red { width: 50%; background: var(--mkar-red); }

/* DIVISORES DE SEÇÃO (LISTRAS) */
.section-divider-stripes {
    width: 100%;
    height: 8px;
    display: flex;
    background: #000;
}

.section-divider-stripes .s-green { 
    width: 50%; 
    background: linear-gradient(90deg, transparent, var(--mkar-green)); 
}

.section-divider-stripes .s-red { 
    width: 50%; 
    background: linear-gradient(90deg, var(--mkar-red), transparent); 
}

/* MELHORIA NO TEXTO DAS SEÇÕES */
.display-4 {
    letter-spacing: -1px;
    text-transform: uppercase;
}

.nav-link:hover { color: var(--mkar-green) !important; }

.identity-stripes { position: absolute; bottom: 0; width: 100%; height: 5px; display: flex; }
.s-green { width: 50%; background: var(--mkar-green); }
.s-red { width: 50%; background: var(--mkar-red); }

/* HERO SECTION - Resolução e Estilo */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;

    /* Ação Definitiva para Nitidez */
    filter: contrast(1.1) brightness(0.9) sharpness(1.5); /* Simulação de Sharpness */
    -webkit-filter: contrast(1.1) brightness(0.9);
    
    /* Força o navegador a não "borrar" o vídeo ao redimensionar */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated; /* Apenas se o vídeo for muito pequeno, teste este */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* Camada 1: Escurecimento gradual */
    /* Camada 2: Linhas de alta definição que enganam o olhar */
    background: 
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)),
        repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 2px);
    
    pointer-events: none;
    z-index: -1;
}

.main-logo-hero { width: 85%; max-width: 500px; margin-bottom: 20px; }
.hero-line { width: 60px; height: 4px; background: var(--mkar-red); margin: 20px auto; }
.hero-tagline { letter-spacing: 12px; color: var(--mkar-green); font-weight: bold; font-size: 0.9rem; }

/* BLOCOS DE CONTEÚDO */
.content-block { padding: 120px 0; }
.bg-dark-section { background-color: #080808; }
.accent-line { width: 100px; height: 4px; background: var(--mkar-red); margin-top: 15px; }

/* GALERIA ANTES E DEPOIS (CORREÇÃO) */
.comparison-wrapper {
    max-width: 900px;
    margin: 40px auto;
    position: relative;
    border: 4px solid #1a1a1a;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.comparison-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.img-before, .img-after {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.img-before img, .img-after img {
    width: 900px; /* Deve ser a mesma largura do container */
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-before {
    width: 50%; /* Controlado pelo JS */
    z-index: 2;
    border-right: 3px solid #fff;
}

.mkar-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    z-index: 10;
    cursor: ew-resize;
    margin: 0;
}

/* Esconde o "pino" padrão do slider para não sujar o visual */
.mkar-slider::-webkit-slider-thumb { appearance: none; width: 2px; height: 100vh; background: transparent; }

.labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #444;
    text-transform: uppercase;
}

.mkar-compare-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9; /* Mantém a proporção sempre correta */
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid #222;
}

/* Container da Galeria */
.mkar-comparison-box {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    border: 1px solid #333;
    background-color: #000;
    overflow: hidden;
    cursor: ew-resize;
}

.img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 1000px; 
    height: 100%;
    object-fit: cover;
    display: block;
}


.before {
    z-index: 2;
    width: 50%;
    overflow: hidden;
    border-right: 3px solid #fff;
}


.label-tag {
    position: absolute;
    bottom: 20px;
    padding: 5px 15px;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 2px;
    background: rgba(0,0,0,0.8);
    z-index: 3;
}

.mkar-input-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Invisível */
    z-index: 10;
    cursor: ew-resize;
}

.slider-divider {
    position: absolute;
    top: 0;
    left: 50%; /* O JS vai sincronizar isso */
    height: 100%;
    width: 3px;
    background: #fff;
    z-index: 5;
    pointer-events: none; /* Deixa o clique passar para o input */
    transform: translateX(-50%);
}

.before-tag { left: 20px; border-left: 4px solid var(--mkar-red); }
.after-tag { right: 20px; border-right: 4px solid var(--mkar-green); }

/* O Slider Transparente que recebe o clique */
.comparison-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; /* Invisível mas clicável */
    z-index: 10;
    cursor: ew-resize;
}

/* O Divisor Visual (Handle) */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%; /* Controlado pelo JS */
    height: 100%;
    width: 4px;
    background: #fff;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Não atrapalha o clique no input */
    transform: translateX(-50%);
}

.handle-circle {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 10px;
    color: #fff;
}

.handle-line { flex-grow: 1; width: 2px; background: #fff; }

.divider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.mkarSwiper {
    padding-bottom: 50px;
    max-width: 950px;
}

.comparison-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 1px solid #222;
}

/* Garante que a imagem dentro do slide não se mova */
.comparison-item .img-wrapper img {
    position: absolute;
    width: 950px; /* Largura igual à do container .mkarSwiper */
    height: 100%;
    object-fit: cover;
}

.comparison-item .before {
    z-index: 2;
    width: 50%;
    overflow: hidden;
    border-right: 2px solid #fff;
}

/* Estilo do Slider dentro do Carrossel */
.mkar-range {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: ew-resize;
}

.slider-line {
    position: absolute;
    top: 0; left: 50%; height: 100%; width: 2px;
    background: #fff; z-index: 5; transform: translateX(-50%);
    pointer-events: none;
}

.slider-button {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 30px; height: 30px; background: #fff; border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Customização das setas do Swiper */
.swiper-button-next, .swiper-button-prev {
    --swiper-navigation-size: 20px;
    background: rgba(0,0,0,0.5);
    padding: 30px;
    border-radius: 50%;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}

/* Efeito de pulsação sutil opcional */
@keyframes pulse-whatsapp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: pulse-whatsapp 2s infinite;
}

/* --- CONFIGURAÇÕES BASE (CELULAR) --- */
:root {
    --mkar-green: #28a745;
    --mkar-red: #dc3545;
}

/* Ajuste de Texto para Telas Pequenas */
h2.display-2 { font-size: 2.5rem !important; }
h2.display-4 { font-size: 1.8rem !important; }

/* Hero Section no Celular */
.hero-section {
    height: 100vh;
    padding: 0 20px;
}

.main-logo-hero {
    width: 90%; /* Logo maior no celular para destaque */
    max-width: 350px;
}

.hero-tagline {
    letter-spacing: 5px; /* Menos espaçamento para não quebrar linha no celular */
    font-size: 0.7rem;
}

/* Galeria Antes e Depois (Mobile) */
.mkar-comparison-box {
    aspect-ratio: 4/5; /* Formato vertical no celular (estilo Instagram) */
    width: 100%;
    max-width: 100%;
    border-radius: 0; /* Ocupa a largura total sem bordas */
}

.comparison-item img {
    width: 100vw; /* Garante que a imagem preencha a largura do celular */
    height: 100%;
    object-fit: cover;
}

/* Botão WhatsApp Ajustado para Polegar */
.whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
}

/* --- AJUSTES PARA COMPUTADOR (DESKTOP) --- */
@media (min-width: 992px) {
    h2.display-2 { font-size: 5rem !important; }
    h2.display-4 { font-size: 3.5rem !important; }

    /* Galeria volta para formato Paisagem no PC */
    .mkar-comparison-box {
        aspect-ratio: 16/9;
        max-width: 1000px;
        border-radius: 8px;
    }

    .comparison-item img {
        width: 1000px;
    }

    .main-logo-hero {
        max-width: 550px;
    }

    .hero-tagline {
        letter-spacing: 12px;
        font-size: 1rem;
    }

    /* Espaçamentos Maiores no PC */
    .content-block {
        padding: 150px 0;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.98);
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 100vh;
        padding: 40px;
        text-align: center;
    }

    .nav-item {
        margin-bottom: 25px;
    }

    .nav-link {
        font-size: 1.2rem !important;
    }
}

/* Cards de Combos */
.combo-card {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border-radius: 4px;
}

.combo-card:hover {
    transform: translateY(-10px);
    border-color: #444;
}

.combo-header {
    border-bottom: 2px solid;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.combo-header h3 {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-style: italic;
    margin: 0;
}

.combo-header p {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.combo-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1;
}

.combo-body li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #ccc;
}

.combo-body i {
    margin-right: 10px;
}

/* Destaque para o Signature */
.signature-card {
    background: linear-gradient(145deg, #0a0a0a 0%, #152218 100%);
    border: 1px solid var(--mkar-green);
}

.signature-list li {
    border-bottom: 1px solid rgba(40, 167, 69, 0.1);
    padding-bottom: 8px;
    color: #fff;
}

/* Botões dos Combos */
.btn-combo {
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: 0.3s;
}

.btn-outline-success { border: 1px solid var(--mkar-green); color: var(--mkar-green); }
.btn-outline-success:hover { background: var(--mkar-green); color: #fff; }

/* Mobile First: Espaçamento no Celular */
@media (max-width: 768px) {
    .combo-card {
        margin-bottom: 10px;
    }
}

/* Cards MKAR */
.mkar-card {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    padding: 45px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

.mkar-card:hover {
    border-color: var(--mkar-red);
    background: #111;
    transform: translateY(-10px);
}

.card-badge {
    position: absolute;
    top: 0; left: 50%;
    transform: translate(-50%, -50%);
    background: #222;
    font-size: 0.65rem;
    padding: 4px 15px;
    letter-spacing: 2px;
    font-weight: bold;
    white-space: nowrap;
}

.mkar-card h3 {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 1.6rem;
    margin-top: 10px;
}

.short-desc {
    color: #888;
    font-size: 0.9rem;
    margin: 20px 0;
}

/* Botão Único e Padronizado */
.btn-mkar {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.7rem;
    transition: 0.3s;
    margin-top: auto; /* Empurra para o fim do card */
    cursor: pointer;
}

.btn-mkar:hover {
    background: #fff;
    color: #000;
}

/* Estilo Diferenciado para Signature */
.signature {
    border: 1px solid rgba(40, 167, 69, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-content {
    background: #111;
    border-bottom: 1px solid #222;
}

.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.modal-body {
    background: #0d0d0d;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 1;
    z-index: 1070;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 50%; /* Proporção do mapa */
    position: relative;
    height: 0;
    border: 2px solid #28a745; /* Moldura verde para combinar com o estilo Inside Clean */
    border-radius: 15px;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

@media (max-width: 768px) {
    .map-responsive {
        padding-bottom: 100%; /* No telemóvel o mapa fica mais alto (quadrado) */
    }
}

/* Estilos da Seção de Contatos */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #0a0a0a;
}

.map-wrapper {
    border: 1px solid #222;
    padding: 5px;
    background: #111;
    border-radius: 4px;
    overflow: hidden;
}

.map-wrapper iframe {
    display: block;
    /* Deixa o mapa com visual mais escuro para combinar com o site */
    filter: grayscale(100%) invert(90%) contrast(90%);
    transition: 0.5s;
}

.map-wrapper:hover iframe {
    filter: grayscale(0%) invert(0%) contrast(100%);
}

@media (max-width: 991px) {
    .contact-info {
        padding: 30px !important;
        margin-bottom: 20px;
    }
    .map-wrapper iframe {
        height: 300px;
    }
}

.map-wrapper iframe {
    filter: grayscale(100%) invert(90%) contrast(95%);
    transition: all 0.5s ease;
}

.map-wrapper:hover iframe {
    filter: grayscale(0%) invert(0%) contrast(100%);
}

.contact-card {
    background-color: #0a0a0a;
}

/* Estilo da Lista de Serviços */
.mkar-service-list li {
    padding: 15px 20px;
    background: #000;
    margin-bottom: 10px;
    border: 1px solid #1a1a1a;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
}

.mkar-service-list li i {
    margin-right: 15px;
    font-size: 1.1rem;
}

.mkar-service-list li:hover {
    border-color: #444;
    transform: translateX(5px);
    background: #050505;
}

.letter-spacing-2 {
    letter-spacing: 3px;
    font-size: 0.75rem;
}

/* Estilo do link do Instagram na Nav */
.instagram-link {
    color: #eee !important;
    transition: 0.3s ease;
    padding: 10px 0 !important;
}

.instagram-link:hover {
    color: #E1306C !important; /* Cor oficial do Instagram */
    transform: scale(1.1);
}

/* Garante que no mobile o ícone fique alinhado corretamente */
@media (max-width: 991px) {
    .instagram-link {
        display: inline-block;
        margin-top: 10px;
    }
    .navbar-nav {
        padding-bottom: 20px;
    }
}

/* Container das listras divisorias */
.section-divider-stripes {
    width: 100%;
    height: 10px; /* Altura da linha */
    display: flex;
    background: #000; /* Fundo preto para não haver frestas */
    overflow: hidden;
}

/* Listra Verde com degradê */
.section-divider-stripes .s-green {
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(40,167,69,1) 100%);
    /* O gradiente vai do preto para o verde da MKar */
}

/* Listra Vermelha com degradê */
.section-divider-stripes .s-red {
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(220,53,69,1) 0%, rgba(0,0,0,1) 100%);
    /* O gradiente vai do vermelho para o preto */
}

/* Ajuste para telas menores */
@media (max-width: 768px) {
    .section-divider-stripes {
        height: 6px; /* Linha mais fina no celular */
    }
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #0f0f0f; /* Fundo bem escuro */
    border: 1px solid #28a745; /* Verde da MKar */
    color: white;
    z-index: 1050; /* Um pouco acima dos modais do Bootstrap */
    border-radius: 12px;
    display: none; /* O JavaScript vai mostrar se necessário */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Deixa o link de privacidade chamativo */
.cookie-banner a.text-success:hover {
    color: #34ce57 !important;
    text-decoration: none !important;
}

.cookie-banner a {
    font-weight: bold;
    transition: 0.3s;
}

.cookie-banner a:hover {
    color: #fff !important;
}