/* Variáveis CSS */
:root {
    --primary: #1abc9c;
    --secondary: #2c3e50;
    --light: #ecf0f1;
    --dark: #34495e;
    --whatsapp: #25D366;
}

/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    color: var(--dark);
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 100% !important;
    padding: 0 15px;
    margin: 0 auto;
}

/* Header (ajuste para largura total) */
.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
    right: 0;
    padding: 15px 5%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s;
}

.sticky-header.scrolled {
    padding: 10px 5%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(5px);
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 100%;
    transition: all 0.3s;
}

.sticky-header.scrolled .logo img {
    height: 50px;
}

@media (max-width: 768px) {
    .sticky-header {
        padding: 10px 20px;
    }

    .logo img {
        height: 45px;
    }

    .sticky-header.scrolled .logo img {
        height: 35px;
    }

    .main-nav ul {
        gap: 15px;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* ========== [ALTERAÇÃO PRINCIPAL] ========== */
.container {
    width: 100%;
    max-width: 100% !important; /* Força largura total */
    padding: 0 15px;
    margin: 0 auto;
}

/* Header (ajuste para largura total) */
.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
    right: 0;
    padding: 15px 5%;
}

/* 2. CSS OTIMIZADO */
.banner-rotativo {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.banner-slide {
    display: none;
    position: relative;
    animation: fade 1.5s ease-in-out;
}

.banner-slide.active {
    display: block;
}

.banner-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
}

.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
}

.banner-prev { left: 20px; }
.banner-next { right: 20px; }

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* ========== [SEÇÕES EM LARGURA TOTAL] ========== */
section {
    width: 100%;
    max-width: 100vw;
    padding: 40px 0 !important;
    margin: 0 !important;
}

.solucoes-grid, .depoimentos-grid, 
.pagamento-grid, .projetos-container {
    width: 100%;
    max-width: 100%;
}

/* Header */
.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s;
}

.sticky-header.scrolled {
    padding: 10px 5%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(5px);
}

.logo img {
    height: 200px;
    width: auto;
    transition: all 0.3s;
}

.sticky-header.scrolled .logo img {
    height: 40px;
}

/* Navegação */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* Botões */
.cta-button {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600 !important;
    transition: all 0.3s;
    margin-left: 20px;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Seções comuns */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title p {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #666;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.9rem;
    background: var(--light);
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #777;
    margin: 0 5px;
}

/* Rodapé */
footer {
    background: var(--secondary);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.footer-col p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-col i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 100;
    animation: pulse 2s infinite;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    animation: none;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1100;
    transition: all 0.3s;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.mobile-menu a:hover, .mobile-menu a.active {
    background: var(--primary);
    color: white;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .main-nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .sticky-header.scrolled .logo img {
        height: 35px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title h2::after {
        width: 80px;
        bottom: -10px;
    }
    
    .cta-button {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Estilos para o dropdown de soluções */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    padding: 15px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 800px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
    padding: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 20px;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-column a {
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-column a:hover {
    background-color: #f5f5f5;
    color: #0066cc;
}

.dropdown-column a i {
    width: 20px;
    text-align: center;
}

.dropdown-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-left: 1px solid #eee;
}

.dropdown-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.dropdown-preview h3 {
    text-align: center;
    color: #0066cc;
    font-size: 18px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Estilos para mobile */
.mobile-dropdown-content {
    display: none;
    padding-left: 20px;
}

.mobile-dropdown-content a {
    padding: 8px 0;
    display: block;
}

.mobile-dropdown.active .mobile-dropdown-content {
    display: block;
}

/* Hero section específico para CFTV convencional */
.hero-cftv-convencional {
    background: url('../img/solucoes/cftv-hero.jpg') center center/cover no-repeat;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

.hero-cftv-convencional .hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.content-grid.reverse {
    flex-direction: row-reverse;
}

.content-text {
    flex: 1 1 400px;
}

.content-img {
    flex: 1 1 400px;
    text-align: center;
}

.content-img img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Tabela comparativa */
.section-comparativo table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    font-size: 1rem;
}

.section-comparativo th, .section-comparativo td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.section-comparativo th {
    background-color: #006699;
    color: #fff;
}

.section-faq .faq-item {
    margin-bottom: 15px;
}

.faq-question {
    background-color: #006699;
    color: #fff;
    border: none;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.faq-question:hover,
.faq-question[aria-expanded="true"] {
    background-color: #004466;
}

.faq-answer {
    padding: 12px 15px;
    border-left: 3px solid #006699;
    background-color: #f5f9fc;
    border-radius: 0 0 5px 5px;
}

/* CTA Button */
.section-orcamento {
    margin: 50px 0;
    text-align: center;
}

.section-orcamento .cta-button {
    background-color: #006699;
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.section-orcamento .cta-button:hover {
    background-color: #004466;
}

/* Responsividade */
@media (max-width: 768px) {
    .content-grid {
        flex-direction: column;
    }
    .content-grid.reverse {
        flex-direction: column;
    }
}

/* ESTILOS BÁSICOS (MOBILE-FIRST) */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('caminho/para/sua-imagem-de-fundo.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 2rem;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.highlight {
    color: #4CAF50; /* Cor verde para "Inteligente" */
}

.hero-description {
    font-size: 1.2rem;
    margin: 1.5rem 0;
}

.whatsapp-cta {
    background-color: #25D366; /* Verde do WhatsApp */
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, background-color 0.3s;
}

.whatsapp-cta:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

/* RESPONSIVIDADE */
@media (min-width: 768px) {
    .hero-content {
        padding: 0 2rem;
    }
    h1 {
        font-size: 2.5rem;
    }
}

/* ESTILOS GERAIS */
.sistemas-visuais {
    background: #f9f9f9;
    padding: 4rem 0;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* ESTILOS DAS ABAS */
.tab-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tab-btn {
    background: transparent;
    border: 2px solid #25D366;
    color: #25D366;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 80px;
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
    box-shadow: 0 5px 10px rgba(37, 211, 102, 0.5);
}

.tab-btn:focus {
    outline: 3px solid #128C7E;
    outline-offset: 2px;
}

/* CONTEÚDO DAS ABAS */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #128C7E;
    margin-bottom: 1rem;
}

.tab-content p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* IMAGENS DOS SISTEMAS */
.sistema-img {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.sistema-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.sistema-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Overlay do texto nas imagens */
.img-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(37, 211, 102, 0.75);
    color: white;
    padding: 0.8rem 1rem;
    text-align: center;
    font-weight: 600;
    border-radius: 0 0 12px 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

/* Texto padrão (visível) */
.default-text {
    display: block;
}

/* Texto do hover (invisível por padrão) */
.hover-text {
    display: none;
}

/* Mostrar o texto do hover ao passar o mouse */
.sistema-img:hover .default-text {
    display: none;
}

.sistema-img:hover .hover-text {
    display: block;
}

/* Responsividade */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .sistema-img {
        max-width: 90vw;
        height: auto;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }
}




.sistema-descricao {
    margin-top: 15px;
    font-size: 1rem;
    color: #333;
    text-align: center;
    padding: 0 10px;
}






.calculadora-orcamento {
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    margin: 2rem auto;
    max-width: 800px;
}

.calculadora-orcamento h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.calculadora-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-group {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.cta-button {
    background-color: #0057b8;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: auto;
    align-self: flex-start;
}

.calculadora-resultado {
    margin-top: 2rem;
    font-size: 1.2rem;
    text-align: center;
}
