/* --- Configurações Globais e Variáveis --- */
:root {
    --color-background: #121212;
    --color-surface: #1e1e1e;
    --color-primary: hsl(27, 74%, 50%);
    --color-primary-hover: #e6282f;
    --color-accent: #ff8c00;
    --color-text-primary: #f0f0f0;
    --color-text-secondary: #a0a0a0;
    --font-family-base: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Títulos e Subtítulos Genéricos --- */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-text-primary);
}
.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    text-align: center;
}
.section-title--left { text-align: left; }
.section-subtitle--left { margin: 0 0 2rem 0; text-align: left; }

/* --- Textos com Gradiente --- */
.gradient-text {
    background-image: linear-gradient(to right, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gradient-text-light {
    background-image: linear-gradient(to right, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Animações --- */
.fade-in { animation: fadeIn 2s forwards; opacity: 0; }
.delay-1 { animation-delay: 1.0s; }
.delay-2 { animation-delay: 2.0s; }

@keyframes fadeIn { to { opacity: 1; } }

.fade-in-up-heavy {
    animation: fadeInUpHeavy 2.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes fadeInUpHeavy {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Cabeçalho (Header) --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
}
.site-header.scrolled {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}
.navbar__brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    background-image: linear-gradient(to right, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.navbar__mobile-toggle {
    display: none; /* Oculto por padrão */
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
}
.navbar__mobile-toggle .icon {
    width: 1.5rem;
    height: 1.5rem;
}
.navbar__desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.navbar__link {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}
.navbar__link:hover {
    color: var(--color-primary);
}
.navbar__cta {
    background-color: var(--color-primary);
     background-image: linear-gradient(to right, var(--color-primary), var(--color-accent));
    color: var(--color-surface);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.navbar__cta:hover {
    background-color: var(--color-primary-hover);
}
.navbar__mobile-menu {
    display: none; /* Começa oculto */
    flex-direction: column;
    background-color: #1a1a1a;
}
.navbar__mobile-menu.is-open {
    display: flex;
}
.navbar__mobile-link {
    color: var(--color-text-primary);
    text-decoration: none;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #333;
}
.navbar__mobile-link:hover {
    background-color: #2a2a2a;
}


/* --- Estilos Responsivos para o Fundo da Seção Hero --- */

/* 1. IMAGEM PADRÃO (MOBILE FIRST) */
/* Modifique a regra .hero-section existente com a sua imagem para celular.
   Idealmente, uma imagem com proporção vertical (ex: 9:16). */

.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    /* IMAGEM PARA CELULAR (Exemplo: um painel de carro) */
    background-image: url('https://1.jimpro.pro/wp-content/uploads/2025/09/01-hero-mobile.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    overflow: hidden;
}

/* Garante que o pseudo-elemento ::before não seja perdido */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* 2. IMAGEM PARA TABLETS */
/* Para telas com largura mínima de 768px.
   Idealmente, uma imagem com proporção de paisagem (ex: 4:3). */

@media screen and (min-width: 768px) {
    .hero-section {
        /* IMAGEM PARA TABLET (Exemplo: helicóptero de resgate) */
        background-image: url('https://1.jimpro.pro/wp-content/uploads/2025/09/01-hero-mobile.webp');
    }
}


/* 3. IMAGEM PARA DESKTOPS */
/* Para telas com largura mínima de 1200px.
   Idealmente, uma imagem de alta resolução em paisagem (ex: 16:9). */

@media screen and (min-width: 1200px) {
    .hero-section {
        /* IMAGEM PARA DESKTOP (Exemplo: bombeiros em ação) */
        background-image: url('https://1.jimpro.pro/wp-content/uploads/2025/09/01-hero-desktop.webp');
    }
}

.hero__content {
    position: relative;
    z-index: 2;
}
.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background-image: linear-gradient(to right, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: #e0e0e0;
}
.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    backdrop-filter: blur(10px);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 4px #cd810e;
    background:blur (10px);
    background: linear-gradient(90deg, rgb(255, 140, 0) 0%, rgb(245, 160, 75) 100%) opacity(70%);
    color: rgb(223, 220, 215);
}
.hero__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.hero__button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: #ecb308;
    margin-left: 0.5rem;
    font-size: 1.5rem;
    line-height: 1;
}


/* --- Seção de Estatísticas --- */
.stats-section {
    padding: 4rem 0;
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
}
.stats-section__title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.stats-grid__number, .stats-grid__number-static {
    font-size: 3rem;
    font-weight: 800;
}
.stats-grid__number {
    background-image: linear-gradient(to right, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stats-grid__label {
    margin-top: 0.5rem;
    color: var(--color-text-primary);
}

/* --- Seção de Serviços --- */

/* 1. IMAGEM PADRÃO (MOBILE FIRST) */
/* Esta é a regra principal para a seção de serviços.
   A imagem de fundo aqui é otimizada para celulares. */
.services-section {
    position: relative;
    padding: 5rem 0;
    /* IMAGEM PARA CELULAR (Exemplo: um painel de alarme de incêndio) */
    background-image: url('https://1.jimpro.pro/wp-content/uploads/2025/09/02-servicos-mobile.webp');
    background-size: cover;
    background-position: center;
    /* O background-attachment: fixed pode causar problemas de performance em mobile.
       É uma boa prática desativá-lo para telas menores. */
    background-attachment: scroll; 
}

/* A sobreposição escura é mantida para garantir a legibilidade do texto */
.services-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* O conteúdo fica acima da sobreposição */
.services-section__content {
    position: relative;
    z-index: 2;
}


/* 2. IMAGEM PARA TABLETS E DESKTOPS MENORES */
/* Para telas com largura mínima de 768px. */
@media screen and (min-width: 768px) {
    .services-section {
        /* Reativamos o efeito parallax para telas maiores */
        background-attachment: fixed;
        /* IMAGEM PARA TABLET (Exemplo: profissionais analisando projetos) */
        background-image: url('https://1.jimpro.pro/wp-content/uploads/2025/09/02-servicos-mobile.webp');
    }
}


/* 3. IMAGEM PARA DESKTOPS GRANDES */
/* Para telas com largura mínima de 1200px. */
@media screen and (min-width: 1200px) {
    .services-section {
        /* IMAGEM PARA DESKTOP (Exemplo: equipe colaborando em um projeto) */
        background-image: url('https://1.jimpro.pro/wp-content/uploads/2025/09/02-servicos-desktop.webp');
    }
}
.services-section__content {
    position: relative;
    z-index: 2;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.service-card {
    background-color: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.service-card__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}
.service-card__icon { color: var(--color-primary); }
.service-card__description {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}
.service-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.service-card__list-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
}
.service-card__list-item::before {
    content: '✓';
    color: var(--color-primary);
}

/* --- Seção de Tecnologia --- */
.technology-section {
    padding: 5rem 0;
    background-color: var(--color-surface);
}
.technology-section__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
.technology-section__image-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.technology-section__image {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Seção de Segurança --- */
.security-section {
    padding: 5rem 0;
    background-color: #000;
}
.security-section__intro-text {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.25rem;
    text-align: center;
    color: var(--color-text-secondary);
}
.security-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.security-item {
    text-align: center;
}
.security-item__icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #1f1f1f;
    margin-bottom: 1rem;
}
.security-item__icon {
    font-size: 1.5rem;
}
.security-item__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.security-item__description {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* --- Seção de Certificações --- */
.certifications-section {
    padding: 5rem 0;
    background-color: var(--color-surface);
    text-align: center;
}
.certifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0 auto;
}
.certification-item img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* --- Seção de Parceiros --- */
.partners-section {
    padding: 5rem 0;
    background-color: #000;
}
.partners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.partner-card {
    background-color: rgba(30, 30, 30, 0.7);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.partner-card__logo {
    width: 30%;
    margin-bottom: 1rem;
}
.partner-card__name {
    font-weight: 700;
    font-size: 1.2rem;
}
.partner-card__description {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* --- Seção de Contato --- */
.contact-section {
    padding: 5rem 0;
    background-image: linear-gradient(135deg, #1f2937, #111827);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    text-align: center;
}
.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.contact-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}
.contact-button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    margin-right: 0.5rem;
    font-size: 1.25rem;
}
.contact-button__icon--whatsapp { background-color: #25D366; }
.contact-button__icon--email { background-color: #3b82f6; }


/* --- Rodapé (Footer) --- */
.site-footer {
    padding: 1.5rem 0;
    background-color: var(--color-surface);
    text-align: center;
}
.site-footer__copyright {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}


/* --- Media Queries para Responsividade --- */
@media (min-width: 768px) {
    /* --- Títulos --- */
    .section-title { font-size: 3rem; }

    /* --- Header --- */
    .navbar__mobile-toggle { display: none; }
    .navbar__desktop-menu { display: flex; }

    /* --- Hero --- */
    .hero__title { font-size: 4rem; 
    background-image: linear-gradient(to right, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; 
}
    
    /* --- Estatísticas --- */
    .stats-grid { grid-template-columns: repeat(4, 1fr); }

    /* --- Serviços --- */
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* --- Tecnologia --- */
    .technology-section__container { grid-template-columns: repeat(2, 1fr); }
    
    /* --- Segurança --- */
    .security-grid { grid-template-columns: repeat(3, 1fr); }
    
    /* --- Certificações --- */
    .certifications-grid { grid-template-columns: repeat(3, 1fr); }
    
    /* --- Parceiros --- */
    .partners-grid { grid-template-columns: repeat(2, 1fr); }

    /* --- Contato --- */
    .contact-actions { flex-direction: row; justify-content: center; }
}

@media (min-width: 1024px) {
    .partners-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
    .navbar__desktop-menu { display: none; }
    .navbar__mobile-toggle { display: block; }
}