/* Responsivo */
@media (max-width: 768px) {
    .integration-dark-grid {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .integration-dark-text {
        text-align: left;
    }

    .integration-dark-text h2 {
        margin-bottom: 20px;
    }

    .dark-placeholder {
        height: 200px;
    }

    .tech-cards-wrapper {
        padding-right: 20px;
    }

    .tech-card {
        padding: 20px;
        gap: 20px;
    }

    .tech-logo img {
        max-width: 100px;
    }

    .tech-badge {
        font-size: 13px;
        padding: 5.668px;
    }

    .tech-badge strong {
        font-size: 14px;
    }

    .compare-columns {
        grid-template-columns: 1fr;
    }

    .compare-header {
        text-align: left;
    }

    .hero-gateway-pagamentos {
        padding: 130px 20px 60px !important;
    }

    .hero-gateway-pagamentos__text {
        order: 2
    }

    .hero-gateway-pagamentos__visual {
        order: 1;
    }


    .use-case-header h2 {
        font-size: 1.8rem;
    }

    .use-case-content {
        grid-template-columns: 1fr;
    }

    .use-case-image {
        height: 200px;
    }

    .use-case-tabs {
        justify-content: flex-start;
        margin-top: 20px;
    }


    .cta-box {
        padding: 40px 12px;
    }

    .cta-box p {
        font-size: 14px;
        padding: 0 20px;
    }

    .feature-container {
        grid-template-columns: 1fr;
    }

    .feature-right {
        margin-top: 20px;
    }


    .flow-targets {
        align-items: center;
    }

    .flow-target {
        margin-bottom: 16px;
    }

    .flow-wrapper {
        transform: none !important;
        /* desativa parallax em telas pequenas */
    }

    .tech-header {
        display: contents;
    }

    .container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .integration-dark-card::before {
        left: 0;
    }

    .btn-cta {
        align-self: stretch;
        text-align: center;
    }

    .hero {
        padding: 120px 10px 60px;
    }

    .hero-top-link {
        font-size: 13px;
    }

    .hero-subtitle {
        font-size: 18px;
        width: 90%;
    }

    .btn-hero-cta {
        font-size: 15px;
    }

    .hero-trust-text {
        font-size: 18px;
    }

    .integration-dark-card {
        scale: 0.8
    }

    .benefits-header h2 {
        font-size: 1.8rem;
    }

    .benefit-large {
        height: 360px;
    }

    .payment-icons,
    .use-case-image {
        display: none;
    }

    .benefits-grid,
    .benefits-grid-container {
        display: grid;
    }

    .benefit-small {
        flex-direction: column;
        align-items: start;
        text-align: left;
    }

    .benefit-small p {
        font-size: 18px;
    }

    .benefit-small img {
        width: 91px;
        height: 91px;
    }

    .benefit-text h3 {
        margin-top: 10px;
        font-size: 22px;
        font-weight: 500;
    }

    .integration-dark-header h2 {
        font-size: 1.8rem;
    }

    .compare-container {
        grid-template-columns: 1fr;
    }

    .compare-text {
        padding-right: 20px;
    }

    .desktop {
        display: none;
    }

    .mobile {
        display: block;
    }

    .footer-col.left {
        gap: 20px;
    }

    .social-label {
        text-align: left;
        margin: 10px 0;
    }

    .tech-header h2 {
        font-size: 1.8rem;
        flex: 1;
    }

    .tech-header p {
        flex: 1;
    }

    .site-header {
        padding: 20px 0;
        top: 0;
        width: 100%;
        border-radius: 0;
    }

    .site-header .container {
        flex-wrap: wrap;
        flex-direction: row;
    }

    .header-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .item {
        min-height: 0;
    }

/* Foreign section mobile layout - High specificity to override main CSS */
.foreign-section .foreign-content {
    position: relative !important;
    min-height: 500px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px 20px 0 20px !important;
}

.foreign-section .foreign-text {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 20px 0 !important;
    z-index: 2 !important;
    max-width: none !important;
    min-width: auto !important;
}

.foreign-section .foreign-image-stack {
    order: 2 !important;
    position: static !important;
    width: 100% !important;
    display: flex;
    align-items: flex-end;
    transform: scale(1.3);
    transform-origin: bottom;
}

.foreign-section .foreign-card-bg,
.foreign-section .foreign-img-mockup {
    max-width: 200px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

.foreign-section,
.default-cta-footer {
    padding: 60px 20px !important;
}

.nav-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
}

.access-links {
    margin-top: 16px;
}

.feature-container {
    flex-direction: column;
}


.hero-content {
    gap: 40px;
}

.hero-inner {
    gap: 61px;
    margin: 0 22px !important;
    max-width: 100% !important;
}


.menu-toggle {
    display: block;
}

.main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 80%;
    background: #0d0d0d;
    padding: 100px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    transition: left 0.3s ease;
}

.main-nav.active {
    left: 0;
}

.feature-left,
.feature-right {
    display: none !important;
}

.submenu-solutions {
    all: unset;
    display: none;
    flex-direction: column;
    gap: 12px;
}

.header-top {
    display: flex;
    justify-content: space-between;
}

/* 1) estilo do botão de hambúrguer (só aparece no mobile) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    left: 0;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

/* 2) painel off-canvas */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0d0d;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    z-index: 3;
    padding: 75px 30px;
    display: block;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* 3) lista e submenus dentro do mobile */
