/*
Theme Name: Barbosa & Barbosa
Theme URI: https://comando.digital
Description: Tema customizado premium com painel de controle exclusivo para advogados.
Author: Comando Digital
Version: 1.0.0
Text Domain: tema-advogado
*/

:root {
    /* Colors */
    --primary-color: #00222e;
    --accent-color: #d4a94f;
    --accent-hover: #b58d3a;
    --text-color: #3b3d42;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Questrial', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Spacing & Layout */
    --container-width: 1140px;
    --section-padding: 80px 0;
    --header-height: 90px;

    /* Transitions */
    --transition-smooth: all 0.3s ease-in-out;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 169, 79, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Section Header Utility */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.section-header h2 {
    font-size: 36px;
}

/* Pages & Posts Templates */
.page-header {
    background: var(--primary-color);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: var(--accent-color);
    font-size: 48px;
    margin: 0;
    text-transform: capitalize;
}

.page-header .post-meta {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.section-padding {
    padding: var(--section-padding);
}

/* Share Buttons Styling */
.ta-share-post {
    margin: 60px 0 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.012);
}

.ta-share-post h3 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: var(--transition-smooth);
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.twitter {
    background: #000000;
}

/* Refined Post Card */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
}

@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    background: var(--white);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.post-thumb a {
    display: block;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.08);
}

.post-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta-home {
    margin-bottom: 12px;
}

.post-meta-home .post-date {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta-home .post-date i {
    color: var(--accent-color);
}

.entry-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.entry-title a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--accent-color);
}

.entry-excerpt p {
    font-size: 14px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    color: var(--accent-color);
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.read-more:hover {
    letter-spacing: 3px;
}

/* Single Specifics */
.content-wrapper {
    width: 100%;
}

.centered-narrow {
    max-width: 850px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.03);
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 25px;
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    cursor: zoom-in;
}

.post-featured-image img {
    width: 100%;
    transition: var(--transition-smooth);
}

.post-featured-image:hover img {
    transform: scale(1.02);
}

/* Load More System */
.load-more-container {
    padding: 20px 0 80px;
    text-align: center;
}

#loadMore {
    background: var(--primary-color);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 18px 45px;
    font-size: 14px;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

#loadMore:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-5px);
}

#loadMore:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .content-wrapper.centered-narrow {
        padding: 30px;
        margin-top: -30px;
    }
}