/* Estilos Gerais e de Desktop */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: #f4f7f6; color: #333; line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
header { background-color: #ffffff; padding: 1rem 0; box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; font-weight: 700; color: #2a7a7b; }
nav ul { list-style: none; display: flex; align-items: center; gap: 2rem; }
nav a { text-decoration: none; color: #333; font-weight: 600; transition: color 0.3s ease; }
nav a:hover { color: #2a7a7b; }
.cta-button { background-color: #2a7a7b; color: #fff; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 600; transition: background-color 0.3s ease; }
.cta-button:hover { background-color: #236566; color: #fff; }
.cta-button.large { padding: 15px 30px; font-size: 1.1rem; }
main section { padding: 60px 0; text-align: center; }
main section h2 { font-size: 2.5rem; margin-bottom: 20px; color: #1b4d4d; }
main section p { max-width: 700px; margin: 0 auto 30px auto; font-size: 1.1rem; color: #555; }
#hero { background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1554224155-1696413565d3?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover; color: #fff; padding: 100px 0; }
#hero h1 { font-size: 3.5rem; font-weight: 700; }
#hero p { font-size: 1.3rem; font-weight: 300; margin-top: 1rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; text-align: left; }
.service-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.service-card h3 { color: #2a7a7b; margin-bottom: 15px; }
#simulator { background-color: #e8efee; }
.simulator-box { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); max-width: 600px; margin: 0 auto; text-align: left; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: #333; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; font-family: 'Poppins', sans-serif; }
.simulator-result { margin-top: 30px; padding: 20px; background-color: #e8f3f3; border-left: 5px solid #2a7a7b; border-radius: 5px; display: none; }
.simulator-result p { margin: 0; font-size: 1rem; text-align: left; color: #1b4d4d; }
#portfolio-note { background-color: #fffbe6; border-top: 1px solid #ffeeba; padding: 40px 0; }
#portfolio-note h3 { color: #856404; font-size: 1.8rem; margin-bottom: 15px; }
#portfolio-note p { color: #5d4902; font-size: 1rem; max-width: 800px; margin-bottom: 10px; }
footer { background-color: #1b4d4d; color: #a2c4c4; text-align: center; padding: 20px 0; }
#chatbot-container { position: fixed; bottom: 20px; right: 20px; z-index: 1001; }
#chatbot-icon { width: 60px; height: 60px; background-color: #2a7a7b; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2); color: white; transition: transform 0.3s; }
#chatbot-icon:hover { transform: scale(1.1); }
#chatbot-window { width: 350px; height: 500px; background-color: white; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); display: none; flex-direction: column; overflow: hidden; position: absolute; bottom: 80px; right: 0; }
#chatbot-header { background-color: #2a7a7b; color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; }
#chatbot-header p { font-weight: 600; margin: 0; }
#close-chatbot { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
#chatbot-messages { flex-grow: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.message { padding: 10px 15px; border-radius: 15px; max-width: 80%; }
.message.bot { background-color: #e8efee; color: #333; align-self: flex-start; border-bottom-left-radius: 2px; }
.message.user { background-color: #2a7a7b; color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
.message a { color: #1b4d4d; font-weight: 600; }
#chatbot-input-area { padding: 15px; border-top: 1px solid #eee; display: flex; flex-direction: column; gap: 10px; }
.option-button { width: 100%; padding: 12px; border: 1px solid #2a7a7b; background-color: #fff; color: #2a7a7b; border-radius: 5px; cursor: pointer; font-weight: 600; transition: background-color 0.2s, color 0.2s; }
.option-button:hover { background-color: #2a7a7b; color: #fff; }
.menu-toggle { display: none; }

/* Estilos de Responsividade (Mobile) */
@media (max-width: 768px) {
    main section h2 { font-size: 2rem; }
    .menu-toggle { display: block; background: none; border: none; cursor: pointer; z-index: 1001; }
    .hamburger { display: block; width: 25px; height: 3px; background-color: #333; position: relative; transition: background-color 0.2s ease-in-out; }
    .hamburger::before, .hamburger::after { content: ''; position: absolute; width: 25px; height: 3px; background-color: #333; transition: transform 0.3s ease-in-out; }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }
    .menu-toggle.active .hamburger { background-color: transparent; }
    .menu-toggle.active .hamburger::before { transform: rotate(45deg) translate(5px, 6px); }
    .menu-toggle.active .hamburger::after { transform: rotate(-45deg) translate(5px, -6px); }
    nav { display: none; position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(255, 255, 255, 0.98); z-index: 1000; }
    nav.active { display: flex; justify-content: center; align-items: center; }
    nav ul { flex-direction: column; gap: 3rem; }
    nav ul a { font-size: 1.5rem; }
    .cta-button { padding: 12px 24px; }
    #hero h1 { font-size: 2.5rem; }
    #hero p { font-size: 1.1rem; }
    .simulator-box { padding: 25px; }
    #chatbot-window { width: 95vw; height: 70vh; max-width: 350px; bottom: 10px; right: 10px; }
    #chatbot-container { bottom: 10px; right: 10px; }
}