:root {
    --primary-color: #1a1a1a;
    --secondary-color: #9e834d;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
}

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

/* Body and base styles */
body {
    padding-top: 60px; /* Adjusted for header only */
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.menu-toggle {
    display: none;
}

/* Adjust hero section to account for fixed header */
#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    animation: fadeIn 1.2s ease-out;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 3;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: white;
}

/* Practice Areas */
#practice-areas {
    padding: 5rem 5%;
    background: var(--light-bg);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.practice-card {
    background: var(--white);
    padding: 0;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.practice-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.practice-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
}

.practice-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.practice-card p {
    color: var(--text-color);
    padding: 0 1rem 1.5rem;
}

/* About Section */
#about {
    padding: 5rem 5%;
    background: var(--white);
}

.about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    text-align: left;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

/* Contact Section */
#contact {
    padding: 5rem 5%;
    background: var(--light-bg);
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    width: 100%;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.contact-info .info-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info .info-item a:hover {
    color: #c4a55c;
}

.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.map-container {
    flex: 1;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #8b714a;
}

/* Attorneys Section */
#attorneys {
    padding: 5rem 5%;
    background: var(--white);
}

.attorneys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.attorney-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.attorney-card:hover {
    transform: translateY(-5px);
}

.attorney-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.attorney-image {
    height: 300px;
    overflow: hidden;
}

.attorney-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attorney-info {
    padding: 1.5rem;
}

.attorney-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.attorney-info .position {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.attorney-info .specialty {
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 1rem;
}

.attorney-info .bio {
    color: var(--text-color);
    line-height: 1.6;
}

/* Testimonials Section */
#testimonials {
    padding: 5rem 5%;
    background: var(--light-bg);
}

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

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-icon {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-family: 'Playfair Display', serif;
}

.testimonial-author p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Why Choose Us Section */
#why-choose-us {
    padding: 5rem 5%;
    background: var(--white);
}

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

.section-container h2,
section h2 {
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-container h2::after,
section h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--secondary-color);
}

section h2.visible {
    opacity: 1;
    transform: translateY(0);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 8px;
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Case Results Section */
#case-results {
    padding: 5rem 5%;
    background: var(--light-bg);
}

.results-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.result-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.result-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.result-card h3 {
    color: var (--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.case-type {
    font-weight: bold;
    margin-bottom: 1rem;
}

.case-description {
    color: var(--text-color);
    line-height: 1.6;
}

/* Awards Section */
#awards {
    padding: 5rem 5%;
    background: var (--white);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    text-align: center;
}

.award-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 8px;
    transition: transform 0.3s;
}

.award-item:hover {
    transform: translateY(-5px);
}

.award-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
}

.award-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.award-item p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Latest News Section */
#latest-news {
    padding: 5rem 5%;
    background: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.news-meta .date {
    color: var(--text-color);
}

.news-meta .category {
    color: var(--secondary-color);
}

.news-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.view-all-container {
    text-align: center;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 0.5rem 0;
        padding: 0.5rem 1rem;
        width: 100%;
        text-align: left;
    }

    .nav-links a.cta-button {
        margin-top: 1rem;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container {
        min-height: 300px;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        min-height: 300px;
    }

    .attorneys-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .attorney-image {
        height: 250px;
    }

    body {
        padding-top: 60px; /* Consistent with desktop */
    }

    header {
        top: 0;
    }

    .features-grid,
    .results-slider,
    .awards-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-image {
        height: 180px;
    }

    /* Smaller carousel buttons for mobile */
    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        padding: 0.5rem;
    }

    .carousel-button.prev {
        left: 10px;
    }

    .carousel-button.next {
        right: 10px;
    }

    .carousel-dots .dot {
        width: 8px;
        height: 8px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate {
    opacity: 0;
}

.animate.fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate.slide-left {
    animation: slideInLeft 1s ease forwards;
}

.animate.slide-right {
    animation: slideInRight 1s ease forwards;
}

/* Animação de gradiente e brilho para botão de WhatsApp */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.whatsapp-float {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    background-image: linear-gradient(
        45deg, 
        #25D366, 
        #128C7E, 
        #25D366
    );
    background-size: 200% 200%;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 100;
    transition: all 0.3s ease;
    animation: 
        whatsapp-pulse 2s infinite,
        gradient-animation 5s ease infinite;
}

.whatsapp-float a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
}

.whatsapp-float a i {
    font-size: 40px;
    transition: transform 0.2s ease;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

.whatsapp-float:hover a i {
    transform: rotate(360deg);
}

#contato {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-method i {
    font-size: 24px;
    color: #333;
}