:root {
    --primary-color: #008f39;
    /* Verde Bandeira/Segurança Forte */
    --primary-dark: #006025;
    /* Verde Escuro */
    --accent-color: #25D366;
    /* Verde WhatsApp/Vibrante */
    --text-color: #333333;
    /* Cinza Escuro para texto */
    --bg-color: #ffffff;
    /* Branco */
    --light-bg: #f8f9fa;
    /* Cinza muito claro para seções alternadas */
    --card-bg: #ffffff;
    --white: #ffffff;
    --success: #22c55e;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* --- Header --- */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    /* Removing horizontal padding as requested */
}

.logo {
    height: 110px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 15px;
    /* Espaçamento de 15px no topo solicitado */
    margin-bottom: 5px;
    /* Pequeno ajuste no rodapé do header para equilíbrio */
}

.logo img {
    height: 480px;
    /* Zoom na área do logo */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    margin: -160px 0;
    /* Centraliza a parte útil da imagem, removendo as bordas brancas */
    display: block;
}

.footer-logo img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo:hover img {
    transform: scale(1.05);
}

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

.nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
}

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

.nav-list a.btn-primary {
    color: var(--white);
}

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 143, 57, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 143, 57, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('hero-new.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #000;
    /* Fundo preto para as áreas não cobertas pela imagem */
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reduzido a opacidade para tornar a foto mais visível conforme solicitado */
    background: linear-gradient(to right, rgba(0, 96, 37, 0.4), rgba(0, 96, 37, 0.2));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--white);
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Modificando botão primário especificamente para o Hero onde o fundo é verde */
.hero .btn-primary {
    background: var(--white);
    color: var(--primary-dark);
}

.hero .btn-primary:hover {
    background: #f0fdf4;
}

/* --- Sections General --- */
.section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.section-header p {
    color: #64748b;
}

/* --- Services --- */
.services {
    background-color: var(--light-bg);
}

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

.service-card {
    position: relative;
    padding: 60px 30px;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.card-cctv {
    background-image: url('images/service-cctv.jpg');
}

.card-alarm {
    background-image: url('images/service-alarm.jpg');
}

.card-access {
    background-image: url('images/service-access.jpg');
}

.card-wifi {
    background-image: url('images/service-wifi.jpg');
}

.card-network {
    background-image: url('images/service-network.jpg');
}

.card-maintenance {
    background-image: url('images/service-maintenance.jpg');
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover .service-card-overlay {
    background: linear-gradient(to top, var(--primary-dark), rgba(0, 0, 0, 0.4));
}

.service-card-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    width: 100%;
}

.service-card .icon-box {
    margin: 0 auto 20px auto;
    background: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    padding: 0;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.service-card p {
    color: #e2e8f0;
    font-size: 1rem;
    padding: 0;
    margin-bottom: 0;
}

.service-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 143, 57, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* --- About --- */
.about {
    background-color: var(--white);
}

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

.badge-sub {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.about-text p {
    color: #4b5563;
    margin-bottom: 20px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #334155;
}

.about-list li i {
    color: var(--success);
}

.image-box {
    background: linear-gradient(135deg, var(--light-bg), #e2e8f0);
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
}

/* --- Contact --- */
.contact {
    background-color: var(--bg-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.contact-methods {
    margin-top: 40px;
}

.method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: var(--light-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.method i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.method span {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 5px;
}

.method strong,
.method p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.lead-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow);
}

.lead-form-wrapper h3 {
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #4b5563;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.form-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 15px;
}

/* --- Footer --- */
.footer {
    background: #004d1f;
    /* Verde bem escuro para o rodapé */
    padding: 20px 0;
    /* Reduced padding to remove large external margins */
    border-top: none;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo span {
    color: #86efac;
    /* Verde claro */
}

.copyright {
    color: #d1d5db;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #d1d5db;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--white);
}

/* --- Floating Button --- */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 90px;
    height: 90px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: var(--transition);
}

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

/* --- Responsive --- */
/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    animation: slideUp 0.4s ease;
}

.modal-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.modal h2 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.modal p {
    color: #64748b;
    margin-bottom: 25px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Announcement Modal Specific Styles --- */
.announcement-modal .modal-content {
    border: 2px solid var(--primary-color);
    position: relative;
    max-width: 500px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
    transition: var(--transition);
}

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

.announcement-icon {
    color: var(--primary-color);
    background: rgba(0, 143, 57, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.announcement-modal p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.announcement-modal strong {
    color: var(--primary-dark);
}

.announcement-modal .btn-primary {
    padding: 15px 35px;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    .header {
        padding: 15px 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}