/* ===== RESET E CONFIGURAÇÕES GERAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== UTILITÁRIOS ===== */
.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: white;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ===== HEADER E NAVEGAÇÃO ===== */
header {
    background-color: var(--surface);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    height: 100%;
}

.logo-img {
    height: 50px;
    margin-right: 10px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    line-height: 1;
}

.logo-text span {
    color: var(--accent);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* Navegação Desktop */
.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Ajuste específico para links sem dropdown */
.nav-item:not(.dropdown) > .nav-link {
    padding: 0 0;
    line-height: 80px;
}

.nav-link:hover {
    color: var(--secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Links sociais no header */
.nav-social-links {
    display: flex;
    gap: 12px;
    align-items: center;
    height: 100%;
}

.nav-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--border);
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-social-links a:hover {
    background-color: var(--secondary);
    color: var(--surface);
    transform: translateY(-2px);
}

/* Botão de tema */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background: var(--muted);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0;
    display: block;
}

.theme-toggle:hover {
    border-color: var(--secondary);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: var(--secondary);
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .toggle-slider {
    transform: translateX(30px);
    background: var(--primary);
}

.toggle-icon {
    font-size: 12px;
    transition: opacity 0.3s ease;
    color: white;
}

.sun-icon {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.moon-icon {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
}

/* Botão "Envolva-se" */
.nav-involve-btn {
    background-color: var(--secondary);
    color: white;
    padding: 12px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    line-height: 1;
}

.nav-involve-btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow);
}

.nav-involve-btn i {
    font-size: 0.8rem;
}

/* ===== DROPDOWN DO MENU ===== */
.nav-item.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item.dropdown > .nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
}

/* Remova a seta do pseudo-elemento e use apenas o ícone FontAwesome */
.nav-item.dropdown > .nav-link::after {
    display: none;
}

/* A seta agora vem do ícone FontAwesome no HTML */
.nav-item.dropdown > .nav-link .dropdown-icon {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
    line-height: 1;
}

.nav-item.dropdown:hover > .nav-link .dropdown-icon {
    transform: rotate(180deg);
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--surface);
    box-shadow: 0 5px 20px var(--shadow);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--surface);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: var(--background);
    color: var(--secondary);
    padding-left: 25px;
}

.dropdown-item i {
    width: 20px;
    margin-right: 10px;
    font-size: 0.9rem;
    color: var(--accent);
}

/* ===== BREADCRUMB SIMPLIFICADO ===== */
.breadcrumb {
    background-color: var(--background);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-nav {
    font-size: 0.9rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
    color: var(--text-light);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--secondary);
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: var(--border);
}

.breadcrumb-current {
    color: var(--primary);
    font-weight: 600;
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* ===== RODAPÉ ===== */
footer {
    background-color: var(--surface);
    color: var(--text);
    padding: 20px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    height: auto;
}

.footer-logo .logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
}

.footer-logo .logo-text span {
    color: var(--accent);
}

.footer-col p {
    color: var(--text-light);
    line-height: 1.6;
    max-width: 600px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== RESPONSIVIDADE GLOBAL ===== */
@media (max-width: 992px) {
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav-list {
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    /* Menu Mobile */
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--surface);
        box-shadow: -5px 0 15px var(--shadow);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 100px 2rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        overflow-y: auto;
        gap: 0;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        height: auto;
    }

    .nav-item {
        height: auto;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
        display: block;
        width: 100%;
        height: auto;
        justify-content: space-between;
    }

    /* Dropdown Mobile */
    .nav-item.dropdown {
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-item.dropdown > .nav-link {
        padding: 1rem 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-item.dropdown > .nav-link .dropdown-icon {
        position: static;
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }
    
    .nav-item.dropdown.active > .nav-link .dropdown-icon {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        background-color: transparent;
        display: none;
        width: 100%;
        border-radius: 0;
        border: none;
        margin-top: 0;
    }
    
    .dropdown-menu.active {
        display: block;
        animation: dropdownSlideDown 0.3s ease;
    }
    
    @keyframes dropdownSlideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown-item {
        padding: 0.8rem 0 0.8rem 1.5rem;
        font-size: 1rem;
        color: var(--text-light);
        border-bottom: none;
        border-top: 1px solid var(--border);
        background-color: rgba(var(--accent-rgb, 76, 175, 80), 0.05);
    }
    
    .dropdown-item:last-child {
        border-bottom: 1px solid var(--border);
    }
    
    .dropdown-item:hover {
        background-color: rgba(var(--accent-rgb, 76, 175, 80), 0.1);
        color: var(--secondary);
        padding-left: 1.75rem;
    }
    
    .dropdown-item i {
        width: 18px;
        font-size: 0.9rem;
    }

    /* Links sociais no mobile */
    .nav-social-links {
        width: 100%;
        justify-content: center;
        order: 3;
        height: auto;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
        order: 2;
        height: auto;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }

    .theme-toggle {
        width: 55px;
        height: 28px;
    }

    .toggle-slider {
        width: 20px;
        height: 20px;
    }

    [data-theme="dark"] .toggle-slider {
        transform: translateX(27px);
    }

    /* Rodapé Mobile */
    .footer-logo .logo-img {
        height: 60px;
    }

    .footer-logo .logo-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 15px;
    }

    .logo-img {
        height: 45px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .nav {
        width: 100%;
        right: -100%;
        padding: 100px 1.5rem 2rem;
    }

    .nav.active {
        right: 0;
    }

    .footer-logo .logo-img {
        height: 50px;
    }

    .footer-logo .logo-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .section-title {
        font-size: 1.4rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .nav {
        padding: 100px 1rem 2rem;
    }
}

