/* --- VARIAVEIS DA MARCA --- */
:root {
    /* Cores Institucionais */
    --color-primary: #222F5E;    /* Biscay (Roxo Escuro) */
    --color-secondary: #5F60AB;  /* Scampi (Lilás) */
    --color-accent: #AEA432;     /* Lemon Ginger (Verde Oliva) */
    --color-cta: #E46626;        /* Laranja */
    
    /* Fundos */
    --bg-light: #FEF1EB;         /* Bride (Fundo Principal) */
    --bg-white: #FFFFFF;
    --bg-soft: #F8F5FA;

    /* Sombras e Bordas */
    --shadow-soft: 0 10px 30px rgba(34, 47, 94, 0.05);
    --shadow-hover: 0 15px 40px rgba(34, 47, 94, 0.1);
    --radius-lg: 24px;
    --radius-btn: 50px;

    /* Tipografia */
    --font-main: 'Quicksand', 'Century Gothic', sans-serif;
}

/* --- RESET GERAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--color-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- BOTÕES --- */
.btn-primary {
    background-color: var(--color-cta);
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(228, 102, 38, 0.3);
    display: inline-block;
}
.btn-primary:hover {
    background-color: #d1561b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(228, 102, 38, 0.4);
}

.btn-secondary {
    color: var(--color-primary);
    padding: 14px 32px;
    font-weight: 600;
    margin-left: 10px;
}
.btn-secondary:hover { color: var(--color-secondary); }

/* --- HEADER --- */
header {
    background: rgba(254, 241, 235, 0.95); /* Bride transparente */
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
    height: 90px; /* Define altura fixa para evitar colapsos */
    display: flex;
    align-items: center;
	transition: all 0.4s ease;
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-iso { height: 45px; width: auto; object-fit: contain; }
.logo-type { height: 50px; width: auto; object-fit: contain; }

/* Menu */
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--color-primary); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--color-secondary); }

.nav-links .btn-nav {
    background-color: var(--color-primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-btn);
    transition: 0.3s;
}
.nav-links .btn-nav:hover { background-color: var(--color-secondary); }

.hamburger { display: none; font-size: 1.5rem; color: var(--color-primary); cursor: pointer; }

