/* 1. CONFIGURAÇÕES GERAIS E VARIÁVEIS */
:root {
    --primary: #00AEEF;
    --magenta: #EC008C;
    --dark: #1A1A1A;
    --white: #FFFFFF;
    --light: #F8F9FA;
    --light-transparent: rgba(255, 255, 255, 0.7);
    --overlay: rgba(255, 255, 255, 0.95);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
    font-size: 100%; 
}

body { 
    font-family: 'Segoe UI', sans-serif; 
    overflow-x: hidden; 
    color: var(--dark); 
    background: var(--white); 
}

.container { 
    max-width: 75rem; 
    margin: 0 auto; 
    padding: 0 1.25rem; 
}

.section-padding { padding: 3.75rem 0; }
.bg-light { background: var(--light-transparent); }
.highlight { color: var(--primary); }

.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2.5rem; 
    align-items: center; 
}

/* 2. ELEMENTOS DE BACKGROUND (LOGO VAZADA) */
.bg-overlay-png {
    position: fixed;
    top: 10%;
    right: -15.625rem; 
    width: 50rem;
    height: 50rem;
    background-image: url('img/png-background.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
    transition: var(--transition);
}

/* 3. HEADER E NAVEGAÇÃO */
header { 
    background: rgba(255,255,255,0.98); 
    height: 8rem; 
    display: flex; 
    align-items: center; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 0.125rem 0.625rem rgba(0,0,0,0.05); 
    transition: var(--transition);
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
}

.logo img { 
    height: 7rem; 
    width: auto; 
    transition: var(--transition); 
    display: block;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 1.5625rem; 
    align-items: center; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 600; 
    font-size: 0.9375rem; 
}

.btn-whatsapp-nav { 
    background: #25D366; 
    color: white !important; 
    padding: 0.5rem 1.125rem; 
    border-radius: 0.3125rem; 
}

.mobile-menu-icon { 
    display: none; 
    font-size: 1.8rem; 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--dark); 
}

/* 4. HERO SECTION */
.hero { 
    padding: 13rem 0 6.25rem; 
    text-align: center; 
}

.hero h1 { 
    font-size: 2.5rem; 
    line-height: 1.1; 
    margin-bottom: 1.25rem; 
}

.cta-group { 
    display: flex; 
    flex-direction: column; 
    gap: 0.9375rem; 
    margin-top: 1.875rem; 
}

.btn-main, .btn-sub { 
    padding: 0.9375rem 2.1875rem; 
    text-decoration: none; 
    border-radius: 0.3125rem; 
    font-weight: bold; 
    transition: transform 0.2s;
    display: inline-block;
}

.btn-main { background: var(--primary); color: white; }
.btn-sub { border: 0.125rem solid var(--primary); color: var(--primary); }
.btn-main:hover, .btn-sub:hover { transform: translateY(-3px); }

/* 5. SERVIÇOS (CARDS COM IMAGEM) */
.section-header { text-align: center; margin-bottom: 2.5rem; }

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); 
    gap: 1.5rem; 
}

.service-card { 
    height: 25rem; 
    background-size: cover;
    background-position: center;
    border-radius: 0.9375rem; 
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0,0,0,0.1); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover { transform: scale(1.03); }

.card-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, var(--overlay) 30%, transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.875rem;
    transition: height 0.3s ease;
}

.service-card:hover .card-overlay { height: 60%; }

.card-info h3 { font-size: 1.5rem; color: var(--dark); margin-bottom: 0.3rem; }
.card-info p { font-size: 0.9375rem; color: #444; font-weight: 500; }

/* 6. SEÇÃO SOBRE (DNR EXPERTISE) */
.sobre-texto p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #444;
}

.sobre-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item { display: flex; flex-direction: column; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
    margin-top: 0.3rem;
}

.feature-card {
    background: var(--light);
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border-left: 0.25rem solid var(--primary);
    transition: transform 0.3s;
}

.feature-card:hover { transform: translateX(10px); }

.feature-card h4 {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.4rem;
    color: var(--dark);
}

.feature-card i { color: var(--primary); }
.feature-card p { font-size: 0.95rem; margin-bottom: 0; }

