/* --- CONFIGURAÇÕES GERAIS --- */
:root {
    --bg-light: #f4ede4;
    --brown-dark: #7a3f16;
    --text-main: #333;
    --accent: #b35a1e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth; /* Rolagem suave */
}

/* --- AJUSTE IMPORTANTE: Para o menu fixo não tapar o título --- */
#home, #sobre, #servicos, #contato {
    scroll-margin-top: 100px;
}

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg-light); 
    color: var(--text-main); 
    line-height: 1.6; 
    padding-top: 70px; /* Espaço para o menu fixo */
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

.section-title { font-size: 42px; color: var(--brown-dark); margin-bottom: 20px; }
.section-title.center { text-align: center; }
.section-title.white { color: var(--bg-light); }
.center { text-align: center; }

/* --- MENU FIXO --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
    font-weight: 600;
}

/* --- HERO --- */
.hero { 
    min-height: 80vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 60px 10%; 
    text-align: center; 
}

.hero-container { 
    max-width: 850px; 
}

.logo { 
    width: 220px; 
    height: auto; 
    margin-bottom: 40px; 
}

.title { 
    font-size: 58px; 
    margin-bottom: 20px; 
}

.description {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* --- ANIMAÇÃO DO RABISCO --- */
.scribble-container { 
    position: relative; 
    display: inline-block; 
    color: var(--accent); 
}

.section-title .scribble-container { margin-right: 10px; }

.scribble-svg {
    position: absolute; 
    top: -10%; 
    left: -5%; 
    width: 110%; 
    height: 120%;
    fill: none; 
    stroke: #333; 
    stroke-width: 2; 
    stroke-linecap: round;
    stroke-dasharray: 1000; 
    stroke-dashoffset: 1000; 
    animation: drawLoop 4s ease-in-out infinite;
}

.about-section .scribble-svg { stroke: var(--brown-dark); }
.footer-cta .scribble-svg { stroke: var(--bg-light); }

@keyframes drawLoop {
    0% { stroke-dashoffset: 1000; opacity: 1; }
    40% { stroke-dashoffset: 0; opacity: 1; }
    70% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

/* --- SOBRE (ABOUT) --- */
.about-section { padding: 120px 10%; display: flex; justify-content: center; }
.about-container { display: flex; align-items: center; gap: 80px; max-width: 1200px; }
.about-content { flex: 1; }
.about-img { width: 100%; max-width: 450px; display: block; }

.about-subtitle {
    font-size: 16px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 20px;
    font-style: italic;
    max-width: 90%;
}

/* --- HELP GRID --- */
.help-section { padding: 100px 10%; background: #ede4d8; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; text-align: center; }
.help-icon img { width: 80px; margin-bottom: 20px; }
.help-item h3 { margin-bottom: 15px; color: var(--brown-dark); }

/* --- AREAS ATUAÇÃO --- */
.areas-section { background: var(--brown-dark); padding: 100px 10%; color: white; }
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 60px; }
.area-card { text-align: center; }
.area-arch { width: 100%; height: 300px; border-radius: 150px 150px 0 0; overflow: hidden; margin-bottom: 20px; }
.area-arch img { width: 100%; height: 100%; object-fit: cover; }
.area-card h3 { font-size: 22px; margin-bottom: 10px; }

/* --- REFLECTIONS --- */
.reflections-section { padding: 100px 10%; }
.section-subtitle { text-align: center; font-style: italic; color: #777; margin-bottom: 50px; }
.reflections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.reflection-item img { width: 100%; height: 250px; object-fit: cover; margin-bottom: 15px; }
.reflection-item p { font-size: 15px; font-style: italic; text-align: center; }

/* --- FOOTER --- */
.footer { background: var(--brown-dark); color: white; padding: 100px 10% 40px; }
.footer-container { display: flex; justify-content: space-between; gap: 50px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 60px; }
.footer-cta { flex: 2; }
.footer-cta h2 { font-size: 36px; line-height: 1.3; margin-bottom: 10px; }

.social-invitation { font-size: 16px; margin-top: 15px; opacity: 0.9; font-weight: 300; }

.social-icons {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    align-items: center; 
}

.social-icons a {
    text-decoration: none;
    border: none;
    outline: none;
    display: flex; 
}

.social-icons img {
    width: 45px;
    height: 45px;
    object-fit: contain; 
    transition: transform 0.3s;
}

.social-icons img:hover { transform: scale(1.1); }

.footer-info { flex: 1; text-align: right; }
.footer-info .info-block { display: flex; flex-direction: column; gap: 15px; }

.contact-link {
    display: flex; align-items: center; justify-content: flex-end;
    text-decoration: none; color: white; gap: 12px; transition: opacity 0.3s;
}
.contact-link:hover { opacity: 0.8; }
.contact-icon { width: 24px; height: auto; }

/* Rodapé inferior */
.footer-bottom { display: flex; justify-content: space-between; padding-top: 30px; font-size: 14px; opacity: 0.8; }
.footer-bottom-item { display: flex; align-items: center; gap: 8px; }
.mini-icon { width: 16px; height: auto; }

/* --- RESPONSIVIDADE (MOBILE) --- */
/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 900px) {
    
    /* Ajustes do Menu no Celular */
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 13px; }

    /* Ajuste do Título Principal */
    .title { font-size: 38px; }

    /* --- AQUI ESTÁ A CORREÇÃO DO ESPAÇO --- */
    
    /* Na seção Hero (texto inicial), diminuímos o espaço de baixo */
    .hero { 
        padding: 80px 5% 10px 5%; /* Topo 80, Lados 5, Baixo 10 (era 60) */
        min-height: auto; 
    }

    /* Na seção Sobre (foto), diminuímos drasticamente o espaço de cima */
    .about-section { 
        padding: 10px 5% 60px 5%; /* Topo 10 (era 120!), Lados 5, Baixo 60 */
        flex-direction: column; /* Garante que fique um embaixo do outro */
        gap: 30px; /* Espaço pequeno entre a foto e o título "Sobre" */
    }

    /* Ajuste para o texto "Sobre Larissa Teófilo" caber na tela */
    #sobre .section-title {
        font-size: 26px; /* Letra menor no celular */
        white-space: normal; /* Permite quebrar linha se for muito necessário */
        line-height: 1.2;
    }

    /* Ajuste do rabisco no título menor */
    #sobre .scribble-svg {
        top: -5%;
        height: 140%;
    }
    
    .section-title { font-size: 32px; }
    
    .about-container, 
    .footer-container, 
    .footer-bottom { 
        flex-direction: column; 
        text-align: center; 
        gap: 30px;
    }

    .help-grid, .areas-grid, .reflections-grid { 
        grid-template-columns: 1fr; 
        padding: 0 20px; 
    }

    .footer-info { text-align: center; }
    .contact-link { justify-content: center; }
    .social-icons { justify-content: center; }
    .footer-bottom { gap: 20px; }
}
/* Forçar o título da seção Sobre a ficar em uma linha só */
#sobre .section-title {
    white-space: nowrap;
}

/* Ajuste preventivo para celular (para não cortar o texto se a tela for pequena) */
@media (max-width: 900px) {
    #sobre .section-title {
        white-space: normal; /* No celular pode quebrar linha se precisar */
        text-align: center;
    }
}
/* --- FORÇAR TÍTULO "SOBRE" EM UMA LINHA (PC E CELULAR) --- */

/* 1. Regra geral: nunca quebrar linha nesta parte */
#sobre .section-title {
    white-space: nowrap;
}

/* 2. Regra específica para Celular: Diminuir a fonte para caber */
@media (max-width: 480px) {
    #sobre .section-title {
        font-size: 24px; /* Tamanho reduzido para caber na tela do celular */
    }
    
    /* Ajuste opcional para o rabisco não ficar torto com a letra menor */
    #sobre .scribble-svg {
        top: -5%;
        height: 140%;
    }
}
