@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

/* --- Variáveis de Cor e Reset Básico --- */
:root {
    --primary-color: #8E7AB5; /* Lilás suave */
    --secondary-color: #B4A7D6; /* Lilás mais claro */
    --dark-color: #333;
    --light-color: #f4f4f4;
    --white-color: #fff;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* --- Estilos Gerais --- */
.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 4rem 2rem;
    text-align: center;
}

h1, h2, h3 {
    font-family: var(--font-title);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #7A63A1;
}

/* --- Cabeçalho --- */
header {
    background: var(--white-color);
    color: var(--dark-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header nav {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-left: 20px;
}

.nav-list a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.nav-list a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* --- Seção Hero --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/spa_sem_marca.png') no-repeat center center/cover;
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* --- Seção de Serviços --- */
#servicos {
    background: var(--white-color);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.servico-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servico-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.servico-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Seção de Demonstração --- */
.demo-section {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border-radius: 10px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.demo-box {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 10px;
    border: 2px dashed var(--primary-color);
}

.demo-box h3 {
    color: var(--primary-color);
}

.demo-box p {
    font-size: 1rem;
}

.demo-box a {
    color: var(--primary-color);
    font-weight: bold;
}

/* --- Seção de Contato --- */
.contato-info {
    margin-top: 2rem;
}

.contato-info p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contato-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* --- Rodapé --- */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--light-color);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.2rem; }

    header nav {
        flex-direction: column;
    }

    .nav-list {
        padding-top: 1rem;
    }
}

/* --- Estilos do Chatbot --- */
#chat-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s ease;
}

#chat-fab:hover {
    transform: scale(1.1);
    background-color: #7A63A1;
}

#chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-width: 90%;
    height: 500px;
    background: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(20px);
    opacity: 0;
}

#chat-window.visible {
    opacity: 1;
    transform: translateY(0);
}

#chat-window.hidden {
    display: none;
}

.chat-header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--font-body);
}

#chat-close-btn {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.8rem;
    cursor: pointer;
}

#chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.chat-message {
    padding: 0.7rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.7rem;
    max-width: 80%;
    line-height: 1.4;
}

.bot-message {
    background-color: var(--secondary-color);
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.user-message {
    background-color: var(--primary-color);
    color: var(--white-color);
    align-self: flex-end;
    margin-left: auto; /* Alinha à direita */
    border-bottom-right-radius: 0;
    text-align: right;
}

#chat-options {
    padding: 1rem;
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-btn {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.option-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}