/* --- Configurações Globais e Paleta de Cores --- */
:root {
    --cor-roxo-escuro: #5e3764;
    --cor-roxo-medio: #5e3764;
    --cor-lilás-claro: #cbb1ff;
    --cor-lilás-fundo: #fdfbff;
    --cor-amarelo-acento: #f7e951;
    --cor-texto-principal: #333333;
    --cor-texto-secundario: #555555;
    --cor-branco: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Questrial', sans-serif;
    line-height: 1.7;
    background-color: var(--cor-lilás-fundo);
    color: var(--cor-texto-principal);
    padding-top: 0;
}

/* --- Estrutura e Utilitários --- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    margin-bottom: 20px;
    border-radius: 8px;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--cor-roxo-escuro);
    margin-bottom: 20px;
    font-weight: 400;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
}

/* --- Botões (Reutilizáveis) --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.btn-principal {
    background-color: var(--cor-amarelo-acento);
    color: var(--cor-roxo-escuro);
}

.btn-principal:hover {
    background-color: #e0b40e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secundario {
    background-color: var(--cor-roxo-medio);
    color: var(--cor-branco);
}

.btn-secundario:hover {
    background-color: var(--cor-roxo-escuro);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-terciario {
    background-color: transparent;
    color: var(--cor-roxo-medio);
    border: 2px solid var(--cor-roxo-medio);
}

.btn-terciario:hover {
    background-color: var(--cor-lilás-claro);
    transform: translateY(-2px);
}

/* --- Placeholders de Foto --- */
.foto-hero-integrada {
    width: 100%;
    max-width: 500px;
    height: 400px;
    min-height: 400px;
    background-color: transparent;
    flex-shrink: 0;
    background-image: url('inicio.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.foto-placeholder-retangular {
    width: 100%;
    max-width: 300px;
    height: 400px;
    background-color: var(--cor-lilás-claro);
    border: 4px solid var(--cor-roxo-medio);
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

/* --- Layout Flexível (Sobre) --- */
.layout-flex {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.layout-flex .col-texto {
    flex: 1;
    min-width: 280px;
}

.layout-flex .col-foto {
    flex-basis: 300px;
    display: flex;
    justify-content: center;
}

/* --- Grade de Atendimento --- */
.atendimento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Cabeçalho (Header) --- */
header {
    background-color: var(--cor-branco);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Seção Hero --- */
.hero {
    background-color: var(--cor-lilás-claro);
    padding: 40px 0 60px 0;
    margin-top: 60px;
    border-radius: 0;
}

nav {
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--cor-roxo-escuro);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--cor-amarelo-acento);
}

.menu-toggle {
    display: none;
}

.layout-flex-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-col-foto {
    flex-basis: 250px;
    flex-shrink: 0;
}

.hero-col-texto {
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0;
    line-height: 1.2;
}

.crp {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--cor-roxo-medio);
    display: block;
    margin-bottom: 30px;
}

.hero-frase {
    font-family: 'Playfair Display', serif;
    font-style: normal;
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--cor-roxo-escuro);
    margin-bottom: 60px;
    text-align: left;
    font-weight: 400;
}

.hero-col-texto .btn-principal {
    width: auto;
}

/* --- Seção Serviços --- */
#servicos {
    background-color: var(--cor-lilás-fundo);
}

.servicos-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.servico-item {
    background-color: var(--cor-branco);
    padding: 40px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--cor-roxo-medio);
    position: relative;
}

/* Estilos específicos para o Accordion (Seção Serviços) */
.servicos-grid .servico-item {
    padding: 20px 40px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -10px;
    width: 95%;
    /* Permite o deslocamento */
}

.servicos-grid .servico-item:nth-child(odd) {
    align-self: flex-start;
}

.servicos-grid .servico-item:nth-child(even) {
    align-self: flex-end;
}

/* Variação de largura para simular deslocamento aleatório */
.servicos-grid .servico-item:nth-child(6n+1) {
    width: 96%;
}

.servicos-grid .servico-item:nth-child(6n+2) {
    width: 92%;
}

.servicos-grid .servico-item:nth-child(6n+3) {
    width: 94%;
}

.servicos-grid .servico-item:nth-child(6n+4) {
    width: 97%;
}

.servicos-grid .servico-item:nth-child(6n+5) {
    width: 93%;
}

.servicos-grid .servico-item:nth-child(6n+6) {
    width: 95%;
}

.servicos-grid .servico-item:last-child {
    margin-bottom: 0;
}

.servicos-grid .servico-item:hover {
    transform: translateY(-5px);
}

.servicos-grid .servico-item.ativo {
    z-index: 20;
    margin-bottom: 10px;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.texto-expandivel {
    max-height: 4.5em;
    overflow: hidden;
    opacity: 1;
    transition: all 0.4s ease;
    margin-top: 10px;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.atendimento-grid .texto-expandivel {
    max-height: none;
    opacity: 1;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
}

.servicos-grid .servico-item.ativo .texto-expandivel {
    max-height: 1000px;
    opacity: 1;
    margin-top: 20px;
    mask-image: none;
    -webkit-mask-image: none;
}

.servico-item h3 {
    color: var(--cor-roxo-medio);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.servicos-grid .servico-item h3 {
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.servicos-grid .servico-item h3::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.servicos-grid .servico-item.ativo h3::after {
    transform: rotate(45deg);
}

/* --- Seção Atendimento --- */
#atendimento {
    background-color: var(--cor-lilás-fundo);
}

#atendimento p {
    color: var(--cor-texto-secundario);
}

/* --- Seção Sobre Mim --- */
#sobre {
    background-color: var(--cor-branco);
}

#sobre p {
    margin-bottom: 15px;
    color: var(--cor-texto-secundario);
    font-size: 1.1rem;
}

