/* Theme Advogado3 - Inspirado no modelo BCEleva */

:root {
    --primary: #1a2e1a;
    --primary-dark: #0f1a0f;
    --secondary: #2d4a2d;
    --accent: #d4af37;
    --accent-light: #e6c968;
    --text: #1f2937;
    --text-light: #6b7280;
    --light: #f5f5f0;
    --white: #ffffff;
    --dark: #0a0f0a;
    --shadow: 0 5px 20px rgba(26, 46, 26, 0.15);
    --shadow-hover: 0 10px 30px rgba(26, 46, 26, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: var(--text);
    font-size: 16px;
}

/* Header Minimalista */
header {
    background: var(--white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(26, 46, 26, 0.08);
    border-bottom: 2px solid var(--accent);
}

/* Compensar o header fixo nas seções abaixo do slider */
.slider-fullscreen {
    margin-top: 0; /* slider começa atrás do header — efeito fullscreen real */
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Fallback para logo em texto */
.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.logo-text span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav a:hover {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* Header transparente sobre o slider, opaco ao rolar */
header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(26, 46, 26, 0.12);
}

header:not(.scrolled) {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

header:not(.scrolled) nav a {
    color: var(--white);
}

header:not(.scrolled) nav a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

header:not(.scrolled) .logo-text {
    color: var(--white);
}

header:not(.scrolled) .mobile-menu-toggle span {
    background: var(--white);
}

/* Hero Section - Estilo Advogado3 */
.hero-advogado3 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-advogado3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23d4af37" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-advogado3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
}

/* Fullscreen Slider - Advogado3 */
.slider-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 0;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    animation: kenburns 20s ease-out infinite alternate;
}

@keyframes kenburns {
    0%   { transform: scale(1)    translateX(0);    }
    100% { transform: scale(1.08) translateX(-15px); }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(26, 46, 26, 0.82) 0%,
        rgba(45, 74, 45, 0.70) 50%,
        rgba(15, 26, 15, 0.88) 100%);
    z-index: 3;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 4;
    width: 90%;
    max-width: 1200px;
    padding: 2rem;
}

.slide.active .slide-content {
    animation: slideContentIn 1s ease-out forwards;
}

@keyframes slideContentIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.slide-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.slide-title span {
    color: var(--accent);
    display: inline-block;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.6);
    }
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.slide-btn {
    display: inline-block;
    padding: 18px 50px;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.slide-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 5;
}

.slider-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(212, 175, 55, 0.6);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--accent);
    width: 40px;
    border-radius: 10px;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.3);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

.slider-arrow::before {
    content: '';
    width: 15px;
    height: 15px;
    border-top: 3px solid var(--white);
    border-right: 3px solid var(--white);
}

.slider-arrow.prev::before {
    transform: rotate(-135deg);
    margin-left: 5px;
}

.slider-arrow.next::before {
    transform: rotate(45deg);
    margin-right: 5px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-indicator::before {
    content: '⌄';
    font-size: 2rem;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.hero-advogado3 .container {
    position: relative;
    z-index: 1;
}

.hero-advogado3 h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-advogado3 .subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Botões Estilo Advogado3 */
.btn-advogado3 {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-advogado3:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: var(--primary-dark);
}

.btn-outline-advogado3 {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    box-shadow: none;
}

.btn-outline-advogado3:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Section Title */
.section-title-advogado3 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle-advogado3 {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Especialidades Grid */
.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.especialidade-card {
    background: var(--white);
    padding: 2.5rem;
    border-left: 5px solid var(--accent);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.especialidade-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--secondary);
    transition: height 0.3s ease;
}

.especialidade-card:hover::before {
    height: 100%;
}

.especialidade-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--secondary);
}

.especialidade-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.especialidade-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Advogado Profile Section */
.advogado-profile {
    background: var(--light);
    padding: 6rem 0;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.profile-image {
    text-align: center;
}

.profile-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 0;
    box-shadow: var(--shadow-hover);
}

.profile-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.profile-text h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 400;
}

.profile-text p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

/* WhatsApp CTA */
.whatsapp-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.whatsapp-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.whatsapp-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.whatsapp-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.btn-whatsapp {
    display: inline-block;
    padding: 18px 45px;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    position: relative;
    z-index: 1;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
    background: var(--accent-light);
}

/* Footer Minimalista */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-light {
    background: var(--white);
}

.section-dark {
    background: var(--light);
}

/* Team Section - Estilo Advogado3 */
.team-section {
    background: var(--white);
    padding: 6rem 0;
}

/* Grid adaptativo: centraliza quando há poucos cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    justify-content: center;
}

/* 1 card: centralizado, largura limitada */
.team-grid:has(.team-card:only-child) {
    grid-template-columns: minmax(280px, 420px);
    justify-content: center;
}

