/* Importação de Fontes Google */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Montserrat:wght@600;700&display=swap');

:root {
    --primary-color: #005A9C;
    --secondary-color: #00AEEF;
    --dark-color: #2c3e50;
    --light-color: #f4f7f6; /* Fundo levemente mais suave */
    --text-color: #34495e;
    --white-color: #ffffff;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Sombra mais elegante */
}

/* --- RESET GLOBAL (Corrigido o asterisco) --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--light-color); }
html { scroll-behavior: smooth; }

/* --- CABEÇALHO E NAVEGAÇÃO --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000;
}
.navbar .logo { display: flex; align-items: center; }
.navbar .logo img { max-height: 50px; transition: transform 0.3s ease; }
.navbar .logo img:hover { transform: scale(1.05); }

.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 2rem; }
.nav-links a { text-decoration: none; color: var(--dark-color); font-weight: 700; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--secondary-color); }

main { padding-top: 80px; }
section { padding: 4rem 5%; }
section:nth-child(even) { background-color: var(--white-color); }
h2 { font-family: 'Montserrat', sans-serif; color: var(--primary-color); text-align: center; margin-bottom: 2rem; font-size: 2.5rem; }

/* --- SEÇÃO HERO --- */
#hero {
    background: linear-gradient(rgba(0, 90, 156, 0.85), rgba(44, 62, 80, 0.85)), url('https://images.unsplash.com/photo-1581092921440-4c304051b474?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    height: 60vh; display: flex; justify-content: center; align-items: center; text-align: center; color: var(--white-color);
}
.hero-content h2 { font-size: 3.5rem; color: var(--white-color); text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.2rem; margin-bottom: 2rem; }
.cta-button { background-color: var(--secondary-color); color: var(--white-color); padding: 1rem 2rem; text-decoration: none; border-radius: 5px; font-weight: 700; transition: all 0.3s ease; display: inline-block; border: none; cursor: pointer; }
.cta-button:hover { background-color: #0095c7; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 174, 239, 0.3); }

/* --- PRODUTOS --- */
.search-container { text-align: center; margin-bottom: 3rem; }
#searchInput { width: 100%; max-width: 500px; padding: 1rem; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s; outline: none; }
#searchInput:focus { border-color: var(--secondary-color); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.product-card { background: var(--white-color); border-radius: 12px; box-shadow: var(--box-shadow); padding: 0 0 1.5rem 0; display: flex; flex-direction: column; text-align: center; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid transparent; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12); border-color: rgba(0, 174, 239, 0.2); }
.product-card img { width: 100%; height: 220px; object-fit: cover; border-top-left-radius: 12px; border-top-right-radius: 12px; }
.product-card .card-content { padding: 0 1.5rem; margin-top: 1.5rem; flex-grow: 1; }
.product-card h3 { color: var(--dark-color); margin-bottom: 0.8rem; font-size: 1.2rem; }
.product-card .category { background-color: var(--primary-color); color: var(--white-color); display: inline-block; padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: bold; }

/* --- SOBRE NÓS --- */
.locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; text-align: center; }
.location-card { background: var(--white-color); padding: 2rem; border-radius: 8px; box-shadow: var(--box-shadow); }
.location-card i { font-size: 3rem; color: var(--secondary-color); margin-bottom: 1.5rem; }

/* --- MODAL --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(5px); }
.modal-content { background-color: #fefefe; margin: 5% auto; padding: 40px; border-radius: 12px; width: 90%; max-width: 800px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.close-button { color: #aaa; position: absolute; top: 15px; right: 25px; font-size: 32px; font-weight: bold; cursor: pointer; transition: color 0.3s; }
.close-button:hover { color: var(--primary-color); }
#modal-body h4 { color: var(--primary-color); margin-top: 1.5rem; border-bottom: 2px solid var(--light-color); padding-bottom: 0.5rem; }
#modal-body pre { background-color: var(--light-color); padding: 1.5rem; border-radius: 8px; white-space: pre-wrap; word-wrap: break-word; font-family: 'Courier New', Courier, monospace; margin-top: 1rem; border: 1px solid #e0e0e0; }

/* --- CHATBOT --- */
#chatbot-container { position: fixed; bottom: 30px; right: 30px; width: 360px; max-width: 90vw; z-index: 1500; box-shadow: 0 10px 25px rgba(0,0,0,0.2); border-radius: 12px; overflow: hidden; background-color: var(--white-color); }
#chatbot-header { background-color: var(--primary-color); color: var(--white-color); padding: 18px; cursor: pointer; font-weight: bold; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.3s; }
#chatbot-header:hover { background-color: #004a80; }
#chatbot-body { height: 450px; display: flex; flex-direction: column; }
#chatbot-messages { flex-grow: 1; padding: 20px; overflow-y: auto; background-color: #f9f9f9; }
.message { padding: 12px 16px; border-radius: 18px; margin-bottom: 12px; max-width: 85%; line-height: 1.4; font-size: 0.95rem; }
.bot-message { background-color: var(--secondary-color); color: white; border-bottom-left-radius: 4px; align-self: flex-start; }
.user-message { background-color: #e0e0e0; color: var(--dark-color); border-bottom-right-radius: 4px; align-self: flex-end; margin-left: auto; }
#chatbot-input-container { display: flex; border-top: 1px solid #eee; background: #fff; }
#chatbot-input { flex-grow: 1; border: none; padding: 18px; font-size: 1rem; outline: none; }
#chatbot-send { background-color: transparent; color: var(--primary-color); border: none; padding: 0 20px; cursor: pointer; font-size: 1.4rem; transition: color 0.3s; }
#chatbot-send:hover { color: var(--secondary-color); }

/* --- FORMULÁRIO DE LEAD DO CHATBOT --- */
#chatbot-lead-form { padding: 25px; background-color: #ffffff; height: 450px; overflow-y: auto; display: none; }
#chatbot-lead-form h4 { color: var(--primary-color); margin-top: 0; margin-bottom: 10px; font-size: 1.2rem; }
#chatbot-lead-form p { font-size: 0.9rem; color: #666; margin-bottom: 20px; line-height: 1.5; }
#chatbot-lead-form .input-group { margin-bottom: 15px; }
#chatbot-lead-form label { display: block; font-size: 0.85rem; color: #333; font-weight: bold; margin-bottom: 5px; }
#chatbot-lead-form input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; box-sizing: border-box; outline: none; transition: border-color 0.3s; }
#chatbot-lead-form input:focus { border-color: var(--primary-color); }
#chatbot-lead-form button[type="submit"] { background-color: var(--primary-color); color: white; border: none; padding: 14px 15px; width: 100%; border-radius: 6px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: background-color 0.3s ease; }
#chatbot-lead-form button[type="submit"]:hover { background-color: #004a80; }

footer { background-color: var(--dark-color); color: var(--light-color); text-align: center; padding: 2rem 5%; margin-top: auto; }

/* --- DESIGN RESPONSIVO --- */
@media (max-width: 768px) {
    .navbar { flex-direction: column; padding: 1rem; }
    .nav-links { margin-top: 1rem; flex-wrap: wrap; justify-content: center; width: 100%; }
    .nav-links li { margin: 0.5rem; }
    .hero-content h2 { font-size: 2.5rem; }
    #chatbot-container { width: 100%; bottom: 0; right: 0; border-radius: 15px 15px 0 0; }
    .modal-content { width: 95%; padding: 20px; margin: 10% auto; }
}