/* footer.css — footer institucional PRO + sitemap + newsletter modal + features pós-fold.
 * Deferido (preload+onload). Site-wide. Inclui CSS que NÃO precisa estar no primeiro paint:
 *   - back-to-top button (só aparece após scroll>600px)
 *   - dropdown subcats (só visível em hover/click)
 *   - mobile drawer/sidebar (só após clique hamburger)
 *   - hamburger anim → X (idem)
 *   - honeypot anti-spam
 * Tirar do critical = LCP/Speed Index menores. */

/* ════ BACK TO TOP ════ */
.vd-back-top{position:fixed;bottom:1.2rem;right:1.2rem;width:46px;height:46px;border-radius:50%;background:var(--verde);color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.2);z-index:var(--z-back-top);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .25s ease,transform .25s ease,visibility 0s linear .25s;text-decoration:none}
.vd-back-top.show{opacity:1;visibility:visible;transform:translateY(0);transition:opacity .25s ease,transform .25s ease}
.vd-back-top:hover{background:var(--verde-escuro);color:#fff}
.vd-back-top svg{width:20px;height:20px}
@media(max-width:480px){.vd-back-top{bottom:.8rem;right:.8rem;width:42px;height:42px}}

/* ════ NAV DROPDOWN SUBCATS (desktop hover/focus, mobile click via JS) ════ */
.vd-subcats{display:none;position:absolute;top:100%;left:0;min-width:240px;background:var(--bg-card);border:1px solid var(--borda);border-radius:8px;box-shadow:0 8px 28px rgba(0,0,0,.15);list-style:none;padding:.4rem 0;margin:0;z-index:var(--z-dropdown)}
.vd-nav-list li.has-children:hover > .vd-subcats,
.vd-nav-list li.has-children:focus-within > .vd-subcats,
.vd-nav-list li.has-children.open > .vd-subcats{display:block}
.vd-nav-list li.has-children:hover .vd-chevron,
.vd-nav-list li.has-children.open .vd-chevron{transform:rotate(180deg);transition:transform .2s}
.vd-subcats > li{display:block;width:100%;margin:0;flex:0 0 auto}
.vd-subcats > li > a{display:block;padding:.55rem 1rem;font-size:.85rem;color:var(--texto);text-decoration:none;text-transform:none;letter-spacing:0;font-weight:600;line-height:1.35;border:none;background:transparent;min-height:auto;white-space:normal}
.vd-subcats > li > a:hover,.vd-subcats > li > a:focus{background:rgba(13,104,68,.08);color:var(--verde)}
.vd-subcat-all{border-bottom:1px solid var(--borda);margin-bottom:.25rem;color:var(--verde) !important;font-weight:700 !important;font-size:.82rem !important}
.vd-nav-list:hover{overflow:visible}
.vd-nav-list:has(li.has-children:hover),
.vd-nav-list:has(li.has-children:focus-within),
.vd-nav-list:has(li.has-children.open){overflow:visible}
.vd-nav-list.has-active-child{overflow:visible}

/* ════ MOBILE DRAWER / SIDEBAR OFF-CANVAS ════ */
@media(max-width:1023px){
    .vd-nav-row{display:block;position:fixed;top:0;right:0;bottom:0;left:auto;width:300px;max-width:85vw;background:var(--bg-card);margin:0;padding:0;border:none;border-left:1px solid var(--borda);transform:translateX(100%);transition:transform .3s ease;overflow-y:auto;box-shadow:-4px 0 24px rgba(0,0,0,.18);z-index:var(--z-drawer)}
    body.vd-drawer-open .vd-nav-row{transform:translateX(0)}
    body.vd-drawer-open::before{content:'';position:fixed;inset:0;background:var(--overlay);z-index:var(--z-drawer-backdrop);animation:vd-backdrop-in .25s ease}
    body.vd-drawer-open{overflow:hidden}
    body.vd-drawer-open .vd-mobile-toggle{position:fixed;top:.5rem;right:.5rem;z-index:calc(var(--z-drawer) + 1);background:var(--bg-card);border-radius:50%}
    body.vd-drawer-open .vd-mobile-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
    body.vd-drawer-open .vd-mobile-toggle span:nth-child(2){opacity:0}
    body.vd-drawer-open .vd-mobile-toggle span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

    .vd-nav-list{flex-direction:column;justify-content:flex-start;padding:3.5rem 0 1.5rem;overflow:visible;max-width:none;gap:0}
    .vd-nav-list li{display:block;width:100%;flex:0 0 auto}
    .vd-nav-link{display:flex;justify-content:space-between;align-items:center;padding:.85rem 1.2rem;font-size:.95rem;text-transform:none;letter-spacing:0;border-bottom:1px solid var(--borda);border-radius:0;min-height:48px;white-space:normal}
    .vd-nav-link:hover,.vd-nav-link:focus{background:rgba(13,104,68,.08);border-bottom-color:var(--borda)}

    /* subcats mobile = accordion inline (não overlay) */
    .vd-subcats{position:static;display:none;box-shadow:none;border:none;background:var(--bg);padding:.3rem 0 .5rem;border-radius:0;margin:0;width:100%;min-width:0}
    .vd-nav-list li.has-children:hover > .vd-subcats,
    .vd-nav-list li.has-children:focus-within > .vd-subcats{display:none !important}
    .vd-nav-list li.has-children.open > .vd-subcats{display:block !important}
    .vd-subcats > li > a{padding:.65rem 2rem;font-size:.88rem;border-bottom:1px solid var(--borda)}
}
@keyframes vd-backdrop-in{from{opacity:0}to{opacity:1}}

/* ════ SITE FOOTER (6 COLS) ════ */
.vd-site-footer{background:var(--verde-escuro);color:rgba(255,255,255,.85);padding:3rem 0 0;margin-top:auto}
.vd-footer-grid{max-width:var(--max-w);margin:0 auto;padding:0 1.5rem;display:grid;grid-template-columns:1.5fr repeat(5,1fr);gap:2rem}
.vd-footer-col-about{grid-column:1}
.vd-footer-col .vd-footer-heading{color:#fff;font-size:.92rem;font-weight:700;margin-bottom:.8rem;padding-bottom:.4rem;border-bottom:2px solid var(--verde-claro);letter-spacing:.02em}
/* Contraste AA verificado: rgba(255,255,255,.85)+ blended sobre #064e32 = ~6,5:1 (AA+) */
.vd-footer-desc{font-size:.88rem;line-height:1.6;color:rgba(255,255,255,.92);margin:0 0 .6rem}
.vd-footer-tagline{font-size:.78rem;line-height:1.5;color:rgba(255,255,255,.85);font-style:italic;margin:0}
.vd-footer-col ul{list-style:none;padding:0;margin:0}
.vd-footer-col li{margin-bottom:.45rem}
.vd-footer-col a{color:rgba(255,255,255,.92);font-size:.86rem;text-decoration:none;transition:color .2s ease;display:inline-block}
.vd-footer-col a:hover{color:#a7f3d0}

.vd-footer-social{display:flex;flex-direction:column;gap:.45rem}
.vd-footer-social li{margin:0}
.vd-footer-social a{display:inline-flex;align-items:center;gap:.5rem}
.vd-footer-social a svg{flex-shrink:0}

.vd-footer-contact{font-size:.82rem;color:rgba(255,255,255,.92);margin:1rem 0 0;line-height:1.5}
.vd-footer-contact strong{color:#fff;font-weight:700}
.vd-footer-contact a{color:#a7f3d0;text-decoration:none}
.vd-footer-contact a:hover{text-decoration:underline}

.vd-footer-bottom{max-width:var(--max-w);margin:2.5rem auto 0;padding:1.2rem 1.5rem;border-top:1px solid rgba(255,255,255,.18);text-align:center;font-size:.78rem;color:rgba(255,255,255,.92)}
.vd-footer-bottom p{margin:0 0 .3rem}
.vd-footer-disclaimer{font-size:.76rem;color:rgba(255,255,255,.85);max-width:780px;margin:.6rem auto 0;line-height:1.55}
.vd-footer-bottom a{color:#a7f3d0;text-decoration:none}
.vd-footer-bottom a:hover{color:#fff;text-decoration:underline}

@media(max-width:1200px){
    .vd-footer-grid{grid-template-columns:1.5fr repeat(3,1fr);gap:1.5rem}
    .vd-footer-col-about{grid-column:1 / -1}
}
@media(max-width:768px){.vd-footer-grid{grid-template-columns:repeat(2,1fr);gap:1.5rem}.vd-footer-col-about{grid-column:1 / -1}}
@media(max-width:480px){.vd-footer-grid{grid-template-columns:1fr;gap:1.5rem}.vd-footer-col-about{grid-column:1}}

/* ════ FOOTER SITEMAP ════ */
.vd-footer-sitemap{background:var(--bg-card);border-top:3px solid var(--verde);padding:1.2rem 0;border-bottom:1px solid var(--borda)}
.vd-footer-sitemap-title{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:var(--texto-sec);font-weight:700;margin:0 0 .7rem}
.vd-footer-sitemap-list{display:flex;flex-wrap:wrap;gap:.6rem;list-style:none;padding:0;margin:0}
.vd-footer-sitemap-list li{margin:0}
.vd-footer-sitemap-list a{display:inline-block;font-size:.85rem;font-weight:600;color:var(--titulo);text-decoration:none;padding:.4rem .9rem;border:1px solid var(--borda);border-bottom-width:3px;border-radius:var(--radius-sm);background:var(--bg);transition:background .2s,color .2s}
.vd-footer-sitemap-list a:hover{background:var(--verde);color:#fff;border-color:var(--verde)}

/* ════ NEWSLETTER POPUP MODAL ════ */
.vd-nl-modal{position:fixed;inset:0;z-index:var(--z-modal);display:none;align-items:center;justify-content:center;padding:1rem}
.vd-nl-modal.show{display:flex;animation:vd-nl-fadein .25s ease}
@keyframes vd-nl-fadein{from{opacity:0}to{opacity:1}}
.vd-nl-modal-backdrop{position:absolute;inset:0;background:var(--overlay);backdrop-filter:blur(2px)}
.vd-nl-modal-card{position:relative;background:var(--bg-card);color:var(--texto);border-radius:var(--radius);max-width:480px;width:100%;padding:2rem 1.8rem;box-shadow:0 20px 60px rgba(0,0,0,.3);text-align:center;animation:vd-nl-slide-up .35s ease}
@keyframes vd-nl-slide-up{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.vd-nl-modal-close{position:absolute;top:.7rem;right:.7rem;width:36px;height:36px;border-radius:50%;border:none;background:transparent;color:var(--texto-muted);font-size:1.6rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.vd-nl-modal-close:hover{background:var(--bg);color:var(--texto)}
.vd-nl-modal-emoji{font-size:2.5rem;display:block;margin-bottom:.7rem}
.vd-nl-modal-card h2{font-size:1.35rem;font-weight:800;color:var(--titulo);margin:0 0 .5rem;line-height:1.3}
.vd-nl-modal-card p{color:var(--texto-sec);margin:0 0 1.3rem;font-size:.95rem}
.vd-nl-modal-form{display:flex;flex-direction:column;gap:.7rem}
.vd-nl-modal-form input[type="text"],.vd-nl-modal-form input[type="email"]{padding:.85rem 1.1rem;border:1.5px solid var(--borda);border-radius:var(--radius-sm);font-size:16px;outline:none;width:100%;color:var(--texto);background:var(--bg)}
.vd-nl-modal-form input[type="text"]:focus,.vd-nl-modal-form input[type="email"]:focus{border-color:var(--verde);box-shadow:0 0 0 3px rgba(13,104,68,.15)}
.vd-nl-modal-submit{padding:.95rem 1.5rem;background:var(--verde);color:#fff;border:none;border-radius:var(--radius-sm);font-weight:800;font-size:1rem;cursor:pointer;min-height:48px}
.vd-nl-modal-submit:hover{background:var(--verde-escuro)}
.vd-nl-success{color:#16a34a;font-size:.9rem;font-weight:600;margin-top:.5rem;display:none}
.vd-nl-error{color:#dc2626;font-size:.85rem;font-weight:600;margin-top:.3rem;display:none}
.vd-nl-privacy{font-size:.72rem;color:var(--texto-muted);margin-top:.5rem;line-height:1.4}
.vd-nl-privacy a{color:var(--verde);text-decoration:underline}

/* ════ HONEYPOT — visualmente oculto (bots preenchem, humanos não veem) ════ */
.vd-honeypot{position:absolute !important;left:-9999px !important;top:-9999px !important;width:1px !important;height:1px !important;overflow:hidden !important;opacity:0 !important;pointer-events:none !important}

@media(max-width:480px){.vd-nl-modal-card{padding:1.5rem 1.2rem}.vd-nl-modal-card h2{font-size:1.2rem}}