/* --- Seção Depoimentos --- */
.depoimentos-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 30px auto 0;
    position: relative;
    padding: 0 50px;
}

.depoimentos-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    width: 100%;
    padding: 20px 0;
    scrollbar-width: none;
}

.depoimentos-wrapper::-webkit-scrollbar {
    display: none;
}

.depoimento-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background: var(--cor-lilás-fundo);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--cor-amarelo-acento);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    filter: blur(2px);
    opacity: 0.6;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.depoimento-card.card-ativo {
    filter: none;
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Desktop: cards menores para mostrar vizinhos */
@media (min-width: 769px) {
    .depoimento-card {
        flex: 0 0 70%;
    }
}

.carousel-btn {
    background-color: transparent;
    color: var(--cor-roxo-medio);
    border: none;
    width: 40px;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 0;
    z-index: 10;
}

.carousel-btn::before {
    content: '';
    width: 20px;
    height: 20px;
    border-top: 1px solid var(--cor-roxo-medio);
    border-left: 1px solid var(--cor-roxo-medio);
    display: block;
    transform: scale(0.8, 1.5) rotate(-45deg);
}

.carousel-btn.next::before {
    transform: scale(0.8, 1.5) rotate(135deg);
    margin-right: 10px;
}

.carousel-btn.prev::before {
    margin-left: 10px;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-btn:hover::before {
    border-color: var(--cor-roxo-escuro);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Mobile: esconde botões e ajusta padding */
@media (max-width: 768px) {
    .depoimentos-carousel {
        padding: 0;
    }

    .carousel-btn {
        display: none;
    }

    .depoimento-card {
        flex: 0 0 85%;
        margin-right: 15px;
    }

    .depoimentos-wrapper {
        padding-left: 7.5%;
        padding-right: 7.5%;
    }
}

.link-depoimento {
    display: block;
    margin-top: auto;
    /* Empurra para o fundo */
    font-size: 0.9rem;
    color: var(--cor-roxo-medio);
    text-decoration: none;
    font-weight: bold;
    text-align: right;
}

.link-depoimento:hover {
    text-decoration: underline;
}

.depoimentos-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    width: 100%;
}

#depoimentos {
    background-color: var(--cor-branco);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.depoimento-card {
    background: var(--cor-lilás-fundo);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--cor-amarelo-acento);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.depoimento-card p {
    font-style: italic;
    color: var(--cor-texto-secundario);
    margin-bottom: 15px;
}

.depoimento-card cite {
    font-weight: 700;
    color: var(--cor-roxo-escuro);
    font-style: normal;
}

/* --- Seção FAQ --- */
#faq {
    background-color: var(--cor-lilás-fundo);
}

.faq-item {
    background: var(--cor-branco);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    padding: 20px;
    margin-bottom: 0;
    cursor: pointer;
    color: var(--cor-roxo-medio);
    font-size: 1.3rem;
}

.faq-item p {
    padding: 0 20px 20px 20px;
    color: var(--cor-texto-secundario);
}

/* --- Seção Citação --- */
#citacao {
    background-color: var(--cor-roxo-escuro);
    color: var(--cor-branco);
    text-align: center;
    padding: 70px 30px;
}

#citacao blockquote {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 1.6rem;
    font-style: italic;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto 20px auto;
}

#citacao cite {
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Seção Contato (CTA) --- */
#contato {
    background-color: var(--cor-branco);
    text-align: center;
}

#contato p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: var(--cor-texto-secundario);
}

.botoes-contato {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* --- Rodapé --- */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #333;
    color: #ccc;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Ajuste do Novo Hero */
    header {
        padding: 0;
        height: 60px;
        justify-content: space-between;
    }

    .hero {
        padding: 40px 0;
        margin-top: 60px;
    }

    body {
        padding-top: 0;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        background: none;
        border: none;
        font-size: 2rem;
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        color: var(--cor-roxo-escuro);
        cursor: pointer;
        z-index: 1001;
        padding: 0;
    }

    nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        left: auto;
        width: 200px;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 15px 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        margin-bottom: 0;
        border-radius: 12px;
    }

    nav.ativo {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    nav a {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }

    .layout-flex-hero {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hero-col-texto {
        text-align: center;
    }

    .foto-hero-integrada {
        width: 75%;
        max-width: 250px;
        height: 250px;
        min-height: 0;
        margin: 0 auto;
        border-radius: 20px;
        background-attachment: scroll;
    }

    .hero-col-foto {
        width: 100%;
        flex-basis: auto;
    }

    header h1 {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.4em;
    }

    .crp {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .hero-frase {
        text-align: center;
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .hero-col-texto .btn-principal {
        width: 100%;
        max-width: 350px;
    }

    .servico-item h3 {
        color: var(--cor-roxo-medio);
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    /* Outros ajustes */
    #citacao blockquote {
        font-size: 1.3rem;
    }

    .layout-flex {
        flex-direction: column;
        align-items: center;
    }

    .layout-flex .col-foto {
        order: -1;
        width: 100%;
        max-width: 300px;
    }

    .layout-flex .col-foto .foto-placeholder-retangular {
        height: 350px;
    }

    .atendimento-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}