/* --- HERO (HOME) --- */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge {
    background: rgba(95, 96, 171, 0.1);
    color: var(--color-secondary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 { font-size: 3.5rem; color: var(--color-primary); margin-bottom: 24px; }
.hero-text .highlight { color: var(--color-secondary); }
.hero-text p { font-size: 1.2rem; margin-bottom: 40px; max-width: 500px; color: #555; }

.hero-img-wrapper { position: relative; text-align: center; }
.blob-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120%; height: 120%;
    background-color: #EFDCD5;
    border-radius: 50% 40% 30% 70% / 60% 30% 70% 40%;
    z-index: -1;
    animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
.hero-photo { border-radius: 30px; box-shadow: var(--shadow-soft); position: relative; }

/* --- SEÇÕES GERAIS --- */
.about { padding: 100px 0; background-color: var(--bg-white); }
.section-header { margin-bottom: 40px; }
.separator { width: 60px; height: 4px; background: var(--color-accent); border-radius: 2px; margin-top: 10px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 50px; }
.stat-card { background: var(--bg-soft); padding: 30px; border-radius: var(--radius-lg); text-align: center; transition: 0.3s; }
.stat-card:hover { border: 1px solid var(--color-secondary); background: #fff; box-shadow: var(--shadow-soft); }
.stat-card i { font-size: 2.5rem; color: var(--color-secondary); margin-bottom: 15px; }

.services { padding: 100px 0; }
.section-header.center { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.card { background: var(--bg-white); padding: 40px 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); transition: 0.4s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--color-secondary); opacity: 0; transition: 0.3s; }
.card:hover::before { opacity: 1; }
.icon-bg { width: 70px; height: 70px; background: rgba(174, 164, 50, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--color-accent); margin-bottom: 24px; }
.card h3 { font-size: 1.4rem; margin-bottom: 12px; color: var(--color-primary); }
.card p { color: #666; font-size: 0.95rem; }

.contact { padding: 100px 0; background: linear-gradient(135deg, var(--color-primary) 0%, #1a2346 100%); color: #fff; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.contact-info-box h2 { font-size: 2.5rem; margin-bottom: 20px; }
.info-list li { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.icon-circle { width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--color-cta); }
.contact-form-box { background: #fff; padding: 40px; border-radius: var(--radius-lg); color: var(--color-primary); }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.input-group input, .input-group textarea { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 12px; font-family: var(--font-main); font-size: 1rem; background: #FAFAFA; transition: 0.3s; }
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--color-secondary); background: #fff; }
.btn-submit { width: 100%; padding: 16px; background-color: var(--color-cta); color: #fff; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-submit:hover { background-color: #d1561b; }

footer { background-color: var(--bg-white); padding: 40px 0; text-align: center; border-top: 1px solid #eee; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.social-links { display: flex; gap: 20px; }
.social-links a { font-size: 1.2rem; color: var(--color-primary); }
.social-links a:hover { color: var(--color-cta); }

/* --- PÁGINAS DE BLOG (LISTAGEM) --- */
.blog-hero { padding-top: 160px; padding-bottom: 60px; background-color: var(--bg-light); text-align: center; position: relative; }
.blog-header-content h1 { font-size: 3rem; color: var(--color-primary); margin-bottom: 20px; }
.search-container { margin-top: 40px; max-width: 600px; margin: 0 auto; }
.search-box { display: flex; background: #fff; padding: 8px; border-radius: 50px; box-shadow: 0 5px 20px rgba(34, 47, 94, 0.08); align-items: center; }
.search-input { flex: 1; border: none; padding: 15px; font-size: 1rem; font-family: var(--font-main); outline: none; }
.search-btn { background-color: var(--color-secondary); color: #fff; border: none; padding: 12px 30px; border-radius: 40px; font-weight: 600; cursor: pointer; }
.tags-suggestions { margin-top: 15px; font-size: 0.9rem; color: #666; }
.tag-pill { display: inline-block; background: rgba(255, 255, 255, 0.6); padding: 4px 12px; border-radius: 20px; margin: 0 4px; color: var(--color-primary); font-size: 0.85rem; border: 1px solid rgba(34, 47, 94, 0.1); transition: 0.2s; }
.tag-pill:hover { background: var(--color-secondary); color: #fff; }

.blog-list { padding: 60px 0 100px; background-color: #fff; }
.blog-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); transition: 0.4s; border: 1px solid #f0f0f0; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card-image { height: 220px; overflow: hidden; position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.blog-card:hover .card-image img { transform: scale(1.05); }
.category-tag { position: absolute; top: 20px; right: 20px; background: var(--color-accent); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.card-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.meta-info { font-size: 0.85rem; color: #888; margin-bottom: 12px; }
.blog-card h3 { font-size: 1.3rem; color: var(--color-primary); margin-bottom: 12px; }
.read-more { font-weight: 700; color: var(--color-secondary); font-size: 0.95rem; display: flex; align-items: center; gap: 8px; margin-top: auto; }
.read-more:hover { color: var(--color-cta); gap: 12px; }
.pagination { margin-top: 60px; display: flex; justify-content: center; gap: 10px; }
.page-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-soft); color: var(--color-primary); transition: 0.3s; }
.page-btn.active, .page-btn:hover { background: var(--color-secondary); color: #fff; }

/* =========================================
   ESTILOS ESPECÍFICOS DO ARTIGO (SINGLE)
   ========================================= */

/* Ajuste do container de leitura */
.text-article {
    padding-bottom: 80px;
    background-color: #fff;
}

/* Centraliza e limita a largura para leitura confortável */
.article-container {
    max-width: 800px; 
    margin: 0 auto;
}

/* Imagem Destacada */
.featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    margin-top: -60px; /* Puxa um pouco para cima da onda */
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    background-color: #fff; /* Evita transparência indesejada */
}

/* Tipografia do Corpo do Texto */
.article-content {
    font-size: 1.15rem; /* Levemente maior que o padrão para leitura */
    line-height: 1.8;
    color: #4a4a4a;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-top: 48px;
    margin-bottom: 20px;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--color-secondary);
    margin-top: 32px;
    margin-bottom: 16px;
}

/* Listas dentro do artigo */
.article-content ul, 
.article-content ol {
    margin-bottom: 32px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

/* Citação (Blockquote) */
.article-content blockquote {
    background-color: var(--bg-light);
    border-left: 5px solid var(--color-accent);
    padding: 30px;
    margin: 40px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    border-radius: 0 20px 20px 0;
    font-style: italic;
}

/* Caixa do Autor */
.author-box {
    margin-top: 60px;
    padding: 40px;
    background-color: var(--bg-soft);
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

.author-img img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--shadow-soft);
}

.author-info h4 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.author-info .crm-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.author-info p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Botão de Voltar */
.back-link {
    display: inline-block;
    margin-top: 40px;
    font-weight: 700;
    color: var(--color-secondary);
}
.back-link i { margin-right: 8px; }

/* Responsivo para Artigo */
@media (max-width: 768px) {
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    .featured-image {
        margin-top: 0; /* Remove o efeito de sobreposição no mobile */
        border-radius: 12px;
    }
}


/* ==========================================================================
   CORREÇÕES DE RESPONSIVIDADE (MOBILE & TABLET)
   Cole isto no final do seu arquivo style.css
   ========================================================================== */

@media (max-width: 992px) {
    /* --- AJUSTES GERAIS --- */
    .container {
        padding: 0 20px; /* Margem lateral segura */
    }

    h1 { font-size: 2.5rem !important; } /* Reduz títulos gigantes */
    h2 { font-size: 2rem !important; }

    /* --- HEADER & MENU --- */
    header {
        height: 80px; /* Header mais compacto */
        padding: 10px 0;
    }
    
    .nav-links {
        display: none; /* Esconde menu padrão */
        position: absolute;
        top: 80px; /* Logo abaixo do header */
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 20px;
        border-top: 1px solid #eee;
    }

    .nav-links.active {
        display: flex; /* Mostra menu quando clica no hambúrguer */
    }

    .hamburger {
        display: block; /* Mostra ícone do menu */
        font-size: 1.8rem;
    }

    /* --- HERO (INÍCIO) --- */
    .hero {
        padding-top: 120px; /* Menos espaço no topo */
        padding-bottom: 40px;
    }

    .hero-container {
        grid-template-columns: 1fr; /* Uma coluna só */
        display: flex;
        flex-direction: column-reverse; /* Foto em cima, texto em baixo? Ou o contrário. Aqui inverte */
        gap: 30px;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 30px auto; /* Centraliza texto */
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-img-wrapper {
        width: 80%; /* Foto não ocupa 100% pra não ficar gigante */
        margin: 0 auto;
    }

    /* --- SEÇÕES (SOBRE, SERVIÇOS, BLOG) --- */
    .stats-grid, 
    .cards-grid, 
    .contact-wrapper, 
    .footer-content {
        grid-template-columns: 1fr !important; /* Força tudo a ficar em uma coluna */
        gap: 40px;
    }

    .contact-wrapper {
        text-align: center;
    }

    .info-list li {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    /* --- PÁGINA DO ARTIGO (LEITURA) --- */
    .article-section {
        padding-top: 120px !important; /* Sobrescreve o inline se necessário via !important */
    }
    
    .article-header h1 {
        font-size: 2rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* --- AJUSTES PARA TELAS MUITO PEQUENAS (Iphone SE, etc) --- */
@media (max-width: 480px) {
    h1 { font-size: 2rem !important; }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%; /* Botões ocupam toda a largura */
        margin: 0;
        display: block;
        text-align: center;
    }
    
    .logo-type {
        height: 35px; /* Logo menor para caber */
    }
    
    .search-box {
        flex-direction: column;
        padding: 10px;
    }
    
    .search-btn {
        width: 100%;
        margin-top: 10px;
    }
}


/* =========================================
   EFEITO DE SCROLL NO MENU (STICKY HEADER)
   ========================================= */



/* 2. Estilo do Header quando rolado */
header.scrolled {
    background: rgba(255, 255, 255, 0.98); /* Fundo branco quase sólido */
    padding: 10px 0; /* Mais compacto (era 15px) */
    height: 70px;    /* Altura reduzida (era 90px) */
    box-shadow: 0 5px 20px rgba(34, 47, 94, 0.15); /* Sombra mais marcada */
}

/* 3. Reduzir o Logo suavemente */
header.scrolled .logo-iso,
header.scrolled .logo-type {
    height: 35px; /* Reduz logo para caber no menu menor */
    transition: all 0.4s ease;
}

/* 4. Ajustar a posição do menu mobile para não ficar buraco */
header.scrolled .nav-links {
    top: 70px; /* Acompanha a nova altura do header */
    transition: top 0.4s ease;
}


/* --- ESTILO DO MAPA --- */
.map-container {
    margin-top: 30px;
    width: 100%;
    border-radius: 20px; /* Arredondado igual aos cards */
    overflow: hidden;    /* Garante que o mapa respeite a borda arredondada */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 4px solid rgba(255, 255, 255, 0.2); /* Borda sutil */
} 

.map-container iframe {
    border: 0;
    display: block; /* Remove espaços extras abaixo do iframe */
    width: 100%;
    height: 250px;  /* Altura fixa */
}

/* Ajuste para celular */
@media (max-width: 768px) {
    .map-container iframe {
        height: 300px; /* Um pouco mais alto no celular para facilitar o toque */
    }
}