/* ---- CONFIGURAÇÕES GERAIS E VARIÁVEIS DE COR ---- */
:root {
    --primary-color: #5A9BD8;
    --secondary-color: #7ab5f9;
    --dark-color: #0A182C;
    --light-color: #f8f9fa;
    --text-color: #EAEAEA;
    --text-dark: #343a40;
    --white-color: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 2.8rem; color: var(--white-color); }
h2 { font-size: 2.2rem; color: var(--primary-color); text-align: center; margin-bottom: 1rem; }
h4 { font-size: 1.5rem; }
p { margin-bottom: 1rem; max-width: 800px; margin-left: auto; margin-right: auto; text-align: center;}
section { 
    padding: 6rem 0; 
    position: relative;
}

/* ---- CABEÇALHO E NAVEGAÇÃO ---- */
.main-header { background: rgba(10, 24, 44, 0.85); backdrop-filter: blur(10px); padding: 1rem 0; position: fixed; width: 100%; top: 0; left: 0; z-index: 100; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; width: auto; vertical-align: middle; }
.main-nav ul { list-style: none; display: flex; align-items: center; }
.main-nav ul li { margin-left: 20px; }
.main-nav a { 
    text-decoration: none; 
    color: var(--text-color); 
    font-weight: 600; 
    transition: color 0.3s ease; 
    padding: 5px 10px;
    border-radius: 5px;
}
.main-nav a:hover { 
    color: var(--primary-color);
}
.main-nav a.icon-link i {
    font-size: 1.2rem;
    vertical-align: middle;
}
.hamburger-btn { display: none; background: none; border: none; color: var(--white-color); font-size: 1.8rem; cursor: pointer; z-index: 1001;}

/* ---- SEÇÃO HERO ---- */
.hero { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 100vh; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 2rem auto; color: #c5c5c5; }
.cta-button { background-color: var(--primary-color); color: var(--dark-color); padding: 15px 30px; border-radius: 5px; text-decoration: none; font-weight: 700; font-size: 1.1rem; transition: background-color 0.3s ease; border: none; cursor: pointer; }
.cta-button:hover { background-color: var(--secondary-color); }

/* ---- SEÇÃO NOSSO SISTEMA ERP & SOLUÇÕES ADICIONAIS ---- */
.services, .additional-services { 
    background-color: var(--light-color); 
    color: var(--text-dark); 
}
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 3rem; }

/* CORREÇÃO: Estilo padronizado para TODOS os cards de serviço */
.service-card { 
    background: var(--white-color); 
    border-radius: 12px; 
    border: 1px solid #dee2e6; 
    text-align: center; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    cursor: pointer; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    width: 330px; 
    min-height: 400px; 
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 25px rgba(0,0,0,0.1); }
.service-card img { width: 100%; height: 150px; object-fit: contain; padding: 10px; }
.service-card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; color: var(--text-dark); }
.service-card-content h3 { color: var(--primary-color); font-size: 1.1rem; }
.service-card-content p { font-size: 0.95rem; line-height: 1.5; }

/* ---- SEÇÃO DELIVERY ---- */
.delivery { background-color: var(--dark-color); }
.delivery-layout { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 4rem; }
.delivery-image img { width: 100%; max-width: 350px; border-radius: 12px; }
.delivery-content { text-align: left; }
.delivery-content h2 { text-align: left; }
.delivery-content p { text-align: left; margin-left: 0; }
.delivery-content ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.delivery-content ul li { padding-left: 25px; position: relative; margin-bottom: 10px; }
.delivery-content ul li::before { content: '✔'; position: absolute; left: 0; color: var(--primary-color); font-weight: bold; }
.cta-button-outline { background-color: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); padding: 12px 28px; border-radius: 5px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; }
.cta-button-outline:hover { background-color: var(--primary-color); color: var(--dark-color); }

