/* Estilos do header do hero (elementos que envolvem .hero__header e estilos exclusivos dentro do header) */

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 32px;
    max-width: 1440px;
    margin: 0 auto;
}

.hero__logo img {
    height: 26px;
    filter: brightness(0) invert(1);
}

.hero__nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    gap: 12px;
    align-items: center;
}

.hero__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    border-radius: 6px;
    color: #ffffff;
}

.hero__nav-link--dropdown img {
    width: 12px;
    height: 12px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero__actions .btn {
    display: none;
}

.hero__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.hero__menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero__mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 24px;
    z-index: 998;
}

.hero__mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero__mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px 6px 6px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #424242;
    background: transparent;
    width: 240px;
}

.hero__mobile-link--dropdown img {
    width: 12px;
    height: 12px;
    filter: brightness(0) saturate(100%) invert(24%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(45%);
    transform: rotate(-90deg);
}

.hero__mobile-link.is-active {
    background: transparent;
    color: #424242;
}

.hero__mobile-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.hero__mobile-actions .btn {
    width: 100%;
    max-width: 414px;
    height: auto;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    justify-content: center;
}

.hero__mobile-actions .btn--ghost {
    color: #424242;
    filter: none;
}

.hero__mobile-actions .btn--ghost .btn__icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(24%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(45%);
}

/* Menu Mobile de Plataforma */
.hero__mobile-platform-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 1000;
    overflow-y: auto;
}

.hero__mobile-platform-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #11875c;
    position: sticky;
    top: 0;
    z-index: 2;
}

.hero__mobile-platform-back,
.hero__mobile-platform-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.hero__mobile-platform-back:hover,
.hero__mobile-platform-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero__mobile-platform-back svg,
.hero__mobile-platform-close svg {
    width: 20px;
    height: 20px;
}

.hero__mobile-platform-title {
    margin: 0;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: #ffffff;
}

.hero__mobile-platform-content {
    padding: 24px;
}

.hero__mobile-platform-section {
    margin-bottom: 24px;
}

.hero__mobile-platform-section:last-child {
    margin-bottom: 0;
}

.hero__mobile-platform-section-header {
    margin-bottom: 16px;
}

.hero__mobile-platform-section-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    color: #242424;
}

.hero__mobile-platform-section-header p {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #424242;
}

.hero__mobile-platform-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    margin: 24px 0;
}

.hero__mobile-platform-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero__mobile-platform-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero__mobile-platform-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #242424;
}

.hero__mobile-platform-card-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero__mobile-platform-card-icon img {
    width: 20px;
    height: 20px;
}

.hero__mobile-platform-card p {
    margin: 0;
    padding-left: 0px;
    font-size: 14px;
    line-height: 20px;
    color: #707070;
    width: 100%;
}

.hero__header {
    position: relative;
    z-index: 2;
}

.hero__header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(5, 50, 38, 0.15);
    z-index: 999;
}

.hero__header.is-sticky .hero__logo img {
    filter: none;
}

.hero__header.is-sticky .hero__nav-link {
    color: #1b4332;
}

.hero__header.is-sticky .hero__nav-link--dropdown img {
    filter: brightness(0);
}

.hero__header.is-sticky .hero__menu-toggle {
    border-color: rgba(27, 67, 50, 0.35);
}

.hero__header.is-sticky .hero__menu-toggle span {
    background: #1b4332;
}

.hero__header.is-sticky .btn--ghost {
    background: transparent;
    color: #424242;
    filter: none;
}

.hero__header.is-sticky .btn--primary {
    background: #0f6c4a;
}

.hero__header.is-sticky .btn--ghost .btn__icon {
    filter: brightness(0) saturate(100%) invert(26%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(27%);
}

/* Invert: cores inversas (fundo branco, texto e botão verde), sem shadow e sem alterar comportamento */
.hero__header.invert {
    background: #ffffff;
}

.hero__header.invert .hero__logo img {
    filter: none;
}

.hero__header.invert .hero__nav-link {
    color: #1b4332;
}

.hero__header.invert .hero__nav-link--dropdown img {
    filter: brightness(0);
}

.hero__header.invert .hero__menu-toggle {
    border-color: rgba(27, 67, 50, 0.35);
}

.hero__header.invert .hero__menu-toggle span {
    background: #1b4332;
}

.hero__header.invert .btn--ghost {
    background: transparent;
    color: #424242;
    filter: none;
}

.hero__header.invert .btn--primary {
    background: #11875c;
}

.hero__header.invert .btn--ghost .btn__icon {
    filter: brightness(0) saturate(100%) invert(26%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(27%);
}

@media (max-width: 1439px) {
    .hero__header.is-mobile-open .hero__mobile-menu {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .hero__header.is-mobile-open .hero__menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hero__header.is-mobile-open .hero__menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .hero__header.is-mobile-open .hero__menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero__header.is-platform-open .hero__mobile-menu {
        display: none;
    }

    .hero__header.is-platform-open .hero__mobile-platform-menu {
        display: block;
    }
}

@media (max-width: 320px) {
    .hero__actions {
        gap: 0;
    }
}

@media (min-width: 800px) {
    .hero__actions .btn {
        display: inherit;
    }
}

@media (min-width: 1440px) {
    .hero__nav {
        display: flex;
    }

    .hero__menu-toggle {
        display: none;
    }
}