/* 2 cards: duas colunas fixas, centralizadas */
.team-grid:has(.team-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(280px, 420px));
    justify-content: center;
}

/* 3 cards: três colunas */
.team-grid:has(.team-card:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

.team-card {
    background: var(--light);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
    min-width: 0;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-card-image {
    position: relative;
    height: 380px;
    overflow: hidden;
    background: var(--light);
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card-image img {
    transform: scale(1.05);
}

.team-social {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-social {
    opacity: 1;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.social-icon:hover {
    background: var(--secondary);
    color: var(--accent);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 15px rgba(45, 74, 45, 0.5);
}

.team-card-content {
    padding: 2rem;
    text-align: center;
    background: var(--white);
}

.team-card-name {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-card-role {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-card-oab {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Blog Cards - Estilo Advogado3 */
.blog-section {
    background: var(--light);
    padding: 6rem 0;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-icon::before,
.blog-icon::after {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--accent);
}

.blog-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--accent);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-title {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 60px;
}

.blog-card-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.blog-card-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-card-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    position: relative;
}

.blog-card-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.blog-card-link:hover {
    color: var(--accent);
    letter-spacing: 1px;
}

.blog-card-link:hover::before {
    width: 100%;
}

.blog-card-link::after {
    content: ' →';
    transition: transform 0.3s;
    display: inline-block;
}

.blog-card-link:hover::after {
    transform: translateX(5px);
}

/* Responsivo */

/* Menu Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .slide-title {
        font-size: 3.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.3rem;
    }
    
    .especialidades-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    /* Header Mobile */
    header {
        padding: 0.8rem 0;
    }
    
    nav {
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav a {
        display: block;
        padding: 15px 0;
        font-size: 1rem;
    }
    
    /* Overlay para menu mobile */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Slider Mobile */
    .slide-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-btn {
        padding: 14px 35px;
        font-size: 0.85rem;
    }
    
    .slider-arrow {
        width: 45px;
        height: 45px;
    }
    
    .slider-arrow.prev {
        left: 15px;
    }
    
    .slider-arrow.next {
        right: 15px;
    }
    
    .slider-nav {
        bottom: 25px;
    }
    
    .slider-dot {
        width: 12px;
        height: 12px;
    }
    
    .slider-dot.active {
        width: 30px;
    }
    
    /* Hero Section Mobile */
    .hero-advogado3 {
        padding: 5rem 0;
    }
    
    .hero-advogado3 h1 {
        font-size: 2rem;
    }
    
    .hero-advogado3 .subtitle {
        font-size: 1rem;
    }
    
    /* Section Titles Mobile */
    .section-title-advogado3 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle-advogado3 {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }
    
    /* Sections Mobile */
    section {
        padding: 3rem 0;
    }
    
    /* Especialidades Mobile */
    .especialidades-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .especialidade-card {
        padding: 2rem;
    }
    
    .especialidade-card h3 {
        font-size: 1.2rem;
    }
    
    /* Team Mobile */
    .team-section {
        padding: 4rem 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .team-card-image {
        height: 380px;
    }
    
    .team-social {
        opacity: 1;
        background: rgba(26, 46, 26, 0.8);
        padding: 10px;
        border-radius: 10px;
    }
    
    /* Blog Mobile */
    .blog-section {
        padding: 4rem 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-card-title {
        min-height: auto;
        font-size: 1.2rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.95rem;
    }
    
    /* WhatsApp CTA Mobile */
    .whatsapp-cta {
        padding: 3rem 0;
    }
    
    .whatsapp-cta h2 {
        font-size: 1.8rem;
    }
    
    .whatsapp-cta p {
        font-size: 1rem;
    }
    
    .btn-whatsapp {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    /* Contato Mobile */
    #contato > div > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Footer Mobile */
    footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* Mobile Pequeno - 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Logo Mobile */
    .logo img {
        height: 45px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    /* Slider Extra Small */
    .slide-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .slide-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .slide-btn {
        padding: 12px 28px;
        font-size: 0.8rem;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
    
    .slider-nav {
        bottom: 20px;
        gap: 10px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-dot.active {
        width: 25px;
    }
    
    /* Sections Extra Small */
    section {
        padding: 2.5rem 0;
    }
    
    .section-title-advogado3 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .section-subtitle-advogado3 {
        font-size: 0.9rem;
    }
    
    /* Cards Extra Small */
    .especialidade-card {
        padding: 1.5rem;
    }
    
    .especialidade-card h3 {
        font-size: 1.1rem;
    }
    
    .especialidade-card p {
        font-size: 0.9rem;
    }
    
    /* Team Extra Small */
    .team-card-image {
        height: 300px;
    }
    
    .team-card-content {
        padding: 1.5rem;
    }
    
    .team-card-name {
        font-size: 1.1rem;
    }
    
    .team-card-role {
        font-size: 0.9rem;
    }
    
    /* Blog Extra Small */
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
    
    .blog-card-title {
        font-size: 1.1rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.9rem;
    }
    
    .blog-card-date {
        font-size: 0.85rem;
    }
    
    .blog-card-link {
        font-size: 0.85rem;
    }
    
    /* WhatsApp Extra Small */
    .whatsapp-cta h2 {
        font-size: 1.5rem;
    }
    
    .whatsapp-cta p {
        font-size: 0.9rem;
    }
    
    /* Footer Extra Small */
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .slider-fullscreen {
        height: auto;
        min-height: 100vh;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .slide-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .slide-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .slider-nav {
        bottom: 15px;
    }
}

/* Tablets em Landscape - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .slide-title {
        font-size: 3rem;
    }
    
    .slide-subtitle {
        font-size: 1.2rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    nav a {
        font-size: 0.9rem;
    }
}

/* Desktop Grande - 1440px+ */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .slide-title {
        font-size: 4.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.7rem;
    }
    
    .section-title-advogado3 {
        font-size: 3rem;
    }
    
    .section-subtitle-advogado3 {
        font-size: 1.2rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   NOVOS COMPONENTES — Contato, Footer, Logo dinâmica
═══════════════════════════════════════════════════════════ */

/* Logo no header — duas versões */
.logo-img {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: opacity .3s, transform .3s;
}
.logo-img:hover { transform: scale(1.04); }

/* Logo branca: visível sobre o slider (header transparente) */
.logo-slider  { display: block; }
.logo-scrolled { display: none; }

/* Quando header fica opaco (scrolled): troca as logos */
header.scrolled .logo-slider  { display: none; }
header.scrolled .logo-scrolled { display: block; }

/* Header transparente → opaco */
header { transition: background .3s, box-shadow .3s, border-color .3s; }

/* Contato grid */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contato-info h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: .8rem;
}

.contato-info p {
    color: var(--text-light);
    line-height: 2;
    font-size: .95rem;
}

.contato-form h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.form-field {
    margin-bottom: 1.2rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}

.form-field textarea { min-height: 140px; resize: vertical; }

/* Footer logo */
.footer-logo-wrap { margin-bottom: 1.5rem; }

.footer-logo {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-text-footer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

/* Social links no footer */
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1rem; }

.social-link {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .8rem;
    transition: all .2s;
}
.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

/* Footer 4 colunas */
.footer-content {
    grid-template-columns: repeat(4, 1fr);
}

/* ── Responsivo contato e footer ────────────────────────── */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contato-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .logo-img {
        height: 45px;
    }

    .footer-logo {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .contato-grid {
        gap: 2rem;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: 12px 14px;
        font-size: .9rem;
    }

    .logo-img {
        height: 38px;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVO — Correções finais para todas as páginas
═══════════════════════════════════════════════════════════ */

/* Menu mobile — garantir cor do texto correta */
@media (max-width: 768px) {
    /* No mobile, menu sempre tem fundo branco independente do estado do header */
    nav ul a {
        color: var(--text) !important;
    }
    nav ul a:hover {
        color: var(--accent) !important;
    }

    /* Hamburger sempre visível no mobile */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Garantir que o botão hamburger seja clicável */
    .mobile-menu-toggle {
        cursor: pointer;
        z-index: 1002;
        position: relative;
        background: none;
        border: none;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    /* Span do hamburger — cor adaptativa */
    header:not(.scrolled) .mobile-menu-toggle span {
        background: var(--white);
    }
    header.scrolled .mobile-menu-toggle span,
    .mobile-menu-toggle span {
        background: var(--primary);
    }

    /* Footer responsivo */
    .footer-content {
        grid-template-columns: 1fr !important;
    }

    /* Seção de contato */
    .contato-grid {
        grid-template-columns: 1fr !important;
    }

    /* Formulário de contato */
    .form-field input,
    .form-field select,
    .form-field textarea {
        font-size: 16px; /* evitar zoom no iOS */
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Extra small */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .slide-title { font-size: 1.5rem; }
    .slide-subtitle { font-size: .85rem; }
    .slide-btn { padding: 10px 22px; font-size: .78rem; }
    .section-title-advogado3 { font-size: 1.4rem; }
    .btn-advogado3 { padding: 12px 24px; font-size: .85rem; }
}

/* Garantir que o overlay do menu não interfira com o conteúdo */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    cursor: pointer;
}
.menu-overlay.active { display: block; }
