/* 
   ROVALIC MOBILE-SPECIFIC STYLES 
   Carregado somente em telas <= 991px
   
   REGRA DE OURO: Nenhum overflow:hidden em seções com conteúdo dinâmico.
   O scroll-snap é feito via scroll-container, não via clip de seções.
*/

/* ═══════════════════════════════════════════════════
   VARIÁVEIS MOBILE
════════════════════════════════════════════════════ */
:root {
    --mobile-nav-height: 60px;
    --mobile-bottom-nav: 70px;
}

/* ═══════════════════════════════════════════════════
   BASE — Reset seguro para mobile
   Sem overflow:hidden no body/html (causa sumiço de conteúdo)
════════════════════════════════════════════════════ */
html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Scroll container: scroll natural, sem snap que quebre no Edge */
.scroll-container {
    height: auto !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    scroll-snap-type: none !important;
    width: 100%;
}

/* Seções: altura automática, sem overflow:hidden */
.section {
    height: auto !important;
    min-height: calc(var(--vh, 1vh) * 100) !important;
    scroll-snap-align: none !important;
    padding: 80px 20px 80px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: visible !important;        /* CRÍTICO: nunca hidden em mobile */
    width: 100%;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════
   1. NAVBAR
════════════════════════════════════════════════════ */
.navbar {
    padding: 10px 0 !important;
    background: rgba(6, 14, 29, 0.98) !important;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

/* Logo Lockup Mobile */
.logo-lockup {
    gap: 7px !important;
    text-decoration: none !important;
    color: inherit !important;
}

.logo-icon {
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
}

.logo-wordmark {
    font-size: 1.15rem !important;
    letter-spacing: 0.06em !important;
    color: white !important;
    text-decoration: none !important;
}

/* ═══════════════════════════════════════════════════
   2. HERO
════════════════════════════════════════════════════ */
#hero {
    padding: 100px 20px 60px !important;
    background-position: center !important;
    background-attachment: scroll !important;
}

.hero-content {
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
    justify-content: center !important;
}

.hero-text-wrapper h1 {
    font-size: clamp(1.9rem, 9vw, 2.5rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-top: 8px !important;
    color: rgba(164, 173, 201, 0.9) !important;
}

.hero-visual {
    margin-top: 16px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-element {
    max-width: 140px !important;
    filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.2));
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
}

.hero-ctas .btn-primary, 
.hero-ctas .btn-secondary {
    padding: 14px 24px !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    text-align: center;
}

/* ═══════════════════════════════════════════════════
   3. SOBRE
════════════════════════════════════════════════════ */
.grid-sobre {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    align-items: center;
    width: 100%;
}

.sobre-visual {
    order: -1;
}

.tech-badge-img {
    width: 130px !important;
}

.tech-badge-glow {
    width: 150px !important;
    height: 150px !important;
}

.grid-pilares {
    gap: 10px !important;
}

.pilar-card {
    padding: 12px 16px !important;
}

/* ═══════════════════════════════════════════════════
   4. EXPERTISE / SERVIÇOS
════════════════════════════════════════════════════ */
.grid-services {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.card {
    padding: 30px 24px !important;
    gap: 20px !important;
    align-items: center;
    text-align: center;
}

.service-icon-hero {
    width: 120px !important;
    height: 120px !important;
    background: none !important;
    border: none !important;
    margin: 0 auto;
}

.card-icon {
    width: 110px !important;
    height: 110px !important;
}

.card h3 {
    font-size: 1.1rem !important;
}

.card p {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

/* ═══════════════════════════════════════════════════
   5. CASOS
════════════════════════════════════════════════════ */
.case-card {
    flex-direction: column !important;
    gap: 16px !important;
}

.case-image-wrapper {
    height: 180px !important;
}

/* ═══════════════════════════════════════════════════
   6. CONTATO — Nunca cortar o formulário
   Garantia tripla: CSS + JS + observer
════════════════════════════════════════════════════ */
#contato {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    padding: 80px 20px 20px !important;
}

/* Garantia CSS: elementos de animação dentro de #contato SEMPRE visíveis no mobile.
   Mesmo que o JS falhe, o usuário vê o formulário. */
#contato .hidden-up,
#contato .hidden-left,
#contato .hidden-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.contact-section-inner {
    min-height: auto !important;
    padding: 0 !important;
    display: block !important;
}

.form-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.form-text {
    text-align: center !important;
}

.form-text h2 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
}

.form-text p {
    font-size: 0.875rem !important;
    margin-bottom: 0 !important;
}

.form-wrapper {
    padding: 20px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.input-group {
    margin-bottom: 12px !important;
}

input, textarea {
    padding: 11px 14px !important;
    font-size: 0.875rem !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

textarea {
    min-height: 90px !important;
    resize: none !important;
}

.form-btn {
    width: 100% !important;
    padding: 15px !important;
    font-size: 0.95rem !important;
    margin-top: 4px !important;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════
   7. FOOTER
════════════════════════════════════════════════════ */
.footer-premium {
    padding: 40px 0 100px !important;   /* espaço para bottom-nav */
}

.footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center !important;
}

.footer-logo-lockup {
    justify-content: center;
}

.footer-logo-icon {
    width: 36px !important;
    height: 36px !important;
}

.footer-brand .brand-description {
    margin: 0 auto !important;
}

.bottom-flex {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center;
}

/* ═══════════════════════════════════════════════════
   8. TIPOGRAFIA GLOBAL MOBILE
════════════════════════════════════════════════════ */
.section-title {
    font-size: 1.9rem !important;
    margin-bottom: 12px !important;
}

.section-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 20px !important;
}

.text-left {
    text-align: center !important;
}

/* ═══════════════════════════════════════════════════
   9. NAVEGAÇÃO INFERIOR (Bottom Nav)
════════════════════════════════════════════════════ */
.mobile-bottom-nav {
    bottom: 12px;
    left: 12px;
    right: 12px;
    height: 58px;
    border-radius: 16px;
}

/* ═══════════════════════════════════════════════════
   10. WHATSAPP FLOAT
════════════════════════════════════════════════════ */
.whatsapp-float {
    bottom: 85px;
    right: 16px;
    width: 52px;
    height: 52px;
}

.whatsapp-float span {
    display: none !important;
}

/* ═══════════════════════════════════════════════════
   11. REVEAL (Animações mais rápidas no mobile)
════════════════════════════════════════════════════ */
.reveal {
    transition-duration: 0.4s !important;
}

/* ═══════════════════════════════════════════════════
   12. TELAS MUITO PEQUENAS (< 400px largura)
════════════════════════════════════════════════════ */
@media (max-width: 400px) {
    .section {
        padding: 70px 16px 70px !important;
    }

    .hero-text-wrapper h1 {
        font-size: 1.75rem !important;
    }

    .btn-primary, .btn-secondary {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════
   13. TELAS CURTAS (landscape ou iPhone SE)
════════════════════════════════════════════════════ */
@media (max-height: 680px) {
    .section {
        min-height: auto !important;
        padding: 70px 20px 60px !important;
    }

    .hero-text-wrapper h1 {
        font-size: 1.7rem !important;
    }

    .floating-element {
        max-width: 100px !important;
    }

    .section-title {
        font-size: 1.6rem !important;
        margin-bottom: 8px !important;
    }

    .card {
        padding: 10px 14px !important;
    }
}
