/* Variáveis de cores para temas */
:root {
    /* Tema claro (padrão) */
    --bg-color: #fff;
    --bg-alt-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #666;
    --heading-color: #2c3e50;
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --card-bg: #f9f9f9;
    --card-shadow: rgba(0, 0, 0, 0.05);
    --card-shadow-hover: rgba(0, 0, 0, 0.1);
    --header-bg: #2c3e50;
    --header-text: #fff;
    --footer-bg: #2c3e50;
    --footer-text: #fff;
    --border-color: #ddd;
    --icon-color: #3498db;
    --form-bg: #f9f9f9;
    --form-border: #ddd;
    --button-bg: #3498db;
    --button-text: #fff;
    --button-hover: #2980b9;
}

/* Tema escuro */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --bg-alt-color: #2a2a2a;
    --text-color: #f0f0f0;
    --text-muted: #b0b0b0;
    --heading-color: #e0e0e0;
    --primary-color: #4fa3e0;
    --primary-dark: #3a8bc5;
    --card-bg: #2c2c2c;
    --card-shadow: rgba(0, 0, 0, 0.2);
    --card-shadow-hover: rgba(0, 0, 0, 0.3);
    --header-bg: #1c2e40;
    --header-text: #f0f0f0;
    --footer-bg: #1c2e40;
    --footer-text: #f0f0f0;
    --border-color: #444;
    --icon-color: #4fa3e0;
    --form-bg: #2c2c2c;
    --form-border: #444;
    --button-bg: #4fa3e0;
    --button-text: #f0f0f0;
    --button-hover: #3a8bc5;
    --avatar-bg: #3a3a3a;
    --avatar-icon: #e0e0e0;
}

/* Estilos principais */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botão de alternância de tema */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--header-text);
    font-size: 1.2rem;
    transition: background-color 0.3s;
    margin-left: 15px;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Estilos principais */

/* Cabeçalho */
header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--card-shadow);
}

header .container {
    padding: 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 10px;
}

.header-content {
    background-color: rgba(28, 46, 64, 0.9);
    padding: 60px 20px 30px;
    text-align: center;
}

.header-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.header-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(52, 152, 219, 0.9), rgba(44, 62, 80, 0.9)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 100px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.whatsapp-button, .contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 220px;
}

.whatsapp-button {
    background-color: #25d366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
}

.contact-button {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.contact-button:hover {
    background-color: #fff;
    color: #3498db;
    transform: translateY(-3px);
}

.whatsapp-button i, .contact-button i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Seção Comum */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--heading-color);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Sobre */
.about {
    padding: 80px 0;
    background-color: var(--bg-alt-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background-color: var(--avatar-bg, #e0e0e0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px var(--card-shadow);
}

.image-placeholder i {
    font-size: 100px;
    color: var(--avatar-icon, var(--heading-color));
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

.credentials {
    list-style: none;
    margin-top: 30px;
}

.credentials li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.credentials li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Serviços */
.services {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--card-shadow-hover);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--heading-color);
    text-align: center;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-list {
    list-style: none;
    margin-top: auto;
}

.service-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
}

.service-list li:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.service-list li:last-child {
    border-bottom: none;
}

/* Depoimentos */
.testimonials {
    padding: 80px 0;
    background-color: var(--bg-alt-color);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content i {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: -10px;
}

.testimonial-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--avatar-bg, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 3px 8px var(--card-shadow);
}

.author-avatar i {
    font-size: 30px;
    color: var(--avatar-icon, var(--heading-color));
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--heading-color);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contato */
.contact {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
    color: #fff;
}

.contact-text h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.contact-text p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.contact-cta-container {
    background-color: var(--form-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--card-shadow);
}

.contact-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.contact-cta h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.contact-cta p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.contact-whatsapp {
    margin-top: 10px;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 220px;
    background-color: #25d366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.contact-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
}

/* Rodapé */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.footer-logo p {
    font-size: 1rem;
    opacity: 0.8;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after,
.footer-social h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #3498db;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsividade */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .credentials li {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-content h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about, .services, .testimonials, .contact {
        padding: 60px 0;
    }
    
    .testimonials-slider {
        height: 350px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .main-nav {
        padding: 10px 15px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 100px 0 50px;
        margin-top: 70px;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .whatsapp-button, .contact-button, .contact-whatsapp {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 200px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .about-content {
        gap: 30px;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .testimonials-slider {
        height: 380px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .contact-cta h3 {
        font-size: 1.3rem;
    }
    
    .contact-cta p {
        font-size: 1rem;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-logo h3 {
        font-size: 1.5rem;
    }
    
    .submit-button {
        width: 100%;
    }
}

/* Estilos para o carrossel de depoimentos */
.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 15px;
}

.testimonials-slider {
    display: flex;
    position: relative;
    height: 320px;
    margin-bottom: 10px;
}

.testimonial-card {
    flex: 0 0 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    width: 100%;
    visibility: hidden;
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.carousel-control {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 15px;
    transition: background-color 0.3s;
}

.carousel-control:hover {
    background: var(--secondary-color);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: var(--primary-color);
}

.image-placeholder {
    /* Mantenha seus estilos existentes aqui */
    background-image: url('../img/advogado.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Opcional: Esconder o ícone quando a imagem carregar corretamente */
.image-placeholder i {
    opacity: 0.3; /* Torna o ícone semi-transparente */
    /* Ou remova completamente com: display: none; */
}

/* Media query para telas muito pequenas */
@media (max-width: 400px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo p {
        font-size: 0.7rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .whatsapp-button, .contact-button, .contact-whatsapp {
        padding: 10px 15px;
        font-size: 0.9rem;
        min-width: 180px;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .testimonials-slider {
        height: 420px;
    }
    
    .carousel-control {
        width: 35px;
        height: 35px;
        margin: 0 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}