/* 7. MODAL DE GALERIA */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(0.3125rem);
    padding: 1rem;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 60rem;
    width: 100%;
    background: var(--white);
    padding: 2.5rem 1.5rem 1.5rem;
    border-radius: 1rem;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 1.25rem 3.125rem rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: 0.5rem; right: 1rem;
    color: var(--dark);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2010;
    transition: color 0.3s;
}

.close-modal:hover { color: var(--magenta); }

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}

.modal-grid img { width: 100%; height: 15rem; object-fit: cover; border-radius: 0.5rem; }

/* 8. CONTATO E FOOTER */
.contact-box { 
    background: var(--dark); color: var(--white);
    padding: 1.875rem; border-radius: 0.9375rem;
    display: grid; gap: 1.875rem; 
}

.contact-form { display: flex; flex-direction: column; gap: 0.9375rem; }
.contact-form input, .contact-form textarea { padding: 0.75rem; border-radius: 0.3125rem; border: none; }

.mapa-container {
    margin-top: 1.5rem;
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borda sutil para o fundo escuro */
}

.mapa-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(20%) invert(5%) contrast(105%); /* Leve ajuste para combinar com o tema dark */
}

.whatsapp-fixed { 
    position: fixed; bottom: 1.25rem; right: 1.25rem;
    background: #25D366; color: var(--white);
    width: 3.4375rem; height: 3.4375rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; box-shadow: 0 0.25rem 0.625rem rgba(0,0,0,0.2);
    z-index: 1001; text-decoration: none; transition: transform 0.3s;
}
.whatsapp-fixed:hover { transform: scale(1.1); }

.footer {
    background: var(--white); color: var(--dark);
    padding: 1.5rem 0; border-top: 0.0625rem solid #eeeeee; 
}

.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; }
.footer-icon { height: 2.2rem; width: auto; }
.footer-credits p { font-size: 0.9rem; color: #666; }

.my-name { color: var(--primary); font-weight: 700; }
/* No Desktop: esconde a quebra de linha */
.mobile-break { display: none; }

/* 9. MEDIA QUERIES (RESPONSIVIDADE) */

/* Desktop Médio e Grande */
@media (min-width: 48rem) { 
    .hero h1 { font-size: 3.5rem; }
    .cta-group { flex-direction: row; justify-content: center; }
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .contact-box { grid-template-columns: 1fr 1.5fr; padding: 3.125rem; }
}

@media (min-width: 112.5rem) { 
    .bg-overlay-png { right: -21.875rem; width: 62.5rem; height: 62.5rem; }
}

/* Mobile */
@media (max-width: 48rem) {
    header { height: 6rem; }
    .logo img { height: 5rem; }
    .hero { padding: 9rem 0 4rem; }
    .mobile-menu-icon { display: block; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        /* Usamos uma variável que o JS vai controlar */
        top: var(--header-height, 8rem); 
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 0.3125rem 0.625rem rgba(0,0,0,0.1);
        transition: top 0.4s ease; /* Suaviza a subida/descida do menu */
    }
    
    .nav-links.active { display: flex; }

    .bg-overlay-png { width: 120vw; height: 120vw; right: -40vw; top: 20%; opacity: 0.08; }

    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
    .sobre-stats { justify-content: space-around; }
    .modal-content { width: 95%; padding: 3rem 1rem 1rem; }

    .mobile-break {
        display: block; /* Ativa a quebra de linha */
    }

    .footer-sep {
        display: none; /* Esconde o traço " - " */
    }

    .cta-group {
        width: 100%;
        gap: 0.75rem; /* Diminui o espaço entre botões se houver mais de um */
    }

    .btn-main, .btn-sub {
        width: 100%; /* Botão ocupa a largura total */
        text-align: center;
        padding: 1rem 1.25rem; /* Aumenta a altura para facilitar o toque */
        font-size: 1rem; /* Ajusta a fonte para não quebrar linha */
        display: block; /* Garante que o width 100% funcione */
    }

    /* Caso o botão esteja dentro da seção SOBRE */
    .sobre-texto .cta-group {
        align-items: center;
        justify-content: center;
    }

    .mapa-container {
        height: 200px;
        margin-top: 1rem;
    }
}