/*
 * style.css
 * Estilos globais para o site Nelleus.
 * Design moderno, minimalista e corporativo.
 * Paleta de cores: Azul escuro (#003366), Branco (#FFFFFF), Azul claro (#007bff), Cinza claro (#f8f9fa), Cinza escuro (#343a40).
 */

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #343a40; /* Cinza escuro para o texto principal */
    background-color: #f8f9fa; /* Cinza claro para o fundo */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    color: #003366; /* Azul escuro para títulos */
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 {
    font-size: 2.8em;
    text-align: center;
}

h2 {
    font-size: 2.2em;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

a {
    color: #007bff; /* Azul claro para links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3; /* Azul mais escuro no hover */
}

ul {
    list-style: none;
    margin-bottom: 15px;
}

ul li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

ul li::before {
    content: '✓'; /* Ícone de checkmark */
    color: #007bff;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #007bff; /* Azul claro */
    color: #ffffff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    background-color: transparent;
    color: #003366; /* Azul escuro */
    border-color: #003366;
}

.btn-secondary:hover {
    background-color: #003366;
    color: #ffffff;
}

.btn-link {
    background: none;
    border: none;
    color: #007bff;
    padding: 0;
    font-weight: normal;
    text-decoration: underline;
}

.btn-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Header */
.main-header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.main-nav .nav-list {
    display: flex;
    gap: 30px;
}

.main-nav .nav-list li a {
    color: #003366;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
}

.main-nav .nav-list li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.main-nav .nav-list li a:hover::after,
.main-nav .nav-list li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Escondido por padrão em desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #003366;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('https://via.placeholder.com/1920x600/003366/FFFFFF?text=Fundo+Nelleus') no-repeat center center/cover;
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    color: #ffffff;
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.hero-actions .btn {
    margin: 0 10px;
}

.hero-actions .btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.hero-actions .btn-secondary:hover {
    background-color: #ffffff;
    color: #003366;
}

/* Page Hero (para páginas internas) */
.page-hero {
    background-color: #003366;
    color: #ffffff;
    padding: 80px 0 60px;
    text-align: center;
    margin-bottom: 40px;
}

.page-hero h1 {
    color: #ffffff;
    font-size: 3em;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto;
}

/* Seções de Conteúdo */
section {
    padding: 60px 0;
}

.section-highlight {
    background-color: #ffffff;
}

.section-highlight h2, .section-content h2 {
    margin-bottom: 40px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.highlight-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.highlight-item h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.highlight-item p {
    margin-bottom: 20px;
}

.section-cta {
    padding: 80px 0;
    text-align: center;
}

.section-cta.bg-light {
    background-color: #e9ecef;
}

.section-cta h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.section-cta p {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Product Grid (produtos.php) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    max-width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.product-card h3 {
    color: #003366;
    margin-bottom: 15px;
}

.product-card ul {
    text-align: left;
    margin-top: 20px;
    padding-left: 0; /* Reset default ul padding */
    list-style: none; /* Remove default bullet */
}

.product-card ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.product-card ul li::before {
    content: '•'; /* Custom bullet point */
    color: #007bff;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.product-card .btn {
    margin-top: 25px;
}

/* Product Detail Block (microsoft.php, bitdefender.php, tableau.php) */
.product-detail-block {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.product-detail-block.bg-light {
    background-color: #e9ecef;
}

.product-detail-block h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 20px;
    color: #003366;
}

.product-detail-block ul {
    margin-top: 20px;
}

.product-detail-block ul li {
    margin-bottom: 10px;
}

.product-detail-block .price-consult {
    font-style: italic;
    color: #6c757d;
    margin-top: 25px;
    font-weight: bold;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info block smaller than form */
    gap: 50px;
    align-items: flex-start;
}

.contact-info-block {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-info-block h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 25px;
}

.contact-info-block .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.contact-info-block .info-item i {
    font-size: 1.5em;
    color: #007bff;
    margin-right: 15px;
    width: 30px; /* Para alinhar ícones */
    text-align: center;
}

/* Ícones simples para demonstração, idealmente usar Font Awesome ou SVG */
.icon-email::before { content: '✉'; }
.icon-phone::before { content: '📞'; }
.icon-whatsapp::before { content: '📱'; }

.contact-info-block .info-item strong {
    margin-right: 5px;
}

.contact-info-block .whatsapp-note {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: -10px;
    margin-left: 45px; /* Alinhar com o texto do item */
}

.contact-info-block .note {
    margin-top: 30px;
    font-style: italic;
    color: #555;
}

.contact-form-block {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-form-block h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #003366;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .error-message {
    color: #dc3545; /* Vermelho para erros */
    font-size: 0.9em;
    margin-top: 5px;
    display: none; /* Escondido por padrão, mostrado via JS */
}

.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: #dc3545;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* About Page */
.about-block {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.about-block.bg-light {
    background-color: #e9ecef;
}

.about-block h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 20px;
    color: #003366;
}

.about-block ul {
    margin-top: 20px;
}

.about-block ul li {
    margin-bottom: 10px;
}

/* Footer */
.main-footer {
    background-color: #003366; /* Azul escuro */
    color: #ffffff;
    padding: 50px 0 20px;
    font-size: 0.95em;
}

.main-footer a {
    color: #ffffff;
    text-decoration: underline;
}

.main-footer a:hover {
    color: #007bff;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #007bff; /* Azul claro para títulos do footer */
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-section .info-item i {
    font-size: 1.2em;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
    padding-left: 0;
}

.footer-section ul li::before {
    content: none; /* Remove bullet do footer */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsividade */
@media (max-width: 992px) {
    .main-nav .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Altura do header */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        border-top: 1px solid #eee;
    }

    .main-nav .nav-list.active {
        display: flex;
    }

    .main-nav .nav-list li {
        text-align: center;
        margin: 10px 0;
    }

    .main-nav .nav-list li a {
        display: block;
        padding: 10px 20px;
        color: #003366;
    }

    .main-nav .nav-list li a::after {
        display: none; /* Remove underline animation on mobile */
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .highlight-grid, .product-grid, .contact-grid, .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        gap: 30px;
    }

    .contact-info-block, .contact-form-block {
        padding: 30px;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.8em;
    }

    .page-hero h1 {
        font-size: 2.2em;
    }

    .page-hero p {
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .hero-actions .btn {
        display: block;
        margin: 15px auto;
        width: 80%;
    }

    .main-header .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .main-nav {
        width: 100%;
        display: flex;
        justify-content: flex-end; /* Move toggle to right */
    }

    .main-nav .nav-list {
        top: 130px; /* Ajusta a posição do menu mobile */
    }

    .menu-toggle {
        margin-right: 0;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }

    .page-hero h1 {
        font-size: 1.8em;
    }

    .page-hero p {
        font-size: 0.9em;
    }

    .contact-info-block .whatsapp-note {
        margin-left: 0; /* Remove indent on small screens */
        text-align: center;
    }
}