/* ---- SEÇÃO SEGMENTOS ---- */
.segments { background-color: var(--light-color); color: var(--text-dark); }
.segments p { color: #6c757d; margin-bottom: 3rem; }
.carousel-wrapper { position: relative; max-width: 90%; margin: 0 auto; }
.carousel-container { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; padding-bottom: 1.5rem; }
.segment-card { flex: 0 0 250px; width: 250px; height: 150px; background-color: var(--white-color); border-radius: 8px; margin: 0 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #dee2e6; scroll-snap-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center; }
.segment-card:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.segment-card i { font-size: 38px; color: var(--primary-color); margin-bottom: 1rem; width: 40px; text-align: center; }
.segment-card h3 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 0; }
.carousel-button { position: absolute; top: 50%; transform: translateY(-50%); background-color: var(--white-color); border: 1px solid #dee2e6; border-radius: 50%; width: 50px; height: 50px; font-size: 2rem; color: var(--primary-color); cursor: pointer; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; }
.carousel-button.prev { left: -25px; }
.carousel-button.next { right: -25px; }
.carousel-button:disabled { opacity: 0.5; cursor: not-allowed; }

/* CORREÇÃO: Definindo o padrão de cor de fundo para as seções */
#adicionais { background-color: var(--dark-color); }
#clientes { background-color: var(--light-color); color: var(--text-dark); }
#contato { background-color: var(--dark-color); }


/* ---- SEÇÃO CLIENTES ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.testimonial-card { 
    background-color: var(--white-color); /* Fundo branco no card */
    border-left: 5px solid var(--primary-color); 
    border-radius: 8px; 
    text-align: left; 
    padding: 2rem; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    display: flex; 
    flex-direction: column; 
}
.testimonial-card blockquote { margin: 0; flex-grow: 1; font-style: italic; color: #495057; }
.testimonial-card cite { font-weight: 600; color: var(--primary-color); margin-top: 1rem; font-style: normal; }

/* ---- SEÇÃO CONTATO ---- */
.contact-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; margin-top: 2rem; max-width: 800px; margin-left:auto; margin-right:auto; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ced4da; border-radius: 5px; font-family: 'Poppins', sans-serif; font-size: 1rem; background-color: #0F2340; color: var(--text-color); border-color: rgba(255,255,255,0.2); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #8a9bb3; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(90, 155, 216, 0.25); }

/* ---- PÁGINA DE DOWNLOADS ---- */
.page-section { background-color: var(--light-color); color: var(--text-dark); min-height: calc(100vh - 160px); padding-top: 10rem; padding-bottom: 6rem; }
.downloads-list { margin-top: 3rem; max-width: 900px; margin-left: auto; margin-right: auto; }
.download-category-title { margin-top: 3rem; padding-bottom: 1rem; border-bottom: 2px solid var(--primary-color); margin-bottom: 2rem; text-align: left; color: var(--dark-color); font-weight: 600; }
.download-category-title:first-child { margin-top: 0; }
.download-category-title i { margin-right: 10px; color: var(--primary-color); }
.download-item { background: var(--white-color); border: 1px solid #dee2e6; border-radius: 8px; padding: 1.5rem; display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.download-icon { font-size: 2.5rem; color: var(--primary-color); width: 60px; text-align: center; }
.download-info { flex-grow: 1; text-align: left; }
.download-info h3 { margin: 0 0 0.25rem 0; color: var(--dark-color); }
.download-info p { margin: 0; font-size: 0.9rem; color: #6c757d; text-align: left; }
.download-button { background-color: var(--primary-color); color: var(--white-color); padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 600; white-space: nowrap; transition: background-color 0.3s ease; }
.download-button:hover { background-color: var(--dark-color); }

/* ---- RODAPÉ E LINKS SOCIAIS ---- */
.main-footer { background-color: var(--dark-color); color: #888; padding: 2rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
.main-footer .container { text-align: center; }
.social-links { margin-bottom: 1.5rem; }
.social-links a { color: var(--white-color); font-size: 1.8rem; margin: 0 15px; transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.social-links a:hover { color: var(--primary-color); transform: translateY(-3px); }

/* ---- MODAIS E BOTÃO WHATSAPP ---- */
.whatsapp-float-btn { position: fixed; bottom: 25px; right: 25px; background-color: #25D366; color: var(--white-color); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; text-decoration: none; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 99; transition: transform 0.3s ease; }
.whatsapp-float-btn:hover { transform: scale(1.1); }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); transition: transform 0.2s ease-in-out; border-radius: 10px; z-index: 101; background-color: var(--white-color); color: var(--text-dark); width: 90%; max-width: 600px; }
.modal.active { transform: translate(-50%, -50%) scale(1); }
.modal-header { padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #dee2e6; }
.modal-header .modal-title { font-size: 1.5rem; font-weight: 600; color: var(--primary-color); margin: 0; }
.modal-header .modal-close-btn { cursor: pointer; border: none; background: none; font-size: 2.5rem; font-weight: 300; line-height: 1; color: #888; }
.modal-body { padding: 25px; }
.modal-body p { text-align: left; margin-bottom: 1.5rem; }
.modal-body ul { list-style: none; padding: 0; text-align: left; }
.modal-body ul li { padding-left: 25px; position: relative; margin-bottom: 10px; }
.modal-body ul li::before { content: '✔'; position: absolute; left: 0; color: var(--primary-color); font-weight: bold; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.6); z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.2s ease-in-out; }
.modal-overlay.active { opacity: 1; pointer-events: all; }

/* ---- AJUSTES MOBILE ---- */
@media(max-width: 992px) {
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--dark-color); }
    .main-nav.is-open { display: flex; }
    .main-nav ul { flex-direction: column; width: 100%; }
    .main-nav ul li { margin: 0; }
    .main-nav ul a { display: block; padding: 1rem; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .hamburger-btn { display: block; }
}
@media(max-width: 768px) {
    h1 { font-size: 2.2rem; } h2 { font-size: 1.8rem; } 
    section { padding: 4rem 0; }
    .delivery-layout, .additional-service-layout, .testimonials-grid { grid-template-columns: 1fr; text-align: center; }
    .delivery-image, .additional-service-image { order: -1; margin-bottom: 2rem; justify-self: center; }
    .delivery-content h2, .delivery-content p, .delivery-content { text-align: center; }
    .delivery-content p { margin-left:auto; margin-right:auto; }
    .additional-service-content h3, .additional-service-content p { text-align: center; }
    .additional-service-content p { margin-left:auto; margin-right:auto; }
    .carousel-button { display: none; }
    .download-item { flex-direction: column; text-align: center; }
    .download-info { text-align: center; margin-bottom: 1rem; }
    .download-info p { text-align: center; }
}