/* ------------------------------------------------------------------
    MOBILE - _LayoutV3 (layout-v3.css)

    Carregado apenas em telas <= 900px via <link media="(max-width: 900px)">
    no _LayoutV3.cshtml.
-------------------------------------------------------------------*/
html { --nav-h: 64px; }

/* GERAL */
body { font-size: 15px; }
.wrap { padding: 0 18px; }
section { padding: 64px 0; }
.sec-head { margin-bottom: 32px; }

/* TOPBAR */
.topbar { padding: 8px 0; }
.topbar .wrap { flex-direction: column; gap: 6px; text-align: center; }
.tb-links,
.tb-apps { justify-content: center; flex-wrap: wrap; gap: 6px 14px; width: 100%; margin: 0; }
.tb-apps a { font-size: 12px; }

/* NAVBAR */
.navbar .wrap { height: var(--nav-h); gap: 8px; }
.navbar .logo-default { height: 40px; }

#nav-auth-area { margin-left: auto; }
.nav-cta { padding: 8px 14px; font-size: 13px; }
.nav-user-info { gap: 6px; padding: 4px 4px 4px 10px; }
.nav-user-name { font-size: 13px; }

/* Hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: 4px;
    border: 1px solid var(--ink-12);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu dropdown mobile */
.nav-links {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(var(--nav-h) + 8px);
    flex-direction: column;
    gap: 2px;
    margin: 0;
    background: var(--white);
    padding: 8px;
    border: 1px solid var(--ink-12);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    max-height: calc(100vh - var(--nav-h) - 24px);
    overflow-y: auto;
}
.navbar.nav-open .nav-links { display: flex; animation: fadeIn .2s ease both; }
.nav-links li { width: 100%; }
.nav-links a { padding: 12px 14px; font-size: 15px; border-radius: 12px; }

/* HERO */
.hero { padding: 48px 0 40px; }
.hero-video { min-height: calc(100svh - var(--nav-h) - 58px); padding: 56px 0 64px; }
.hero-badge { margin-bottom: 18px; }
.hero h1 { margin-bottom: 14px; }
.hero p { margin-bottom: 26px; font-size: 16px; }
.hero-stats { gap: 8px; margin-top: 28px; }
.hstat { padding: 12px 8px; border-radius: 14px; }
.hstat strong { font-size: 1.35rem; }
.hero-scroll { display: none; }
.hero-video-toggle { right: 14px; bottom: 14px; width: 36px; height: 36px; }

.search-panel { border-radius: 22px; padding: 8px; }
.search-bar { flex-wrap: wrap; border-radius: 16px; }
.search-bar .search-ico { display: none; }
.search-bar input { width: 100%; flex: 1 1 100%; padding: 12px 12px; }
.search-tabs { flex: 1 1 100%; border-left: none; border-top: 1px solid var(--ink-12); justify-content: center; padding: 8px 0 2px; }
.search-btn { flex: 1 1 100%; justify-content: center; border-radius: 12px; }

/* ALPHA / CATEGORIAS */
.alpha-scroll { gap: 6px; margin: 24px 0; }
.alpha-scroll a { width: 36px; height: 36px; border-radius: 10px; }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cat-card { padding: 16px; min-height: auto; }
.cat-icon { width: 40px; height: 40px; font-size: 18px; }

/* SOBRE */
.sobre-img-frame::before { inset: -10px 10px 10px -10px; }
.sobre-badge-float { left: 16px; bottom: 16px; padding: 6px 12px; font-size: 12px; }
.btn-primary { width: 100%; justify-content: center; }

/* MÉTRICAS */
.metricas { padding: 48px 0; }
.metricas .wrap { gap: 10px; }
.met-card { padding: 22px 10px; }
.met-num { font-size: 2.1rem; }

/* VANTAGENS */
.adv-card { padding: 24px; }

/* CONTATO */
.form-card { padding: 24px; }
.ci { font-size: 14px; }

/* SEARCH PAGE */
.search-header { padding: 32px 0 24px; }
.search-header .hero-deco { display: none; }
.search-header h2 { font-size: 1.25rem; }
.results-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
.sort-select { width: 100%; }

.result-card { padding: 18px; grid-template-columns: 1fr; }
.result-card-right { max-width: none; width: 100%; flex-direction: row; flex-wrap: wrap; align-items: stretch; }
.result-card-right a,
.result-card-right button { flex: 1 1 auto; text-align: center; }
.result-card-right p { width: 100%; }

.pagination { flex-wrap: wrap; }
.page-btn { min-width: 64px; }

/* DETALHE */
.detail-header { padding: 28px 0 24px; }
.detail-header .hero-deco { display: none; }
.detail-layout { padding: 28px 0 56px; }
.detail-card { padding: 20px; }
.info-columns { grid-template-columns: 1fr; }
.map-embed, iframe { height: 220px !important; }

/* FOOTER */
footer { padding: 48px 0 24px; }
.footer-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; margin-bottom: 24px; }
.footer-bottom { flex-direction: column; text-align: center; gap: 6px; }

/* WHATSAPP FLUTUANTE */
.wa-float { width: 50px; height: 50px; font-size: 22px; bottom: 18px; right: 18px; }

/* CARROSSEL */
ul.v3-slides { height: 220px; }
.v3-slide-image img { max-width: 220px; max-height: 220px; }
.v3-carousel-controls { font-size: 50px; line-height: 220px; }

/* ABAS */
.v3-tab-btn { font-size: 11px; padding: 10px 4px; }
.v3-tab-panel { padding: 18px; }

/* MODAL DE AUTENTICAÇÃO */
#authModal .modal-dialog { margin: 12px; }
#authModal .modal-header { padding: 16px 18px 12px !important; }
#authModal .modal-body { padding: 18px !important; }
#authModal .auth-side { margin-bottom: 18px; padding: 18px; }
