/*
Theme Name: Halama Advogados
Theme URI: https://halamaadvogados.com.br
Author: Halama Advogados e Associados
Description: Tema institucional para escritório de advocacia, com área de artigos e autoria automática (nome e foto do advogado).
Version: 1.0
Text Domain: halama-advogados
*/

:root {
    --logo-gray: #7a7d81;
    --logo-gold: #d2c08f;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-gray: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

img { max-width: 100%; display: block; }

/* Cabeçalho */
header.site-header {
    background-color: var(--bg-light);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    text-align: center;
}

.logo-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.2rem;
    color: var(--logo-gray);
    font-weight: normal;
    letter-spacing: 3px;
    margin-bottom: 2px;
    text-align: center;
}

.logo-subtitle {
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.6rem;
    color: var(--logo-gold);
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-align: center;
    white-space: nowrap;
}

.logo-lines { width: 100%; display: flex; flex-direction: column; gap: 5px; }
.line-gold { height: 1px; background-color: var(--logo-gold); width: 100%; }
.line-gray { height: 1px; background-color: var(--logo-gray); width: 100%; }

nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul li a {
    color: var(--logo-gray);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}
nav ul li a:hover, nav ul li a.active { color: var(--logo-gold); }

.menu-toggle { display: none; color: var(--logo-gray); font-size: 1.5rem; cursor: pointer; background: none; border: none; }

/* Hero / banners internos */
.hero, .page-banner {
    background: linear-gradient(rgba(122, 125, 129, 0.85), rgba(51, 51, 51, 0.9)), url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    color: var(--text-light);
    margin-top: 80px;
}
.hero { height: 100vh; }
.page-banner { height: 40vh; min-height: 300px; }

.hero h1, .page-banner h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-family: 'Times New Roman', Times, serif;
}
.hero p, .page-banner p {
    font-size: 1.15rem;
    max-width: 800px;
    margin-bottom: 2.5rem;
    color: #f0f0f0;
}

.btn {
    padding: 15px 35px;
    background-color: var(--logo-gold);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: background-color 0.3s;
    display: inline-block;
    cursor: pointer;
}
.btn:hover { background-color: #baaa7c; }

/* Seções gerais */
section { padding: 5rem 5%; }

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--logo-gray);
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Times New Roman', Times, serif;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--logo-gold);
    margin: 15px auto 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    color: #555;
}

/* Áreas de atuação */
.services { background-color: var(--bg-gray); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.service-card.highlight {
    grid-column: 1 / -1;
    background-color: var(--logo-gray);
    color: var(--text-light);
    border-bottom: 4px solid var(--logo-gold);
}
.service-card.highlight h3, .service-card.highlight p { color: var(--text-light); }
.service-card {
    background-color: var(--bg-light);
    padding: 3rem 2rem;
    border: 1px solid #eee;
    text-align: center;
    border-bottom: 4px solid var(--logo-gray);
    transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.service-card h3 { color: var(--logo-gray); margin-bottom: 1.2rem; font-size: 1.4rem; font-family: 'Times New Roman', Times, serif; }
.service-card p { font-size: 1rem; color: #666; }

/* Artigos - grade */
.articles-wrap { max-width: 1100px; margin: 0 auto; }
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.article-card {
    background-color: var(--bg-light);
    border: 1px solid #eee;
    border-bottom: 4px solid var(--logo-gray);
    padding: 2.5rem 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.article-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.06); border-bottom-color: var(--logo-gold); }
.article-date { font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--logo-gold); margin-bottom: 0.8rem; }
.article-card h3, .article-card h2 { color: var(--logo-gray); font-size: 1.35rem; font-family: 'Times New Roman', Times, serif; margin-bottom: 1rem; line-height: 1.3; }
.article-card p { font-size: 0.98rem; color: #666; flex-grow: 1; margin-bottom: 1.5rem; }
.read-more {
    align-self: flex-start;
    color: var(--logo-gray);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--logo-gold);
    padding-bottom: 3px;
}
.read-more:hover { color: var(--logo-gold); }

.article-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #888;
}
.article-author img { width: 28px; height: 28px; border-radius: 50%; }

/* Artigo individual */
.single-article-wrap { max-width: 780px; margin: 140px auto 5rem; padding: 0 5%; }
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--logo-gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.back-link:hover { color: var(--logo-gold); }
.single-article-wrap h1 {
    font-family: 'Times New Roman', Times, serif;
    color: var(--logo-gray);
    font-size: 2.3rem;
    line-height: 1.3;
    margin: 1rem 0 2rem;
}
.article-body { font-size: 1.08rem; color: #444; }
.article-body p { margin-bottom: 1.4rem; }
.divider { width: 50px; height: 2px; background-color: var(--logo-gold); margin: 3rem 0; }

.author-box {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
    background-color: var(--bg-gray);
    border-left: 3px solid var(--logo-gold);
    margin-top: 3rem;
}
.author-box img { width: 64px; height: 64px; border-radius: 50%; }
.author-box .author-name { color: var(--logo-gray); font-weight: bold; font-size: 1rem; margin-bottom: 4px; }
.author-box .author-role { font-size: 0.85rem; color: #888; }

/* Contato */
.contact-container { display: flex; flex-wrap: wrap; gap: 4rem; max-width: 1200px; margin: 0 auto; }
.contact-info { flex: 1; min-width: 300px; }
.contact-info h3 { color: var(--logo-gray); margin-bottom: 1.5rem; font-family: 'Times New Roman', Times, serif; }
.contact-info p { margin-bottom: 1rem; font-size: 1.1rem; }
.contact-info a { color: var(--logo-gray); text-decoration: none; font-weight: bold; }
.contact-form { flex: 2; min-width: 300px; display: flex; flex-direction: column; gap: 1.2rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; border: 1px solid #ccc; font-size: 1rem; font-family: 'Helvetica Neue', Arial, sans-serif;
}
.contact-form textarea { height: 150px; resize: vertical; }
.contact-form button {
    cursor: pointer; align-self: flex-start; background-color: var(--logo-gray); color: var(--text-light);
    border: none; padding: 15px 35px; font-weight: bold; text-transform: uppercase;
}
.contact-form button:hover { background-color: var(--logo-gold); }

/* Rodapé */
footer.site-footer {
    background-color: var(--bg-light);
    color: var(--logo-gray);
    text-align: center;
    padding: 3rem 5%;
    border-top: 1px solid #ddd;
}
.footer-logo { font-family: 'Times New Roman', Times, serif; font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 5px; }

.empty-state { text-align: center; color: #999; padding: 3rem 0; }

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 999;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Botão flutuante do LinkedIn */
.linkedin-float {
    position: fixed;
    bottom: 93px;
    right: 25px;
    background-color: #0A66C2;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 999;
    transition: transform 0.3s;
}
.linkedin-float:hover { transform: scale(1.08); }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav ul {
        display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
        background-color: var(--bg-light); border-top: 1px solid #eee; border-bottom: 2px solid var(--logo-gold);
        padding: 1rem 0; text-align: center;
    }
    nav ul.active { display: flex; }
    .hero h1, .page-banner h1 { font-size: 2.2rem; }
    .brand-logo { width: 200px; }
    .logo-title { font-size: 1.6rem; }
    .logo-subtitle { font-size: 0.5rem; }
    .single-article-wrap { margin-top: 120px; }
}
