/* ============================================
   RESET E VARIÁVEIS GLOBAIS
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #ff0000;
    --accent-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --dark-bg: #0f0f1e;
    --spacing-unit: 1rem;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

/* ============================================
   CONTAINER E LAYOUT
   ============================================ */

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

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background-color: var(--primary-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a:hover {
    color: var(--secondary-color);
}

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

.nav a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav {
        gap: 1rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a4e 100%);
    color: var(--accent-color);
    padding: 6rem 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(255, 0, 0, 0.03) 35px,
            rgba(255, 0, 0, 0.03) 70px
        );
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

/* ============================================
   SEÇÕES GENÉRICAS
   ============================================ */

section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
}

.section-description {
    font-size: 1.05rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* ============================================
   SOBRE SECTION
   ============================================ */

.sobre {
    background-color: var(--light-gray);
}

.sobre-content {
    max-width: 900px;
    margin: 0 auto;
}

.sobre-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
    text-align: justify;
}

.missao-box {
    background-color: #ffffff;
    padding: 2rem;
    border-left: 4px solid var(--secondary-color);
    margin-top: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.missao-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--primary-color);
}

/* ============================================
   DIFERENCIAIS SECTION
   ============================================ */

.diferenciais {
    background-color: #ffffff;
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.diferencial-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.diferencial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.diferencial-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.diferencial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
}

/* ============================================
   SEGURANÇA ELETRÔNICA SECTION
   ============================================ */

.seguranca-eletronica {
    background-color: var(--light-gray);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.servico-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.servico-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.servico-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.servico-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
}

.servico-list {
    list-style: none;
    padding: 0;
}

.servico-list li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.servico-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ============================================
   AUTOMAÇÃO SECTION
   ============================================ */

.automacao {
    background-color: #ffffff;
}

.automacao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.automacao-card {
    background: linear-gradient(135deg, var(--light-gray) 0%, #f9f9f9 100%);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.automacao-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.automacao-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.automacao-list {
    list-style: none;
    padding: 0;
}

.automacao-list li {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.automacao-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ============================================
   REDES & INFRAESTRUTURA SECTION
   ============================================ */

.redes-infraestrutura {
    background-color: var(--light-gray);
}

.redes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.rede-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.rede-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.rede-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.rede-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
}

/* ============================================
   CONSULTORIA SECTION
   ============================================ */

.consultoria {
    background-color: #ffffff;
}

.consultoria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.consultoria-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.consultoria-card:hover {
    background-color: #efefef;
    transform: translateY(-3px);
}

.consultoria-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.consultoria-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

.consultoria-text-box {
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.consultoria-quote {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.consultoria-highlight {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.8;
}

/* ============================================
   CASES SECTION
   ============================================ */

.cases {
    background-color: var(--light-gray);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.case-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.case-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.case-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.case-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   CONTATO SECTION
   ============================================ */

.contato {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a4e 100%);
    color: var(--accent-color);
}

.contato .section-title {
    color: var(--accent-color);
}

.contato .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.contato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contato-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contato-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.contato-item {
    margin-bottom: 1.5rem;
}

.contato-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.3rem;
}

.contato-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
}

.horario-text {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid var(--secondary-color);
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .diferenciais-grid,
    .servicos-grid,
    .automacao-grid,
    .redes-grid,
    .consultoria-grid,
    .cases-grid,
    .stats-grid,
    .contato-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .diferencial-card,
    .servico-card,
    .rede-card,
    .consultoria-card,
    .case-card,
    .stat-card,
    .contato-card {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .nav {
        gap: 0.8rem;
        font-size: 0.75rem;
    }

    .logo {
        font-size: 1.3rem;
    }
}

/* ============================================
   ANIMAÇÕES E EFEITOS
   ============================================ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Smooth scrolling para navegação */
a {
    transition: color 0.3s ease;
}

/* Efeito de hover em cards */
.diferencial-card,
.servico-card,
.rede-card,
.case-card,
.stat-card {
    cursor: pointer;
}

/* Print styles */
@media print {
    .header,
    .footer {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}
