/* Style sheet specific for mobile devices */

@media (max-width: 1024px) {
    .content-wrapper {
        padding: 3rem;
        gap: 3rem;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .nav-container {
        padding: 0 1.2rem;
        position: relative;
        justify-content: center;
        min-height: 90px;
    }

    /* Navbar fixo com fundo sólido no mobile para ancorar a logo */
    .navbar {
        background: rgba(10, 18, 11, 0.97);
        border-bottom: none;
        padding: 0.8rem 0;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    }

    .navbar.scrolled {
        padding: 0.5rem 0;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2004;
        padding: 0.4rem 0;
    }

    .logo-img {
        height: 90px;
        position: relative;
        z-index: 2005;
    }

    .navbar.scrolled .logo-img {
        height: 70px;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        color: var(--text-main);
        font-size: 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 10px;
        cursor: pointer;
        z-index: 2005;
        margin: 0;
        margin-left: auto;
        margin-right: 0.2rem;
        position: relative;
        width: 44px;
        height: 44px;
        transition: border-color 0.2s, background 0.2s;
    }

    .mobile-menu-btn:hover,
    .mobile-menu-btn:focus {
        border-color: var(--light-green);
        background: rgba(77, 161, 79, 0.08);
    }

    .nav-social-links {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 18, 11, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.2rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease;
        z-index: 2000;
        border: none;
        box-shadow: none;
        padding-top: 4rem;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.25rem;
        display: block;
        padding: 0.5rem;
    }

    .nav-links .btn-nav {
        display: inline-block;
        font-size: 1.05rem;
        padding: 0.8rem 2rem;
        margin-top: 0.8rem;
        width: auto;
    }

    .mobile-extra-info {
        display: block !important;
        margin-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.5rem;
    }

    .hero-slide {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .cta-actions {
        justify-content: center;
    }

    .content-wrapper {
        /* Aumentando a largura de exibicao reduzindo o padding horizontal no mobile */
        padding: 2rem 1rem;
        border-radius: 0;
        gap: 4rem;
        /* Melhorando o fluxo com mais distancia vertical no mobile */
    }

    .footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
        margin-top: 0.5rem;
    }

    .btn-back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .team-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 1rem !important;
        padding: 0 1rem 1.5rem 1rem !important;
        margin: 0 -1rem !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .team-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .team-card {
        flex: 0 0 85% !important;
        scroll-snap-align: center;
        max-width: none !important;
        overflow: hidden;
    }

    .team-card h3, .team-card p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

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

    .breadcrumb-nav {
        padding-top: 100px;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .page-hero {
        padding: 1.5rem 0.5rem 2rem;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }
}

/* ============================================
   TABLET LANDSCAPE (768px – 1024px horizontal)
============================================ */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .logo-img {
        height: 70px;
    }

    .navbar.scrolled .logo-img {
        height: 55px;
    }

    .hero-section {
        padding-top: 7rem;
    }

    .hero-slide {
        flex-direction: row;
        text-align: left;
        gap: 2rem;
    }

    .cta-actions {
        justify-content: flex-start;
    }

    .content-wrapper {
        padding: 2rem 2.5rem;
        gap: 4rem;
    }

    .impact-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        display: grid !important;
        overflow-x: visible !important;
    }

    .team-card {
        flex: none !important;
    }

    .breadcrumb-nav {
        padding-top: 110px;
    }
}

/* ============================================
   CELULAR LANDSCAPE (max-width: 767px horizontal)
============================================ */
@media (max-width: 767px) and (orientation: landscape) {
    body {
        padding: 0;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-img {
        height: 50px;
    }

    .navbar.scrolled .logo-img {
        height: 42px;
    }

    /* Menu mobile em landscape: scroll vertical em vez de tela cheia */
    .nav-links {
        padding-top: 3rem;
        overflow-y: auto;
        gap: 0.6rem;
        justify-content: flex-start;
        align-items: center;
        padding-bottom: 1rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.3rem;
    }

    .hero-section {
        padding-top: 6rem;
    }

    .hero-slide {
        flex-direction: row;
        gap: 1.5rem;
        text-align: left;
    }

    .slide-image {
        max-width: 45%;
    }

    .cta-actions {
        justify-content: flex-start;
        flex-direction: row;
        gap: 1rem;
    }

    .content-wrapper {
        padding: 1.5rem 1.5rem;
        gap: 3rem;
    }

    .impact-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .impact-number {
        font-size: 1.6rem;
    }

    .impact-label {
        font-size: 0.75rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-hero {
        padding: 1rem 1rem 1.5rem;
    }

    .page-hero-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    .page-hero h1 {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
    }

    .breadcrumb-nav {
        padding-top: 80px;
    }

    .team-grid {
        flex-direction: row !important;
        overflow-x: auto !important;
    }

    .team-card {
        flex: 0 0 60% !important;
    }

    .whatsapp-float {
        width: 44px;
        height: 44px;
        font-size: 26px;
        bottom: 16px;
        left: 16px;
    }

    .btn-back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}