:root {
    --bg-color: #F8F9FA;
    --text-color: #102A43;
    --accent-color: #C5A059;
    --cta-color: #2ECC71;
    /* High contrast green like ConductLaw */
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

/* Base Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #27ae60;
    /* Slightly darker green */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

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

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.logo,
.nav-links a {
    color: var(--text-color);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.logo .highlight {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
}

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

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

/* Hero Section */
.hero {
    min-height: 85vh;
    /* Reduced height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    /* Space for header */
}

.hero-video-box {
    width: 100%;
    height: 70vh;
    /* Contained video height */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(16, 42, 67, 0.7), rgba(16, 42, 67, 0.3));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin-left: 5%;
    /* Slight push from left edge */
    color: var(--white);
    position: relative;
    z-index: 1;
}

.accent-line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    color: var(--white);
}

.hero-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.scroll-down {
    position: relative;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-down .arrow {
    border-color: var(--text-color);
}

.scroll-down:hover {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
}

.scroll-down:hover .arrow {
    border-color: var(--white);
}

.arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    margin-top: -5px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    margin-bottom: 60px;
    position: relative;
    /* Removed absolute centering hack to fix alignment */
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* Services (Atuação) */
/* Services Carousel */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    /* Space for arrows */
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding: 20px 5px;
    cursor: grab;
    /* Indicate draggable */
    user-select: none;
    /* Prevent text selection during drag */
    touch-action: pan-y;
    /* Allow vertical scroll, handle horizontal in JS */
    position: relative;
    /* Ensure offsetLeft is relative to track */
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-slide {
    min-width: 33.333%;
    /* Show 3 cards on desktop */
    padding: 0 15px;
    list-style: none;
    box-sizing: border-box;
    /* Stable width calculation */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-btn:hover {
    color: var(--accent-color);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    gap: 10px;
}

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

.carousel-indicator.current-slide {
    background: var(--accent-color);
}

.card {
    background: var(--white);
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Minimalist border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    height: 100%;
    /* Fill the slide height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align content to top */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

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

.card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
}

/* Testimonials Specific Styles */
.testimonial-card {
    text-align: center;
    align-items: center;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card h4 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-size: 1.1rem;
}

.stars {
    color: #FFD700;
    /* Gold */
    font-size: 1.2rem;
    margin-bottom: 15px;
}


/* About (Sobre) */
.bg-light {
    background-color: #F0F2F5;
    /* Slightly darker than main bg for contrast */
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    left: 0;
    transform: none;
    margin-bottom: 30px;
}

.about-text .section-title::after {
    margin: 15px 0 0;
}

.about-lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.oab-number {
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 10px;
    font-size: 1.1rem;
}

.about-image {
    position: relative;
}

.about-photo {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* FAQ Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-header {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 25px 0;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--accent-color);
}

.accordion-header .icon {
    font-family: monospace;
    /* Simple styling for + icon */
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
    /* Turns + into x */
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content p {
    padding-bottom: 25px;
    color: #666;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    /* Center the two columns */
    gap: 80px;
    /* Add space between them */
    align-items: flex-start;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-content h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
}

/* Removed .footer-links selectors */

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.copyright a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Animations (Reveal) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: 95%;
        /* Use more screen width on mobile */
    }

    .section {
        padding: 60px 0;
        /* Reduce section padding */
    }

    .section-title {
        font-size: 2.2rem;
        /* Smaller section titles */
    }

    /* Header */
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding-bottom: 10px;
    }

    .nav-links {
        gap: 15px;
        /* Reduce gap between links */
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero */
    .hero {
        padding-top: 140px;
        /* Increased to account for taller mobile header */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    /* About */
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text .section-title {
        text-align: center;
        /* Center title on mobile */
    }

    .about-text .section-title::after {
        margin: 15px auto 0;
        /* Center underline */
    }

    .about-lead {
        text-align: center;
    }

    .about-text p {
        text-align: justify;
    }

    .about-text .oab-number {
        text-align: center;
        display: block;
    }

    /* Footer */
    footer {
        padding-bottom: 90px;
        /* Ensure space for floating button */
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
        /* Override flex-start from desktop */
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    /* Carousel Responsive */
    .carousel-container {
        padding: 0 45px;
        /* Remove container padding to maximize space */
        max-width: 100%;
    }

    .carousel-btn {
        background: rgba(255, 255, 255, 0.8);
        /* Background for visibility */
        border-radius: 50%;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    .card {
        padding: 25px;
        /* Reduce card padding */
        margin: 0;
        /* spacing between cards if seen, but here mostly for edge */
        min-height: 260px;
        /* Reduced from 320px to avoid empty space */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .carousel-slide {
        min-width: 100%;
        padding: 0 10px;
        /* Add space between cards */
    }

    /* Ensure content inside card doesn't break */
    .card h3 {
        font-size: 1.3rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-slide {
        min-width: 50%;
        /* Show 2 cards on tablet */
    }
}

/* Privacy Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: var(--text-color);
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}