/*
Theme Name: Neve Child - Advocacia
Theme URI: https://themeisle.com/themes/neve/
Description: Tema filho do Neve customizado para escritório de advocacia
Author: Michel
Template: neve
Version: 1.0.0
*/

/* ============================================
   VARIÁVEIS CSS
   ============================================ */
:root {
    /* Cores Principais */
    --primary-navy: #1a3a52;
    --primary-gold: #c9a961;
    --accent-blue: #2563eb;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;

    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Tipografia */
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   IMPORTAR GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Open+Sans:wght@300;400;600;700&display=swap');

/* ============================================
   RESET E BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-navy);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--primary-gold);
}

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

/* ============================================
   CONTAINER E LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background-color: var(--bg-light);
}

/* ============================================
   BOTÕES
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1d4ed8 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, var(--accent-blue) 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #b8935a 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #b8935a 0%, var(--primary-gold) 100%);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    box-shadow: none;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.custom-logo-link img {
    max-height: 60px;
    width: auto;
}

.branding-info {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--primary-navy);
}

.site-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.main-navigation ul {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--primary-navy);
    font-weight: 600;
    font-size: 1rem;
}

.main-navigation a:hover {
    color: var(--primary-gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-navy);
    position: relative;
    transition: background .2s ease-out;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: inherit;
    position: absolute;
    transition: all .2s ease-out;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.95) 0%, rgba(26, 58, 82, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    color: white;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ============================================
   SEÇÃO ÁREAS DE ATUAÇÃO
   ============================================ */
.practice-areas {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    margin-bottom: var(--spacing-sm);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.practice-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.practice-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.practice-card:hover .practice-card-image {
    transform: scale(1.1);
}

.practice-card-content {
    padding: var(--spacing-md);
}

.practice-card-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-sm);
}

.practice-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-navy);
}

.practice-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   SEÇÃO SOBRE
   ============================================ */
.about-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-text h2 {
    margin-bottom: var(--spacing-md);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SEÇÃO DEPOIMENTOS
   ============================================ */
.testimonials-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2d5a7b 100%);
    color: white;
}

.testimonials-section .section-title h2,
.testimonials-section .section-title p {
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   SEÇÃO CTA FINAL
   ============================================ */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #b8935a 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--primary-navy);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE MENU FIX
   ============================================ */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .main-navigation {
        position: static;
    }

    .main-navigation ul.nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        padding: 0;
        z-index: 1000;
        border-top: 1px solid #eee;
    }

    .main-navigation ul.nav-menu.open {
        display: flex;
    }

    .main-navigation ul.nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-navigation ul.nav-menu li a {
        padding: 1rem var(--spacing-md);
        display: block;
    }

    /* Submenus on Mobile */
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        background: #f9f9f9;
        display: none;
        padding: 0;
    }

    .main-navigation ul li.menu-item-has-children:hover>ul,
    .main-navigation ul li.menu-item-has-children.focus>ul {
        display: block;
    }

    .main-navigation ul ul li a {
        padding-left: 2rem;
    }
}

/* ============================================
   PAGE HEADER (Blog & Single)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2d5a7b 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.page-title {
    color: white;
    margin-bottom: var(--spacing-xs);
    font-size: 2.5rem;
}

.page-description {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* ============================================
   BLOG GRID
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-title {
    font-size: 1.35rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.post-title a {
    color: var(--primary-navy);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary-gold);
}

.post-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-top: auto;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.read-more:hover {
    color: var(--primary-navy);
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.post-meta-header {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.separator {
    opacity: 0.5;
}

.single-post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--primary-navy);
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.post-categories i {
    color: var(--primary-gold);
    margin-right: 0.5rem;
}

.post-navigation {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.nav-previous a,
.nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-navy);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: var(--bg-light);
    color: var(--primary-gold);
}

.pagination-wrapper {
    margin-top: 3rem;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background: white;
    color: var(--primary-navy);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary-navy);
    color: white;
}