.mobile-menu ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-menu a {
    display: block;
    padding: .75rem 0;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}

.mobile-submenu {
    padding-left: 1.5rem;
}

.mobile-submenu li a {
    font-size: 15px;
    font-weight: 400;
    opacity: .8;
}

/* seu nav desktop: */
.site-header .container nav {
    display: none;
}

/* mostrar o toggle: */
.mobile-menu-toggle {
    display: block;
}

hr.divider.mobile-hidden {
    margin: 20px 0;
}




}

/* Responsivo */
@media (max-width: 1124px) {

    .mobile-submenu li {
        flex-direction: row;
        display: flex;
        gap: 10px;
        align-items: anchor-center;
    }

    .container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .btn-cta {
        align-self: stretch;
        text-align: center;
    }

    .site-header .container {
        flex: 1;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .nav-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 16px;
    }

    .access-links {
        margin-top: 16px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 80%;
        background: #0d0d0d;
        padding: 100px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        transition: left 0.3s ease;
    }

    .main-nav.active {
        left: 0;
    }

    .feature-left,
    .feature-right {
        display: none !important;
    }

    .submenu-solutions {
        all: unset;
        display: none;
        flex-direction: column;
        gap: 12px;
    }

    .header-top {
        display: flex;
        justify-content: space-between;
        padding: 0 1.2rem;
        flex: 1;
    }

    /* 1) estilo do botão de hambúrguer (só aparece no mobile) */
    .mobile-menu-toggle {
        display: none;
        /* só vamos exibir dentro do media query */
        background: none;
        border: none;
        z-index: 1001;
    }

    .hamburger-icon {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff;
        position: relative;
    }

    .hamburger-icon::before,
    .hamburger-icon::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background: #fff;
        left: 0;
    }

    .hamburger-icon::before {
        top: -8px;
    }

    .hamburger-icon::after {
        top: 8px;
    }

    /* 2) painel off-canvas */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #0d0d0d;
        transform: translateX(-100%);
        transition: transform 0.5s ease;
        z-index: 3;
        padding: 75px 30px;
        display: block;
    }

    .mobile-menu.open {
        transform: translateX(0);
    }

    /* 3) lista e submenus dentro do mobile */
    .mobile-menu ul {
        list-style: none;
        padding: 0 20px;
        margin: 0;
    }

    .mobile-menu a {
        display: block;
        padding: 0.50rem 0;
        color: #fff;
        text-decoration: none;
        font-size: 15px;
    }

    .mobile-submenu {
        padding-left: 1.5rem;
    }

    .mobile-submenu li a {
        font-size: 15px;
        font-weight: 400;
        opacity: .8;
    }

    /* seu nav desktop: */
    .site-header .container nav {
        display: none;
    }

    /* mostrar o toggle: */
    .mobile-menu-toggle {
        display: block;
    }

    hr.divider.mobile-hidden {
        margin: 20px 0;
    }

    /* Ajustes específicos para a seção de construção com */
    .build-with {
        padding: 120px 20px 60px;
    }
    #integration-easly {
        padding: 60px 30px;
    }

    /* FAQ Mobile Styles */

    /* Badge positioning for mobile */
    .badge-top-left {
        top: 43px;
        left: 32px;
    }

    .badge-bottom-right {
        top: 183px;
        right: 30px;
    }

}